2 # From configure.ac Revision: 1.140 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.1.1-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.1.1-cvs'
733 PACKAGE_STRING='simgrid 3.1.1-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
893 MAINTAINER_MODE_FALSE
915 ac_precious_vars='build_alias
932 # Initialize some variables set by options.
934 ac_init_version=false
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
944 program_transform_name=s,x,x,
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
984 eval $ac_prev=\$ac_option
990 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 # Accept the important Cygnus configure options, so we can diagnose typos.
996 case $ac_dashdash$ac_option in
1000 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003 bindir=$ac_optarg ;;
1005 -build | --build | --buil | --bui | --bu)
1006 ac_prev=build_alias ;;
1007 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008 build_alias=$ac_optarg ;;
1010 -cache-file | --cache-file | --cache-fil | --cache-fi \
1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012 ac_prev=cache_file ;;
1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015 cache_file=$ac_optarg ;;
1017 --config-cache | -C)
1018 cache_file=config.cache ;;
1020 -datadir | --datadir | --datadi | --datad)
1022 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023 datadir=$ac_optarg ;;
1025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026 | --dataroo | --dataro | --datar)
1027 ac_prev=datarootdir ;;
1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030 datarootdir=$ac_optarg ;;
1032 -disable-* | --disable-*)
1033 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039 eval enable_$ac_feature=no ;;
1041 -docdir | --docdir | --docdi | --doc | --do)
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1051 -enable-* | --enable-*)
1052 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058 eval enable_$ac_feature=\$ac_optarg ;;
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
1067 exec_prefix=$ac_optarg ;;
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
1080 -host | --host | --hos | --ho)
1081 ac_prev=host_alias ;;
1082 -host=* | --host=* | --hos=* | --ho=*)
1083 host_alias=$ac_optarg ;;
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089 htmldir=$ac_optarg ;;
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
1096 includedir=$ac_optarg ;;
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101 infodir=$ac_optarg ;;
1103 -libdir | --libdir | --libdi | --libd)
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106 libdir=$ac_optarg ;;
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
1113 libexecdir=$ac_optarg ;;
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
1121 | --localstate | --localstat | --localsta | --localst | --locals)
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125 localstatedir=$ac_optarg ;;
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130 mandir=$ac_optarg ;;
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137 | --no-cr | --no-c | -n)
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151 oldincludedir=$ac_optarg ;;
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156 prefix=$ac_optarg ;;
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163 program_prefix=$ac_optarg ;;
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170 program_suffix=$ac_optarg ;;
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
1187 program_transform_name=$ac_optarg ;;
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1194 -psdir | --psdir | --psdi | --psd | --ps)
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 sbindir=$ac_optarg ;;
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 sharedstatedir=$ac_optarg ;;
1220 -site | --site | --sit)
1222 -site=* | --site=* | --sit=*)
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228 srcdir=$ac_optarg ;;
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235 sysconfdir=$ac_optarg ;;
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
1238 ac_prev=target_alias ;;
1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240 target_alias=$ac_optarg ;;
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
1249 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 { echo "$as_me: error: invalid package name: $ac_package" >&2
1253 { (exit 1); exit 1; }; }
1254 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1255 eval with_$ac_package=\$ac_optarg ;;
1257 -without-* | --without-*)
1258 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 { echo "$as_me: error: invalid package name: $ac_package" >&2
1262 { (exit 1); exit 1; }; }
1263 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1264 eval with_$ac_package=no ;;
1267 # Obsolete; use --with-x.
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1284 -*) { echo "$as_me: error: unrecognized option: $ac_option
1285 Try \`$0 --help' for more information." >&2
1286 { (exit 1); exit 1; }; }
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1294 { (exit 1); exit 1; }; }
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1299 # FIXME: should be removed in autoconf 3.0.
1300 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 { echo "$as_me: error: missing argument to $ac_option" >&2
1312 { (exit 1); exit 1; }; }
1315 # Be sure to have absolute directory names.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1327 { (exit 1); exit 1; }; }
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1335 target=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
1341 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342 If a cross compiler is detected then cross compile mode will be used." >&2
1343 elif test "x$build_alias" != "x$host_alias"; then
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351 test "$silent" = yes && exec 6>/dev/null
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357 { echo "$as_me: error: Working directory cannot be determined" >&2
1358 { (exit 1); exit 1; }; }
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 { echo "$as_me: error: pwd does not report name of working directory" >&2
1361 { (exit 1); exit 1; }; }
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
1367 # Try the directory containing this script, then the parent directory.
1368 ac_confdir=`$as_dirname -- "$0" ||
1369 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$0" : 'X\(//\)[^/]' \| \
1371 X"$0" : 'X\(//\)$' \| \
1372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1396 ac_srcdir_defaulted=no
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1401 { (exit 1); exit 1; }; }
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1406 { (exit 1); exit 1; }; }
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures simgrid 3.1.1-cvs to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497 --target=TARGET configure for building compilers for TARGET [HOST]
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of simgrid 3.1.1-cvs:";;
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-shared[=PKGS] build shared libraries [default=yes]
1511 --enable-static[=PKGS] build static libraries [default=yes]
1512 --enable-fast-install[=PKGS]
1513 optimize for fast installation [default=yes]
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1517 --enable-simix Use the new SimIX module (default=no)
1518 --enable-maintainer-mode enable make rules and dependencies not useful
1519 (and sometimes confusing) to the casual installer
1520 --enable-compile-warnings
1521 use compiler warnings (default=no, unless in
1523 --disable-compile-optimizations
1524 use compiler optimizations (default=yes, unless if
1525 CFLAGS is explicitly set)
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1531 --with-pic try to use only PIC/non-PIC objects [default=use
1533 --with-tags[=TAGS] include additional configurations [automatic]
1534 --with-pthread Use pthread instead of ucontext.
1535 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1546 CXX C++ compiler command
1547 CXXFLAGS C++ compiler flags
1548 CXXCPP C++ preprocessor
1549 F77 Fortran 77 compiler command
1550 FFLAGS Fortran 77 compiler flags
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1555 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" || continue
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1583 .) # We are building in place.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1607 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1616 simgrid configure 3.1.1-cvs
1617 generated by GNU Autoconf 2.61
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1630 It was created by simgrid $as_me 3.1.1-cvs, which was
1631 generated by GNU Autoconf 2.61. Invocation command line was
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1652 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1653 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1656 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1657 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1658 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 echo "PATH: $as_dir"
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_must_keep_next=false
1697 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699 | -silent | --silent | --silen | --sile | --sil)
1702 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1705 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708 if test $ac_must_keep_next = true; then
1709 ac_must_keep_next=false # Got value, back to normal.
1712 *=* | --config-cache | -C | -disable-* | --disable-* \
1713 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715 | -with-* | --with-* | -without-* | --without-* | --x)
1716 case "$ac_configure_args0 " in
1717 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1720 -* ) ac_must_keep_next=true ;;
1723 ac_configure_args="$ac_configure_args '$ac_arg'"
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log. We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737 # Save into config.log some information that might help in debugging.
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1747 # The following way of writing the cache mishandles newlines in values,
1749 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750 eval ac_val=\$$ac_var
1754 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1758 _ | IFS | as_nl) ;; #(
1759 *) $as_unset $ac_var ;;
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1784 for ac_var in $ac_subst_vars
1786 eval ac_val=\$$ac_var
1788 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 echo "$ac_var='\''$ac_val'\''"
1794 if test -n "$ac_subst_files"; then
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1801 for ac_var in $ac_subst_files
1803 eval ac_val=\$$ac_var
1805 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 echo "$ac_var='\''$ac_val'\''"
1812 if test -s confdefs.h; then
1822 test "$ac_signal" != 0 &&
1823 echo "$as_me: caught signal $ac_signal"
1824 echo "$as_me: exit $exit_status"
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1830 for ac_signal in 1 2 13 15; do
1831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1838 # Predefined preprocessor variables.
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer explicitly selected file to automatically selected ones.
1867 if test -n "$CONFIG_SITE"; then
1868 set x "$CONFIG_SITE"
1869 elif test "x$prefix" != xNONE; then
1870 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1872 set x "$ac_default_prefix/share/config.site" \
1873 "$ac_default_prefix/etc/config.site"
1878 if test -r "$ac_site_file"; then
1879 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 echo "$as_me: loading site script $ac_site_file" >&6;}
1881 sed 's/^/| /' "$ac_site_file" >&5
1886 if test -r "$cache_file"; then
1887 # Some versions of bash will fail to source /dev/null (special
1888 # files actually), so we avoid doing that.
1889 if test -f "$cache_file"; then
1890 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 echo "$as_me: loading cache $cache_file" >&6;}
1893 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894 *) . "./$cache_file";;
1898 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 echo "$as_me: creating cache $cache_file" >&6;}
1903 # Check that the precious variables saved in the cache have kept the same
1905 ac_cache_corrupted=false
1906 for ac_var in $ac_precious_vars; do
1907 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1908 eval ac_new_set=\$ac_env_${ac_var}_set
1909 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1910 eval ac_new_val=\$ac_env_${ac_var}_value
1911 case $ac_old_set,$ac_new_set in
1913 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1915 ac_cache_corrupted=: ;;
1917 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1919 ac_cache_corrupted=: ;;
1922 if test "x$ac_old_val" != "x$ac_new_val"; then
1923 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1925 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1926 echo "$as_me: former value: $ac_old_val" >&2;}
1927 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1928 echo "$as_me: current value: $ac_new_val" >&2;}
1929 ac_cache_corrupted=:
1932 # Pass precious variables to config.status.
1933 if test "$ac_new_set" = set; then
1935 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 *) ac_arg=$ac_var=$ac_new_val ;;
1938 case " $ac_configure_args " in
1939 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1940 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1944 if $ac_cache_corrupted; then
1945 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949 { (exit 1); exit 1; }; }
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1984 ac_config_headers="$ac_config_headers src/gras_config.h"
1986 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1990 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1991 if test -f "$ac_dir/install-sh"; then
1993 ac_install_sh="$ac_aux_dir/install-sh -c"
1995 elif test -f "$ac_dir/install.sh"; then
1997 ac_install_sh="$ac_aux_dir/install.sh -c"
1999 elif test -f "$ac_dir/shtool"; then
2001 ac_install_sh="$ac_aux_dir/shtool install -c"
2005 if test -z "$ac_aux_dir"; then
2006 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2007 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2008 { (exit 1); exit 1; }; }
2011 # These three variables are undocumented and unsupported,
2012 # and are intended to be withdrawn in a future Autoconf release.
2013 # They can cause serious problems if a builder's source tree is in a directory
2014 # whose full name contains unusual characters.
2015 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2016 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2017 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2020 # Make sure we can run config.sub.
2021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2022 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2023 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2024 { (exit 1); exit 1; }; }
2026 { echo "$as_me:$LINENO: checking build system type" >&5
2027 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2028 if test "${ac_cv_build+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 ac_build_alias=$build_alias
2032 test "x$ac_build_alias" = x &&
2033 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2034 test "x$ac_build_alias" = x &&
2035 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2036 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2037 { (exit 1); exit 1; }; }
2038 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2039 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2041 { (exit 1); exit 1; }; }
2044 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2045 echo "${ECHO_T}$ac_cv_build" >&6; }
2046 case $ac_cv_build in
2048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2049 echo "$as_me: error: invalid value of canonical build" >&2;}
2050 { (exit 1); exit 1; }; };;
2053 ac_save_IFS=$IFS; IFS='-'
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2063 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2066 { echo "$as_me:$LINENO: checking host system type" >&5
2067 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_host+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 if test "x$host_alias" = x; then
2072 ac_cv_host=$ac_cv_build
2074 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2075 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2076 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2077 { (exit 1); exit 1; }; }
2081 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2082 echo "${ECHO_T}$ac_cv_host" >&6; }
2085 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2086 echo "$as_me: error: invalid value of canonical host" >&2;}
2087 { (exit 1); exit 1; }; };;
2090 ac_save_IFS=$IFS; IFS='-'
2096 # Remember, the first character of IFS is used to create $*,
2097 # except with old shells:
2100 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2103 { echo "$as_me:$LINENO: checking target system type" >&5
2104 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2105 if test "${ac_cv_target+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 if test "x$target_alias" = x; then
2109 ac_cv_target=$ac_cv_host
2111 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2112 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2113 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2114 { (exit 1); exit 1; }; }
2118 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2119 echo "${ECHO_T}$ac_cv_target" >&6; }
2120 case $ac_cv_target in
2122 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2123 echo "$as_me: error: invalid value of canonical target" >&2;}
2124 { (exit 1); exit 1; }; };;
2126 target=$ac_cv_target
2127 ac_save_IFS=$IFS; IFS='-'
2133 # Remember, the first character of IFS is used to create $*,
2134 # except with old shells:
2137 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2140 # The aliases save the names the user supplied, while $host etc.
2141 # will get canonicalized.
2142 test -n "$target_alias" &&
2143 test "$program_prefix$program_suffix$program_transform_name" = \
2145 program_prefix=${target_alias}-
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153 am__api_version="1.9"
2154 # Find a good install program. We prefer a C program (faster),
2155 # so one script is as good as another. But avoid the broken or
2156 # incompatible versions:
2157 # SysV /etc/install, /usr/sbin/install
2158 # SunOS /usr/etc/install
2159 # IRIX /sbin/install
2161 # AmigaOS /C/install, which installs bootblocks on floppy discs
2162 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2163 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2164 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2165 # OS/2's system install, which has a completely different semantic
2166 # ./install, which can be erroneously created by make from ./install.sh.
2167 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2168 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2169 if test -z "$INSTALL"; then
2170 if test "${ac_cv_path_install+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 test -z "$as_dir" && as_dir=.
2178 # Account for people who put trailing slashes in PATH elements.
2180 ./ | .// | /cC/* | \
2181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2182 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2185 # OSF1 and SCO ODT 3.0 have their own names for install.
2186 # Don't use installbsd from OSF since it installs stuff as root
2188 for ac_prog in ginstall scoinst install; do
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2191 if test $ac_prog = install &&
2192 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2193 # AIX install. It has an incompatible calling convention.
2195 elif test $ac_prog = install &&
2196 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197 # program-specific install script used by HP pwplus--don't use.
2200 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2213 if test "${ac_cv_path_install+set}" = set; then
2214 INSTALL=$ac_cv_path_install
2216 # As a last resort, use the slow shell script. Don't cache a
2217 # value for INSTALL within a source directory, because that will
2218 # break other packages using the cache if that directory is
2219 # removed, or if the value is a relative name.
2220 INSTALL=$ac_install_sh
2223 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2224 echo "${ECHO_T}$INSTALL" >&6; }
2226 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2227 # It thinks the first close brace ends the variable substitution.
2228 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2230 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2232 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2234 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2235 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2238 echo timestamp > conftest.file
2239 # Do `set' in a subshell so we don't clobber the current shell's
2240 # arguments. Must try -L first in case configure is actually a
2241 # symlink; some systems play weird games with the mod time of symlinks
2242 # (eg FreeBSD returns the mod time of the symlink's containing
2245 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2246 if test "$*" = "X"; then
2248 set X `ls -t $srcdir/configure conftest.file`
2251 if test "$*" != "X $srcdir/configure conftest.file" \
2252 && test "$*" != "X conftest.file $srcdir/configure"; then
2254 # If neither matched, then we have a broken ls. This can happen
2255 # if, for instance, CONFIG_SHELL is bash and it inherits a
2256 # broken ls alias from the environment. This has actually
2257 # happened. Such a system could not be considered "sane".
2258 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2259 alias in your environment" >&5
2260 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2261 alias in your environment" >&2;}
2262 { (exit 1); exit 1; }; }
2265 test "$2" = conftest.file
2271 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2272 Check your system clock" >&5
2273 echo "$as_me: error: newly created file is older than distributed files!
2274 Check your system clock" >&2;}
2275 { (exit 1); exit 1; }; }
2277 { echo "$as_me:$LINENO: result: yes" >&5
2278 echo "${ECHO_T}yes" >&6; }
2279 test "$program_prefix" != NONE &&
2280 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2281 # Use a double $ so make ignores it.
2282 test "$program_suffix" != NONE &&
2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2284 # Double any \ or $. echo might interpret backslashes.
2285 # By default was `s,x,x', remove it if useless.
2286 cat <<\_ACEOF >conftest.sed
2287 s/[\\$]/&&/g;s/;s,x,x,$//
2289 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2292 # expand $ac_aux_dir to an absolute path
2293 am_aux_dir=`cd $ac_aux_dir && pwd`
2295 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2296 # Use eval to expand $SHELL
2297 if eval "$MISSING --run true"; then
2298 am_missing_run="$MISSING --run "
2301 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2302 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2305 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2306 # We used to keeping the `.' as first argument, in order to
2307 # allow $(mkdir_p) to be used without argument. As in
2308 # $(mkdir_p) $(somedir)
2309 # where $(somedir) is conditionally defined. However this is wrong
2311 # 1. if the package is installed by a user who cannot write `.'
2312 # make install will fail,
2313 # 2. the above comment should most certainly read
2314 # $(mkdir_p) $(DESTDIR)$(somedir)
2315 # so it does not work when $(somedir) is undefined and
2316 # $(DESTDIR) is not.
2317 # To support the latter case, we have to write
2318 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2319 # so the `.' trick is pointless.
2320 mkdir_p='mkdir -p --'
2322 # On NextStep and OpenStep, the `mkdir' command does not
2323 # recognize any option. It will interpret all options as
2324 # directories to create, and then abort because `.' already
2326 for d in ./-p ./--version;
2328 test -d $d && rmdir $d
2330 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2331 if test -f "$ac_aux_dir/mkinstalldirs"; then
2332 mkdir_p='$(mkinstalldirs)'
2334 mkdir_p='$(install_sh) -d'
2338 for ac_prog in gawk mawk nawk awk
2340 # Extract the first word of "$ac_prog", so it can be a program name with args.
2341 set dummy $ac_prog; ac_word=$2
2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_AWK+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 if test -n "$AWK"; then
2348 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir=.
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357 ac_cv_prog_AWK="$ac_prog"
2358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 if test -n "$AWK"; then
2369 { echo "$as_me:$LINENO: result: $AWK" >&5
2370 echo "${ECHO_T}$AWK" >&6; }
2372 { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2377 test -n "$AWK" && break
2380 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2381 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2382 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2383 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 cat >conftest.make <<\_ACEOF
2389 @echo '@@@%%%=$(MAKE)=@@@%%%'
2391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2394 eval ac_cv_prog_make_${ac_make}_set=yes;;
2396 eval ac_cv_prog_make_${ac_make}_set=no;;
2400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2401 { echo "$as_me:$LINENO: result: yes" >&5
2402 echo "${ECHO_T}yes" >&6; }
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2407 SET_MAKE="MAKE=${MAKE-make}"
2410 rm -rf .tst 2>/dev/null
2411 mkdir .tst 2>/dev/null
2412 if test -d .tst; then
2417 rmdir .tst 2>/dev/null
2419 # test to see if srcdir already configured
2420 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2421 test -f $srcdir/config.status; then
2422 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2423 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2424 { (exit 1); exit 1; }; }
2427 # test whether we have cygpath
2428 if test -z "$CYGPATH_W"; then
2429 if (cygpath --version) >/dev/null 2>/dev/null; then
2430 CYGPATH_W='cygpath -w'
2437 # Define the identity of the package.
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE "$PACKAGE"
2447 cat >>confdefs.h <<_ACEOF
2448 #define VERSION "$VERSION"
2451 # Some tools Automake needs.
2453 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2456 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2459 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2462 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2465 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2467 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2469 # Installed binaries are usually stripped using `strip' when the user
2470 # run `make install-strip'. However `strip' might not be the right
2471 # tool to use in cross-compilation environments, therefore Automake
2472 # will honor the `STRIP' environment variable to overrule this program.
2473 if test "$cross_compiling" != no; then
2474 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}strip; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_STRIP+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$STRIP"; then
2483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 STRIP=$ac_cv_prog_STRIP
2503 if test -n "$STRIP"; then
2504 { echo "$as_me:$LINENO: result: $STRIP" >&5
2505 echo "${ECHO_T}$STRIP" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2513 if test -z "$ac_cv_prog_STRIP"; then
2515 # Extract the first word of "strip", so it can be a program name with args.
2516 set dummy strip; ac_word=$2
2517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 if test -n "$ac_ct_STRIP"; then
2523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_STRIP="strip"
2533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543 if test -n "$ac_ct_STRIP"; then
2544 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2545 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2547 { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2551 if test "x$ac_ct_STRIP" = x; then
2554 case $cross_compiling:$ac_tool_warned in
2556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2557 whose name does not start with the host triplet. If you think this
2558 configuration is useful to you, please write to autoconf@gnu.org." >&5
2559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet. If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2562 ac_tool_warned=yes ;;
2567 STRIP="$ac_cv_prog_STRIP"
2571 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2573 # We need awk for the "check" target. The system "awk" is bad on
2575 # Always define AMTAR for backward compatibility.
2577 AMTAR=${AMTAR-"${am_missing_run}tar"}
2579 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2586 ACLOCAL="$ACLOCAL -I acmacro"
2589 # Check whether --enable-shared was given.
2590 if test "${enable_shared+set}" = set; then
2591 enableval=$enable_shared; p=${PACKAGE-default}
2593 yes) enable_shared=yes ;;
2594 no) enable_shared=no ;;
2597 # Look at the argument we got. We use all the common list separators.
2598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2599 for pkg in $enableval; do
2601 if test "X$pkg" = "X$p"; then
2613 # Check whether --enable-static was given.
2614 if test "${enable_static+set}" = set; then
2615 enableval=$enable_static; p=${PACKAGE-default}
2617 yes) enable_static=yes ;;
2618 no) enable_static=no ;;
2621 # Look at the argument we got. We use all the common list separators.
2622 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2623 for pkg in $enableval; do
2625 if test "X$pkg" = "X$p"; then
2637 # Check whether --enable-fast-install was given.
2638 if test "${enable_fast_install+set}" = set; then
2639 enableval=$enable_fast_install; p=${PACKAGE-default}
2641 yes) enable_fast_install=yes ;;
2642 no) enable_fast_install=no ;;
2644 enable_fast_install=no
2645 # Look at the argument we got. We use all the common list separators.
2646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2647 for pkg in $enableval; do
2649 if test "X$pkg" = "X$p"; then
2650 enable_fast_install=yes
2657 enable_fast_install=yes
2661 DEPDIR="${am__leading_dot}deps"
2663 ac_config_commands="$ac_config_commands depfiles"
2666 am_make=${MAKE-make}
2667 cat > confinc << 'END'
2672 # If we don't find an include directive, just comment out the code.
2673 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2674 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2678 # First try GNU make style include.
2679 echo "include confinc" > confmf
2680 # We grep out `Entering directory' and `Leaving directory'
2681 # messages which can occur if `w' ends up in MAKEFLAGS.
2682 # In particular we don't look at `^make:' because GNU make might
2683 # be invoked under some other name (usually "gmake"), in which
2684 # case it prints its new name instead of `make'.
2685 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2690 # Now try BSD make style include.
2691 if test "$am__include" = "#"; then
2692 echo '.include "confinc"' > confmf
2693 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2694 am__include=.include
2701 { echo "$as_me:$LINENO: result: $_am_result" >&5
2702 echo "${ECHO_T}$_am_result" >&6; }
2703 rm -f confinc confmf
2705 # Check whether --enable-dependency-tracking was given.
2706 if test "${enable_dependency_tracking+set}" = set; then
2707 enableval=$enable_dependency_tracking;
2710 if test "x$enable_dependency_tracking" != xno; then
2711 am_depcomp="$ac_aux_dir/depcomp"
2716 if test "x$enable_dependency_tracking" != xno; then
2727 ac_cpp='$CPP $CPPFLAGS'
2728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2733 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2736 if test "${ac_cv_prog_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 if test -n "$CC"; then
2761 { echo "$as_me:$LINENO: result: $CC" >&5
2762 echo "${ECHO_T}$CC" >&6; }
2764 { echo "$as_me:$LINENO: result: no" >&5
2765 echo "${ECHO_T}no" >&6; }
2770 if test -z "$ac_cv_prog_CC"; then
2772 # Extract the first word of "gcc", so it can be a program name with args.
2773 set dummy gcc; ac_word=$2
2774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 if test -n "$ac_ct_CC"; then
2780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_ac_ct_CC="gcc"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2802 echo "${ECHO_T}$ac_ct_CC" >&6; }
2804 { echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6; }
2808 if test "x$ac_ct_CC" = x; then
2811 case $cross_compiling:$ac_tool_warned in
2813 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2814 whose name does not start with the host triplet. If you think this
2815 configuration is useful to you, please write to autoconf@gnu.org." >&5
2816 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2817 whose name does not start with the host triplet. If you think this
2818 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2819 ac_tool_warned=yes ;;
2827 if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2830 set dummy ${ac_tool_prefix}cc; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_CC+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_CC="${ac_tool_prefix}cc"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 if test -n "$CC"; then
2858 { echo "$as_me:$LINENO: result: $CC" >&5
2859 echo "${ECHO_T}$CC" >&6; }
2861 { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2868 if test -z "$CC"; then
2869 # Extract the first word of "cc", so it can be a program name with args.
2870 set dummy cc; ac_word=$2
2871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2888 ac_prog_rejected=yes
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 if test $ac_prog_rejected = yes; then
2900 # We found a bogon in the path, so make sure we never use it.
2901 set dummy $ac_cv_prog_CC
2903 if test $# != 0; then
2904 # We chose a different compiler from the bogus one.
2905 # However, it has the same basename, so the bogon will be chosen
2906 # first if we set CC to just the basename; use the full file name.
2908 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2914 if test -n "$CC"; then
2915 { echo "$as_me:$LINENO: result: $CC" >&5
2916 echo "${ECHO_T}$CC" >&6; }
2918 { echo "$as_me:$LINENO: result: no" >&5
2919 echo "${ECHO_T}no" >&6; }
2924 if test -z "$CC"; then
2925 if test -n "$ac_tool_prefix"; then
2926 for ac_prog in cl.exe
2928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 if test -n "$CC"; then
2957 { echo "$as_me:$LINENO: result: $CC" >&5
2958 echo "${ECHO_T}$CC" >&6; }
2960 { echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6; }
2965 test -n "$CC" && break
2968 if test -z "$CC"; then
2970 for ac_prog in cl.exe
2972 # Extract the first word of "$ac_prog", so it can be a program name with args.
2973 set dummy $ac_prog; ac_word=$2
2974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 ac_cv_prog_ac_ct_CC="$ac_prog"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000 if test -n "$ac_ct_CC"; then
3001 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3002 echo "${ECHO_T}$ac_ct_CC" >&6; }
3004 { echo "$as_me:$LINENO: result: no" >&5
3005 echo "${ECHO_T}no" >&6; }
3009 test -n "$ac_ct_CC" && break
3012 if test "x$ac_ct_CC" = x; then
3015 case $cross_compiling:$ac_tool_warned in
3017 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3018 whose name does not start with the host triplet. If you think this
3019 configuration is useful to you, please write to autoconf@gnu.org." >&5
3020 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3021 whose name does not start with the host triplet. If you think this
3022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3023 ac_tool_warned=yes ;;
3032 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: no acceptable C compiler found in \$PATH
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }
3038 # Provide some information about the compiler.
3039 echo "$as_me:$LINENO: checking for C compiler version" >&5
3040 ac_compiler=`set X $ac_compile; echo $2`
3041 { (ac_try="$ac_compiler --version >&5"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compiler --version >&5") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }
3051 { (ac_try="$ac_compiler -v >&5"
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compiler -v >&5") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }
3061 { (ac_try="$ac_compiler -V >&5"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compiler -V >&5") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3087 ac_clean_files_save=$ac_clean_files
3088 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3089 # Try to create an executable without -o first, disregard a.out.
3090 # It will help us diagnose broken compilers, and finding out an intuition
3092 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3093 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3094 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3096 # List of possible output files, starting from the most likely.
3097 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3098 # only as a last resort. b.out is created by i960 compilers.
3099 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3101 # The IRIX 6 linker writes into existing files which may not be
3102 # executable, retaining their permissions. Remove them first so a
3103 # subsequent execution test works.
3105 for ac_file in $ac_files
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3109 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3114 if { (ac_try="$ac_link_default"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_link_default") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; then
3124 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3125 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3126 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3127 # so that the user can short-circuit this test for compilers unknown to
3129 for ac_file in $ac_files ''
3131 test -f "$ac_file" || continue
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3136 # We found the default executable, but exeext='' is most
3140 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 # We set ac_cv_exeext here because the later test for it is not
3145 # safe: cross compilers may not add the suffix if given an `-o'
3146 # argument, so we may need to know it at that point already.
3147 # Even if this section looks crufty: it has the advantage of
3154 test "$ac_cv_exeext" = no && ac_cv_exeext=
3160 { echo "$as_me:$LINENO: result: $ac_file" >&5
3161 echo "${ECHO_T}$ac_file" >&6; }
3162 if test -z "$ac_file"; then
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: C compiler cannot create executables
3169 See \`config.log' for more details." >&2;}
3170 { (exit 77); exit 77; }; }
3173 ac_exeext=$ac_cv_exeext
3175 # Check that the compiler produces executables we can run. If not, either
3176 # the compiler is broken, or we cross compile.
3177 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3178 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3179 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3180 # If not cross compiling, check that we can run a simple program.
3181 if test "$cross_compiling" != yes; then
3182 if { ac_try='./$ac_file'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3194 if test "$cross_compiling" = maybe; then
3197 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3198 If you meant to cross compile, use \`--host'.
3199 See \`config.log' for more details." >&5
3200 echo "$as_me: error: cannot run C compiled programs.
3201 If you meant to cross compile, use \`--host'.
3202 See \`config.log' for more details." >&2;}
3203 { (exit 1); exit 1; }; }
3207 { echo "$as_me:$LINENO: result: yes" >&5
3208 echo "${ECHO_T}yes" >&6; }
3210 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3211 ac_clean_files=$ac_clean_files_save
3212 # Check that the compiler produces executables we can run. If not, either
3213 # the compiler is broken, or we cross compile.
3214 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3215 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3216 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3217 echo "${ECHO_T}$cross_compiling" >&6; }
3219 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3220 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3221 if { (ac_try="$ac_link"
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_link") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; then
3231 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3232 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3233 # work properly (i.e., refer to `conftest.exe'), while it won't with
3235 for ac_file in conftest.exe conftest conftest.*; do
3236 test -f "$ac_file" || continue
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3245 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3246 See \`config.log' for more details." >&5
3247 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3248 See \`config.log' for more details." >&2;}
3249 { (exit 1); exit 1; }; }
3252 rm -f conftest$ac_cv_exeext
3253 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3254 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3256 rm -f conftest.$ac_ext
3257 EXEEXT=$ac_cv_exeext
3259 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3260 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3261 if test "${ac_cv_objext+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 cat >conftest.$ac_ext <<_ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3279 rm -f conftest.o conftest.obj
3280 if { (ac_try="$ac_compile"
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286 (eval "$ac_compile") 2>&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; then
3290 for ac_file in conftest.o conftest.obj conftest.*; do
3291 test -f "$ac_file" || continue;
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3294 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3303 See \`config.log' for more details." >&5
3304 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3305 See \`config.log' for more details." >&2;}
3306 { (exit 1); exit 1; }; }
3309 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3311 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3312 echo "${ECHO_T}$ac_cv_objext" >&6; }
3313 OBJEXT=$ac_cv_objext
3315 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3316 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3317 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3338 rm -f conftest.$ac_objext
3339 if { (ac_try="$ac_compile"
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_compile") 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && {
3352 test -z "$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3367 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3368 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3369 GCC=`test $ac_compiler_gnu = yes && echo yes`
3370 ac_test_CFLAGS=${CFLAGS+set}
3371 ac_save_CFLAGS=$CFLAGS
3372 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3373 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_cc_g+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 ac_save_c_werror_flag=$ac_c_werror_flag
3378 ac_c_werror_flag=yes
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3443 grep -v '^ *+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_compile") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && {
3487 test -z "$ac_c_werror_flag" ||
3488 test ! -s conftest.err
3489 } && test -s conftest.$ac_objext; then
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 ac_c_werror_flag=$ac_save_c_werror_flag
3507 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3508 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3509 if test "$ac_test_CFLAGS" = set; then
3510 CFLAGS=$ac_save_CFLAGS
3511 elif test $ac_cv_prog_cc_g = yes; then
3512 if test "$GCC" = yes; then
3518 if test "$GCC" = yes; then
3524 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3525 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3526 if test "${ac_cv_prog_cc_c89+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 ac_cv_prog_cc_c89=no
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3539 #include <sys/types.h>
3540 #include <sys/stat.h>
3541 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3542 struct buf { int x; };
3543 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3544 static char *e (p, i)
3550 static char *f (char * (*g) (char **, int), char **p, ...)
3555 s = g (p, va_arg (v,int));
3560 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3561 function prototypes and stuff, but not '\xHH' hex character constants.
3562 These don't provoke an error unfortunately, instead are silently treated
3563 as 'x'. The following induces an error, until -std is added to get
3564 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3565 array size at least. It's necessary to write '\x00'==0 to get something
3566 that's true only with -std. */
3567 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3569 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3570 inside strings and character constants. */
3572 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3574 int test (int i, double x);
3575 struct s1 {int (*f) (int a);};
3576 struct s2 {int (*f) (double a);};
3577 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3583 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3588 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3589 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3591 CC="$ac_save_CC $ac_arg"
3592 rm -f conftest.$ac_objext
3593 if { (ac_try="$ac_compile"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_compile") 2>conftest.er1
3601 grep -v '^ *+' conftest.er1 >conftest.err
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } && {
3606 test -z "$ac_c_werror_flag" ||
3607 test ! -s conftest.err
3608 } && test -s conftest.$ac_objext; then
3609 ac_cv_prog_cc_c89=$ac_arg
3611 echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3617 rm -f core conftest.err conftest.$ac_objext
3618 test "x$ac_cv_prog_cc_c89" != "xno" && break
3620 rm -f conftest.$ac_ext
3625 case "x$ac_cv_prog_cc_c89" in
3627 { echo "$as_me:$LINENO: result: none needed" >&5
3628 echo "${ECHO_T}none needed" >&6; } ;;
3630 { echo "$as_me:$LINENO: result: unsupported" >&5
3631 echo "${ECHO_T}unsupported" >&6; } ;;
3633 CC="$CC $ac_cv_prog_cc_c89"
3634 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3635 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 depcc="$CC" am_compiler_list=
3647 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3648 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3649 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3653 # We make a subdir and do the tests there. Otherwise we can end up
3654 # making bogus files that we don't know about and never remove. For
3655 # instance it was reported that on HP-UX the gcc test will end up
3656 # making a dummy file named `D' -- because `-MD' means `put the output
3659 # Copy depcomp to subdir because otherwise we won't find it if we're
3660 # using a relative directory.
3661 cp "$am_depcomp" conftest.dir
3663 # We will build objects and dependencies in a subdirectory because
3664 # it helps to detect inapplicable dependency modes. For instance
3665 # both Tru64's cc and ICC support -MD to output dependencies as a
3666 # side effect of compilation, but ICC will put the dependencies in
3667 # the current directory while Tru64 will put them in the object
3671 am_cv_CC_dependencies_compiler_type=none
3672 if test "$am_compiler_list" = ""; then
3673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3675 for depmode in $am_compiler_list; do
3676 # Setup a source with many dependencies, because some compilers
3677 # like to wrap large dependency lists on column 80 (with \), and
3678 # we should not choose a depcomp mode which is confused by this.
3680 # We need to recreate these files for each test, as the compiler may
3681 # overwrite some of them when testing with obscure command lines.
3682 # This happens at least with the AIX C compiler.
3684 for i in 1 2 3 4 5 6; do
3685 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3686 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3687 # Solaris 8's {/usr,}/bin/sh.
3688 touch sub/conftst$i.h
3690 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3694 # after this tag, mechanisms are not by side-effect, so they'll
3695 # only be used when explicitly requested
3696 if test "x$enable_dependency_tracking" = xyes; then
3704 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3705 # mode. It turns out that the SunPro C++ compiler does not properly
3706 # handle `-M -o', and we need to detect this.
3707 if depmode=$depmode \
3708 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3709 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3710 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3711 >/dev/null 2>conftest.err &&
3712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3713 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3715 # icc doesn't choke on unknown options, it will just issue warnings
3716 # or remarks (even with -Werror). So we grep stderr for any message
3717 # that says an option was ignored or not supported.
3718 # When given -MP, icc 7.0 and 7.1 complain thusly:
3719 # icc: Command line warning: ignoring option '-M'; no argument required
3720 # The diagnosis changed in icc 8.0:
3721 # icc: Command line remark: option '-MP' not supported
3722 if (grep 'ignoring option' conftest.err ||
3723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3724 am_cv_CC_dependencies_compiler_type=$depmode
3733 am_cv_CC_dependencies_compiler_type=none
3737 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3738 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3739 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3744 test "x$enable_dependency_tracking" != xno \
3745 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3747 am__fastdepCC_FALSE='#'
3749 am__fastdepCC_TRUE='#'
3750 am__fastdepCC_FALSE=
3754 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3755 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3756 if test "${lt_cv_path_SED+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 # Loop through the user's path and test for sed and gsed.
3760 # Then use that list of sed's as ones to test for truncation.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir=.
3766 for lt_ac_prog in sed gsed; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3769 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3776 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3777 # along with /bin/sed that truncates output.
3778 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3779 test ! -f $lt_ac_sed && continue
3780 cat /dev/null > conftest.in
3782 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3783 # Check for GNU sed and select it if it is found.
3784 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3785 lt_cv_path_SED=$lt_ac_sed
3789 cat conftest.in conftest.in >conftest.tmp
3790 mv conftest.tmp conftest.in
3791 cp conftest.in conftest.nl
3793 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3794 cmp -s conftest.out conftest.nl || break
3795 # 10000 chars as input seems more than enough
3796 test $lt_ac_count -gt 10 && break
3797 lt_ac_count=`expr $lt_ac_count + 1`
3798 if test $lt_ac_count -gt $lt_ac_max; then
3799 lt_ac_max=$lt_ac_count
3800 lt_cv_path_SED=$lt_ac_sed
3808 { echo "$as_me:$LINENO: result: $SED" >&5
3809 echo "${ECHO_T}$SED" >&6; }
3811 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3812 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3813 if test "${ac_cv_path_GREP+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 # Extract the first word of "grep ggrep" to use in msg output
3817 if test -z "$GREP"; then
3818 set dummy grep ggrep; ac_prog_name=$2
3819 if test "${ac_cv_path_GREP+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 ac_path_GREP_found=false
3823 # Loop through the user's path and test for each of PROGNAME-LIST
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3828 test -z "$as_dir" && as_dir=.
3829 for ac_prog in grep ggrep; do
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3832 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3833 # Check for GNU ac_path_GREP and select it if it is found.
3834 # Check for GNU $ac_path_GREP
3835 case `"$ac_path_GREP" --version 2>&1` in
3837 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3840 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3843 cat "conftest.in" "conftest.in" >"conftest.tmp"
3844 mv "conftest.tmp" "conftest.in"
3845 cp "conftest.in" "conftest.nl"
3846 echo 'GREP' >> "conftest.nl"
3847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3849 ac_count=`expr $ac_count + 1`
3850 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3851 # Best one so far, save it but keep looking for a better one
3852 ac_cv_path_GREP="$ac_path_GREP"
3853 ac_path_GREP_max=$ac_count
3855 # 10*(2^10) chars as input seems more than enough
3856 test $ac_count -gt 10 && break
3858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3862 $ac_path_GREP_found && break 3
3872 GREP="$ac_cv_path_GREP"
3873 if test -z "$GREP"; then
3874 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3875 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3876 { (exit 1); exit 1; }; }
3880 ac_cv_path_GREP=$GREP
3885 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3886 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3887 GREP="$ac_cv_path_GREP"
3890 { echo "$as_me:$LINENO: checking for egrep" >&5
3891 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3892 if test "${ac_cv_path_EGREP+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3896 then ac_cv_path_EGREP="$GREP -E"
3898 # Extract the first word of "egrep" to use in msg output
3899 if test -z "$EGREP"; then
3900 set dummy egrep; ac_prog_name=$2
3901 if test "${ac_cv_path_EGREP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 ac_path_EGREP_found=false
3905 # Loop through the user's path and test for each of PROGNAME-LIST
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in egrep; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3914 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3915 # Check for GNU ac_path_EGREP and select it if it is found.
3916 # Check for GNU $ac_path_EGREP
3917 case `"$ac_path_EGREP" --version 2>&1` in
3919 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3922 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3925 cat "conftest.in" "conftest.in" >"conftest.tmp"
3926 mv "conftest.tmp" "conftest.in"
3927 cp "conftest.in" "conftest.nl"
3928 echo 'EGREP' >> "conftest.nl"
3929 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931 ac_count=`expr $ac_count + 1`
3932 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3933 # Best one so far, save it but keep looking for a better one
3934 ac_cv_path_EGREP="$ac_path_EGREP"
3935 ac_path_EGREP_max=$ac_count
3937 # 10*(2^10) chars as input seems more than enough
3938 test $ac_count -gt 10 && break
3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944 $ac_path_EGREP_found && break 3
3954 EGREP="$ac_cv_path_EGREP"
3955 if test -z "$EGREP"; then
3956 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3957 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3958 { (exit 1); exit 1; }; }
3962 ac_cv_path_EGREP=$EGREP
3968 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3969 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3970 EGREP="$ac_cv_path_EGREP"
3974 # Check whether --with-gnu-ld was given.
3975 if test "${with_gnu_ld+set}" = set; then
3976 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3982 if test "$GCC" = yes; then
3983 # Check if gcc -print-prog-name=ld gives a path.
3984 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3985 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3988 # gcc leaves a trailing carriage return which upsets mingw
3989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3994 # Accept absolute paths.
3996 re_direlt='/[^/][^/]*/\.\./'
3997 # Canonicalize the pathname of ld
3998 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3999 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4000 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4002 test -z "$LD" && LD="$ac_prog"
4005 # If it fails, then pretend we aren't using GCC.
4009 # If it is relative, then search for the first ld in PATH.
4013 elif test "$with_gnu_ld" = yes; then
4014 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4015 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4017 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4018 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4020 if test "${lt_cv_path_LD+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 if test -z "$LD"; then
4024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4025 for ac_dir in $PATH; do
4027 test -z "$ac_dir" && ac_dir=.
4028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4029 lt_cv_path_LD="$ac_dir/$ac_prog"
4030 # Check to see if the program is GNU ld. I'd rather use --version,
4031 # but apparently some variants of GNU ld only accept -v.
4032 # Break only if it was the GNU/non-GNU ld that we prefer.
4033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4034 *GNU* | *'with BFD'*)
4035 test "$with_gnu_ld" != no && break
4038 test "$with_gnu_ld" != yes && break
4045 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4050 if test -n "$LD"; then
4051 { echo "$as_me:$LINENO: result: $LD" >&5
4052 echo "${ECHO_T}$LD" >&6; }
4054 { echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6; }
4057 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4058 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4059 { (exit 1); exit 1; }; }
4060 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4061 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4062 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4066 case `$LD -v 2>&1 </dev/null` in
4067 *GNU* | *'with BFD'*)
4068 lt_cv_prog_gnu_ld=yes
4071 lt_cv_prog_gnu_ld=no
4075 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4076 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4077 with_gnu_ld=$lt_cv_prog_gnu_ld
4080 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4081 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4082 if test "${lt_cv_ld_reload_flag+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 lt_cv_ld_reload_flag='-r'
4087 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4088 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4089 reload_flag=$lt_cv_ld_reload_flag
4090 case $reload_flag in
4092 *) reload_flag=" $reload_flag" ;;
4094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4097 if test "$GCC" = yes; then
4098 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4105 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4106 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4107 if test "${lt_cv_path_NM+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 if test -n "$NM"; then
4111 # Let the user override the test.
4114 lt_nm_to_check="${ac_tool_prefix}nm"
4115 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4116 lt_nm_to_check="$lt_nm_to_check nm"
4118 for lt_tmp_nm in $lt_nm_to_check; do
4119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4120 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4122 test -z "$ac_dir" && ac_dir=.
4123 tmp_nm="$ac_dir/$lt_tmp_nm"
4124 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4125 # Check to see if the nm accepts a BSD-compat flag.
4126 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4127 # nm: unknown option "B" ignored
4128 # Tru64's nm complains that /dev/null is an invalid object file
4129 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4130 */dev/null* | *'Invalid file or object type'*)
4131 lt_cv_path_NM="$tmp_nm -B"
4135 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4137 lt_cv_path_NM="$tmp_nm -p"
4141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4142 continue # so that we can try to find one that supports BSD flags
4151 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4154 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4155 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4158 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4159 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4161 if test "$LN_S" = "ln -s"; then
4162 { echo "$as_me:$LINENO: result: yes" >&5
4163 echo "${ECHO_T}yes" >&6; }
4165 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4166 echo "${ECHO_T}no, using $LN_S" >&6; }
4169 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4170 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4171 if test "${lt_cv_deplibs_check_method+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 lt_cv_file_magic_cmd='$MAGIC_CMD'
4175 lt_cv_file_magic_test_file=
4176 lt_cv_deplibs_check_method='unknown'
4177 # Need to set the preceding variable on all platforms that support
4178 # interlibrary dependencies.
4179 # 'none' -- dependencies not supported.
4180 # `unknown' -- same as none, but documents that we really don't know.
4181 # 'pass_all' -- all dependencies passed with no checks.
4182 # 'test_compile' -- check by making test program.
4183 # 'file_magic [[regex]]' -- check by looking for files in library path
4184 # which responds to the $file_magic_cmd with a given extended regex.
4185 # If you have `file' or equivalent on your system and you're not sure
4186 # whether `pass_all' will *always* work, you probably want this one.
4190 lt_cv_deplibs_check_method=pass_all
4194 lt_cv_deplibs_check_method=pass_all
4198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4199 lt_cv_file_magic_cmd='/usr/bin/file -L'
4200 lt_cv_file_magic_test_file=/shlib/libc.so
4204 # func_win32_libid is a shell function defined in ltmain.sh
4205 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4206 lt_cv_file_magic_cmd='func_win32_libid'
4210 # Base MSYS/MinGW do not provide the 'file' command needed by
4211 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4212 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4213 lt_cv_file_magic_cmd='$OBJDUMP -f'
4216 darwin* | rhapsody*)
4217 lt_cv_deplibs_check_method=pass_all
4220 freebsd* | dragonfly*)
4221 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4224 # Not sure whether the presence of OpenBSD here was a mistake.
4225 # Let's accept both of them until this is cleared up.
4226 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4227 lt_cv_file_magic_cmd=/usr/bin/file
4228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4232 lt_cv_deplibs_check_method=pass_all
4237 lt_cv_deplibs_check_method=pass_all
4240 hpux10.20* | hpux11*)
4241 lt_cv_file_magic_cmd=/usr/bin/file
4244 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4245 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4248 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]'
4249 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4253 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4259 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4263 irix5* | irix6* | nonstopux*)
4265 *-32|*"-32 ") libmagic=32-bit;;
4266 *-n32|*"-n32 ") libmagic=N32;;
4267 *-64|*"-64 ") libmagic=64-bit;;
4268 *) libmagic=never-match;;
4270 lt_cv_deplibs_check_method=pass_all
4273 # This must be Linux ELF.
4274 linux* | k*bsd*-gnu)
4275 lt_cv_deplibs_check_method=pass_all
4278 netbsd* | netbsdelf*-gnu)
4279 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4288 lt_cv_file_magic_cmd=/usr/bin/file
4289 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4293 lt_cv_deplibs_check_method=unknown
4297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4304 osf3* | osf4* | osf5*)
4305 lt_cv_deplibs_check_method=pass_all
4309 lt_cv_deplibs_check_method=pass_all
4313 case $host_vendor in
4315 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]'
4316 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4319 lt_cv_deplibs_check_method=pass_all
4322 lt_cv_file_magic_cmd='/bin/file'
4323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4326 lt_cv_file_magic_cmd='/bin/file'
4327 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4328 lt_cv_file_magic_test_file=/lib/libc.so
4331 lt_cv_deplibs_check_method=pass_all
4334 lt_cv_deplibs_check_method=pass_all
4339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4340 lt_cv_deplibs_check_method=pass_all
4345 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4346 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4347 file_magic_cmd=$lt_cv_file_magic_cmd
4348 deplibs_check_method=$lt_cv_deplibs_check_method
4349 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4354 # If no C compiler was specified, use CC.
4357 # If no C compiler flags were specified, use CFLAGS.
4358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4360 # Allow CC to be a program name with arguments.
4364 # Check whether --enable-libtool-lock was given.
4365 if test "${enable_libtool_lock+set}" = set; then
4366 enableval=$enable_libtool_lock;
4369 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4371 # Some flags need to be propagated to the compiler or linker for good
4375 # Find out which ABI we are using.
4376 echo 'int i;' > conftest.$ac_ext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378 (eval $ac_compile) 2>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; then
4382 case `/usr/bin/file conftest.$ac_objext` in
4394 # Find out which ABI we are using.
4395 echo '#line 4395 "configure"' > conftest.$ac_ext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; then
4401 if test "$lt_cv_prog_gnu_ld" = yes; then
4402 case `/usr/bin/file conftest.$ac_objext` in
4404 LD="${LD-ld} -melf32bsmip"
4407 LD="${LD-ld} -melf32bmipn32"
4410 LD="${LD-ld} -melf64bmip"
4414 case `/usr/bin/file conftest.$ac_objext` in
4430 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4431 # Find out which ABI we are using.
4432 echo 'int i;' > conftest.$ac_ext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434 (eval $ac_compile) 2>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; then
4438 case `/usr/bin/file conftest.o` in
4442 LD="${LD-ld} -m elf_i386"
4444 ppc64-*linux*|powerpc64-*linux*)
4445 LD="${LD-ld} -m elf32ppclinux"
4448 LD="${LD-ld} -m elf_s390"
4451 LD="${LD-ld} -m elf32_sparc"
4458 LD="${LD-ld} -m elf_x86_64"
4460 ppc*-*linux*|powerpc*-*linux*)
4461 LD="${LD-ld} -m elf64ppc"
4464 LD="${LD-ld} -m elf64_s390"
4467 LD="${LD-ld} -m elf64_sparc"
4477 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4478 SAVE_CFLAGS="$CFLAGS"
4479 CFLAGS="$CFLAGS -belf"
4480 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4481 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4482 if test "${lt_cv_cc_needs_belf+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (ac_try="$ac_link"
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513 (eval "$ac_link") 2>conftest.er1
4515 grep -v '^ *+' conftest.er1 >conftest.err
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } && {
4520 test -z "$ac_c_werror_flag" ||
4521 test ! -s conftest.err
4522 } && test -s conftest$ac_exeext &&
4523 $as_test_x conftest$ac_exeext; then
4524 lt_cv_cc_needs_belf=yes
4526 echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4529 lt_cv_cc_needs_belf=no
4532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4533 conftest$ac_exeext conftest.$ac_ext
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4542 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4543 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4545 CFLAGS="$SAVE_CFLAGS"
4549 # Find out which ABI we are using.
4550 echo 'int i;' > conftest.$ac_ext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4552 (eval $ac_compile) 2>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; then
4556 case `/usr/bin/file conftest.o` in
4558 case $lt_cv_prog_gnu_ld in
4559 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4560 *) LD="${LD-ld} -64" ;;
4568 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4569 if test -n "$ac_tool_prefix"; then
4570 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4571 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 if test -n "$DLLTOOL"; then
4578 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 DLLTOOL=$ac_cv_prog_DLLTOOL
4598 if test -n "$DLLTOOL"; then
4599 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4600 echo "${ECHO_T}$DLLTOOL" >&6; }
4602 { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4608 if test -z "$ac_cv_prog_DLLTOOL"; then
4609 ac_ct_DLLTOOL=$DLLTOOL
4610 # Extract the first word of "dlltool", so it can be a program name with args.
4611 set dummy dlltool; ac_word=$2
4612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 if test -n "$ac_ct_DLLTOOL"; then
4618 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4638 if test -n "$ac_ct_DLLTOOL"; then
4639 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4640 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4646 if test "x$ac_ct_DLLTOOL" = x; then
4649 case $cross_compiling:$ac_tool_warned in
4651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4652 whose name does not start with the host triplet. If you think this
4653 configuration is useful to you, please write to autoconf@gnu.org." >&5
4654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4655 whose name does not start with the host triplet. If you think this
4656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4657 ac_tool_warned=yes ;;
4659 DLLTOOL=$ac_ct_DLLTOOL
4662 DLLTOOL="$ac_cv_prog_DLLTOOL"
4665 if test -n "$ac_tool_prefix"; then
4666 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4667 set dummy ${ac_tool_prefix}as; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_AS+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -n "$AS"; then
4674 ac_cv_prog_AS="$AS" # Let the user override the test.
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_AS="${ac_tool_prefix}as"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 if test -n "$AS"; then
4695 { echo "$as_me:$LINENO: result: $AS" >&5
4696 echo "${ECHO_T}$AS" >&6; }
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4704 if test -z "$ac_cv_prog_AS"; then
4706 # Extract the first word of "as", so it can be a program name with args.
4707 set dummy as; ac_word=$2
4708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4710 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 if test -n "$ac_ct_AS"; then
4714 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_ac_ct_AS="as"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4734 if test -n "$ac_ct_AS"; then
4735 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4736 echo "${ECHO_T}$ac_ct_AS" >&6; }
4738 { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4742 if test "x$ac_ct_AS" = x; then
4745 case $cross_compiling:$ac_tool_warned in
4747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4748 whose name does not start with the host triplet. If you think this
4749 configuration is useful to you, please write to autoconf@gnu.org." >&5
4750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4751 whose name does not start with the host triplet. If you think this
4752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4753 ac_tool_warned=yes ;;
4761 if test -n "$ac_tool_prefix"; then
4762 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4763 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 if test -n "$OBJDUMP"; then
4770 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 OBJDUMP=$ac_cv_prog_OBJDUMP
4790 if test -n "$OBJDUMP"; then
4791 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4792 echo "${ECHO_T}$OBJDUMP" >&6; }
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4800 if test -z "$ac_cv_prog_OBJDUMP"; then
4801 ac_ct_OBJDUMP=$OBJDUMP
4802 # Extract the first word of "objdump", so it can be a program name with args.
4803 set dummy objdump; ac_word=$2
4804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4806 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 if test -n "$ac_ct_OBJDUMP"; then
4810 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4830 if test -n "$ac_ct_OBJDUMP"; then
4831 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4832 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4834 { echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6; }
4838 if test "x$ac_ct_OBJDUMP" = x; then
4841 case $cross_compiling:$ac_tool_warned in
4843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4844 whose name does not start with the host triplet. If you think this
4845 configuration is useful to you, please write to autoconf@gnu.org." >&5
4846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4847 whose name does not start with the host triplet. If you think this
4848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4849 ac_tool_warned=yes ;;
4851 OBJDUMP=$ac_ct_OBJDUMP
4854 OBJDUMP="$ac_cv_prog_OBJDUMP"
4861 need_locks="$enable_libtool_lock"
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4870 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4871 # On Suns, sometimes $CPP names a directory.
4872 if test -n "$CPP" && test -d "$CPP"; then
4875 if test -z "$CPP"; then
4876 if test "${ac_cv_prog_CPP+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 # Double quotes because CPP needs to be expanded
4880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4883 for ac_c_preproc_warn_flag in '' yes
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4898 # include <limits.h>
4900 # include <assert.h>
4904 if { (ac_try="$ac_cpp conftest.$ac_ext"
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4912 grep -v '^ *+' conftest.er1 >conftest.err
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } >/dev/null && {
4917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 # Broken: fails on valid input.
4929 rm -f conftest.err conftest.$ac_ext
4931 # OK, works on sane cases. Now check whether nonexistent headers
4932 # can be detected and how.
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 #include <ac_nonexistent.h>
4941 if { (ac_try="$ac_cpp conftest.$ac_ext"
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } >/dev/null && {
4954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4955 test ! -s conftest.err
4957 # Broken: success on invalid input.
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 # Passes both tests.
4968 rm -f conftest.err conftest.$ac_ext
4971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972 rm -f conftest.err conftest.$ac_ext
4973 if $ac_preproc_ok; then
4985 { echo "$as_me:$LINENO: result: $CPP" >&5
4986 echo "${ECHO_T}$CPP" >&6; }
4988 for ac_c_preproc_warn_flag in '' yes
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5003 # include <limits.h>
5005 # include <assert.h>
5009 if { (ac_try="$ac_cpp conftest.$ac_ext"
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null && {
5022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 # Broken: fails on valid input.
5034 rm -f conftest.err conftest.$ac_ext
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 #include <ac_nonexistent.h>
5046 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5054 grep -v '^ *+' conftest.er1 >conftest.err
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } >/dev/null && {
5059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5060 test ! -s conftest.err
5062 # Broken: success on invalid input.
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5068 # Passes both tests.
5073 rm -f conftest.err conftest.$ac_ext
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then
5081 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5082 See \`config.log' for more details." >&5
5083 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5084 See \`config.log' for more details." >&2;}
5085 { (exit 1); exit 1; }; }
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5095 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5097 if test "${ac_cv_header_stdc+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5119 rm -f conftest.$ac_objext
5120 if { (ac_try="$ac_compile"
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_cv_header_stdc=yes
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 ac_cv_header_stdc=no
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 if test $ac_cv_header_stdc = yes; then
5147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5148 cat >conftest.$ac_ext <<_ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "memchr" >/dev/null 2>&1; then
5161 ac_cv_header_stdc=no
5167 if test $ac_cv_header_stdc = yes; then
5168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 $EGREP "free" >/dev/null 2>&1; then
5182 ac_cv_header_stdc=no
5188 if test $ac_cv_header_stdc = yes; then
5189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5190 if test "$cross_compiling" = yes; then
5193 cat >conftest.$ac_ext <<_ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5201 #if ((' ' & 0x0FF) == 0x020)
5202 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5203 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5205 # define ISLOWER(c) \
5206 (('a' <= (c) && (c) <= 'i') \
5207 || ('j' <= (c) && (c) <= 'r') \
5208 || ('s' <= (c) && (c) <= 'z'))
5209 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5212 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5217 for (i = 0; i < 256; i++)
5218 if (XOR (islower (i), ISLOWER (i))
5219 || toupper (i) != TOUPPER (i))
5224 rm -f conftest$ac_exeext
5225 if { (ac_try="$ac_link"
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_link") 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5235 { (case "(($ac_try" in
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240 (eval "$ac_try") 2>&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5246 echo "$as_me: program exited with status $ac_status" >&5
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5251 ac_cv_header_stdc=no
5253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5259 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5260 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5261 if test $ac_cv_header_stdc = yes; then
5263 cat >>confdefs.h <<\_ACEOF
5264 #define STDC_HEADERS 1
5269 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5279 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5280 inttypes.h stdint.h unistd.h
5282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 cat >conftest.$ac_ext <<_ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 $ac_includes_default
5296 #include <$ac_header>
5298 rm -f conftest.$ac_objext
5299 if { (ac_try="$ac_compile"
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
5307 grep -v '^ *+' conftest.er1 >conftest.err
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_c_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
5315 eval "$as_ac_Header=yes"
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 eval "$as_ac_Header=no"
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 ac_res=`eval echo '${'$as_ac_Header'}'`
5326 { echo "$as_me:$LINENO: result: $ac_res" >&5
5327 echo "${ECHO_T}$ac_res" >&6; }
5328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5329 cat >>confdefs.h <<_ACEOF
5330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5339 for ac_header in dlfcn.h
5341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 ac_res=`eval echo '${'$as_ac_Header'}'`
5349 { echo "$as_me:$LINENO: result: $ac_res" >&5
5350 echo "${ECHO_T}$ac_res" >&6; }
5352 # Is the header compilable?
5353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5355 cat >conftest.$ac_ext <<_ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5361 $ac_includes_default
5362 #include <$ac_header>
5364 rm -f conftest.$ac_objext
5365 if { (ac_try="$ac_compile"
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_compile") 2>conftest.er1
5373 grep -v '^ *+' conftest.er1 >conftest.err
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && {
5378 test -z "$ac_c_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest.$ac_objext; then
5381 ac_header_compiler=yes
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 ac_header_compiler=no
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5391 echo "${ECHO_T}$ac_header_compiler" >&6; }
5393 # Is the header present?
5394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5396 cat >conftest.$ac_ext <<_ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 #include <$ac_header>
5404 if { (ac_try="$ac_cpp conftest.$ac_ext"
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5412 grep -v '^ *+' conftest.er1 >conftest.err
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } >/dev/null && {
5417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5420 ac_header_preproc=yes
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5425 ac_header_preproc=no
5428 rm -f conftest.err conftest.$ac_ext
5429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5430 echo "${ECHO_T}$ac_header_preproc" >&6; }
5432 # So? What about this header?
5433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5439 ac_header_preproc=yes
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5455 ## -------------------------------------------------- ##
5456 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5457 ## -------------------------------------------------- ##
5459 ) | sed "s/^/$as_me: WARNING: /" >&2
5462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 eval "$as_ac_Header=\$ac_header_preproc"
5469 ac_res=`eval echo '${'$as_ac_Header'}'`
5470 { echo "$as_me:$LINENO: result: $ac_res" >&5
5471 echo "${ECHO_T}$ac_res" >&6; }
5474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5475 cat >>confdefs.h <<_ACEOF
5476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5484 ac_cpp='$CXXCPP $CPPFLAGS'
5485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5488 if test -z "$CXX"; then
5489 if test -n "$CCC"; then
5492 if test -n "$ac_tool_prefix"; then
5493 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_CXX+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 if test -n "$CXX"; then
5503 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 if test -n "$CXX"; then
5524 { echo "$as_me:$LINENO: result: $CXX" >&5
5525 echo "${ECHO_T}$CXX" >&6; }
5527 { echo "$as_me:$LINENO: result: no" >&5
5528 echo "${ECHO_T}no" >&6; }
5532 test -n "$CXX" && break
5535 if test -z "$CXX"; then
5537 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5543 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 if test -n "$ac_ct_CXX"; then
5547 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_CXX="$ac_prog"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5567 if test -n "$ac_ct_CXX"; then
5568 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5569 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5571 { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5576 test -n "$ac_ct_CXX" && break
5579 if test "x$ac_ct_CXX" = x; then
5582 case $cross_compiling:$ac_tool_warned in
5584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5585 whose name does not start with the host triplet. If you think this
5586 configuration is useful to you, please write to autoconf@gnu.org." >&5
5587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5588 whose name does not start with the host triplet. If you think this
5589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5590 ac_tool_warned=yes ;;
5598 # Provide some information about the compiler.
5599 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5600 ac_compiler=`set X $ac_compile; echo $2`
5601 { (ac_try="$ac_compiler --version >&5"
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compiler --version >&5") 2>&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }
5611 { (ac_try="$ac_compiler -v >&5"
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_compiler -v >&5") 2>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }
5621 { (ac_try="$ac_compiler -V >&5"
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compiler -V >&5") 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }
5632 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5633 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5634 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 cat >conftest.$ac_ext <<_ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_cxx_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5684 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5685 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5686 GXX=`test $ac_compiler_gnu = yes && echo yes`
5687 ac_test_CXXFLAGS=${CXXFLAGS+set}
5688 ac_save_CXXFLAGS=$CXXFLAGS
5689 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5690 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5691 if test "${ac_cv_prog_cxx_g+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5695 ac_cxx_werror_flag=yes
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5722 grep -v '^ *+' conftest.er1 >conftest.err
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && {
5727 test -z "$ac_cxx_werror_flag" ||
5728 test ! -s conftest.err
5729 } && test -s conftest.$ac_objext; then
5730 ac_cv_prog_cxx_g=yes
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_cxx_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest.$ac_objext; then
5807 ac_cv_prog_cxx_g=yes
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5824 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5825 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5826 if test "$ac_test_CXXFLAGS" = set; then
5827 CXXFLAGS=$ac_save_CXXFLAGS
5828 elif test $ac_cv_prog_cxx_g = yes; then
5829 if test "$GXX" = yes; then
5835 if test "$GXX" = yes; then
5842 ac_cpp='$CXXCPP $CPPFLAGS'
5843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5847 depcc="$CXX" am_compiler_list=
5849 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5850 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5851 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5855 # We make a subdir and do the tests there. Otherwise we can end up
5856 # making bogus files that we don't know about and never remove. For
5857 # instance it was reported that on HP-UX the gcc test will end up
5858 # making a dummy file named `D' -- because `-MD' means `put the output
5861 # Copy depcomp to subdir because otherwise we won't find it if we're
5862 # using a relative directory.
5863 cp "$am_depcomp" conftest.dir
5865 # We will build objects and dependencies in a subdirectory because
5866 # it helps to detect inapplicable dependency modes. For instance
5867 # both Tru64's cc and ICC support -MD to output dependencies as a
5868 # side effect of compilation, but ICC will put the dependencies in
5869 # the current directory while Tru64 will put them in the object
5873 am_cv_CXX_dependencies_compiler_type=none
5874 if test "$am_compiler_list" = ""; then
5875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5877 for depmode in $am_compiler_list; do
5878 # Setup a source with many dependencies, because some compilers
5879 # like to wrap large dependency lists on column 80 (with \), and
5880 # we should not choose a depcomp mode which is confused by this.
5882 # We need to recreate these files for each test, as the compiler may
5883 # overwrite some of them when testing with obscure command lines.
5884 # This happens at least with the AIX C compiler.
5886 for i in 1 2 3 4 5 6; do
5887 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5888 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5889 # Solaris 8's {/usr,}/bin/sh.
5890 touch sub/conftst$i.h
5892 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5896 # after this tag, mechanisms are not by side-effect, so they'll
5897 # only be used when explicitly requested
5898 if test "x$enable_dependency_tracking" = xyes; then
5906 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5907 # mode. It turns out that the SunPro C++ compiler does not properly
5908 # handle `-M -o', and we need to detect this.
5909 if depmode=$depmode \
5910 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5912 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5913 >/dev/null 2>conftest.err &&
5914 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5915 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5916 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5917 # icc doesn't choke on unknown options, it will just issue warnings
5918 # or remarks (even with -Werror). So we grep stderr for any message
5919 # that says an option was ignored or not supported.
5920 # When given -MP, icc 7.0 and 7.1 complain thusly:
5921 # icc: Command line warning: ignoring option '-M'; no argument required
5922 # The diagnosis changed in icc 8.0:
5923 # icc: Command line remark: option '-MP' not supported
5924 if (grep 'ignoring option' conftest.err ||
5925 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5926 am_cv_CXX_dependencies_compiler_type=$depmode
5935 am_cv_CXX_dependencies_compiler_type=none
5939 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5940 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5941 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5946 test "x$enable_dependency_tracking" != xno \
5947 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5948 am__fastdepCXX_TRUE=
5949 am__fastdepCXX_FALSE='#'
5951 am__fastdepCXX_TRUE='#'
5952 am__fastdepCXX_FALSE=
5958 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5959 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5960 (test "X$CXX" != "Xg++"))) ; then
5962 ac_cpp='$CXXCPP $CPPFLAGS'
5963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5966 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5967 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5968 if test -z "$CXXCPP"; then
5969 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 # Double quotes because CXXCPP needs to be expanded
5973 for CXXCPP in "$CXX -E" "/lib/cpp"
5976 for ac_cxx_preproc_warn_flag in '' yes
5978 # Use a header file that comes with gcc, so configuring glibc
5979 # with a fresh cross-compiler works.
5980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5981 # <limits.h> exists even on freestanding compilers.
5982 # On the NeXT, cc -E runs the code through the compiler's parser,
5983 # not just through cpp. "Syntax error" is here to catch this case.
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5991 # include <limits.h>
5993 # include <assert.h>
5997 if { (ac_try="$ac_cpp conftest.$ac_ext"
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6005 grep -v '^ *+' conftest.er1 >conftest.err
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } >/dev/null && {
6010 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6011 test ! -s conftest.err
6015 echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6018 # Broken: fails on valid input.
6022 rm -f conftest.err conftest.$ac_ext
6024 # OK, works on sane cases. Now check whether nonexistent headers
6025 # can be detected and how.
6026 cat >conftest.$ac_ext <<_ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 #include <ac_nonexistent.h>
6034 if { (ac_try="$ac_cpp conftest.$ac_ext"
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6042 grep -v '^ *+' conftest.er1 >conftest.err
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } >/dev/null && {
6047 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6048 test ! -s conftest.err
6050 # Broken: success on invalid input.
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6056 # Passes both tests.
6061 rm -f conftest.err conftest.$ac_ext
6064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6065 rm -f conftest.err conftest.$ac_ext
6066 if $ac_preproc_ok; then
6071 ac_cv_prog_CXXCPP=$CXXCPP
6074 CXXCPP=$ac_cv_prog_CXXCPP
6076 ac_cv_prog_CXXCPP=$CXXCPP
6078 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6079 echo "${ECHO_T}$CXXCPP" >&6; }
6081 for ac_cxx_preproc_warn_flag in '' yes
6083 # Use a header file that comes with gcc, so configuring glibc
6084 # with a fresh cross-compiler works.
6085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086 # <limits.h> exists even on freestanding compilers.
6087 # On the NeXT, cc -E runs the code through the compiler's parser,
6088 # not just through cpp. "Syntax error" is here to catch this case.
6089 cat >conftest.$ac_ext <<_ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6096 # include <limits.h>
6098 # include <assert.h>
6102 if { (ac_try="$ac_cpp conftest.$ac_ext"
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } >/dev/null && {
6115 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6116 test ! -s conftest.err
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 # Broken: fails on valid input.
6127 rm -f conftest.err conftest.$ac_ext
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat >conftest.$ac_ext <<_ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 #include <ac_nonexistent.h>
6139 if { (ac_try="$ac_cpp conftest.$ac_ext"
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6147 grep -v '^ *+' conftest.er1 >conftest.err
6149 cat conftest.err >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } >/dev/null && {
6152 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6153 test ! -s conftest.err
6155 # Broken: success on invalid input.
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 # Passes both tests.
6166 rm -f conftest.err conftest.$ac_ext
6169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6170 rm -f conftest.err conftest.$ac_ext
6171 if $ac_preproc_ok; then
6174 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6175 See \`config.log' for more details." >&5
6176 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6177 See \`config.log' for more details." >&2;}
6178 { (exit 1); exit 1; }; }
6182 ac_cpp='$CXXCPP $CPPFLAGS'
6183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6191 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6192 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6194 if test -n "$ac_tool_prefix"; then
6195 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
6197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6201 if test "${ac_cv_prog_F77+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 if test -n "$F77"; then
6205 ac_cv_prog_F77="$F77" # Let the user override the test.
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 if test -n "$F77"; then
6226 { echo "$as_me:$LINENO: result: $F77" >&5
6227 echo "${ECHO_T}$F77" >&6; }
6229 { echo "$as_me:$LINENO: result: no" >&5
6230 echo "${ECHO_T}no" >&6; }
6234 test -n "$F77" && break
6237 if test -z "$F77"; then
6239 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
6241 # Extract the first word of "$ac_prog", so it can be a program name with args.
6242 set dummy $ac_prog; ac_word=$2
6243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6245 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 if test -n "$ac_ct_F77"; then
6249 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_ac_ct_F77="$ac_prog"
6259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6269 if test -n "$ac_ct_F77"; then
6270 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6271 echo "${ECHO_T}$ac_ct_F77" >&6; }
6273 { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6278 test -n "$ac_ct_F77" && break
6281 if test "x$ac_ct_F77" = x; then
6284 case $cross_compiling:$ac_tool_warned in
6286 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6287 whose name does not start with the host triplet. If you think this
6288 configuration is useful to you, please write to autoconf@gnu.org." >&5
6289 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6290 whose name does not start with the host triplet. If you think this
6291 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6292 ac_tool_warned=yes ;;
6299 # Provide some information about the compiler.
6300 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6301 ac_compiler=`set X $ac_compile; echo $2`
6302 { (ac_try="$ac_compiler --version >&5"
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6308 (eval "$ac_compiler --version >&5") 2>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }
6312 { (ac_try="$ac_compiler -v >&5"
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compiler -v >&5") 2>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }
6322 { (ac_try="$ac_compiler -V >&5"
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compiler -V >&5") 2>&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }
6334 # If we don't use `.F' as extension, the preprocessor is not run on the
6335 # input file. (Note that this only needs to work for GNU compilers.)
6338 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6339 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6340 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 cat >conftest.$ac_ext <<_ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (ac_try="$ac_compile"
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } && {
6365 test -z "$ac_f77_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6380 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6381 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6383 ac_test_FFLAGS=${FFLAGS+set}
6384 ac_save_FFLAGS=$FFLAGS
6386 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6387 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_f77_g+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 cat >conftest.$ac_ext <<_ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (ac_try="$ac_compile"
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6406 grep -v '^ *+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_f77_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6414 ac_cv_prog_f77_g=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6426 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6427 if test "$ac_test_FFLAGS" = set; then
6428 FFLAGS=$ac_save_FFLAGS
6429 elif test $ac_cv_prog_f77_g = yes; then
6430 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6436 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6443 G77=`test $ac_compiler_gnu = yes && echo yes`
6445 ac_cpp='$CPP $CPPFLAGS'
6446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6454 # find the maximum length of command line arguments
6455 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6456 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6457 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 # On DJGPP, this test can blow up pretty badly due to problems in libc
6466 # (any single argument exceeding 2000 bytes causes a buffer overrun
6467 # during glob expansion). Even if it were fixed, the result of this
6468 # check would be larger than it should be.
6469 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6473 # Under GNU Hurd, this test is not required because there is
6474 # no limit to the length of command line arguments.
6475 # Libtool will interpret -1 as no limit whatsoever
6476 lt_cv_sys_max_cmd_len=-1;
6480 # On Win9x/ME, this test blows up -- it succeeds, but takes
6481 # about 5 minutes as the teststring grows exponentially.
6482 # Worse, since 9x/ME are not pre-emptively multitasking,
6483 # you end up with a "frozen" computer, even though with patience
6484 # the test eventually succeeds (with a max line length of 256k).
6485 # Instead, let's just punt: use the minimum linelength reported by
6486 # all of the supported platforms: 8192 (on NT/2K/XP).
6487 lt_cv_sys_max_cmd_len=8192;
6491 # On AmigaOS with pdksh, this test takes hours, literally.
6492 # So we just punt and use a minimum line length of 8192.
6493 lt_cv_sys_max_cmd_len=8192;
6496 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6497 # This has been around since 386BSD, at least. Likely further.
6498 if test -x /sbin/sysctl; then
6499 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6500 elif test -x /usr/sbin/sysctl; then
6501 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6503 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6505 # And add a safety zone
6506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6511 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6512 lt_cv_sys_max_cmd_len=196608
6516 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6517 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6518 # nice to cause kernel panics so lets avoid the loop below.
6519 # First set a reasonable default.
6520 lt_cv_sys_max_cmd_len=16384
6522 if test -x /sbin/sysconfig; then
6523 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6524 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6529 lt_cv_sys_max_cmd_len=102400
6531 sysv5* | sco5v6* | sysv4.2uw2*)
6532 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6533 if test -n "$kargmax"; then
6534 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6536 lt_cv_sys_max_cmd_len=32768
6540 # If test is not a shell built-in, we'll probably end up computing a
6541 # maximum length that is only half of the actual maximum length, but
6543 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6544 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6545 = "XX$teststring") >/dev/null 2>&1 &&
6546 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6547 lt_cv_sys_max_cmd_len=$new_result &&
6548 test $i != 17 # 1/2 MB should be enough
6551 teststring=$teststring$teststring
6554 # Add a significant safety factor because C++ compilers can tack on massive
6555 # amounts of additional arguments before passing them to the linker.
6556 # It appears as though 1/2 is a usable value.
6557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6563 if test -n $lt_cv_sys_max_cmd_len ; then
6564 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6565 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6567 { echo "$as_me:$LINENO: result: none" >&5
6568 echo "${ECHO_T}none" >&6; }
6574 # Check for command to grab the raw symbol name followed by C symbol from nm.
6575 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6576 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6577 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 # These are sane defaults that work on at least a few old systems.
6582 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6584 # Character class describing NM global symbol codes.
6585 symcode='[BCDEGRST]'
6587 # Regexp to match symbols that can be accessed directly from C.
6588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6590 # Transform an extracted symbol line into a proper C declaration
6591 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6593 # Transform an extracted symbol line into symbol name and symbol address
6594 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'"
6596 # Define system-specific variables.
6601 cygwin* | mingw* | pw32*)
6602 symcode='[ABCDGISTW]'
6604 hpux*) # Its linker distinguishes data from code symbols
6605 if test "$host_cpu" = ia64; then
6606 symcode='[ABCDEGRST]'
6608 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6609 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'"
6611 linux* | k*bsd*-gnu)
6612 if test "$host_cpu" = ia64; then
6613 symcode='[ABCDGIRSTW]'
6614 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6615 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 symcode='[BCDEGRST]'
6622 symcode='[BCDEGQRST]'
6633 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6641 # Handle CRLF in mingw tool chain
6645 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6649 # If we're using GNU nm, then use its standard symbol codes.
6650 case `$NM -V 2>&1` in
6651 *GNU* | *'with BFD'*)
6652 symcode='[ABCDGIRSTW]' ;;
6655 # Try without a prefix undercore, then with it.
6656 for ac_symprfx in "" "_"; do
6658 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6659 symxfrm="\\1 $ac_symprfx\\2 \\2"
6661 # Write the raw and C identifiers.
6662 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6664 # Check to see that the pipe works correctly.
6668 cat > conftest.$ac_ext <<EOF
6673 void nm_test_func(){}
6677 int main(){nm_test_var='a';nm_test_func();return(0);}
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; then
6685 # Now try to grab the symbols.
6687 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6688 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && test -s "$nlist"; then
6692 # Try sorting and uniquifying the output.
6693 if sort "$nlist" | uniq > "$nlist"T; then
6694 mv -f "$nlist"T "$nlist"
6699 # Make sure that we snagged all the symbols we need.
6700 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6701 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6702 cat <<EOF > conftest.$ac_ext
6708 # Now generate the symbol file.
6709 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6711 cat <<EOF >> conftest.$ac_ext
6712 #if defined (__STDC__) && __STDC__
6713 # define lt_ptr_t void *
6715 # define lt_ptr_t char *
6719 /* The mapping between symbol names and symbols. */
6724 lt_preloaded_symbols[] =
6727 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6728 cat <<\EOF >> conftest.$ac_ext
6736 # Now try linking the two files.
6737 mv conftest.$ac_objext conftstm.$ac_objext
6738 lt_save_LIBS="$LIBS"
6739 lt_save_CFLAGS="$CFLAGS"
6740 LIBS="conftstm.$ac_objext"
6741 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6743 (eval $ac_link) 2>&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6749 LIBS="$lt_save_LIBS"
6750 CFLAGS="$lt_save_CFLAGS"
6752 echo "cannot find nm_test_func in $nlist" >&5
6755 echo "cannot find nm_test_var in $nlist" >&5
6758 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6761 echo "$progname: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6764 rm -f conftest* conftst*
6766 # Do not use the global_symbol_pipe unless it works.
6767 if test "$pipe_works" = yes; then
6770 lt_cv_sys_global_symbol_pipe=
6776 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6777 lt_cv_sys_global_symbol_to_cdecl=
6779 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6780 { echo "$as_me:$LINENO: result: failed" >&5
6781 echo "${ECHO_T}failed" >&6; }
6783 { echo "$as_me:$LINENO: result: ok" >&5
6784 echo "${ECHO_T}ok" >&6; }
6787 { echo "$as_me:$LINENO: checking for objdir" >&5
6788 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6789 if test "${lt_cv_objdir+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 rm -f .libs 2>/dev/null
6793 mkdir .libs 2>/dev/null
6794 if test -d .libs; then
6797 # MS-DOS does not allow filenames that begin with a dot.
6800 rmdir .libs 2>/dev/null
6802 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6803 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6804 objdir=$lt_cv_objdir
6812 # AIX sometimes has problems with the GCC collect2 program. For some
6813 # reason, if we set the COLLECT_NAMES environment variable, the problems
6814 # vanish in a puff of smoke.
6815 if test "X${COLLECT_NAMES+set}" != Xset; then
6817 export COLLECT_NAMES
6822 # Sed substitution that helps us do robust quoting. It backslashifies
6823 # metacharacters that are still active within double-quoted strings.
6824 Xsed='sed -e 1s/^X//'
6825 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6827 # Same as above, but do not quote variable references.
6828 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6830 # Sed substitution to delay expansion of an escaped shell variable in a
6831 # double_quote_subst'ed string.
6832 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6834 # Sed substitution to avoid accidental globbing in evaled expressions
6835 no_glob_subst='s/\*/\\\*/g'
6841 default_ofile=libtool
6842 can_build_shared=yes
6844 # All known linkers require a `.a' archive for static linking (except MSVC,
6845 # which needs '.lib').
6847 ltmain="$ac_aux_dir/ltmain.sh"
6848 ofile="$default_ofile"
6849 with_gnu_ld="$lt_cv_prog_gnu_ld"
6851 if test -n "$ac_tool_prefix"; then
6852 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}ar; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_AR+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 if test -n "$AR"; then
6860 ac_cv_prog_AR="$AR" # Let the user override the test.
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_AR="${ac_tool_prefix}ar"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 if test -n "$AR"; then
6881 { echo "$as_me:$LINENO: result: $AR" >&5
6882 echo "${ECHO_T}$AR" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6890 if test -z "$ac_cv_prog_AR"; then
6892 # Extract the first word of "ar", so it can be a program name with args.
6893 set dummy ar; ac_word=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 if test -n "$ac_ct_AR"; then
6900 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_prog_ac_ct_AR="ar"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6920 if test -n "$ac_ct_AR"; then
6921 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6922 echo "${ECHO_T}$ac_ct_AR" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6928 if test "x$ac_ct_AR" = x; then
6931 case $cross_compiling:$ac_tool_warned in
6933 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6934 whose name does not start with the host triplet. If you think this
6935 configuration is useful to you, please write to autoconf@gnu.org." >&5
6936 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6937 whose name does not start with the host triplet. If you think this
6938 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6939 ac_tool_warned=yes ;;
6947 if test -n "$ac_tool_prefix"; then
6948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6949 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_prog_RANLIB+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 if test -n "$RANLIB"; then
6956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 RANLIB=$ac_cv_prog_RANLIB
6976 if test -n "$RANLIB"; then
6977 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6978 echo "${ECHO_T}$RANLIB" >&6; }
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6986 if test -z "$ac_cv_prog_RANLIB"; then
6987 ac_ct_RANLIB=$RANLIB
6988 # Extract the first word of "ranlib", so it can be a program name with args.
6989 set dummy ranlib; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 if test -n "$ac_ct_RANLIB"; then
6996 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_ac_ct_RANLIB="ranlib"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7016 if test -n "$ac_ct_RANLIB"; then
7017 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7018 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7024 if test "x$ac_ct_RANLIB" = x; then
7027 case $cross_compiling:$ac_tool_warned in
7029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7030 whose name does not start with the host triplet. If you think this
7031 configuration is useful to you, please write to autoconf@gnu.org." >&5
7032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7033 whose name does not start with the host triplet. If you think this
7034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7035 ac_tool_warned=yes ;;
7037 RANLIB=$ac_ct_RANLIB
7040 RANLIB="$ac_cv_prog_RANLIB"
7043 if test -n "$ac_tool_prefix"; then
7044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7045 set dummy ${ac_tool_prefix}strip; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_prog_STRIP+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 if test -n "$STRIP"; then
7052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 STRIP=$ac_cv_prog_STRIP
7072 if test -n "$STRIP"; then
7073 { echo "$as_me:$LINENO: result: $STRIP" >&5
7074 echo "${ECHO_T}$STRIP" >&6; }
7076 { echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6; }
7082 if test -z "$ac_cv_prog_STRIP"; then
7084 # Extract the first word of "strip", so it can be a program name with args.
7085 set dummy strip; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 if test -n "$ac_ct_STRIP"; then
7092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_prog_ac_ct_STRIP="strip"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7112 if test -n "$ac_ct_STRIP"; then
7113 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7114 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7116 { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7120 if test "x$ac_ct_STRIP" = x; then
7123 case $cross_compiling:$ac_tool_warned in
7125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7126 whose name does not start with the host triplet. If you think this
7127 configuration is useful to you, please write to autoconf@gnu.org." >&5
7128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7129 whose name does not start with the host triplet. If you think this
7130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7131 ac_tool_warned=yes ;;
7136 STRIP="$ac_cv_prog_STRIP"
7141 old_CFLAGS="$CFLAGS"
7143 # Set sane defaults for various variables
7144 test -z "$AR" && AR=ar
7145 test -z "$AR_FLAGS" && AR_FLAGS=cru
7146 test -z "$AS" && AS=as
7147 test -z "$CC" && CC=cc
7148 test -z "$LTCC" && LTCC=$CC
7149 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7150 test -z "$DLLTOOL" && DLLTOOL=dlltool
7151 test -z "$LD" && LD=ld
7152 test -z "$LN_S" && LN_S="ln -s"
7153 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7154 test -z "$NM" && NM=nm
7155 test -z "$SED" && SED=sed
7156 test -z "$OBJDUMP" && OBJDUMP=objdump
7157 test -z "$RANLIB" && RANLIB=:
7158 test -z "$STRIP" && STRIP=:
7159 test -z "$ac_objext" && ac_objext=o
7161 # Determine commands to create old-style static archives.
7162 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7163 old_postinstall_cmds='chmod 644 $oldlib'
7164 old_postuninstall_cmds=
7166 if test -n "$RANLIB"; then
7169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7175 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7178 for cc_temp in $compiler""; do
7180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7186 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7189 # Only perform the check for file, if the check method requires it
7190 case $deplibs_check_method in
7192 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7193 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7194 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7203 lt_save_MAGIC_CMD="$MAGIC_CMD"
7204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7206 for ac_dir in $ac_dummy; do
7208 test -z "$ac_dir" && ac_dir=.
7209 if test -f $ac_dir/${ac_tool_prefix}file; then
7210 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7211 if test -n "$file_magic_test_file"; then
7212 case $deplibs_check_method in
7214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7217 $EGREP "$file_magic_regex" > /dev/null; then
7222 *** Warning: the command libtool uses to detect shared libraries,
7223 *** $file_magic_cmd, produces output that libtool cannot recognize.
7224 *** The result is that libtool may fail to recognize shared libraries
7225 *** as such. This will affect the creation of libtool libraries that
7226 *** depend on shared libraries, but programs linked with such libtool
7227 *** libraries will work regardless of this problem. Nevertheless, you
7228 *** may want to report the problem to your system manager and/or to
7229 *** bug-libtool@gnu.org
7239 MAGIC_CMD="$lt_save_MAGIC_CMD"
7244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7245 if test -n "$MAGIC_CMD"; then
7246 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7247 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7249 { echo "$as_me:$LINENO: result: no" >&5
7250 echo "${ECHO_T}no" >&6; }
7253 if test -z "$lt_cv_path_MAGIC_CMD"; then
7254 if test -n "$ac_tool_prefix"; then
7255 { echo "$as_me:$LINENO: checking for file" >&5
7256 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7257 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7265 lt_save_MAGIC_CMD="$MAGIC_CMD"
7266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7268 for ac_dir in $ac_dummy; do
7270 test -z "$ac_dir" && ac_dir=.
7271 if test -f $ac_dir/file; then
7272 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7273 if test -n "$file_magic_test_file"; then
7274 case $deplibs_check_method in
7276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7279 $EGREP "$file_magic_regex" > /dev/null; then
7284 *** Warning: the command libtool uses to detect shared libraries,
7285 *** $file_magic_cmd, produces output that libtool cannot recognize.
7286 *** The result is that libtool may fail to recognize shared libraries
7287 *** as such. This will affect the creation of libtool libraries that
7288 *** depend on shared libraries, but programs linked with such libtool
7289 *** libraries will work regardless of this problem. Nevertheless, you
7290 *** may want to report the problem to your system manager and/or to
7291 *** bug-libtool@gnu.org
7301 MAGIC_CMD="$lt_save_MAGIC_CMD"
7306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7307 if test -n "$MAGIC_CMD"; then
7308 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7309 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7311 { echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6; }
7325 enable_win32_dll=yes
7327 # Check whether --enable-libtool-lock was given.
7328 if test "${enable_libtool_lock+set}" = set; then
7329 enableval=$enable_libtool_lock;
7332 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7335 # Check whether --with-pic was given.
7336 if test "${with_pic+set}" = set; then
7337 withval=$with_pic; pic_mode="$withval"
7342 test -z "$pic_mode" && pic_mode=default
7344 # Use C for the default configuration in the libtool script
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354 # Source file extension for C test sources.
7357 # Object file extension for compiled C test sources.
7361 # Code to be used in simple compile tests
7362 lt_simple_compile_test_code="int some_variable = 0;\n"
7364 # Code to be used in simple link tests
7365 lt_simple_link_test_code='int main(){return(0);}\n'
7368 # If no C compiler was specified, use CC.
7371 # If no C compiler flags were specified, use CFLAGS.
7372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7374 # Allow CC to be a program name with arguments.
7378 # save warnings/boilerplate of simple test code
7379 ac_outfile=conftest.$ac_objext
7380 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7382 _lt_compiler_boilerplate=`cat conftest.err`
7385 ac_outfile=conftest.$ac_objext
7386 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7388 _lt_linker_boilerplate=`cat conftest.err`
7393 lt_prog_compiler_no_builtin_flag=
7395 if test "$GCC" = yes; then
7396 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7399 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7400 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7401 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 lt_cv_prog_compiler_rtti_exceptions=no
7405 ac_outfile=conftest.$ac_objext
7406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7407 lt_compiler_flag="-fno-rtti -fno-exceptions"
7408 # Insert the option either (1) after the last *FLAGS variable, or
7409 # (2) before a word containing "conftest.", or (3) at the end.
7410 # Note that $ac_compile itself does not contain backslashes and begins
7411 # with a dollar sign (not a hyphen), so the echo should work correctly.
7412 # The option is referenced via a variable to avoid confusing sed.
7413 lt_compile=`echo "$ac_compile" | $SED \
7414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7416 -e 's:$: $lt_compiler_flag:'`
7417 (eval echo "\"\$as_me:7417: $lt_compile\"" >&5)
7418 (eval "$lt_compile" 2>conftest.err)
7420 cat conftest.err >&5
7421 echo "$as_me:7421: \$? = $ac_status" >&5
7422 if (exit $ac_status) && test -s "$ac_outfile"; then
7423 # The compiler can only warn and ignore the option if not recognized
7424 # So say no if there are warnings other than the usual output.
7425 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7428 lt_cv_prog_compiler_rtti_exceptions=yes
7434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7435 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7437 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7438 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7445 lt_prog_compiler_wl=
7446 lt_prog_compiler_pic=
7447 lt_prog_compiler_static=
7449 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7450 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7452 if test "$GCC" = yes; then
7453 lt_prog_compiler_wl='-Wl,'
7454 lt_prog_compiler_static='-static'
7458 # All AIX code is PIC.
7459 if test "$host_cpu" = ia64; then
7460 # AIX 5 now supports IA64 processor
7461 lt_prog_compiler_static='-Bstatic'
7466 # FIXME: we need at least 68020 code to build shared libraries, but
7467 # adding the `-m68020' flag to GCC prevents building anything better,
7469 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7472 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7473 # PIC is the default for these OSes.
7476 mingw* | pw32* | os2*)
7477 # This hack is so that the source file can tell whether it is being
7478 # built for inclusion in a dll (and should export symbols for example).
7479 lt_prog_compiler_pic='-DDLL_EXPORT'
7482 darwin* | rhapsody*)
7483 # PIC is the default on this platform
7484 # Common symbols not allowed in MH_DYLIB files
7485 lt_prog_compiler_pic='-fno-common'
7489 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7490 # Instead, we relocate shared libraries at runtime.
7494 # Just because we use GCC doesn't mean we suddenly get shared libraries
7495 # on systems that don't support them.
7496 lt_prog_compiler_can_build_shared=no
7501 if test -d /usr/nec; then
7502 lt_prog_compiler_pic=-Kconform_pic
7507 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7514 lt_prog_compiler_pic='-fPIC'
7520 lt_prog_compiler_pic='-fPIC'
7524 # PORTME Check for flag to pass linker flags through the system compiler.
7527 lt_prog_compiler_wl='-Wl,'
7528 if test "$host_cpu" = ia64; then
7529 # AIX 5 now supports IA64 processor
7530 lt_prog_compiler_static='-Bstatic'
7532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7536 # PIC is the default on this platform
7537 # Common symbols not allowed in MH_DYLIB files
7538 case $cc_basename in
7540 lt_prog_compiler_pic='-qnocommon'
7541 lt_prog_compiler_wl='-Wl,'
7546 mingw* | pw32* | os2*)
7547 # This hack is so that the source file can tell whether it is being
7548 # built for inclusion in a dll (and should export symbols for example).
7549 lt_prog_compiler_pic='-DDLL_EXPORT'
7552 hpux9* | hpux10* | hpux11*)
7553 lt_prog_compiler_wl='-Wl,'
7554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7561 lt_prog_compiler_pic='+Z'
7564 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7565 lt_prog_compiler_static='${wl}-a ${wl}archive'
7568 irix5* | irix6* | nonstopux*)
7569 lt_prog_compiler_wl='-Wl,'
7570 # PIC (with -KPIC) is the default.
7571 lt_prog_compiler_static='-non_shared'
7575 lt_prog_compiler_pic='-KPIC'
7576 lt_prog_compiler_static='-Bstatic'
7579 linux* | k*bsd*-gnu)
7580 case $cc_basename in
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_pic='-KPIC'
7584 lt_prog_compiler_static='-static'
7586 pgcc* | pgf77* | pgf90* | pgf95*)
7587 # Portland Group compilers (*not* the Pentium gcc compiler,
7588 # which looks to be a dead project)
7589 lt_prog_compiler_wl='-Wl,'
7590 lt_prog_compiler_pic='-fpic'
7591 lt_prog_compiler_static='-Bstatic'
7594 lt_prog_compiler_wl='-Wl,'
7595 # All Alpha code is PIC.
7596 lt_prog_compiler_static='-non_shared'
7601 osf3* | osf4* | osf5*)
7602 lt_prog_compiler_wl='-Wl,'
7603 # All OSF/1 code is PIC.
7604 lt_prog_compiler_static='-non_shared'
7608 lt_prog_compiler_pic='-KPIC'
7609 lt_prog_compiler_static='-Bstatic'
7610 case $cc_basename in
7612 lt_prog_compiler_wl='-Qoption ld ';;
7614 lt_prog_compiler_wl='-Wl,';;
7619 lt_prog_compiler_wl='-Qoption ld '
7620 lt_prog_compiler_pic='-PIC'
7621 lt_prog_compiler_static='-Bstatic'
7624 sysv4 | sysv4.2uw2* | sysv4.3*)
7625 lt_prog_compiler_wl='-Wl,'
7626 lt_prog_compiler_pic='-KPIC'
7627 lt_prog_compiler_static='-Bstatic'
7631 if test -d /usr/nec ;then
7632 lt_prog_compiler_pic='-Kconform_pic'
7633 lt_prog_compiler_static='-Bstatic'
7637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7638 lt_prog_compiler_wl='-Wl,'
7639 lt_prog_compiler_pic='-KPIC'
7640 lt_prog_compiler_static='-Bstatic'
7644 lt_prog_compiler_wl='-Wl,'
7645 lt_prog_compiler_can_build_shared=no
7649 lt_prog_compiler_pic='-pic'
7650 lt_prog_compiler_static='-Bstatic'
7654 lt_prog_compiler_can_build_shared=no
7659 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7660 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7663 # Check to make sure the PIC flag actually works.
7665 if test -n "$lt_prog_compiler_pic"; then
7667 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7668 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7669 if test "${lt_prog_compiler_pic_works+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 lt_prog_compiler_pic_works=no
7673 ac_outfile=conftest.$ac_objext
7674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7675 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7676 # Insert the option either (1) after the last *FLAGS variable, or
7677 # (2) before a word containing "conftest.", or (3) at the end.
7678 # Note that $ac_compile itself does not contain backslashes and begins
7679 # with a dollar sign (not a hyphen), so the echo should work correctly.
7680 # The option is referenced via a variable to avoid confusing sed.
7681 lt_compile=`echo "$ac_compile" | $SED \
7682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7684 -e 's:$: $lt_compiler_flag:'`
7685 (eval echo "\"\$as_me:7685: $lt_compile\"" >&5)
7686 (eval "$lt_compile" 2>conftest.err)
7688 cat conftest.err >&5
7689 echo "$as_me:7689: \$? = $ac_status" >&5
7690 if (exit $ac_status) && test -s "$ac_outfile"; then
7691 # The compiler can only warn and ignore the option if not recognized
7692 # So say no if there are warnings other than the usual output.
7693 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7696 lt_prog_compiler_pic_works=yes
7702 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7703 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7705 if test x"$lt_prog_compiler_pic_works" = xyes; then
7706 case $lt_prog_compiler_pic in
7708 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7711 lt_prog_compiler_pic=
7712 lt_prog_compiler_can_build_shared=no
7717 # For platforms which do not support PIC, -DPIC is meaningless:
7719 lt_prog_compiler_pic=
7722 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7727 # Check to make sure the static flag actually works.
7729 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7730 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7731 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7732 if test "${lt_prog_compiler_static_works+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 lt_prog_compiler_static_works=no
7736 save_LDFLAGS="$LDFLAGS"
7737 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7738 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7739 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7740 # The linker can only warn and ignore the option if not recognized
7741 # So say no if there are warnings
7742 if test -s conftest.err; then
7743 # Append any errors to the config.log.
7744 cat conftest.err 1>&5
7745 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747 if diff conftest.exp conftest.er2 >/dev/null; then
7748 lt_prog_compiler_static_works=yes
7751 lt_prog_compiler_static_works=yes
7755 LDFLAGS="$save_LDFLAGS"
7758 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7759 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7761 if test x"$lt_prog_compiler_static_works" = xyes; then
7764 lt_prog_compiler_static=
7768 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7769 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7770 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 lt_cv_prog_compiler_c_o=no
7774 $rm -r conftest 2>/dev/null
7778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7780 lt_compiler_flag="-o out/conftest2.$ac_objext"
7781 # Insert the option either (1) after the last *FLAGS variable, or
7782 # (2) before a word containing "conftest.", or (3) at the end.
7783 # Note that $ac_compile itself does not contain backslashes and begins
7784 # with a dollar sign (not a hyphen), so the echo should work correctly.
7785 lt_compile=`echo "$ac_compile" | $SED \
7786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7788 -e 's:$: $lt_compiler_flag:'`
7789 (eval echo "\"\$as_me:7789: $lt_compile\"" >&5)
7790 (eval "$lt_compile" 2>out/conftest.err)
7792 cat out/conftest.err >&5
7793 echo "$as_me:7793: \$? = $ac_status" >&5
7794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7796 # The compiler can only warn and ignore the option if not recognized
7797 # So say no if there are warnings
7798 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7799 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7800 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7801 lt_cv_prog_compiler_c_o=yes
7806 # SGI C++ compiler will create directory out/ii_files/ for
7807 # template instantiation
7808 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7809 $rm out/* && rmdir out
7815 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7816 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7819 hard_links="nottested"
7820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7821 # do not overwrite the value of need_locks provided by the user
7822 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7823 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7828 ln conftest.a conftest.b 2>&5 || hard_links=no
7829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7830 { echo "$as_me:$LINENO: result: $hard_links" >&5
7831 echo "${ECHO_T}$hard_links" >&6; }
7832 if test "$hard_links" = no; then
7833 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7834 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7841 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7842 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7845 allow_undefined_flag=
7846 enable_shared_with_static_runtimes=no
7848 archive_expsym_cmds=
7849 old_archive_From_new_cmds=
7850 old_archive_from_expsyms_cmds=
7851 export_dynamic_flag_spec=
7852 whole_archive_flag_spec=
7853 thread_safe_flag_spec=
7854 hardcode_libdir_flag_spec=
7855 hardcode_libdir_flag_spec_ld=
7856 hardcode_libdir_separator=
7859 hardcode_shlibpath_var=unsupported
7860 link_all_deplibs=unknown
7861 hardcode_automatic=no
7864 always_export_symbols=no
7865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7866 # include_expsyms should be a list of space-separated symbols to be *always*
7867 # included in the symbol list
7869 # exclude_expsyms can be an extended regexp of symbols to exclude
7870 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7871 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7872 # as well as any symbol that contains `d'.
7873 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7874 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7875 # platforms (ab)use it in PIC code, but their linkers get confused if
7876 # the symbol is explicitly referenced. Since portable code cannot
7877 # rely on this symbol name, it's probably fine to never include it in
7878 # preloaded symbol tables.
7879 extract_expsyms_cmds=
7880 # Just being paranoid about ensuring that cc_basename is set.
7881 for cc_temp in $compiler""; do
7883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7892 cygwin* | mingw* | pw32*)
7893 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7894 # When not using gcc, we currently assume that we are using
7895 # Microsoft Visual C++.
7896 if test "$GCC" != yes; then
7901 # we just hope/assume this is gcc and not c89 (= MSVC++)
7910 if test "$with_gnu_ld" = yes; then
7911 # If archive_cmds runs LD, not CC, wlarc should be empty
7914 # Set some defaults for GNU ld with shared library support. These
7915 # are reset later if shared libraries are not supported. Putting them
7916 # here allows them to be overridden if necessary.
7917 runpath_var=LD_RUN_PATH
7918 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7919 export_dynamic_flag_spec='${wl}--export-dynamic'
7920 # ancient GNU ld didn't support --whole-archive et. al.
7921 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7922 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7924 whole_archive_flag_spec=
7926 supports_anon_versioning=no
7927 case `$LD -v 2>/dev/null` in
7928 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7929 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7930 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7931 *\ 2.11.*) ;; # other 2.11 versions
7932 *) supports_anon_versioning=yes ;;
7935 # See if GNU ld supports shared libraries.
7937 aix3* | aix4* | aix5*)
7938 # On AIX/PPC, the GNU linker is very broken
7939 if test "$host_cpu" != ia64; then
7943 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7944 *** to be unable to reliably create shared libraries on AIX.
7945 *** Therefore, libtool is disabling shared libraries support. If you
7946 *** really care for shared libraries, you may want to modify your PATH
7947 *** so that a non-GNU linker is found, and then restart.
7954 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)'
7955 hardcode_libdir_flag_spec='-L$libdir'
7956 hardcode_minus_L=yes
7958 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7959 # that the semantics of dynamic libraries on AmigaOS, at least up
7960 # to version 4, is to share data among multiple programs linked
7961 # with the same dynamic library. Since this doesn't match the
7962 # behavior of shared libraries on other platforms, we can't use
7968 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7969 allow_undefined_flag=unsupported
7970 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7971 # support --undefined. This deserves some investigation. FIXME
7972 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7978 cygwin* | mingw* | pw32*)
7979 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7980 # as there is no search path for DLLs.
7981 hardcode_libdir_flag_spec='-L$libdir'
7982 allow_undefined_flag=unsupported
7983 always_export_symbols=no
7984 enable_shared_with_static_runtimes=yes
7985 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7987 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7989 # If the export-symbols file already is a .def file (1st line
7990 # is EXPORTS), use it as is; otherwise, prepend...
7991 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7992 cp $export_symbols $output_objdir/$soname.def;
7994 echo EXPORTS > $output_objdir/$soname.def;
7995 cat $export_symbols >> $output_objdir/$soname.def;
7997 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8005 hardcode_shlibpath_var=no
8006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8007 export_dynamic_flag_spec='${wl}-E'
8008 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8009 # Instead, shared libraries are loaded at an image base (0x10000000 by
8010 # default) and relocated if they conflict, which is a slow very memory
8011 # consuming and fragmenting process. To avoid this, we pick a random,
8012 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8013 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8014 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8015 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'
8018 linux* | k*bsd*-gnu)
8019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8021 case $cc_basename,$host_cpu in
8022 pgcc*) # Portland Group C compiler
8023 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'
8024 tmp_addflag=' $pic_flag'
8026 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8027 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'
8028 tmp_addflag=' $pic_flag -Mnomain' ;;
8029 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8030 tmp_addflag=' -i_dynamic' ;;
8031 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8032 tmp_addflag=' -i_dynamic -nofor_main' ;;
8033 ifc* | ifort*) # Intel Fortran compiler
8034 tmp_addflag=' -nofor_main' ;;
8036 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8038 if test $supports_anon_versioning = yes; then
8039 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8040 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8041 $echo "local: *; };" >> $output_objdir/$libname.ver~
8042 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8050 netbsd* | netbsdelf*-gnu)
8051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8061 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8066 *** create shared libraries on Solaris systems. Therefore, libtool
8067 *** is disabling shared libraries support. We urge you to upgrade GNU
8068 *** binutils to release 2.9.1 or newer. Another option is to modify
8069 *** your PATH or compiler configuration so that the native linker is
8070 *** used, and then restart.
8073 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8082 case `$LD -v 2>&1` in
8083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8088 *** reliably create shared libraries on SCO systems. Therefore, libtool
8089 *** is disabling shared libraries support. We urge you to upgrade GNU
8090 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8091 *** your PATH or compiler configuration so that the native linker is
8092 *** used, and then restart.
8097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8098 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8109 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_shlibpath_var=no
8116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8125 if test "$ld_shlibs" = no; then
8127 hardcode_libdir_flag_spec=
8128 export_dynamic_flag_spec=
8129 whole_archive_flag_spec=
8132 # PORTME fill in a description of your system's linker (not GNU ld)
8135 allow_undefined_flag=unsupported
8136 always_export_symbols=yes
8137 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'
8138 # Note: this linker hardcodes the directories in LIBPATH if there
8139 # are no directories specified by -L.
8140 hardcode_minus_L=yes
8141 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8142 # Neither direct hardcoding nor static linking is supported with a
8144 hardcode_direct=unsupported
8149 if test "$host_cpu" = ia64; then
8150 # On IA64, the linker does run time linking by default, so we don't
8151 # have to do anything special.
8152 aix_use_runtimelinking=no
8153 exp_sym_flag='-Bexport'
8156 # If we're using GNU nm, then we don't want the "-C" option.
8157 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8158 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8159 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'
8161 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'
8163 aix_use_runtimelinking=no
8165 # Test if we are trying to use run time linking or normal
8166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8167 # need to do runtime linking.
8168 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8169 for ld_flag in $LDFLAGS; do
8170 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8171 aix_use_runtimelinking=yes
8178 exp_sym_flag='-bexport'
8179 no_entry_flag='-bnoentry'
8182 # When large executables or shared objects are built, AIX ld can
8183 # have problems creating the table of contents. If linking a library
8184 # or program results in "error TOC overflow" add -mminimal-toc to
8185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8190 hardcode_libdir_separator=':'
8191 link_all_deplibs=yes
8193 if test "$GCC" = yes; then
8194 case $host_os in aix4.[012]|aix4.[012].*)
8195 # We only want to do this on AIX 4.2 and lower, the check
8196 # below for broken collect2 doesn't work under 4.3+
8197 collect2name=`${CC} -print-prog-name=collect2`
8198 if test -f "$collect2name" && \
8199 strings "$collect2name" | grep resolve_lib_name >/dev/null
8201 # We have reworked collect2
8204 # We have old collect2
8205 hardcode_direct=unsupported
8206 # It fails to find uninstalled libraries when the uninstalled
8207 # path is not listed in the libpath. Setting hardcode_minus_L
8208 # to unsupported forces relinking
8209 hardcode_minus_L=yes
8210 hardcode_libdir_flag_spec='-L$libdir'
8211 hardcode_libdir_separator=
8215 shared_flag='-shared'
8216 if test "$aix_use_runtimelinking" = yes; then
8217 shared_flag="$shared_flag "'${wl}-G'
8221 if test "$host_cpu" = ia64; then
8222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8223 # chokes on -Wl,-G. The following line is correct:
8226 if test "$aix_use_runtimelinking" = yes; then
8227 shared_flag='${wl}-G'
8229 shared_flag='${wl}-bM:SRE'
8234 # It seems that -bexpall does not export symbols beginning with
8235 # underscore (_), so it is better to generate a list of symbols to export.
8236 always_export_symbols=yes
8237 if test "$aix_use_runtimelinking" = yes; then
8238 # Warning - without using the other runtime loading flags (-brtl),
8239 # -berok will link without error, but may produce a broken library.
8240 allow_undefined_flag='-berok'
8241 # Determine the default libpath from the value encoded in an empty executable.
8242 cat >conftest.$ac_ext <<_ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (ac_try="$ac_link"
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_link") 2>conftest.er1
8266 grep -v '^ *+' conftest.er1 >conftest.err
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } && {
8271 test -z "$ac_c_werror_flag" ||
8272 test ! -s conftest.err
8273 } && test -s conftest$ac_exeext &&
8274 $as_test_x conftest$ac_exeext; then
8276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8278 # Check for a 64-bit object if we didn't find anything.
8279 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8289 conftest$ac_exeext conftest.$ac_ext
8290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8293 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"
8295 if test "$host_cpu" = ia64; then
8296 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8297 allow_undefined_flag="-z nodefs"
8298 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"
8300 # Determine the default libpath from the value encoded in an empty executable.
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_link") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest$ac_exeext &&
8333 $as_test_x conftest$ac_exeext; then
8335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8337 # Check for a 64-bit object if we didn't find anything.
8338 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; }
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8348 conftest$ac_exeext conftest.$ac_ext
8349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8352 # Warning - without using the other run time loading flags,
8353 # -berok will link without error, but may produce a broken library.
8354 no_undefined_flag=' ${wl}-bernotok'
8355 allow_undefined_flag=' ${wl}-berok'
8356 # Exported symbols can be pulled into shared objects from archives
8357 whole_archive_flag_spec='$convenience'
8358 archive_cmds_need_lc=yes
8359 # This is similar to how AIX traditionally builds its shared libraries.
8360 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'
8366 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)'
8367 hardcode_libdir_flag_spec='-L$libdir'
8368 hardcode_minus_L=yes
8369 # see comment about different semantics on the GNU ld section
8374 export_dynamic_flag_spec=-rdynamic
8377 cygwin* | mingw* | pw32*)
8378 # When not using gcc, we currently assume that we are using
8379 # Microsoft Visual C++.
8380 # hardcode_libdir_flag_spec is actually meaningless, as there is
8381 # no search path for DLLs.
8382 hardcode_libdir_flag_spec=' '
8383 allow_undefined_flag=unsupported
8384 # Tell ltmain to make .lib files, not .a files.
8386 # Tell ltmain to make .dll files, not .so files.
8388 # FIXME: Setting linknames here is a bad hack.
8389 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8390 # The linker will automatically build a .lib file if we build a DLL.
8391 old_archive_From_new_cmds='true'
8392 # FIXME: Should let the user specify the lib program.
8393 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8394 fix_srcfile_path='`cygpath -w "$srcfile"`'
8395 enable_shared_with_static_runtimes=yes
8398 darwin* | rhapsody*)
8400 rhapsody* | darwin1.[012])
8401 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8404 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8405 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8407 case ${MACOSX_DEPLOYMENT_TARGET} in
8409 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8412 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8418 archive_cmds_need_lc=no
8420 hardcode_automatic=yes
8421 hardcode_shlibpath_var=unsupported
8422 whole_archive_flag_spec=''
8423 link_all_deplibs=yes
8424 if test "$GCC" = yes ; then
8425 output_verbose_link_cmd='echo'
8426 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8427 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8428 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8429 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}'
8430 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}'
8432 case $cc_basename in
8434 output_verbose_link_cmd='echo'
8435 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8436 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8437 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8438 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}'
8439 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}'
8449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8450 hardcode_libdir_flag_spec='-L$libdir'
8451 hardcode_shlibpath_var=no
8458 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8459 # support. Future versions do this automatically, but an explicit c++rt0.o
8460 # does not break anything, and helps significantly (at the cost of a little
8463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8464 hardcode_libdir_flag_spec='-R$libdir'
8466 hardcode_shlibpath_var=no
8469 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8473 hardcode_minus_L=yes
8474 hardcode_shlibpath_var=no
8477 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8478 freebsd* | dragonfly*)
8479 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8480 hardcode_libdir_flag_spec='-R$libdir'
8482 hardcode_shlibpath_var=no
8486 if test "$GCC" = yes; then
8487 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'
8489 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'
8491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8492 hardcode_libdir_separator=:
8495 # hardcode_minus_L: Not really in the search PATH,
8496 # but as the default location of the library.
8497 hardcode_minus_L=yes
8498 export_dynamic_flag_spec='${wl}-E'
8502 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8503 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8505 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8507 if test "$with_gnu_ld" = no; then
8508 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8509 hardcode_libdir_separator=:
8512 export_dynamic_flag_spec='${wl}-E'
8514 # hardcode_minus_L: Not really in the search PATH,
8515 # but as the default location of the library.
8516 hardcode_minus_L=yes
8521 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8524 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8527 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8530 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8536 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8542 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8546 if test "$with_gnu_ld" = no; then
8547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8548 hardcode_libdir_separator=:
8552 hardcode_libdir_flag_spec_ld='+b $libdir'
8554 hardcode_shlibpath_var=no
8558 export_dynamic_flag_spec='${wl}-E'
8560 # hardcode_minus_L: Not really in the search PATH,
8561 # but as the default location of the library.
8562 hardcode_minus_L=yes
8568 irix5* | irix6* | nonstopux*)
8569 if test "$GCC" = yes; then
8570 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'
8572 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'
8573 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8576 hardcode_libdir_separator=:
8577 link_all_deplibs=yes
8580 netbsd* | netbsdelf*-gnu)
8581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8584 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8586 hardcode_libdir_flag_spec='-R$libdir'
8588 hardcode_shlibpath_var=no
8592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595 hardcode_libdir_separator=:
8596 hardcode_shlibpath_var=no
8601 hardcode_shlibpath_var=no
8602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8604 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8606 export_dynamic_flag_spec='${wl}-E'
8609 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8611 hardcode_libdir_flag_spec='-R$libdir'
8614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8622 hardcode_libdir_flag_spec='-L$libdir'
8623 hardcode_minus_L=yes
8624 allow_undefined_flag=unsupported
8625 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'
8626 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8630 if test "$GCC" = yes; then
8631 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8632 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'
8634 allow_undefined_flag=' -expect_unresolved \*'
8635 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'
8637 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638 hardcode_libdir_separator=:
8641 osf4* | osf5*) # as osf3* with the addition of -msym flag
8642 if test "$GCC" = yes; then
8643 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8644 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'
8645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8647 allow_undefined_flag=' -expect_unresolved \*'
8648 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'
8649 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8650 $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'
8652 # Both c and cxx compiler support -rpath directly
8653 hardcode_libdir_flag_spec='-rpath $libdir'
8655 hardcode_libdir_separator=:
8659 no_undefined_flag=' -z text'
8660 if test "$GCC" = yes; then
8662 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8664 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8667 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8668 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8671 hardcode_libdir_flag_spec='-R$libdir'
8672 hardcode_shlibpath_var=no
8674 solaris2.[0-5] | solaris2.[0-5].*) ;;
8676 # The compiler driver will combine linker options so we
8677 # cannot just pass the convience library names through
8678 # without $wl, iff we do not link with $LD.
8679 # Luckily, gcc supports the same syntax we need for Sun Studio.
8680 # Supported since Solaris 2.6 (maybe 2.5.1?)
8683 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8685 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' ;;
8688 link_all_deplibs=yes
8692 if test "x$host_vendor" = xsequent; then
8693 # Use $CC to link under sequent, because it throws in some extra .o
8694 # files that make .init and .fini sections work.
8695 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8697 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8699 hardcode_libdir_flag_spec='-L$libdir'
8701 hardcode_minus_L=yes
8702 hardcode_shlibpath_var=no
8706 case $host_vendor in
8708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709 hardcode_direct=yes # is this really true???
8712 ## LD is ld it makes a PLAMLIB
8713 ## CC just makes a GrossModule.
8714 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8715 reload_cmds='$CC -r -o $output$reload_objs'
8719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8723 runpath_var='LD_RUN_PATH'
8724 hardcode_shlibpath_var=no
8728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 hardcode_shlibpath_var=no
8730 export_dynamic_flag_spec='-Bexport'
8734 if test -d /usr/nec; then
8735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736 hardcode_shlibpath_var=no
8737 runpath_var=LD_RUN_PATH
8738 hardcode_runpath_var=yes
8743 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8744 no_undefined_flag='${wl}-z,text'
8745 archive_cmds_need_lc=no
8746 hardcode_shlibpath_var=no
8747 runpath_var='LD_RUN_PATH'
8749 if test "$GCC" = yes; then
8750 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8753 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8758 sysv5* | sco3.2v5* | sco5v6*)
8759 # Note: We can NOT use -z defs as we might desire, because we do not
8760 # link with -lc, and that would cause any symbols used from libc to
8761 # always be unresolved, which means just about no library would
8762 # ever link correctly. If we're not using GNU ld we use -z text
8763 # though, which does catch some bad symbols but isn't as heavy-handed
8765 no_undefined_flag='${wl}-z,text'
8766 allow_undefined_flag='${wl}-z,nodefs'
8767 archive_cmds_need_lc=no
8768 hardcode_shlibpath_var=no
8769 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8770 hardcode_libdir_separator=':'
8771 link_all_deplibs=yes
8772 export_dynamic_flag_spec='${wl}-Bexport'
8773 runpath_var='LD_RUN_PATH'
8775 if test "$GCC" = yes; then
8776 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8779 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786 hardcode_libdir_flag_spec='-L$libdir'
8787 hardcode_shlibpath_var=no
8796 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8797 echo "${ECHO_T}$ld_shlibs" >&6; }
8798 test "$ld_shlibs" = no && can_build_shared=no
8801 # Do we need to explicitly link libc?
8803 case "x$archive_cmds_need_lc" in
8805 # Assume -lc should be added
8806 archive_cmds_need_lc=yes
8808 if test "$enable_shared" = yes && test "$GCC" = yes; then
8809 case $archive_cmds in
8811 # FIXME: we may have to deal with multi-command sequences.
8814 # Test whether the compiler implicitly links with -lc since on some
8815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8816 # to ld, don't add -lc before -lgcc.
8817 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8818 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8823 (eval $ac_compile) 2>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } 2>conftest.err; then
8829 libobjs=conftest.$ac_objext
8831 wl=$lt_prog_compiler_wl
8832 pic_flag=$lt_prog_compiler_pic
8838 lt_save_allow_undefined_flag=$allow_undefined_flag
8839 allow_undefined_flag=
8840 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8841 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }
8846 archive_cmds_need_lc=no
8848 archive_cmds_need_lc=yes
8850 allow_undefined_flag=$lt_save_allow_undefined_flag
8852 cat conftest.err 1>&5
8855 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8856 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8863 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8864 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8866 libname_spec='lib$name'
8874 shlibpath_overrides_runpath=unknown
8876 dynamic_linker="$host_os ld.so"
8877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8878 if test "$GCC" = yes; then
8879 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8880 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8881 # if the path contains ";" then we assume it to be the separator
8882 # otherwise default to the standard path separator (i.e. ":") - it is
8883 # assumed that no part of a normal pathname contains ";" but that should
8884 # okay in the real world where ";" in dirpaths is itself problematic.
8885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8887 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8890 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8892 need_lib_prefix=unknown
8893 hardcode_into_libs=no
8895 # when you set need_version to no, make sure it does not cause -set_version
8896 # flags to be left without arguments
8897 need_version=unknown
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8903 shlibpath_var=LIBPATH
8905 # AIX 3 has no versioning support, so we append a major version to the name.
8906 soname_spec='${libname}${release}${shared_ext}$major'
8913 hardcode_into_libs=yes
8914 if test "$host_cpu" = ia64; then
8915 # AIX 5 supports IA64
8916 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8917 shlibpath_var=LD_LIBRARY_PATH
8919 # With GCC up to 2.95.x, collect2 would create an import file
8920 # for dependence libraries. The import file would start with
8921 # the line `#! .'. This would cause the generated library to
8922 # depend on `.', always an invalid library. This was fixed in
8923 # development snapshots of GCC prior to 3.0.
8925 aix4 | aix4.[01] | aix4.[01].*)
8926 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8928 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8935 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8936 # soname into executable. Probably we can add versioning support to
8937 # collect2, so additional links can be useful in future.
8938 if test "$aix_use_runtimelinking" = yes; then
8939 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8940 # instead of lib<name>.a to let people know that these are not
8941 # typical AIX shared libraries.
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944 # We preserve .a as extension for shared libraries through AIX4.2
8945 # and later when we are not doing run time linking.
8946 library_names_spec='${libname}${release}.a $libname.a'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8949 shlibpath_var=LIBPATH
8954 library_names_spec='$libname.ixlibrary $libname.a'
8955 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8956 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'
8960 library_names_spec='${libname}${shared_ext}'
8961 dynamic_linker="$host_os ld.so"
8962 shlibpath_var=LIBRARY_PATH
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8974 # the default ld.so.conf also contains /usr/contrib/lib and
8975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8976 # libtool to hard-code these into programs
8979 cygwin* | mingw* | pw32*)
8980 version_type=windows
8985 case $GCC,$host_os in
8986 yes,cygwin* | yes,mingw* | yes,pw32*)
8987 library_names_spec='$libname.dll.a'
8988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8989 postinstall_cmds='base_file=`basename \${file}`~
8990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8991 dldir=$destdir/`dirname \$dlpath`~
8992 test -d \$dldir || mkdir -p \$dldir~
8993 $install_prog $dir/$dlname \$dldir/$dlname~
8994 chmod a+x \$dldir/$dlname'
8995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8996 dlpath=$dir/\$dldll~
8998 shlibpath_overrides_runpath=yes
9002 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9004 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9007 # MinGW DLLs use traditional 'lib' prefix
9008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9009 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9010 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9011 # It is most probably a Windows format PATH printed by
9012 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9013 # path with ; separators, and with drive letters. We can handle the
9014 # drive letters (cygwin fileutils understands them), so leave them,
9015 # especially as we might pass files found there to a mingw objdump,
9016 # which wouldn't understand a cygwinified path. Ahh.
9017 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9019 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9023 # pw32 DLLs use 'pw' prefix rather than 'lib'
9024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9033 dynamic_linker='Win32 ld.exe'
9034 # FIXME: first we should search . and the directory the executable is in
9038 darwin* | rhapsody*)
9039 dynamic_linker="$host_os dyld"
9043 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9044 soname_spec='${libname}${release}${major}$shared_ext'
9045 shlibpath_overrides_runpath=yes
9046 shlibpath_var=DYLD_LIBRARY_PATH
9047 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9048 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9049 if test "$GCC" = yes; then
9050 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"`
9052 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9054 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 shlibpath_var=LD_LIBRARY_PATH
9070 freebsd* | dragonfly*)
9071 # DragonFly does not have aout. When/if they implement a new
9072 # versioning mechanism, adjust this.
9073 if test -x /usr/bin/objformat; then
9074 objformat=`/usr/bin/objformat`
9077 freebsd[123]*) objformat=aout ;;
9081 version_type=freebsd-$objformat
9082 case $version_type in
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9093 shlibpath_var=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath=yes
9098 freebsd3.[01]* | freebsdelf3.[01]*)
9099 shlibpath_overrides_runpath=yes
9100 hardcode_into_libs=yes
9102 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9103 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9104 shlibpath_overrides_runpath=no
9105 hardcode_into_libs=yes
9107 freebsd*) # from 4.6 on
9108 shlibpath_overrides_runpath=yes
9109 hardcode_into_libs=yes
9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 hardcode_into_libs=yes
9124 hpux9* | hpux10* | hpux11*)
9125 # Give a soname corresponding to the major version so that dld.sl refuses to
9126 # link against other versions.
9133 hardcode_into_libs=yes
9134 dynamic_linker="$host_os dld.so"
9135 shlibpath_var=LD_LIBRARY_PATH
9136 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 if test "X$HPUX_IA64_MODE" = X32; then
9140 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9142 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9148 hardcode_into_libs=yes
9149 dynamic_linker="$host_os dld.sl"
9150 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9151 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9159 dynamic_linker="$host_os dld.sl"
9160 shlibpath_var=SHLIB_PATH
9161 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9166 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9167 postinstall_cmds='chmod 555 $lib'
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 shlibpath_overrides_runpath=no
9179 hardcode_into_libs=yes
9182 irix5* | irix6* | nonstopux*)
9184 nonstopux*) version_type=nonstopux ;;
9186 if test "$lt_cv_prog_gnu_ld" = yes; then
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9197 irix5* | nonstopux*)
9201 case $LD in # libtool.m4 will add one of these switches to LD
9202 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9203 libsuff= shlibsuff= libmagic=32-bit;;
9204 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9205 libsuff=32 shlibsuff=N32 libmagic=N32;;
9206 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9207 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9208 *) libsuff= shlibsuff= libmagic=never-match;;
9212 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9213 shlibpath_overrides_runpath=no
9214 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9215 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9216 hardcode_into_libs=yes
9219 # No shared lib support for Linux oldld, aout, or coff.
9220 linux*oldld* | linux*aout* | linux*coff*)
9224 # This must be Linux ELF.
9225 linux* | k*bsd*-gnu)
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=no
9234 # This implies no fast_install, which is unacceptable.
9235 # Some rework will be needed to allow for fast_install
9236 # before this can be enabled.
9237 hardcode_into_libs=yes
9239 # Append ld.so.conf contents to the search path
9240 if test -f /etc/ld.so.conf; then
9241 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' ' '`
9242 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9245 # We used to test for /lib/ld.so.1 and disable shared libraries on
9246 # powerpc, because MkLinux only supported shared libraries with the
9247 # GNU dynamic linker. Since this was broken with cross compilers,
9248 # most powerpc-linux boxes support dynamic linking these days and
9249 # people can always --disable-shared, the test was removed, and we
9250 # assume the GNU/Linux dynamic linker is in use.
9251 dynamic_linker='GNU/Linux ld.so'
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 shlibpath_overrides_runpath=no
9262 hardcode_into_libs=yes
9263 dynamic_linker='NetBSD ld.elf_so'
9270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9273 dynamic_linker='NetBSD (a.out) ld.so'
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 dynamic_linker='NetBSD ld.elf_so'
9279 shlibpath_var=LD_LIBRARY_PATH
9280 shlibpath_overrides_runpath=yes
9281 hardcode_into_libs=yes
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=yes
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=yes
9303 sys_lib_dlsearch_path_spec="/usr/lib"
9305 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9307 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9308 *) need_version=no ;;
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9315 openbsd2.[89] | openbsd2.[89].*)
9316 shlibpath_overrides_runpath=no
9319 shlibpath_overrides_runpath=yes
9323 shlibpath_overrides_runpath=yes
9328 libname_spec='$name'
9331 library_names_spec='$libname${shared_ext} $libname.a'
9332 dynamic_linker='OS/2 ld.exe'
9333 shlibpath_var=LIBPATH
9336 osf3* | osf4* | osf5*)
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9344 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 shlibpath_overrides_runpath=yes
9355 hardcode_into_libs=yes
9356 # ldd complains unless libraries are executable
9357 postinstall_cmds='chmod +x $lib'
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9363 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 shlibpath_overrides_runpath=yes
9366 if test "$with_gnu_ld" = yes; then
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 case $host_vendor in
9379 shlibpath_overrides_runpath=no
9381 export_dynamic_flag_spec='${wl}-Blargedynsym'
9382 runpath_var=LD_RUN_PATH
9390 shlibpath_overrides_runpath=no
9391 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9397 if test -d /usr/nec ;then
9399 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9400 soname_spec='$libname${shared_ext}.$major'
9401 shlibpath_var=LD_LIBRARY_PATH
9405 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9406 version_type=freebsd-elf
9409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9410 soname_spec='${libname}${release}${shared_ext}$major'
9411 shlibpath_var=LD_LIBRARY_PATH
9412 hardcode_into_libs=yes
9413 if test "$with_gnu_ld" = yes; then
9414 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9415 shlibpath_overrides_runpath=no
9417 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9418 shlibpath_overrides_runpath=yes
9421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9425 sys_lib_dlsearch_path_spec='/usr/lib'
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 shlibpath_var=LD_LIBRARY_PATH
9439 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9440 echo "${ECHO_T}$dynamic_linker" >&6; }
9441 test "$dynamic_linker" = no && can_build_shared=no
9443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9444 if test "$GCC" = yes; then
9445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9448 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9449 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9451 if test -n "$hardcode_libdir_flag_spec" || \
9452 test -n "$runpath_var" || \
9453 test "X$hardcode_automatic" = "Xyes" ; then
9455 # We can hardcode non-existant directories.
9456 if test "$hardcode_direct" != no &&
9457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9458 # have to relink, otherwise we might link with an installed library
9459 # when we should be linking with a yet-to-be-installed one
9460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9461 test "$hardcode_minus_L" != no; then
9462 # Linking always hardcodes the temporary library directory.
9463 hardcode_action=relink
9465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9466 hardcode_action=immediate
9469 # We cannot hardcode anything, or else we can only hardcode existing
9471 hardcode_action=unsupported
9473 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9474 echo "${ECHO_T}$hardcode_action" >&6; }
9476 if test "$hardcode_action" = relink; then
9477 # Fast installation is not supported
9478 enable_fast_install=no
9479 elif test "$shlibpath_overrides_runpath" = yes ||
9480 test "$enable_shared" = no; then
9481 # Fast installation is not necessary
9482 enable_fast_install=needless
9487 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9489 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9490 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9491 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9492 { echo "$as_me:$LINENO: result: yes" >&5
9493 echo "${ECHO_T}yes" >&6; }
9495 # FIXME - insert some real tests, host_os isn't really good enough
9498 if test -n "$STRIP" ; then
9499 striplib="$STRIP -x"
9500 { echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6; }
9503 { echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6; }
9508 { echo "$as_me:$LINENO: result: no" >&5
9509 echo "${ECHO_T}no" >&6; }
9514 if test "x$enable_dlopen" != xyes; then
9515 enable_dlopen=unknown
9516 enable_dlopen_self=unknown
9517 enable_dlopen_self_static=unknown
9524 lt_cv_dlopen="load_add_on"
9526 lt_cv_dlopen_self=yes
9530 lt_cv_dlopen="LoadLibrary"
9535 lt_cv_dlopen="dlopen"
9540 # if libdl is installed we need to link against it
9541 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 ac_check_lib_save_LIBS=$LIBS
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9555 /* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_link") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest$ac_exeext &&
9587 $as_test_x conftest$ac_exeext; then
9588 ac_cv_lib_dl_dlopen=yes
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_cv_lib_dl_dlopen=no
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597 conftest$ac_exeext conftest.$ac_ext
9598 LIBS=$ac_check_lib_save_LIBS
9600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9602 if test $ac_cv_lib_dl_dlopen = yes; then
9603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9608 lt_cv_dlopen_self=yes
9615 { echo "$as_me:$LINENO: checking for shl_load" >&5
9616 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9617 if test "${ac_cv_func_shl_load+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 cat >conftest.$ac_ext <<_ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9628 #define shl_load innocuous_shl_load
9630 /* System header to define __stub macros and hopefully few prototypes,
9631 which can conflict with char shl_load (); below.
9632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9633 <limits.h> exists even on freestanding compilers. */
9636 # include <limits.h>
9638 # include <assert.h>
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9650 /* The GNU C library defines this for functions which it implements
9651 to always fail with ENOSYS. Some functions are actually named
9652 something starting with __ and the normal name is an alias. */
9653 #if defined __stub_shl_load || defined __stub___shl_load
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_link") 2>conftest.er1
9674 grep -v '^ *+' conftest.er1 >conftest.err
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest$ac_exeext &&
9682 $as_test_x conftest$ac_exeext; then
9683 ac_cv_func_shl_load=yes
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9688 ac_cv_func_shl_load=no
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692 conftest$ac_exeext conftest.$ac_ext
9694 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9695 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9696 if test $ac_cv_func_shl_load = yes; then
9697 lt_cv_dlopen="shl_load"
9699 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9700 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9701 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 ac_check_lib_save_LIBS=$LIBS
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest$ac_exeext &&
9745 $as_test_x conftest$ac_exeext; then
9746 ac_cv_lib_dld_shl_load=yes
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 ac_cv_lib_dld_shl_load=no
9754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9755 conftest$ac_exeext conftest.$ac_ext
9756 LIBS=$ac_check_lib_save_LIBS
9758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9759 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9760 if test $ac_cv_lib_dld_shl_load = yes; then
9761 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9763 { echo "$as_me:$LINENO: checking for dlopen" >&5
9764 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9765 if test "${ac_cv_func_dlopen+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 cat >conftest.$ac_ext <<_ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9776 #define dlopen innocuous_dlopen
9778 /* System header to define __stub macros and hopefully few prototypes,
9779 which can conflict with char dlopen (); below.
9780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9781 <limits.h> exists even on freestanding compilers. */
9784 # include <limits.h>
9786 # include <assert.h>
9791 /* Override any GCC internal prototype to avoid an error.
9792 Use char because int might match the return type of a GCC
9793 builtin and then its argument prototype would still apply. */
9798 /* The GNU C library defines this for functions which it implements
9799 to always fail with ENOSYS. Some functions are actually named
9800 something starting with __ and the normal name is an alias. */
9801 #if defined __stub_dlopen || defined __stub___dlopen
9813 rm -f conftest.$ac_objext conftest$ac_exeext
9814 if { (ac_try="$ac_link"
9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_link") 2>conftest.er1
9822 grep -v '^ *+' conftest.er1 >conftest.err
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } && {
9827 test -z "$ac_c_werror_flag" ||
9828 test ! -s conftest.err
9829 } && test -s conftest$ac_exeext &&
9830 $as_test_x conftest$ac_exeext; then
9831 ac_cv_func_dlopen=yes
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9836 ac_cv_func_dlopen=no
9839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9840 conftest$ac_exeext conftest.$ac_ext
9842 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9843 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9844 if test $ac_cv_func_dlopen = yes; then
9845 lt_cv_dlopen="dlopen"
9847 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9848 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 ac_check_lib_save_LIBS=$LIBS
9854 cat >conftest.$ac_ext <<_ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9861 /* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>conftest.er1
9885 grep -v '^ *+' conftest.er1 >conftest.err
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } && {
9890 test -z "$ac_c_werror_flag" ||
9891 test ! -s conftest.err
9892 } && test -s conftest$ac_exeext &&
9893 $as_test_x conftest$ac_exeext; then
9894 ac_cv_lib_dl_dlopen=yes
9896 echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9899 ac_cv_lib_dl_dlopen=no
9902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_check_lib_save_LIBS
9906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9907 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9908 if test $ac_cv_lib_dl_dlopen = yes; then
9909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9911 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9912 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9913 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 ac_check_lib_save_LIBS=$LIBS
9918 cat >conftest.$ac_ext <<_ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9925 /* Override any GCC internal prototype to avoid an error.
9926 Use char because int might match the return type of a GCC
9927 builtin and then its argument prototype would still apply. */
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_link") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest$ac_exeext &&
9957 $as_test_x conftest$ac_exeext; then
9958 ac_cv_lib_svld_dlopen=yes
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 ac_cv_lib_svld_dlopen=no
9966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9967 conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9970 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9971 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9972 if test $ac_cv_lib_svld_dlopen = yes; then
9973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9975 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9976 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 ac_check_lib_save_LIBS=$LIBS
9982 cat >conftest.$ac_ext <<_ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9989 /* Override any GCC internal prototype to avoid an error.
9990 Use char because int might match the return type of a GCC
9991 builtin and then its argument prototype would still apply. */
10004 rm -f conftest.$ac_objext conftest$ac_exeext
10005 if { (ac_try="$ac_link"
10006 case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_link") 2>conftest.er1
10013 grep -v '^ *+' conftest.er1 >conftest.err
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } && {
10018 test -z "$ac_c_werror_flag" ||
10019 test ! -s conftest.err
10020 } && test -s conftest$ac_exeext &&
10021 $as_test_x conftest$ac_exeext; then
10022 ac_cv_lib_dld_dld_link=yes
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10027 ac_cv_lib_dld_dld_link=no
10030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10034 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10036 if test $ac_cv_lib_dld_dld_link = yes; then
10037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10058 if test "x$lt_cv_dlopen" != xno; then
10064 case $lt_cv_dlopen in
10066 save_CPPFLAGS="$CPPFLAGS"
10067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10069 save_LDFLAGS="$LDFLAGS"
10070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10073 LIBS="$lt_cv_dlopen_libs $LIBS"
10075 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10076 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10077 if test "${lt_cv_dlopen_self+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 if test "$cross_compiling" = yes; then :
10081 lt_cv_dlopen_self=cross
10083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10084 lt_status=$lt_dlunknown
10085 cat > conftest.$ac_ext <<EOF
10086 #line 10086 "configure"
10087 #include "confdefs.h"
10096 # define LT_DLGLOBAL RTLD_GLOBAL
10099 # define LT_DLGLOBAL DL_GLOBAL
10101 # define LT_DLGLOBAL 0
10105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10106 find out it does not work in some platform. */
10107 #ifndef LT_DLLAZY_OR_NOW
10109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10112 # define LT_DLLAZY_OR_NOW DL_LAZY
10115 # define LT_DLLAZY_OR_NOW RTLD_NOW
10118 # define LT_DLLAZY_OR_NOW DL_NOW
10120 # define LT_DLLAZY_OR_NOW 0
10128 extern "C" void exit (int);
10131 void fnord() { int i=42;}
10134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10135 int status = $lt_dlunknown;
10139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10140 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10141 /* dlclose (self); */
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10154 (./conftest; exit; ) >&5 2>/dev/null
10156 case x$lt_status in
10157 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10158 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10159 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10162 # compilation failed
10163 lt_cv_dlopen_self=no
10170 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10171 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10173 if test "x$lt_cv_dlopen_self" = xyes; then
10174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10175 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10176 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10177 if test "${lt_cv_dlopen_self_static+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 if test "$cross_compiling" = yes; then :
10181 lt_cv_dlopen_self_static=cross
10183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10184 lt_status=$lt_dlunknown
10185 cat > conftest.$ac_ext <<EOF
10186 #line 10186 "configure"
10187 #include "confdefs.h"
10196 # define LT_DLGLOBAL RTLD_GLOBAL
10199 # define LT_DLGLOBAL DL_GLOBAL
10201 # define LT_DLGLOBAL 0
10205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10206 find out it does not work in some platform. */
10207 #ifndef LT_DLLAZY_OR_NOW
10209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10212 # define LT_DLLAZY_OR_NOW DL_LAZY
10215 # define LT_DLLAZY_OR_NOW RTLD_NOW
10218 # define LT_DLLAZY_OR_NOW DL_NOW
10220 # define LT_DLLAZY_OR_NOW 0
10228 extern "C" void exit (int);
10231 void fnord() { int i=42;}
10234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10235 int status = $lt_dlunknown;
10239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10240 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10241 /* dlclose (self); */
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10254 (./conftest; exit; ) >&5 2>/dev/null
10256 case x$lt_status in
10257 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10258 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10259 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10262 # compilation failed
10263 lt_cv_dlopen_self_static=no
10270 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10271 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10274 CPPFLAGS="$save_CPPFLAGS"
10275 LDFLAGS="$save_LDFLAGS"
10280 case $lt_cv_dlopen_self in
10281 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10282 *) enable_dlopen_self=unknown ;;
10285 case $lt_cv_dlopen_self_static in
10286 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10287 *) enable_dlopen_self_static=unknown ;;
10292 # Report which library types will actually be built
10293 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10294 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10295 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10296 echo "${ECHO_T}$can_build_shared" >&6; }
10298 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10299 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10300 test "$can_build_shared" = "no" && enable_shared=no
10302 # On AIX, shared libraries and static libraries use the same namespace, and
10303 # are all built from PIC.
10306 test "$enable_shared" = yes && enable_static=no
10307 if test -n "$RANLIB"; then
10308 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10309 postinstall_cmds='$RANLIB $lib'
10314 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10315 test "$enable_shared" = yes && enable_static=no
10319 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10320 echo "${ECHO_T}$enable_shared" >&6; }
10322 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10323 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10324 # Make sure either enable_shared or enable_static is yes.
10325 test "$enable_shared" = yes || enable_static=yes
10326 { echo "$as_me:$LINENO: result: $enable_static" >&5
10327 echo "${ECHO_T}$enable_static" >&6; }
10329 # The else clause should only fire when bootstrapping the
10330 # libtool distribution, otherwise you forgot to ship ltmain.sh
10331 # with your package, and you will get complaints that there are
10332 # no rules to generate ltmain.sh.
10333 if test -f "$ltmain"; then
10334 # See if we are running on zsh, and set the options which allow our commands through
10335 # without removal of \ escapes.
10336 if test -n "${ZSH_VERSION+set}" ; then
10337 setopt NO_GLOB_SUBST
10339 # Now quote all the things that may contain metacharacters while being
10340 # careful not to overquote the AC_SUBSTed values. We take copies of the
10341 # variables and quote the copies for generation of the libtool script.
10342 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10344 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10345 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10346 deplibs_check_method reload_flag reload_cmds need_locks \
10347 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10348 lt_cv_sys_global_symbol_to_c_name_address \
10349 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10350 old_postinstall_cmds old_postuninstall_cmds \
10354 lt_prog_compiler_wl \
10355 lt_prog_compiler_pic \
10356 lt_prog_compiler_static \
10357 lt_prog_compiler_no_builtin_flag \
10358 export_dynamic_flag_spec \
10359 thread_safe_flag_spec \
10360 whole_archive_flag_spec \
10361 enable_shared_with_static_runtimes \
10363 old_archive_from_new_cmds \
10368 compiler_lib_search_path \
10370 archive_expsym_cmds \
10372 postuninstall_cmds \
10373 old_archive_from_expsyms_cmds \
10374 allow_undefined_flag \
10375 no_undefined_flag \
10376 export_symbols_cmds \
10377 hardcode_libdir_flag_spec \
10378 hardcode_libdir_flag_spec_ld \
10379 hardcode_libdir_separator \
10380 hardcode_automatic \
10382 module_expsym_cmds \
10383 lt_cv_prog_compiler_c_o \
10385 include_expsyms; do
10388 old_archive_cmds | \
10389 old_archive_from_new_cmds | \
10391 archive_expsym_cmds | \
10393 module_expsym_cmds | \
10394 old_archive_from_expsyms_cmds | \
10395 export_symbols_cmds | \
10396 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10397 postinstall_cmds | postuninstall_cmds | \
10398 old_postinstall_cmds | old_postuninstall_cmds | \
10399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10400 # Double-quote double-evaled strings.
10401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10410 *'\$0 --fallback-echo"')
10411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10415 cfgfile="${ofile}T"
10416 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10418 { echo "$as_me:$LINENO: creating $ofile" >&5
10419 echo "$as_me: creating $ofile" >&6;}
10421 cat <<__EOF__ >> "$cfgfile"
10424 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10425 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10426 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10428 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10429 # Free Software Foundation, Inc.
10431 # This file is part of GNU Libtool:
10432 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10434 # This program is free software; you can redistribute it and/or modify
10435 # it under the terms of the GNU General Public License as published by
10436 # the Free Software Foundation; either version 2 of the License, or
10437 # (at your option) any later version.
10439 # This program is distributed in the hope that it will be useful, but
10440 # WITHOUT ANY WARRANTY; without even the implied warranty of
10441 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10442 # General Public License for more details.
10444 # You should have received a copy of the GNU General Public License
10445 # along with this program; if not, write to the Free Software
10446 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10448 # As a special exception to the GNU General Public License, if you
10449 # distribute this file as part of a program that contains a
10450 # configuration script generated by Autoconf, you may include it under
10451 # the same distribution terms that you use for the rest of that program.
10453 # A sed program that does not truncate output.
10456 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10457 Xsed="$SED -e 1s/^X//"
10459 # The HP-UX ksh and POSIX shell print the target directory to stdout
10460 # if CDPATH is set.
10461 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10463 # The names of the tagged configurations supported by this script.
10466 # ### BEGIN LIBTOOL CONFIG
10468 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10470 # Shell to use when invoking shell scripts.
10473 # Whether or not to build shared libraries.
10474 build_libtool_libs=$enable_shared
10476 # Whether or not to build static libraries.
10477 build_old_libs=$enable_static
10479 # Whether or not to add -lc for building shared libraries.
10480 build_libtool_need_lc=$archive_cmds_need_lc
10482 # Whether or not to disallow shared libs when runtime libs are static
10483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10485 # Whether or not to optimize for fast installation.
10486 fast_install=$enable_fast_install
10489 host_alias=$host_alias
10493 # The build system.
10494 build_alias=$build_alias
10498 # An echo program that does not interpret backslashes.
10503 AR_FLAGS=$lt_AR_FLAGS
10508 # LTCC compiler flags.
10509 LTCFLAGS=$lt_LTCFLAGS
10511 # A language-specific compiler.
10514 # Is the compiler the GNU C compiler?
10520 # The linker used to build libraries.
10523 # Whether we need hard or soft links.
10526 # A BSD-compatible nm program.
10529 # A symbol stripping program
10532 # Used to examine libraries when file_magic_cmd begins "file"
10533 MAGIC_CMD=$MAGIC_CMD
10535 # Used on cygwin: DLL creation program.
10538 # Used on cygwin: object dumper.
10541 # Used on cygwin: assembler.
10544 # The name of the directory that contains temporary libtool files.
10547 # How to create reloadable object files.
10548 reload_flag=$lt_reload_flag
10549 reload_cmds=$lt_reload_cmds
10551 # How to pass a linker flag through the compiler.
10552 wl=$lt_lt_prog_compiler_wl
10554 # Object file suffix (normally "o").
10555 objext="$ac_objext"
10557 # Old archive suffix (normally "a").
10560 # Shared library suffix (normally ".so").
10561 shrext_cmds='$shrext_cmds'
10563 # Executable file suffix (normally "").
10566 # Additional compiler flags for building library objects.
10567 pic_flag=$lt_lt_prog_compiler_pic
10570 # What is the maximum length of a command?
10571 max_cmd_len=$lt_cv_sys_max_cmd_len
10573 # Does compiler simultaneously support -c and -o options?
10574 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10576 # Must we lock files when doing compilation?
10577 need_locks=$lt_need_locks
10579 # Do we need the lib prefix for modules?
10580 need_lib_prefix=$need_lib_prefix
10582 # Do we need a version for libraries?
10583 need_version=$need_version
10585 # Whether dlopen is supported.
10586 dlopen_support=$enable_dlopen
10588 # Whether dlopen of programs is supported.
10589 dlopen_self=$enable_dlopen_self
10591 # Whether dlopen of statically linked programs is supported.
10592 dlopen_self_static=$enable_dlopen_self_static
10594 # Compiler flag to prevent dynamic linking.
10595 link_static_flag=$lt_lt_prog_compiler_static
10597 # Compiler flag to turn off builtin functions.
10598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10600 # Compiler flag to allow reflexive dlopens.
10601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10603 # Compiler flag to generate shared objects directly from archives.
10604 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10606 # Compiler flag to generate thread-safe objects.
10607 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10609 # Library versioning type.
10610 version_type=$version_type
10612 # Format of library name prefix.
10613 libname_spec=$lt_libname_spec
10615 # List of archive names. First name is the real one, the rest are links.
10616 # The last name is the one that the linker finds with -lNAME.
10617 library_names_spec=$lt_library_names_spec
10619 # The coded name of the library, if different from the real name.
10620 soname_spec=$lt_soname_spec
10622 # Commands used to build and install an old-style archive.
10624 old_archive_cmds=$lt_old_archive_cmds
10625 old_postinstall_cmds=$lt_old_postinstall_cmds
10626 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10628 # Create an old-style archive from a shared archive.
10629 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10631 # Create a temporary old-style archive to link instead of a shared archive.
10632 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10634 # Commands used to build and install a shared archive.
10635 archive_cmds=$lt_archive_cmds
10636 archive_expsym_cmds=$lt_archive_expsym_cmds
10637 postinstall_cmds=$lt_postinstall_cmds
10638 postuninstall_cmds=$lt_postuninstall_cmds
10640 # Commands used to build a loadable module (assumed same as above if empty)
10641 module_cmds=$lt_module_cmds
10642 module_expsym_cmds=$lt_module_expsym_cmds
10644 # Commands to strip libraries.
10645 old_striplib=$lt_old_striplib
10646 striplib=$lt_striplib
10648 # Dependencies to place before the objects being linked to create a
10650 predep_objects=$lt_predep_objects
10652 # Dependencies to place after the objects being linked to create a
10654 postdep_objects=$lt_postdep_objects
10656 # Dependencies to place before the objects being linked to create a
10658 predeps=$lt_predeps
10660 # Dependencies to place after the objects being linked to create a
10662 postdeps=$lt_postdeps
10664 # The library search path used internally by the compiler when linking
10665 # a shared library.
10666 compiler_lib_search_path=$lt_compiler_lib_search_path
10668 # Method to check whether dependent libraries are shared objects.
10669 deplibs_check_method=$lt_deplibs_check_method
10671 # Command to use when deplibs_check_method == file_magic.
10672 file_magic_cmd=$lt_file_magic_cmd
10674 # Flag that allows shared libraries with undefined symbols to be built.
10675 allow_undefined_flag=$lt_allow_undefined_flag
10677 # Flag that forces no undefined symbols.
10678 no_undefined_flag=$lt_no_undefined_flag
10680 # Commands used to finish a libtool library installation in a directory.
10681 finish_cmds=$lt_finish_cmds
10683 # Same as above, but a single script fragment to be evaled but not shown.
10684 finish_eval=$lt_finish_eval
10686 # Take the output of nm and produce a listing of raw symbols and C names.
10687 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10689 # Transform the output of nm in a proper C declaration
10690 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10692 # Transform the output of nm in a C name address pair
10693 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10695 # This is the shared library runtime path variable.
10696 runpath_var=$runpath_var
10698 # This is the shared library path variable.
10699 shlibpath_var=$shlibpath_var
10701 # Is shlibpath searched before the hard-coded library search path?
10702 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10704 # How to hardcode a shared library path into an executable.
10705 hardcode_action=$hardcode_action
10707 # Whether we should hardcode library paths into libraries.
10708 hardcode_into_libs=$hardcode_into_libs
10710 # Flag to hardcode \$libdir into a binary during linking.
10711 # This must work even if \$libdir does not exist.
10712 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10714 # If ld is used when linking, flag to hardcode \$libdir into
10715 # a binary during linking. This must work even if \$libdir does
10717 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10719 # Whether we need a single -rpath flag with a separated argument.
10720 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10722 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10723 # resulting binary.
10724 hardcode_direct=$hardcode_direct
10726 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10727 # resulting binary.
10728 hardcode_minus_L=$hardcode_minus_L
10730 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10731 # the resulting binary.
10732 hardcode_shlibpath_var=$hardcode_shlibpath_var
10734 # Set to yes if building a shared library automatically hardcodes DIR into the library
10735 # and all subsequent libraries and executables linked against it.
10736 hardcode_automatic=$hardcode_automatic
10738 # Variables whose values should be saved in libtool wrapper scripts and
10739 # restored at relink time.
10740 variables_saved_for_relink="$variables_saved_for_relink"
10742 # Whether libtool must link a program against all its dependency libraries.
10743 link_all_deplibs=$link_all_deplibs
10745 # Compile-time system search path for libraries
10746 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10748 # Run-time system search path for libraries
10749 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10751 # Fix the shell variable \$srcfile for the compiler.
10752 fix_srcfile_path="$fix_srcfile_path"
10754 # Set to yes if exported symbols are required.
10755 always_export_symbols=$always_export_symbols
10757 # The commands to list exported symbols.
10758 export_symbols_cmds=$lt_export_symbols_cmds
10760 # The commands to extract the exported symbol list from a shared archive.
10761 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10763 # Symbols that should not be listed in the preloaded symbols.
10764 exclude_expsyms=$lt_exclude_expsyms
10766 # Symbols that must always be exported.
10767 include_expsyms=$lt_include_expsyms
10769 # ### END LIBTOOL CONFIG
10776 cat <<\EOF >> "$cfgfile"
10778 # AIX sometimes has problems with the GCC collect2 program. For some
10779 # reason, if we set the COLLECT_NAMES environment variable, the problems
10780 # vanish in a puff of smoke.
10781 if test "X${COLLECT_NAMES+set}" != Xset; then
10783 export COLLECT_NAMES
10789 # We use sed instead of cat because bash on DJGPP gets confused if
10790 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10791 # text mode, it properly converts lines to CR/LF. This bash problem
10792 # is reportedly fixed, but why not run on old versions too?
10793 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10795 mv -f "$cfgfile" "$ofile" || \
10796 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10800 # If there is no Makefile yet, we rely on a make rule to execute
10801 # `config.status --recheck' to rerun these tests and create the
10802 # libtool script then.
10803 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10804 if test -f "$ltmain_in"; then
10805 test -f Makefile && make "$ltmain"
10811 ac_cpp='$CPP $CPPFLAGS'
10812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10819 # Check whether --with-tags was given.
10820 if test "${with_tags+set}" = set; then
10821 withval=$with_tags; tagnames="$withval"
10825 if test -f "$ltmain" && test -n "$tagnames"; then
10826 if test ! -f "${ofile}"; then
10827 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10828 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10831 if test -z "$LTCC"; then
10832 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10833 if test -z "$LTCC"; then
10834 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10835 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10837 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10838 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10841 if test -z "$LTCFLAGS"; then
10842 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10845 # Extract list of available tagged configurations in $ofile.
10846 # Note that this assumes the entire list is on one line.
10847 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10849 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10850 for tagname in $tagnames; do
10852 # Check whether tagname contains only valid characters
10853 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10855 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10856 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10857 { (exit 1); exit 1; }; }
10861 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10863 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10864 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10865 { (exit 1); exit 1; }; }
10868 # Update the list of available tags.
10869 if test -n "$tagname"; then
10870 echo appending configuration tag \"$tagname\" to $ofile
10874 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10875 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10876 (test "X$CXX" != "Xg++"))) ; then
10878 ac_cpp='$CXXCPP $CPPFLAGS'
10879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10886 archive_cmds_need_lc_CXX=no
10887 allow_undefined_flag_CXX=
10888 always_export_symbols_CXX=no
10889 archive_expsym_cmds_CXX=
10890 export_dynamic_flag_spec_CXX=
10891 hardcode_direct_CXX=no
10892 hardcode_libdir_flag_spec_CXX=
10893 hardcode_libdir_flag_spec_ld_CXX=
10894 hardcode_libdir_separator_CXX=
10895 hardcode_minus_L_CXX=no
10896 hardcode_shlibpath_var_CXX=unsupported
10897 hardcode_automatic_CXX=no
10899 module_expsym_cmds_CXX=
10900 link_all_deplibs_CXX=unknown
10901 old_archive_cmds_CXX=$old_archive_cmds
10902 no_undefined_flag_CXX=
10903 whole_archive_flag_spec_CXX=
10904 enable_shared_with_static_runtimes_CXX=no
10906 # Dependencies to place before and after the object being linked:
10907 predep_objects_CXX=
10908 postdep_objects_CXX=
10911 compiler_lib_search_path_CXX=
10913 # Source file extension for C++ test sources.
10916 # Object file extension for compiled C++ test sources.
10920 # Code to be used in simple compile tests
10921 lt_simple_compile_test_code="int some_variable = 0;\n"
10923 # Code to be used in simple link tests
10924 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10926 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10928 # If no C compiler was specified, use CC.
10931 # If no C compiler flags were specified, use CFLAGS.
10932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10934 # Allow CC to be a program name with arguments.
10938 # save warnings/boilerplate of simple test code
10939 ac_outfile=conftest.$ac_objext
10940 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10941 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10942 _lt_compiler_boilerplate=`cat conftest.err`
10945 ac_outfile=conftest.$ac_objext
10946 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10947 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10948 _lt_linker_boilerplate=`cat conftest.err`
10952 # Allow CC to be a program name with arguments.
10957 lt_save_with_gnu_ld=$with_gnu_ld
10958 lt_save_path_LD=$lt_cv_path_LD
10959 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10960 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10962 $as_unset lt_cv_prog_gnu_ld
10964 if test -n "${lt_cv_path_LDCXX+set}"; then
10965 lt_cv_path_LD=$lt_cv_path_LDCXX
10967 $as_unset lt_cv_path_LD
10969 test -z "${LDCXX+set}" || LD=$LDCXX
10973 for cc_temp in $compiler""; do
10975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10981 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10984 # We don't want -fno-exception wen compiling C++ code, so set the
10985 # no_builtin_flag separately
10986 if test "$GXX" = yes; then
10987 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10989 lt_prog_compiler_no_builtin_flag_CXX=
10992 if test "$GXX" = yes; then
10993 # Set up default GNU C++ configuration
10996 # Check whether --with-gnu-ld was given.
10997 if test "${with_gnu_ld+set}" = set; then
10998 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11004 if test "$GCC" = yes; then
11005 # Check if gcc -print-prog-name=ld gives a path.
11006 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11007 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11010 # gcc leaves a trailing carriage return which upsets mingw
11011 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11013 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11016 # Accept absolute paths.
11018 re_direlt='/[^/][^/]*/\.\./'
11019 # Canonicalize the pathname of ld
11020 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11021 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11022 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11024 test -z "$LD" && LD="$ac_prog"
11027 # If it fails, then pretend we aren't using GCC.
11031 # If it is relative, then search for the first ld in PATH.
11032 with_gnu_ld=unknown
11035 elif test "$with_gnu_ld" = yes; then
11036 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11037 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11039 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11040 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11042 if test "${lt_cv_path_LD+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 if test -z "$LD"; then
11046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11047 for ac_dir in $PATH; do
11049 test -z "$ac_dir" && ac_dir=.
11050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11051 lt_cv_path_LD="$ac_dir/$ac_prog"
11052 # Check to see if the program is GNU ld. I'd rather use --version,
11053 # but apparently some variants of GNU ld only accept -v.
11054 # Break only if it was the GNU/non-GNU ld that we prefer.
11055 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11056 *GNU* | *'with BFD'*)
11057 test "$with_gnu_ld" != no && break
11060 test "$with_gnu_ld" != yes && break
11067 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11071 LD="$lt_cv_path_LD"
11072 if test -n "$LD"; then
11073 { echo "$as_me:$LINENO: result: $LD" >&5
11074 echo "${ECHO_T}$LD" >&6; }
11076 { echo "$as_me:$LINENO: result: no" >&5
11077 echo "${ECHO_T}no" >&6; }
11079 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11080 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11081 { (exit 1); exit 1; }; }
11082 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11083 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11084 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11088 case `$LD -v 2>&1 </dev/null` in
11089 *GNU* | *'with BFD'*)
11090 lt_cv_prog_gnu_ld=yes
11093 lt_cv_prog_gnu_ld=no
11097 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11098 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11099 with_gnu_ld=$lt_cv_prog_gnu_ld
11103 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11104 # archiving commands below assume that GNU ld is being used.
11105 if test "$with_gnu_ld" = yes; then
11106 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11107 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'
11109 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11110 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11112 # If archive_cmds runs LD, not CC, wlarc should be empty
11113 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11114 # investigate it a little bit more. (MM)
11117 # ancient GNU ld didn't support --whole-archive et. al.
11118 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11119 grep 'no-whole-archive' > /dev/null; then
11120 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11122 whole_archive_flag_spec_CXX=
11128 # A generic and very simple default shared library creation
11129 # command for GNU C++ for the case where it uses the native
11130 # linker, instead of GNU ld. If possible, this setting should
11131 # overridden to take advantage of the native linker features on
11132 # the platform it is being used on.
11133 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11136 # Commands to make compiler produce verbose output that lists
11137 # what "hidden" libraries, object files and flags are used when
11138 # linking a shared library.
11139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11147 # PORTME: fill in a description of your system's C++ link characteristics
11148 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11149 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11153 # FIXME: insert proper C++ library support
11157 if test "$host_cpu" = ia64; then
11158 # On IA64, the linker does run time linking by default, so we don't
11159 # have to do anything special.
11160 aix_use_runtimelinking=no
11161 exp_sym_flag='-Bexport'
11164 aix_use_runtimelinking=no
11166 # Test if we are trying to use run time linking or normal
11167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11168 # need to do runtime linking.
11169 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11170 for ld_flag in $LDFLAGS; do
11173 aix_use_runtimelinking=yes
11181 exp_sym_flag='-bexport'
11182 no_entry_flag='-bnoentry'
11185 # When large executables or shared objects are built, AIX ld can
11186 # have problems creating the table of contents. If linking a library
11187 # or program results in "error TOC overflow" add -mminimal-toc to
11188 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11189 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11191 archive_cmds_CXX=''
11192 hardcode_direct_CXX=yes
11193 hardcode_libdir_separator_CXX=':'
11194 link_all_deplibs_CXX=yes
11196 if test "$GXX" = yes; then
11197 case $host_os in aix4.[012]|aix4.[012].*)
11198 # We only want to do this on AIX 4.2 and lower, the check
11199 # below for broken collect2 doesn't work under 4.3+
11200 collect2name=`${CC} -print-prog-name=collect2`
11201 if test -f "$collect2name" && \
11202 strings "$collect2name" | grep resolve_lib_name >/dev/null
11204 # We have reworked collect2
11205 hardcode_direct_CXX=yes
11207 # We have old collect2
11208 hardcode_direct_CXX=unsupported
11209 # It fails to find uninstalled libraries when the uninstalled
11210 # path is not listed in the libpath. Setting hardcode_minus_L
11211 # to unsupported forces relinking
11212 hardcode_minus_L_CXX=yes
11213 hardcode_libdir_flag_spec_CXX='-L$libdir'
11214 hardcode_libdir_separator_CXX=
11218 shared_flag='-shared'
11219 if test "$aix_use_runtimelinking" = yes; then
11220 shared_flag="$shared_flag "'${wl}-G'
11224 if test "$host_cpu" = ia64; then
11225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11226 # chokes on -Wl,-G. The following line is correct:
11229 if test "$aix_use_runtimelinking" = yes; then
11230 shared_flag='${wl}-G'
11232 shared_flag='${wl}-bM:SRE'
11237 # It seems that -bexpall does not export symbols beginning with
11238 # underscore (_), so it is better to generate a list of symbols to export.
11239 always_export_symbols_CXX=yes
11240 if test "$aix_use_runtimelinking" = yes; then
11241 # Warning - without using the other runtime loading flags (-brtl),
11242 # -berok will link without error, but may produce a broken library.
11243 allow_undefined_flag_CXX='-berok'
11244 # Determine the default libpath from the value encoded in an empty executable.
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_link") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_cxx_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest$ac_exeext &&
11277 $as_test_x conftest$ac_exeext; then
11279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11281 # Check for a 64-bit object if we didn't find anything.
11282 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; }
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11292 conftest$ac_exeext conftest.$ac_ext
11293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11295 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11297 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"
11299 if test "$host_cpu" = ia64; then
11300 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11301 allow_undefined_flag_CXX="-z nodefs"
11302 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"
11304 # Determine the default libpath from the value encoded in an empty executable.
11305 cat >conftest.$ac_ext <<_ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (ac_try="$ac_link"
11322 case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11327 (eval "$ac_link") 2>conftest.er1
11329 grep -v '^ *+' conftest.er1 >conftest.err
11331 cat conftest.err >&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } && {
11334 test -z "$ac_cxx_werror_flag" ||
11335 test ! -s conftest.err
11336 } && test -s conftest$ac_exeext &&
11337 $as_test_x conftest$ac_exeext; then
11339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11341 # Check for a 64-bit object if we didn't find anything.
11342 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; }
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352 conftest$ac_exeext conftest.$ac_ext
11353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11355 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11356 # Warning - without using the other run time loading flags,
11357 # -berok will link without error, but may produce a broken library.
11358 no_undefined_flag_CXX=' ${wl}-bernotok'
11359 allow_undefined_flag_CXX=' ${wl}-berok'
11360 # Exported symbols can be pulled into shared objects from archives
11361 whole_archive_flag_spec_CXX='$convenience'
11362 archive_cmds_need_lc_CXX=yes
11363 # This is similar to how AIX traditionally builds its shared libraries.
11364 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'
11370 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11371 allow_undefined_flag_CXX=unsupported
11372 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11373 # support --undefined. This deserves some investigation. FIXME
11374 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11381 case $cc_basename in
11383 # FIXME: insert proper C++ library support
11389 cygwin* | mingw* | pw32*)
11390 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11391 # as there is no search path for DLLs.
11392 hardcode_libdir_flag_spec_CXX='-L$libdir'
11393 allow_undefined_flag_CXX=unsupported
11394 always_export_symbols_CXX=no
11395 enable_shared_with_static_runtimes_CXX=yes
11397 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11398 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'
11399 # If the export-symbols file already is a .def file (1st line
11400 # is EXPORTS), use it as is; otherwise, prepend...
11401 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11402 cp $export_symbols $output_objdir/$soname.def;
11404 echo EXPORTS > $output_objdir/$soname.def;
11405 cat $export_symbols >> $output_objdir/$soname.def;
11407 $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'
11412 darwin* | rhapsody*)
11414 rhapsody* | darwin1.[012])
11415 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11418 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11419 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11421 case ${MACOSX_DEPLOYMENT_TARGET} in
11423 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11426 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11432 archive_cmds_need_lc_CXX=no
11433 hardcode_direct_CXX=no
11434 hardcode_automatic_CXX=yes
11435 hardcode_shlibpath_var_CXX=unsupported
11436 whole_archive_flag_spec_CXX=''
11437 link_all_deplibs_CXX=yes
11439 if test "$GXX" = yes ; then
11440 lt_int_apple_cc_single_mod=no
11441 output_verbose_link_cmd='echo'
11442 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11443 lt_int_apple_cc_single_mod=yes
11445 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11446 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11448 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'
11450 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11451 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11452 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11453 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}'
11455 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}'
11457 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}'
11459 case $cc_basename in
11461 output_verbose_link_cmd='echo'
11462 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'
11463 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11464 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11465 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}'
11466 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}'
11476 case $cc_basename in
11478 # FIXME: insert proper C++ library support
11482 # Green Hills C++ Compiler
11483 # FIXME: insert proper C++ library support
11487 # FIXME: insert proper C++ library support
11493 # C++ shared libraries reported to be fairly broken before switch to ELF
11497 archive_cmds_need_lc_CXX=no
11499 freebsd* | dragonfly*)
11500 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11507 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11508 hardcode_libdir_separator_CXX=:
11509 export_dynamic_flag_spec_CXX='${wl}-E'
11510 hardcode_direct_CXX=yes
11511 hardcode_minus_L_CXX=yes # Not in the search PATH,
11512 # but as the default
11513 # location of the library.
11515 case $cc_basename in
11517 # FIXME: insert proper C++ library support
11521 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'
11522 # Commands to make compiler produce verbose output that lists
11523 # what "hidden" libraries, object files and flags are used when
11524 # linking a shared library.
11526 # There doesn't appear to be a way to prevent this compiler from
11527 # explicitly linking system object files so we need to strip them
11528 # from the output so that they don't get included in the library
11530 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'
11533 if test "$GXX" = yes; then
11534 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'
11536 # FIXME: insert proper C++ library support
11543 if test $with_gnu_ld = no; then
11544 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11545 hardcode_libdir_separator_CXX=:
11549 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11552 export_dynamic_flag_spec_CXX='${wl}-E'
11558 hardcode_direct_CXX=no
11559 hardcode_shlibpath_var_CXX=no
11562 hardcode_direct_CXX=yes
11563 hardcode_minus_L_CXX=yes # Not in the search PATH,
11564 # but as the default
11565 # location of the library.
11569 case $cc_basename in
11571 # FIXME: insert proper C++ library support
11577 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11580 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11583 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11586 # Commands to make compiler produce verbose output that lists
11587 # what "hidden" libraries, object files and flags are used when
11588 # linking a shared library.
11590 # There doesn't appear to be a way to prevent this compiler from
11591 # explicitly linking system object files so we need to strip them
11592 # from the output so that they don't get included in the library
11594 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'
11597 if test "$GXX" = yes; then
11598 if test $with_gnu_ld = no; then
11601 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11604 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11607 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'
11612 # FIXME: insert proper C++ library support
11619 hardcode_direct_CXX=no
11620 hardcode_shlibpath_var_CXX=no
11621 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11622 export_dynamic_flag_spec_CXX='${wl}-E'
11623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11624 # Instead, shared libraries are loaded at an image base (0x10000000 by
11625 # default) and relocated if they conflict, which is a slow very memory
11626 # consuming and fragmenting process. To avoid this, we pick a random,
11627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11629 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'
11630 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'
11633 case $cc_basename in
11636 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'
11638 # Archives containing C++ object files must be created using
11639 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11640 # necessary to make sure instantiated templates are included
11642 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11645 if test "$GXX" = yes; then
11646 if test "$with_gnu_ld" = no; then
11647 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'
11649 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'
11652 link_all_deplibs_CXX=yes
11655 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11656 hardcode_libdir_separator_CXX=:
11658 linux* | k*bsd*-gnu)
11659 case $cc_basename in
11661 # Kuck and Associates, Inc. (KAI) C++ Compiler
11663 # KCC will only create a shared library if the output file
11664 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11665 # to its proper name (with version) after linking.
11666 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'
11667 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'
11668 # Commands to make compiler produce verbose output that lists
11669 # what "hidden" libraries, object files and flags are used when
11670 # linking a shared library.
11672 # There doesn't appear to be a way to prevent this compiler from
11673 # explicitly linking system object files so we need to strip them
11674 # from the output so that they don't get included in the library
11676 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'
11678 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11681 # Archives containing C++ object files must be created using
11682 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11683 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11688 # version 8.0 and above of icpc choke on multiply defined symbols
11689 # if we add $predep_objects and $postdep_objects, however 7.1 and
11690 # earlier do not add the objects themselves.
11691 case `$CC -V 2>&1` in
11693 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11694 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'
11696 *) # Version 8.0 or newer
11699 ia64*) tmp_idyn=' -i_dynamic';;
11701 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11702 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'
11705 archive_cmds_need_lc_CXX=no
11706 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11708 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11711 # Portland Group C++ compiler
11712 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11713 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'
11715 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11717 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'
11721 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11722 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'
11724 runpath_var=LD_RUN_PATH
11725 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11726 hardcode_libdir_separator_CXX=:
11728 # Commands to make compiler produce verbose output that lists
11729 # what "hidden" libraries, object files and flags are used when
11730 # linking a shared library.
11732 # There doesn't appear to be a way to prevent this compiler from
11733 # explicitly linking system object files so we need to strip them
11734 # from the output so that they don't get included in the library
11736 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'
11741 # FIXME: insert proper C++ library support
11745 # FIXME: insert proper C++ library support
11749 case $cc_basename in
11751 # FIXME: insert proper C++ library support
11755 # FIXME: insert proper C++ library support
11760 netbsd* | netbsdelf*-gnu)
11761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11762 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11764 hardcode_libdir_flag_spec_CXX='-R$libdir'
11765 hardcode_direct_CXX=yes
11766 hardcode_shlibpath_var_CXX=no
11768 # Workaround some broken pre-1.5 toolchains
11769 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11772 # C++ shared libraries are fairly broken
11776 hardcode_direct_CXX=yes
11777 hardcode_shlibpath_var_CXX=no
11778 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11779 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11781 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11782 export_dynamic_flag_spec_CXX='${wl}-E'
11783 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11785 output_verbose_link_cmd='echo'
11788 case $cc_basename in
11790 # Kuck and Associates, Inc. (KAI) C++ Compiler
11792 # KCC will only create a shared library if the output file
11793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11794 # to its proper name (with version) after linking.
11795 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'
11797 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11798 hardcode_libdir_separator_CXX=:
11800 # Archives containing C++ object files must be created using
11801 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11802 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11806 # Rational C++ 2.4.1
11807 # FIXME: insert proper C++ library support
11811 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11812 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'
11814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11815 hardcode_libdir_separator_CXX=:
11817 # Commands to make compiler produce verbose output that lists
11818 # what "hidden" libraries, object files and flags are used when
11819 # linking a shared library.
11821 # There doesn't appear to be a way to prevent this compiler from
11822 # explicitly linking system object files so we need to strip them
11823 # from the output so that they don't get included in the library
11825 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'
11828 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11829 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11830 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'
11832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11833 hardcode_libdir_separator_CXX=:
11835 # Commands to make compiler produce verbose output that lists
11836 # what "hidden" libraries, object files and flags are used when
11837 # linking a shared library.
11838 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11841 # FIXME: insert proper C++ library support
11848 case $cc_basename in
11850 # Kuck and Associates, Inc. (KAI) C++ Compiler
11852 # KCC will only create a shared library if the output file
11853 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11854 # to its proper name (with version) after linking.
11855 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'
11857 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11858 hardcode_libdir_separator_CXX=:
11860 # Archives containing C++ object files must be created using
11861 # the KAI C++ compiler.
11862 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11865 # Rational C++ 2.4.1
11866 # FIXME: insert proper C++ library support
11870 allow_undefined_flag_CXX=' -expect_unresolved \*'
11871 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'
11872 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11873 echo "-hidden">> $lib.exp~
11874 $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~
11877 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11878 hardcode_libdir_separator_CXX=:
11880 # Commands to make compiler produce verbose output that lists
11881 # what "hidden" libraries, object files and flags are used when
11882 # linking a shared library.
11884 # There doesn't appear to be a way to prevent this compiler from
11885 # explicitly linking system object files so we need to strip them
11886 # from the output so that they don't get included in the library
11888 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'
11891 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11892 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11893 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'
11895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11896 hardcode_libdir_separator_CXX=:
11898 # Commands to make compiler produce verbose output that lists
11899 # what "hidden" libraries, object files and flags are used when
11900 # linking a shared library.
11901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11904 # FIXME: insert proper C++ library support
11911 # FIXME: insert proper C++ library support
11915 case $cc_basename in
11918 # FIXME: insert proper C++ library support
11923 # FIXME: insert proper C++ library support
11927 # FIXME: insert proper C++ library support
11933 case $cc_basename in
11935 # Sun C++ 4.2, 5.x and Centerline C++
11936 archive_cmds_need_lc_CXX=yes
11937 no_undefined_flag_CXX=' -zdefs'
11938 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11939 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11940 $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'
11942 hardcode_libdir_flag_spec_CXX='-R$libdir'
11943 hardcode_shlibpath_var_CXX=no
11945 solaris2.[0-5] | solaris2.[0-5].*) ;;
11947 # The C++ compiler is used as linker so we must use $wl
11948 # flag to pass the commands to the underlying system
11949 # linker. We must also pass each convience library through
11950 # to the system linker between allextract/defaultextract.
11951 # The C++ compiler will combine linker options so we
11952 # cannot just pass the convience library names through
11954 # Supported since Solaris 2.6 (maybe 2.5.1?)
11955 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'
11958 link_all_deplibs_CXX=yes
11960 output_verbose_link_cmd='echo'
11962 # Archives containing C++ object files must be created using
11963 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11964 # necessary to make sure instantiated templates are included
11966 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11969 # Green Hills C++ Compiler
11970 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11972 # The C++ compiler must be used to create the archive.
11973 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11976 # GNU C++ compiler with Solaris linker
11977 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11978 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11979 if $CC --version | grep -v '^2\.7' > /dev/null; then
11980 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11981 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11982 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11984 # Commands to make compiler produce verbose output that lists
11985 # what "hidden" libraries, object files and flags are used when
11986 # linking a shared library.
11987 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11989 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11991 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11992 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11993 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11995 # Commands to make compiler produce verbose output that lists
11996 # what "hidden" libraries, object files and flags are used when
11997 # linking a shared library.
11998 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12001 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12007 no_undefined_flag_CXX='${wl}-z,text'
12008 archive_cmds_need_lc_CXX=no
12009 hardcode_shlibpath_var_CXX=no
12010 runpath_var='LD_RUN_PATH'
12012 case $cc_basename in
12014 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12015 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12018 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12019 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12023 sysv5* | sco3.2v5* | sco5v6*)
12024 # Note: We can NOT use -z defs as we might desire, because we do not
12025 # link with -lc, and that would cause any symbols used from libc to
12026 # always be unresolved, which means just about no library would
12027 # ever link correctly. If we're not using GNU ld we use -z text
12028 # though, which does catch some bad symbols but isn't as heavy-handed
12030 # For security reasons, it is highly recommended that you always
12031 # use absolute paths for naming shared libraries, and exclude the
12032 # DT_RUNPATH tag from executables and libraries. But doing so
12033 # requires that you compile everything twice, which is a pain.
12034 # So that behaviour is only enabled if SCOABSPATH is set to a
12035 # non-empty value in the environment. Most likely only useful for
12036 # creating official distributions of packages.
12037 # This is a hack until libtool officially supports absolute path
12038 # names for shared libraries.
12039 no_undefined_flag_CXX='${wl}-z,text'
12040 allow_undefined_flag_CXX='${wl}-z,nodefs'
12041 archive_cmds_need_lc_CXX=no
12042 hardcode_shlibpath_var_CXX=no
12043 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12044 hardcode_libdir_separator_CXX=':'
12045 link_all_deplibs_CXX=yes
12046 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12047 runpath_var='LD_RUN_PATH'
12049 case $cc_basename in
12051 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12052 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12055 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12056 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12061 case $cc_basename in
12063 # NonStop-UX NCC 3.20
12064 # FIXME: insert proper C++ library support
12068 # FIXME: insert proper C++ library support
12074 # FIXME: insert proper C++ library support
12078 # FIXME: insert proper C++ library support
12082 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12083 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12084 test "$ld_shlibs_CXX" = no && can_build_shared=no
12090 cat > conftest.$ac_ext <<EOF
12094 Foo (void) { a = 0; }
12100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101 (eval $ac_compile) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; then
12105 # Parse the compiler output and extract the necessary
12106 # objects, libraries and library flags.
12108 # Sentinel used to keep track of whether or not we are before
12109 # the conftest object file.
12110 pre_test_object_deps_done=no
12112 # The `*' in the case matches for architectures that use `case' in
12113 # $output_verbose_cmd can trigger glob expansion during the loop
12114 # eval without this substitution.
12115 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12117 for p in `eval $output_verbose_link_cmd`; do
12121 # Some compilers place space between "-{L,R}" and the path.
12122 # Remove the space.
12123 if test $p = "-L" \
12124 || test $p = "-R"; then
12131 if test "$pre_test_object_deps_done" = no; then
12134 # Internal compiler library paths should come after those
12135 # provided the user. The postdeps already come after the
12136 # user supplied libs so there is no need to process them.
12137 if test -z "$compiler_lib_search_path_CXX"; then
12138 compiler_lib_search_path_CXX="${prev}${p}"
12140 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12143 # The "-l" case would never come before the object being
12144 # linked, so don't bother handling this case.
12147 if test -z "$postdeps_CXX"; then
12148 postdeps_CXX="${prev}${p}"
12150 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12156 # This assumes that the test object file only shows up
12157 # once in the compiler output.
12158 if test "$p" = "conftest.$objext"; then
12159 pre_test_object_deps_done=yes
12163 if test "$pre_test_object_deps_done" = no; then
12164 if test -z "$predep_objects_CXX"; then
12165 predep_objects_CXX="$p"
12167 predep_objects_CXX="$predep_objects_CXX $p"
12170 if test -z "$postdep_objects_CXX"; then
12171 postdep_objects_CXX="$p"
12173 postdep_objects_CXX="$postdep_objects_CXX $p"
12178 *) ;; # Ignore the rest.
12186 echo "libtool.m4: error: problem compiling CXX test program"
12189 $rm -f confest.$objext
12191 # PORTME: override above test on systems where it is broken
12194 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12195 # hack all around it, let's just trust "g++" to DTRT.
12196 predep_objects_CXX=
12197 postdep_objects_CXX=
12202 case $cc_basename in
12204 # Adding this requires a known-good setup of shared libraries for
12205 # Sun compiler versions before 5.6, else PIC objects from an old
12206 # archive will be linked into the output, leading to subtle bugs.
12207 postdeps_CXX='-lCstd -lCrun'
12214 case " $postdeps_CXX " in
12215 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12218 lt_prog_compiler_wl_CXX=
12219 lt_prog_compiler_pic_CXX=
12220 lt_prog_compiler_static_CXX=
12222 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12225 # C++ specific cases for pic, static, wl, etc.
12226 if test "$GXX" = yes; then
12227 lt_prog_compiler_wl_CXX='-Wl,'
12228 lt_prog_compiler_static_CXX='-static'
12232 # All AIX code is PIC.
12233 if test "$host_cpu" = ia64; then
12234 # AIX 5 now supports IA64 processor
12235 lt_prog_compiler_static_CXX='-Bstatic'
12239 # FIXME: we need at least 68020 code to build shared libraries, but
12240 # adding the `-m68020' flag to GCC prevents building anything better,
12242 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12244 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12245 # PIC is the default for these OSes.
12247 mingw* | os2* | pw32*)
12248 # This hack is so that the source file can tell whether it is being
12249 # built for inclusion in a dll (and should export symbols for example).
12250 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12252 darwin* | rhapsody*)
12253 # PIC is the default on this platform
12254 # Common symbols not allowed in MH_DYLIB files
12255 lt_prog_compiler_pic_CXX='-fno-common'
12258 # DJGPP does not support shared libraries at all
12259 lt_prog_compiler_pic_CXX=
12262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12263 # Instead, we relocate shared libraries at runtime.
12266 if test -d /usr/nec; then
12267 lt_prog_compiler_pic_CXX=-Kconform_pic
12271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12272 # not for PA HP-UX.
12277 lt_prog_compiler_pic_CXX='-fPIC'
12282 lt_prog_compiler_pic_CXX='-fPIC'
12288 # All AIX code is PIC.
12289 if test "$host_cpu" = ia64; then
12290 # AIX 5 now supports IA64 processor
12291 lt_prog_compiler_static_CXX='-Bstatic'
12293 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12297 case $cc_basename in
12299 # Green Hills C++ Compiler
12300 # _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"
12305 # PIC is the default on this platform
12306 # Common symbols not allowed in MH_DYLIB files
12307 case $cc_basename in
12309 lt_prog_compiler_pic_CXX='-qnocommon'
12310 lt_prog_compiler_wl_CXX='-Wl,'
12315 case $cc_basename in
12317 lt_prog_compiler_pic_CXX='-KPIC'
12320 # Green Hills C++ Compiler
12321 lt_prog_compiler_pic_CXX='-pic'
12327 freebsd* | dragonfly*)
12328 # FreeBSD uses GNU C++
12330 hpux9* | hpux10* | hpux11*)
12331 case $cc_basename in
12333 lt_prog_compiler_wl_CXX='-Wl,'
12334 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12335 if test "$host_cpu" != ia64; then
12336 lt_prog_compiler_pic_CXX='+Z'
12340 lt_prog_compiler_wl_CXX='-Wl,'
12341 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12347 lt_prog_compiler_pic_CXX='+Z'
12356 # This is c89, which is MS Visual C++ (no shared libs)
12357 # Anyone wants to do a port?
12359 irix5* | irix6* | nonstopux*)
12360 case $cc_basename in
12362 lt_prog_compiler_wl_CXX='-Wl,'
12363 lt_prog_compiler_static_CXX='-non_shared'
12364 # CC pic flag -KPIC is the default.
12370 linux* | k*bsd*-gnu)
12371 case $cc_basename in
12374 lt_prog_compiler_wl_CXX='--backend -Wl,'
12375 lt_prog_compiler_pic_CXX='-fPIC'
12379 lt_prog_compiler_wl_CXX='-Wl,'
12380 lt_prog_compiler_pic_CXX='-KPIC'
12381 lt_prog_compiler_static_CXX='-static'
12384 # Portland Group C++ compiler.
12385 lt_prog_compiler_wl_CXX='-Wl,'
12386 lt_prog_compiler_pic_CXX='-fpic'
12387 lt_prog_compiler_static_CXX='-Bstatic'
12391 # Make sure the PIC flag is empty. It appears that all Alpha
12392 # Linux and Compaq Tru64 Unix objects are PIC.
12393 lt_prog_compiler_pic_CXX=
12394 lt_prog_compiler_static_CXX='-non_shared'
12405 case $cc_basename in
12407 lt_prog_compiler_pic_CXX='-W c,exportall'
12413 netbsd* | netbsdelf*-gnu)
12415 osf3* | osf4* | osf5*)
12416 case $cc_basename in
12418 lt_prog_compiler_wl_CXX='--backend -Wl,'
12421 # Rational C++ 2.4.1
12422 lt_prog_compiler_pic_CXX='-pic'
12425 # Digital/Compaq C++
12426 lt_prog_compiler_wl_CXX='-Wl,'
12427 # Make sure the PIC flag is empty. It appears that all Alpha
12428 # Linux and Compaq Tru64 Unix objects are PIC.
12429 lt_prog_compiler_pic_CXX=
12430 lt_prog_compiler_static_CXX='-non_shared'
12439 case $cc_basename in
12441 # Sun C++ 4.2, 5.x and Centerline C++
12442 lt_prog_compiler_pic_CXX='-KPIC'
12443 lt_prog_compiler_static_CXX='-Bstatic'
12444 lt_prog_compiler_wl_CXX='-Qoption ld '
12447 # Green Hills C++ Compiler
12448 lt_prog_compiler_pic_CXX='-PIC'
12455 case $cc_basename in
12458 lt_prog_compiler_pic_CXX='-pic'
12459 lt_prog_compiler_static_CXX='-Bstatic'
12463 lt_prog_compiler_pic_CXX='-pic'
12470 case $cc_basename in
12472 # NonStop-UX NCC 3.20
12473 lt_prog_compiler_pic_CXX='-KPIC'
12479 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12480 case $cc_basename in
12482 lt_prog_compiler_wl_CXX='-Wl,'
12483 lt_prog_compiler_pic_CXX='-KPIC'
12484 lt_prog_compiler_static_CXX='-Bstatic'
12491 lt_prog_compiler_can_build_shared_CXX=no
12496 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12497 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12500 # Check to make sure the PIC flag actually works.
12502 if test -n "$lt_prog_compiler_pic_CXX"; then
12504 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12505 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12506 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 lt_prog_compiler_pic_works_CXX=no
12510 ac_outfile=conftest.$ac_objext
12511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12512 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12513 # Insert the option either (1) after the last *FLAGS variable, or
12514 # (2) before a word containing "conftest.", or (3) at the end.
12515 # Note that $ac_compile itself does not contain backslashes and begins
12516 # with a dollar sign (not a hyphen), so the echo should work correctly.
12517 # The option is referenced via a variable to avoid confusing sed.
12518 lt_compile=`echo "$ac_compile" | $SED \
12519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12521 -e 's:$: $lt_compiler_flag:'`
12522 (eval echo "\"\$as_me:12522: $lt_compile\"" >&5)
12523 (eval "$lt_compile" 2>conftest.err)
12525 cat conftest.err >&5
12526 echo "$as_me:12526: \$? = $ac_status" >&5
12527 if (exit $ac_status) && test -s "$ac_outfile"; then
12528 # The compiler can only warn and ignore the option if not recognized
12529 # So say no if there are warnings other than the usual output.
12530 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12532 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12533 lt_prog_compiler_pic_works_CXX=yes
12539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12540 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12542 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12543 case $lt_prog_compiler_pic_CXX in
12545 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12548 lt_prog_compiler_pic_CXX=
12549 lt_prog_compiler_can_build_shared_CXX=no
12554 # For platforms which do not support PIC, -DPIC is meaningless:
12556 lt_prog_compiler_pic_CXX=
12559 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12564 # Check to make sure the static flag actually works.
12566 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12567 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12568 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12569 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 lt_prog_compiler_static_works_CXX=no
12573 save_LDFLAGS="$LDFLAGS"
12574 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12575 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12576 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12577 # The linker can only warn and ignore the option if not recognized
12578 # So say no if there are warnings
12579 if test -s conftest.err; then
12580 # Append any errors to the config.log.
12581 cat conftest.err 1>&5
12582 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12584 if diff conftest.exp conftest.er2 >/dev/null; then
12585 lt_prog_compiler_static_works_CXX=yes
12588 lt_prog_compiler_static_works_CXX=yes
12592 LDFLAGS="$save_LDFLAGS"
12595 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12596 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12598 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12601 lt_prog_compiler_static_CXX=
12605 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12606 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12607 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 lt_cv_prog_compiler_c_o_CXX=no
12611 $rm -r conftest 2>/dev/null
12615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12617 lt_compiler_flag="-o out/conftest2.$ac_objext"
12618 # Insert the option either (1) after the last *FLAGS variable, or
12619 # (2) before a word containing "conftest.", or (3) at the end.
12620 # Note that $ac_compile itself does not contain backslashes and begins
12621 # with a dollar sign (not a hyphen), so the echo should work correctly.
12622 lt_compile=`echo "$ac_compile" | $SED \
12623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12625 -e 's:$: $lt_compiler_flag:'`
12626 (eval echo "\"\$as_me:12626: $lt_compile\"" >&5)
12627 (eval "$lt_compile" 2>out/conftest.err)
12629 cat out/conftest.err >&5
12630 echo "$as_me:12630: \$? = $ac_status" >&5
12631 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12633 # The compiler can only warn and ignore the option if not recognized
12634 # So say no if there are warnings
12635 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12636 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12637 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12638 lt_cv_prog_compiler_c_o_CXX=yes
12643 # SGI C++ compiler will create directory out/ii_files/ for
12644 # template instantiation
12645 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12646 $rm out/* && rmdir out
12652 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12653 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12656 hard_links="nottested"
12657 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12658 # do not overwrite the value of need_locks provided by the user
12659 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12660 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12665 ln conftest.a conftest.b 2>&5 || hard_links=no
12666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12667 { echo "$as_me:$LINENO: result: $hard_links" >&5
12668 echo "${ECHO_T}$hard_links" >&6; }
12669 if test "$hard_links" = no; then
12670 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12671 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12678 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12679 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12681 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12684 # If we're using GNU nm, then we don't want the "-C" option.
12685 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12686 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12687 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'
12689 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'
12693 export_symbols_cmds_CXX="$ltdll_cmds"
12696 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'
12698 linux* | k*bsd*-gnu)
12699 link_all_deplibs_CXX=no
12702 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12706 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12707 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12708 test "$ld_shlibs_CXX" = no && can_build_shared=no
12711 # Do we need to explicitly link libc?
12713 case "x$archive_cmds_need_lc_CXX" in
12715 # Assume -lc should be added
12716 archive_cmds_need_lc_CXX=yes
12718 if test "$enable_shared" = yes && test "$GCC" = yes; then
12719 case $archive_cmds_CXX in
12721 # FIXME: we may have to deal with multi-command sequences.
12724 # Test whether the compiler implicitly links with -lc since on some
12725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12726 # to ld, don't add -lc before -lgcc.
12727 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } 2>conftest.err; then
12739 libobjs=conftest.$ac_objext
12741 wl=$lt_prog_compiler_wl_CXX
12742 pic_flag=$lt_prog_compiler_pic_CXX
12748 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12749 allow_undefined_flag_CXX=
12750 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12751 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }
12756 archive_cmds_need_lc_CXX=no
12758 archive_cmds_need_lc_CXX=yes
12760 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12762 cat conftest.err 1>&5
12765 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12766 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12773 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12775 library_names_spec=
12776 libname_spec='lib$name'
12780 postuninstall_cmds=
12784 shlibpath_overrides_runpath=unknown
12786 dynamic_linker="$host_os ld.so"
12787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12788 if test "$GCC" = yes; then
12789 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12790 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12791 # if the path contains ";" then we assume it to be the separator
12792 # otherwise default to the standard path separator (i.e. ":") - it is
12793 # assumed that no part of a normal pathname contains ";" but that should
12794 # okay in the real world where ";" in dirpaths is itself problematic.
12795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12802 need_lib_prefix=unknown
12803 hardcode_into_libs=no
12805 # when you set need_version to no, make sure it does not cause -set_version
12806 # flags to be left without arguments
12807 need_version=unknown
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12813 shlibpath_var=LIBPATH
12815 # AIX 3 has no versioning support, so we append a major version to the name.
12816 soname_spec='${libname}${release}${shared_ext}$major'
12823 hardcode_into_libs=yes
12824 if test "$host_cpu" = ia64; then
12825 # AIX 5 supports IA64
12826 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12827 shlibpath_var=LD_LIBRARY_PATH
12829 # With GCC up to 2.95.x, collect2 would create an import file
12830 # for dependence libraries. The import file would start with
12831 # the line `#! .'. This would cause the generated library to
12832 # depend on `.', always an invalid library. This was fixed in
12833 # development snapshots of GCC prior to 3.0.
12835 aix4 | aix4.[01] | aix4.[01].*)
12836 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12838 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12841 can_build_shared=no
12845 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12846 # soname into executable. Probably we can add versioning support to
12847 # collect2, so additional links can be useful in future.
12848 if test "$aix_use_runtimelinking" = yes; then
12849 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12850 # instead of lib<name>.a to let people know that these are not
12851 # typical AIX shared libraries.
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854 # We preserve .a as extension for shared libraries through AIX4.2
12855 # and later when we are not doing run time linking.
12856 library_names_spec='${libname}${release}.a $libname.a'
12857 soname_spec='${libname}${release}${shared_ext}$major'
12859 shlibpath_var=LIBPATH
12864 library_names_spec='$libname.ixlibrary $libname.a'
12865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12866 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'
12870 library_names_spec='${libname}${shared_ext}'
12871 dynamic_linker="$host_os ld.so"
12872 shlibpath_var=LIBRARY_PATH
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12879 soname_spec='${libname}${release}${shared_ext}$major'
12880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12881 shlibpath_var=LD_LIBRARY_PATH
12882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12884 # the default ld.so.conf also contains /usr/contrib/lib and
12885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12886 # libtool to hard-code these into programs
12889 cygwin* | mingw* | pw32*)
12890 version_type=windows
12895 case $GCC,$host_os in
12896 yes,cygwin* | yes,mingw* | yes,pw32*)
12897 library_names_spec='$libname.dll.a'
12898 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12899 postinstall_cmds='base_file=`basename \${file}`~
12900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12901 dldir=$destdir/`dirname \$dlpath`~
12902 test -d \$dldir || mkdir -p \$dldir~
12903 $install_prog $dir/$dlname \$dldir/$dlname~
12904 chmod a+x \$dldir/$dlname'
12905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12906 dlpath=$dir/\$dldll~
12908 shlibpath_overrides_runpath=yes
12912 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12913 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12914 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12917 # MinGW DLLs use traditional 'lib' prefix
12918 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12919 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12920 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12921 # It is most probably a Windows format PATH printed by
12922 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12923 # path with ; separators, and with drive letters. We can handle the
12924 # drive letters (cygwin fileutils understands them), so leave them,
12925 # especially as we might pass files found there to a mingw objdump,
12926 # which wouldn't understand a cygwinified path. Ahh.
12927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12929 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12933 # pw32 DLLs use 'pw' prefix rather than 'lib'
12934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12940 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12943 dynamic_linker='Win32 ld.exe'
12944 # FIXME: first we should search . and the directory the executable is in
12948 darwin* | rhapsody*)
12949 dynamic_linker="$host_os dyld"
12950 version_type=darwin
12953 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12954 soname_spec='${libname}${release}${major}$shared_ext'
12955 shlibpath_overrides_runpath=yes
12956 shlibpath_var=DYLD_LIBRARY_PATH
12957 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12958 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12959 if test "$GCC" = yes; then
12960 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"`
12962 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12972 soname_spec='${libname}${release}${shared_ext}$major'
12973 shlibpath_var=LD_LIBRARY_PATH
12980 freebsd* | dragonfly*)
12981 # DragonFly does not have aout. When/if they implement a new
12982 # versioning mechanism, adjust this.
12983 if test -x /usr/bin/objformat; then
12984 objformat=`/usr/bin/objformat`
12987 freebsd[123]*) objformat=aout ;;
12988 *) objformat=elf ;;
12991 version_type=freebsd-$objformat
12992 case $version_type in
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13003 shlibpath_var=LD_LIBRARY_PATH
13006 shlibpath_overrides_runpath=yes
13008 freebsd3.[01]* | freebsdelf3.[01]*)
13009 shlibpath_overrides_runpath=yes
13010 hardcode_into_libs=yes
13012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13014 shlibpath_overrides_runpath=no
13015 hardcode_into_libs=yes
13017 freebsd*) # from 4.6 on
13018 shlibpath_overrides_runpath=yes
13019 hardcode_into_libs=yes
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13029 soname_spec='${libname}${release}${shared_ext}$major'
13030 shlibpath_var=LD_LIBRARY_PATH
13031 hardcode_into_libs=yes
13034 hpux9* | hpux10* | hpux11*)
13035 # Give a soname corresponding to the major version so that dld.sl refuses to
13036 # link against other versions.
13043 hardcode_into_libs=yes
13044 dynamic_linker="$host_os dld.so"
13045 shlibpath_var=LD_LIBRARY_PATH
13046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 if test "X$HPUX_IA64_MODE" = X32; then
13050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13058 hardcode_into_libs=yes
13059 dynamic_linker="$host_os dld.sl"
13060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13063 soname_spec='${libname}${release}${shared_ext}$major'
13064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13069 dynamic_linker="$host_os dld.sl"
13070 shlibpath_var=SHLIB_PATH
13071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13077 postinstall_cmds='chmod 555 $lib'
13084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13085 soname_spec='${libname}${release}${shared_ext}$major'
13086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13087 shlibpath_var=LD_LIBRARY_PATH
13088 shlibpath_overrides_runpath=no
13089 hardcode_into_libs=yes
13092 irix5* | irix6* | nonstopux*)
13094 nonstopux*) version_type=nonstopux ;;
13096 if test "$lt_cv_prog_gnu_ld" = yes; then
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13107 irix5* | nonstopux*)
13108 libsuff= shlibsuff=
13111 case $LD in # libtool.m4 will add one of these switches to LD
13112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13113 libsuff= shlibsuff= libmagic=32-bit;;
13114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13115 libsuff=32 shlibsuff=N32 libmagic=N32;;
13116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13118 *) libsuff= shlibsuff= libmagic=never-match;;
13122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13123 shlibpath_overrides_runpath=no
13124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13126 hardcode_into_libs=yes
13129 # No shared lib support for Linux oldld, aout, or coff.
13130 linux*oldld* | linux*aout* | linux*coff*)
13134 # This must be Linux ELF.
13135 linux* | k*bsd*-gnu)
13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140 soname_spec='${libname}${release}${shared_ext}$major'
13141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 shlibpath_overrides_runpath=no
13144 # This implies no fast_install, which is unacceptable.
13145 # Some rework will be needed to allow for fast_install
13146 # before this can be enabled.
13147 hardcode_into_libs=yes
13149 # Append ld.so.conf contents to the search path
13150 if test -f /etc/ld.so.conf; then
13151 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' ' '`
13152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13155 # We used to test for /lib/ld.so.1 and disable shared libraries on
13156 # powerpc, because MkLinux only supported shared libraries with the
13157 # GNU dynamic linker. Since this was broken with cross compilers,
13158 # most powerpc-linux boxes support dynamic linking these days and
13159 # people can always --disable-shared, the test was removed, and we
13160 # assume the GNU/Linux dynamic linker is in use.
13161 dynamic_linker='GNU/Linux ld.so'
13168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13169 soname_spec='${libname}${release}${shared_ext}$major'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 shlibpath_overrides_runpath=no
13172 hardcode_into_libs=yes
13173 dynamic_linker='NetBSD ld.elf_so'
13180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13183 dynamic_linker='NetBSD (a.out) ld.so'
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 dynamic_linker='NetBSD ld.elf_so'
13189 shlibpath_var=LD_LIBRARY_PATH
13190 shlibpath_overrides_runpath=yes
13191 hardcode_into_libs=yes
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 shlibpath_var=LD_LIBRARY_PATH
13198 shlibpath_overrides_runpath=yes
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206 soname_spec='${libname}${release}${shared_ext}$major'
13207 shlibpath_var=LD_LIBRARY_PATH
13208 shlibpath_overrides_runpath=yes
13213 sys_lib_dlsearch_path_spec="/usr/lib"
13215 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13217 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13218 *) need_version=no ;;
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13225 openbsd2.[89] | openbsd2.[89].*)
13226 shlibpath_overrides_runpath=no
13229 shlibpath_overrides_runpath=yes
13233 shlibpath_overrides_runpath=yes
13238 libname_spec='$name'
13241 library_names_spec='$libname${shared_ext} $libname.a'
13242 dynamic_linker='OS/2 ld.exe'
13243 shlibpath_var=LIBPATH
13246 osf3* | osf4* | osf5*)
13250 soname_spec='${libname}${release}${shared_ext}$major'
13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13254 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13262 soname_spec='${libname}${release}${shared_ext}$major'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=yes
13265 hardcode_into_libs=yes
13266 # ldd complains unless libraries are executable
13267 postinstall_cmds='chmod +x $lib'
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13273 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13274 shlibpath_var=LD_LIBRARY_PATH
13275 shlibpath_overrides_runpath=yes
13276 if test "$with_gnu_ld" = yes; then
13284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13285 soname_spec='${libname}${release}${shared_ext}$major'
13286 shlibpath_var=LD_LIBRARY_PATH
13287 case $host_vendor in
13289 shlibpath_overrides_runpath=no
13291 export_dynamic_flag_spec='${wl}-Blargedynsym'
13292 runpath_var=LD_RUN_PATH
13300 shlibpath_overrides_runpath=no
13301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13307 if test -d /usr/nec ;then
13309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13310 soname_spec='$libname${shared_ext}.$major'
13311 shlibpath_var=LD_LIBRARY_PATH
13315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13316 version_type=freebsd-elf
13319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13321 shlibpath_var=LD_LIBRARY_PATH
13322 hardcode_into_libs=yes
13323 if test "$with_gnu_ld" = yes; then
13324 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13325 shlibpath_overrides_runpath=no
13327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13328 shlibpath_overrides_runpath=yes
13331 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13335 sys_lib_dlsearch_path_spec='/usr/lib'
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 shlibpath_var=LD_LIBRARY_PATH
13349 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13350 echo "${ECHO_T}$dynamic_linker" >&6; }
13351 test "$dynamic_linker" = no && can_build_shared=no
13353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13354 if test "$GCC" = yes; then
13355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13358 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13360 hardcode_action_CXX=
13361 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13362 test -n "$runpath_var_CXX" || \
13363 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13365 # We can hardcode non-existant directories.
13366 if test "$hardcode_direct_CXX" != no &&
13367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13368 # have to relink, otherwise we might link with an installed library
13369 # when we should be linking with a yet-to-be-installed one
13370 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13371 test "$hardcode_minus_L_CXX" != no; then
13372 # Linking always hardcodes the temporary library directory.
13373 hardcode_action_CXX=relink
13375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13376 hardcode_action_CXX=immediate
13379 # We cannot hardcode anything, or else we can only hardcode existing
13381 hardcode_action_CXX=unsupported
13383 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13384 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13386 if test "$hardcode_action_CXX" = relink; then
13387 # Fast installation is not supported
13388 enable_fast_install=no
13389 elif test "$shlibpath_overrides_runpath" = yes ||
13390 test "$enable_shared" = no; then
13391 # Fast installation is not necessary
13392 enable_fast_install=needless
13396 # The else clause should only fire when bootstrapping the
13397 # libtool distribution, otherwise you forgot to ship ltmain.sh
13398 # with your package, and you will get complaints that there are
13399 # no rules to generate ltmain.sh.
13400 if test -f "$ltmain"; then
13401 # See if we are running on zsh, and set the options which allow our commands through
13402 # without removal of \ escapes.
13403 if test -n "${ZSH_VERSION+set}" ; then
13404 setopt NO_GLOB_SUBST
13406 # Now quote all the things that may contain metacharacters while being
13407 # careful not to overquote the AC_SUBSTed values. We take copies of the
13408 # variables and quote the copies for generation of the libtool script.
13409 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13411 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13412 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13413 deplibs_check_method reload_flag reload_cmds need_locks \
13414 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13415 lt_cv_sys_global_symbol_to_c_name_address \
13416 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13417 old_postinstall_cmds old_postuninstall_cmds \
13421 lt_prog_compiler_wl_CXX \
13422 lt_prog_compiler_pic_CXX \
13423 lt_prog_compiler_static_CXX \
13424 lt_prog_compiler_no_builtin_flag_CXX \
13425 export_dynamic_flag_spec_CXX \
13426 thread_safe_flag_spec_CXX \
13427 whole_archive_flag_spec_CXX \
13428 enable_shared_with_static_runtimes_CXX \
13429 old_archive_cmds_CXX \
13430 old_archive_from_new_cmds_CXX \
13431 predep_objects_CXX \
13432 postdep_objects_CXX \
13435 compiler_lib_search_path_CXX \
13437 archive_expsym_cmds_CXX \
13438 postinstall_cmds_CXX \
13439 postuninstall_cmds_CXX \
13440 old_archive_from_expsyms_cmds_CXX \
13441 allow_undefined_flag_CXX \
13442 no_undefined_flag_CXX \
13443 export_symbols_cmds_CXX \
13444 hardcode_libdir_flag_spec_CXX \
13445 hardcode_libdir_flag_spec_ld_CXX \
13446 hardcode_libdir_separator_CXX \
13447 hardcode_automatic_CXX \
13449 module_expsym_cmds_CXX \
13450 lt_cv_prog_compiler_c_o_CXX \
13451 exclude_expsyms_CXX \
13452 include_expsyms_CXX; do
13455 old_archive_cmds_CXX | \
13456 old_archive_from_new_cmds_CXX | \
13457 archive_cmds_CXX | \
13458 archive_expsym_cmds_CXX | \
13459 module_cmds_CXX | \
13460 module_expsym_cmds_CXX | \
13461 old_archive_from_expsyms_cmds_CXX | \
13462 export_symbols_cmds_CXX | \
13463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13464 postinstall_cmds | postuninstall_cmds | \
13465 old_postinstall_cmds | old_postuninstall_cmds | \
13466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13467 # Double-quote double-evaled strings.
13468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13477 *'\$0 --fallback-echo"')
13478 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13484 cat <<__EOF__ >> "$cfgfile"
13485 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13489 # Shell to use when invoking shell scripts.
13492 # Whether or not to build shared libraries.
13493 build_libtool_libs=$enable_shared
13495 # Whether or not to build static libraries.
13496 build_old_libs=$enable_static
13498 # Whether or not to add -lc for building shared libraries.
13499 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13501 # Whether or not to disallow shared libs when runtime libs are static
13502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13504 # Whether or not to optimize for fast installation.
13505 fast_install=$enable_fast_install
13508 host_alias=$host_alias
13512 # The build system.
13513 build_alias=$build_alias
13517 # An echo program that does not interpret backslashes.
13522 AR_FLAGS=$lt_AR_FLAGS
13527 # LTCC compiler flags.
13528 LTCFLAGS=$lt_LTCFLAGS
13530 # A language-specific compiler.
13531 CC=$lt_compiler_CXX
13533 # Is the compiler the GNU C compiler?
13539 # The linker used to build libraries.
13542 # Whether we need hard or soft links.
13545 # A BSD-compatible nm program.
13548 # A symbol stripping program
13551 # Used to examine libraries when file_magic_cmd begins "file"
13552 MAGIC_CMD=$MAGIC_CMD
13554 # Used on cygwin: DLL creation program.
13557 # Used on cygwin: object dumper.
13560 # Used on cygwin: assembler.
13563 # The name of the directory that contains temporary libtool files.
13566 # How to create reloadable object files.
13567 reload_flag=$lt_reload_flag
13568 reload_cmds=$lt_reload_cmds
13570 # How to pass a linker flag through the compiler.
13571 wl=$lt_lt_prog_compiler_wl_CXX
13573 # Object file suffix (normally "o").
13574 objext="$ac_objext"
13576 # Old archive suffix (normally "a").
13579 # Shared library suffix (normally ".so").
13580 shrext_cmds='$shrext_cmds'
13582 # Executable file suffix (normally "").
13585 # Additional compiler flags for building library objects.
13586 pic_flag=$lt_lt_prog_compiler_pic_CXX
13589 # What is the maximum length of a command?
13590 max_cmd_len=$lt_cv_sys_max_cmd_len
13592 # Does compiler simultaneously support -c and -o options?
13593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13595 # Must we lock files when doing compilation?
13596 need_locks=$lt_need_locks
13598 # Do we need the lib prefix for modules?
13599 need_lib_prefix=$need_lib_prefix
13601 # Do we need a version for libraries?
13602 need_version=$need_version
13604 # Whether dlopen is supported.
13605 dlopen_support=$enable_dlopen
13607 # Whether dlopen of programs is supported.
13608 dlopen_self=$enable_dlopen_self
13610 # Whether dlopen of statically linked programs is supported.
13611 dlopen_self_static=$enable_dlopen_self_static
13613 # Compiler flag to prevent dynamic linking.
13614 link_static_flag=$lt_lt_prog_compiler_static_CXX
13616 # Compiler flag to turn off builtin functions.
13617 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13619 # Compiler flag to allow reflexive dlopens.
13620 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13622 # Compiler flag to generate shared objects directly from archives.
13623 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13625 # Compiler flag to generate thread-safe objects.
13626 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13628 # Library versioning type.
13629 version_type=$version_type
13631 # Format of library name prefix.
13632 libname_spec=$lt_libname_spec
13634 # List of archive names. First name is the real one, the rest are links.
13635 # The last name is the one that the linker finds with -lNAME.
13636 library_names_spec=$lt_library_names_spec
13638 # The coded name of the library, if different from the real name.
13639 soname_spec=$lt_soname_spec
13641 # Commands used to build and install an old-style archive.
13643 old_archive_cmds=$lt_old_archive_cmds_CXX
13644 old_postinstall_cmds=$lt_old_postinstall_cmds
13645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13647 # Create an old-style archive from a shared archive.
13648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13650 # Create a temporary old-style archive to link instead of a shared archive.
13651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13653 # Commands used to build and install a shared archive.
13654 archive_cmds=$lt_archive_cmds_CXX
13655 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13656 postinstall_cmds=$lt_postinstall_cmds
13657 postuninstall_cmds=$lt_postuninstall_cmds
13659 # Commands used to build a loadable module (assumed same as above if empty)
13660 module_cmds=$lt_module_cmds_CXX
13661 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13663 # Commands to strip libraries.
13664 old_striplib=$lt_old_striplib
13665 striplib=$lt_striplib
13667 # Dependencies to place before the objects being linked to create a
13669 predep_objects=$lt_predep_objects_CXX
13671 # Dependencies to place after the objects being linked to create a
13673 postdep_objects=$lt_postdep_objects_CXX
13675 # Dependencies to place before the objects being linked to create a
13677 predeps=$lt_predeps_CXX
13679 # Dependencies to place after the objects being linked to create a
13681 postdeps=$lt_postdeps_CXX
13683 # The library search path used internally by the compiler when linking
13684 # a shared library.
13685 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13687 # Method to check whether dependent libraries are shared objects.
13688 deplibs_check_method=$lt_deplibs_check_method
13690 # Command to use when deplibs_check_method == file_magic.
13691 file_magic_cmd=$lt_file_magic_cmd
13693 # Flag that allows shared libraries with undefined symbols to be built.
13694 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13696 # Flag that forces no undefined symbols.
13697 no_undefined_flag=$lt_no_undefined_flag_CXX
13699 # Commands used to finish a libtool library installation in a directory.
13700 finish_cmds=$lt_finish_cmds
13702 # Same as above, but a single script fragment to be evaled but not shown.
13703 finish_eval=$lt_finish_eval
13705 # Take the output of nm and produce a listing of raw symbols and C names.
13706 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13708 # Transform the output of nm in a proper C declaration
13709 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13711 # Transform the output of nm in a C name address pair
13712 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13714 # This is the shared library runtime path variable.
13715 runpath_var=$runpath_var
13717 # This is the shared library path variable.
13718 shlibpath_var=$shlibpath_var
13720 # Is shlibpath searched before the hard-coded library search path?
13721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13723 # How to hardcode a shared library path into an executable.
13724 hardcode_action=$hardcode_action_CXX
13726 # Whether we should hardcode library paths into libraries.
13727 hardcode_into_libs=$hardcode_into_libs
13729 # Flag to hardcode \$libdir into a binary during linking.
13730 # This must work even if \$libdir does not exist.
13731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13733 # If ld is used when linking, flag to hardcode \$libdir into
13734 # a binary during linking. This must work even if \$libdir does
13736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13738 # Whether we need a single -rpath flag with a separated argument.
13739 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13741 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13742 # resulting binary.
13743 hardcode_direct=$hardcode_direct_CXX
13745 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13746 # resulting binary.
13747 hardcode_minus_L=$hardcode_minus_L_CXX
13749 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13750 # the resulting binary.
13751 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13753 # Set to yes if building a shared library automatically hardcodes DIR into the library
13754 # and all subsequent libraries and executables linked against it.
13755 hardcode_automatic=$hardcode_automatic_CXX
13757 # Variables whose values should be saved in libtool wrapper scripts and
13758 # restored at relink time.
13759 variables_saved_for_relink="$variables_saved_for_relink"
13761 # Whether libtool must link a program against all its dependency libraries.
13762 link_all_deplibs=$link_all_deplibs_CXX
13764 # Compile-time system search path for libraries
13765 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13767 # Run-time system search path for libraries
13768 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13770 # Fix the shell variable \$srcfile for the compiler.
13771 fix_srcfile_path="$fix_srcfile_path_CXX"
13773 # Set to yes if exported symbols are required.
13774 always_export_symbols=$always_export_symbols_CXX
13776 # The commands to list exported symbols.
13777 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13779 # The commands to extract the exported symbol list from a shared archive.
13780 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13782 # Symbols that should not be listed in the preloaded symbols.
13783 exclude_expsyms=$lt_exclude_expsyms_CXX
13785 # Symbols that must always be exported.
13786 include_expsyms=$lt_include_expsyms_CXX
13788 # ### END LIBTOOL TAG CONFIG: $tagname
13794 # If there is no Makefile yet, we rely on a make rule to execute
13795 # `config.status --recheck' to rerun these tests and create the
13796 # libtool script then.
13797 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13798 if test -f "$ltmain_in"; then
13799 test -f Makefile && make "$ltmain"
13805 ac_cpp='$CPP $CPPFLAGS'
13806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13814 with_gnu_ldcxx=$with_gnu_ld
13815 with_gnu_ld=$lt_save_with_gnu_ld
13816 lt_cv_path_LDCXX=$lt_cv_path_LD
13817 lt_cv_path_LD=$lt_save_path_LD
13818 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13819 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13827 if test -n "$F77" && test "X$F77" != "Xno"; then
13830 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13831 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13835 archive_cmds_need_lc_F77=no
13836 allow_undefined_flag_F77=
13837 always_export_symbols_F77=no
13838 archive_expsym_cmds_F77=
13839 export_dynamic_flag_spec_F77=
13840 hardcode_direct_F77=no
13841 hardcode_libdir_flag_spec_F77=
13842 hardcode_libdir_flag_spec_ld_F77=
13843 hardcode_libdir_separator_F77=
13844 hardcode_minus_L_F77=no
13845 hardcode_automatic_F77=no
13847 module_expsym_cmds_F77=
13848 link_all_deplibs_F77=unknown
13849 old_archive_cmds_F77=$old_archive_cmds
13850 no_undefined_flag_F77=
13851 whole_archive_flag_spec_F77=
13852 enable_shared_with_static_runtimes_F77=no
13854 # Source file extension for f77 test sources.
13857 # Object file extension for compiled f77 test sources.
13861 # Code to be used in simple compile tests
13862 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13864 # Code to be used in simple link tests
13865 lt_simple_link_test_code=" program t\n end\n"
13867 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13869 # If no C compiler was specified, use CC.
13872 # If no C compiler flags were specified, use CFLAGS.
13873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13875 # Allow CC to be a program name with arguments.
13879 # save warnings/boilerplate of simple test code
13880 ac_outfile=conftest.$ac_objext
13881 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13883 _lt_compiler_boilerplate=`cat conftest.err`
13886 ac_outfile=conftest.$ac_objext
13887 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13889 _lt_linker_boilerplate=`cat conftest.err`
13893 # Allow CC to be a program name with arguments.
13898 for cc_temp in $compiler""; do
13900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13906 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13909 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13910 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13911 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13912 echo "${ECHO_T}$can_build_shared" >&6; }
13914 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13915 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13916 test "$can_build_shared" = "no" && enable_shared=no
13918 # On AIX, shared libraries and static libraries use the same namespace, and
13919 # are all built from PIC.
13922 test "$enable_shared" = yes && enable_static=no
13923 if test -n "$RANLIB"; then
13924 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13925 postinstall_cmds='$RANLIB $lib'
13929 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13930 test "$enable_shared" = yes && enable_static=no
13934 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13935 echo "${ECHO_T}$enable_shared" >&6; }
13937 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13938 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13939 # Make sure either enable_shared or enable_static is yes.
13940 test "$enable_shared" = yes || enable_static=yes
13941 { echo "$as_me:$LINENO: result: $enable_static" >&5
13942 echo "${ECHO_T}$enable_static" >&6; }
13947 lt_prog_compiler_wl_F77=
13948 lt_prog_compiler_pic_F77=
13949 lt_prog_compiler_static_F77=
13951 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13952 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13954 if test "$GCC" = yes; then
13955 lt_prog_compiler_wl_F77='-Wl,'
13956 lt_prog_compiler_static_F77='-static'
13960 # All AIX code is PIC.
13961 if test "$host_cpu" = ia64; then
13962 # AIX 5 now supports IA64 processor
13963 lt_prog_compiler_static_F77='-Bstatic'
13968 # FIXME: we need at least 68020 code to build shared libraries, but
13969 # adding the `-m68020' flag to GCC prevents building anything better,
13971 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13974 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13975 # PIC is the default for these OSes.
13978 mingw* | pw32* | os2*)
13979 # This hack is so that the source file can tell whether it is being
13980 # built for inclusion in a dll (and should export symbols for example).
13981 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13984 darwin* | rhapsody*)
13985 # PIC is the default on this platform
13986 # Common symbols not allowed in MH_DYLIB files
13987 lt_prog_compiler_pic_F77='-fno-common'
13991 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13992 # Instead, we relocate shared libraries at runtime.
13996 # Just because we use GCC doesn't mean we suddenly get shared libraries
13997 # on systems that don't support them.
13998 lt_prog_compiler_can_build_shared_F77=no
14003 if test -d /usr/nec; then
14004 lt_prog_compiler_pic_F77=-Kconform_pic
14009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14010 # not for PA HP-UX.
14016 lt_prog_compiler_pic_F77='-fPIC'
14022 lt_prog_compiler_pic_F77='-fPIC'
14026 # PORTME Check for flag to pass linker flags through the system compiler.
14029 lt_prog_compiler_wl_F77='-Wl,'
14030 if test "$host_cpu" = ia64; then
14031 # AIX 5 now supports IA64 processor
14032 lt_prog_compiler_static_F77='-Bstatic'
14034 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14038 # PIC is the default on this platform
14039 # Common symbols not allowed in MH_DYLIB files
14040 case $cc_basename in
14042 lt_prog_compiler_pic_F77='-qnocommon'
14043 lt_prog_compiler_wl_F77='-Wl,'
14048 mingw* | pw32* | os2*)
14049 # This hack is so that the source file can tell whether it is being
14050 # built for inclusion in a dll (and should export symbols for example).
14051 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14054 hpux9* | hpux10* | hpux11*)
14055 lt_prog_compiler_wl_F77='-Wl,'
14056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14057 # not for PA HP-UX.
14063 lt_prog_compiler_pic_F77='+Z'
14066 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14067 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14070 irix5* | irix6* | nonstopux*)
14071 lt_prog_compiler_wl_F77='-Wl,'
14072 # PIC (with -KPIC) is the default.
14073 lt_prog_compiler_static_F77='-non_shared'
14077 lt_prog_compiler_pic_F77='-KPIC'
14078 lt_prog_compiler_static_F77='-Bstatic'
14081 linux* | k*bsd*-gnu)
14082 case $cc_basename in
14084 lt_prog_compiler_wl_F77='-Wl,'
14085 lt_prog_compiler_pic_F77='-KPIC'
14086 lt_prog_compiler_static_F77='-static'
14088 pgcc* | pgf77* | pgf90* | pgf95*)
14089 # Portland Group compilers (*not* the Pentium gcc compiler,
14090 # which looks to be a dead project)
14091 lt_prog_compiler_wl_F77='-Wl,'
14092 lt_prog_compiler_pic_F77='-fpic'
14093 lt_prog_compiler_static_F77='-Bstatic'
14096 lt_prog_compiler_wl_F77='-Wl,'
14097 # All Alpha code is PIC.
14098 lt_prog_compiler_static_F77='-non_shared'
14103 osf3* | osf4* | osf5*)
14104 lt_prog_compiler_wl_F77='-Wl,'
14105 # All OSF/1 code is PIC.
14106 lt_prog_compiler_static_F77='-non_shared'
14110 lt_prog_compiler_pic_F77='-KPIC'
14111 lt_prog_compiler_static_F77='-Bstatic'
14112 case $cc_basename in
14113 f77* | f90* | f95*)
14114 lt_prog_compiler_wl_F77='-Qoption ld ';;
14116 lt_prog_compiler_wl_F77='-Wl,';;
14121 lt_prog_compiler_wl_F77='-Qoption ld '
14122 lt_prog_compiler_pic_F77='-PIC'
14123 lt_prog_compiler_static_F77='-Bstatic'
14126 sysv4 | sysv4.2uw2* | sysv4.3*)
14127 lt_prog_compiler_wl_F77='-Wl,'
14128 lt_prog_compiler_pic_F77='-KPIC'
14129 lt_prog_compiler_static_F77='-Bstatic'
14133 if test -d /usr/nec ;then
14134 lt_prog_compiler_pic_F77='-Kconform_pic'
14135 lt_prog_compiler_static_F77='-Bstatic'
14139 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14140 lt_prog_compiler_wl_F77='-Wl,'
14141 lt_prog_compiler_pic_F77='-KPIC'
14142 lt_prog_compiler_static_F77='-Bstatic'
14146 lt_prog_compiler_wl_F77='-Wl,'
14147 lt_prog_compiler_can_build_shared_F77=no
14151 lt_prog_compiler_pic_F77='-pic'
14152 lt_prog_compiler_static_F77='-Bstatic'
14156 lt_prog_compiler_can_build_shared_F77=no
14161 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14162 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14165 # Check to make sure the PIC flag actually works.
14167 if test -n "$lt_prog_compiler_pic_F77"; then
14169 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14170 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14171 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 lt_prog_compiler_pic_works_F77=no
14175 ac_outfile=conftest.$ac_objext
14176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14177 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14178 # Insert the option either (1) after the last *FLAGS variable, or
14179 # (2) before a word containing "conftest.", or (3) at the end.
14180 # Note that $ac_compile itself does not contain backslashes and begins
14181 # with a dollar sign (not a hyphen), so the echo should work correctly.
14182 # The option is referenced via a variable to avoid confusing sed.
14183 lt_compile=`echo "$ac_compile" | $SED \
14184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14186 -e 's:$: $lt_compiler_flag:'`
14187 (eval echo "\"\$as_me:14187: $lt_compile\"" >&5)
14188 (eval "$lt_compile" 2>conftest.err)
14190 cat conftest.err >&5
14191 echo "$as_me:14191: \$? = $ac_status" >&5
14192 if (exit $ac_status) && test -s "$ac_outfile"; then
14193 # The compiler can only warn and ignore the option if not recognized
14194 # So say no if there are warnings other than the usual output.
14195 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14197 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14198 lt_prog_compiler_pic_works_F77=yes
14204 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14205 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14207 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14208 case $lt_prog_compiler_pic_F77 in
14210 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14213 lt_prog_compiler_pic_F77=
14214 lt_prog_compiler_can_build_shared_F77=no
14219 # For platforms which do not support PIC, -DPIC is meaningless:
14221 lt_prog_compiler_pic_F77=
14224 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14229 # Check to make sure the static flag actually works.
14231 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14232 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14233 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14234 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 lt_prog_compiler_static_works_F77=no
14238 save_LDFLAGS="$LDFLAGS"
14239 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14240 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14241 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14242 # The linker can only warn and ignore the option if not recognized
14243 # So say no if there are warnings
14244 if test -s conftest.err; then
14245 # Append any errors to the config.log.
14246 cat conftest.err 1>&5
14247 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14249 if diff conftest.exp conftest.er2 >/dev/null; then
14250 lt_prog_compiler_static_works_F77=yes
14253 lt_prog_compiler_static_works_F77=yes
14257 LDFLAGS="$save_LDFLAGS"
14260 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14261 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14263 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14266 lt_prog_compiler_static_F77=
14270 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14271 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14272 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 lt_cv_prog_compiler_c_o_F77=no
14276 $rm -r conftest 2>/dev/null
14280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14282 lt_compiler_flag="-o out/conftest2.$ac_objext"
14283 # Insert the option either (1) after the last *FLAGS variable, or
14284 # (2) before a word containing "conftest.", or (3) at the end.
14285 # Note that $ac_compile itself does not contain backslashes and begins
14286 # with a dollar sign (not a hyphen), so the echo should work correctly.
14287 lt_compile=`echo "$ac_compile" | $SED \
14288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14290 -e 's:$: $lt_compiler_flag:'`
14291 (eval echo "\"\$as_me:14291: $lt_compile\"" >&5)
14292 (eval "$lt_compile" 2>out/conftest.err)
14294 cat out/conftest.err >&5
14295 echo "$as_me:14295: \$? = $ac_status" >&5
14296 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14298 # The compiler can only warn and ignore the option if not recognized
14299 # So say no if there are warnings
14300 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14301 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14302 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14303 lt_cv_prog_compiler_c_o_F77=yes
14308 # SGI C++ compiler will create directory out/ii_files/ for
14309 # template instantiation
14310 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14311 $rm out/* && rmdir out
14317 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14318 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14321 hard_links="nottested"
14322 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14323 # do not overwrite the value of need_locks provided by the user
14324 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14325 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14330 ln conftest.a conftest.b 2>&5 || hard_links=no
14331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14332 { echo "$as_me:$LINENO: result: $hard_links" >&5
14333 echo "${ECHO_T}$hard_links" >&6; }
14334 if test "$hard_links" = no; then
14335 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14336 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14343 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14344 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14347 allow_undefined_flag_F77=
14348 enable_shared_with_static_runtimes_F77=no
14350 archive_expsym_cmds_F77=
14351 old_archive_From_new_cmds_F77=
14352 old_archive_from_expsyms_cmds_F77=
14353 export_dynamic_flag_spec_F77=
14354 whole_archive_flag_spec_F77=
14355 thread_safe_flag_spec_F77=
14356 hardcode_libdir_flag_spec_F77=
14357 hardcode_libdir_flag_spec_ld_F77=
14358 hardcode_libdir_separator_F77=
14359 hardcode_direct_F77=no
14360 hardcode_minus_L_F77=no
14361 hardcode_shlibpath_var_F77=unsupported
14362 link_all_deplibs_F77=unknown
14363 hardcode_automatic_F77=no
14365 module_expsym_cmds_F77=
14366 always_export_symbols_F77=no
14367 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14368 # include_expsyms should be a list of space-separated symbols to be *always*
14369 # included in the symbol list
14370 include_expsyms_F77=
14371 # exclude_expsyms can be an extended regexp of symbols to exclude
14372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14374 # as well as any symbol that contains `d'.
14375 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14377 # platforms (ab)use it in PIC code, but their linkers get confused if
14378 # the symbol is explicitly referenced. Since portable code cannot
14379 # rely on this symbol name, it's probably fine to never include it in
14380 # preloaded symbol tables.
14381 extract_expsyms_cmds=
14382 # Just being paranoid about ensuring that cc_basename is set.
14383 for cc_temp in $compiler""; do
14385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14394 cygwin* | mingw* | pw32*)
14395 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14396 # When not using gcc, we currently assume that we are using
14397 # Microsoft Visual C++.
14398 if test "$GCC" != yes; then
14403 # we just hope/assume this is gcc and not c89 (= MSVC++)
14412 if test "$with_gnu_ld" = yes; then
14413 # If archive_cmds runs LD, not CC, wlarc should be empty
14416 # Set some defaults for GNU ld with shared library support. These
14417 # are reset later if shared libraries are not supported. Putting them
14418 # here allows them to be overridden if necessary.
14419 runpath_var=LD_RUN_PATH
14420 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14421 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14422 # ancient GNU ld didn't support --whole-archive et. al.
14423 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14424 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14426 whole_archive_flag_spec_F77=
14428 supports_anon_versioning=no
14429 case `$LD -v 2>/dev/null` in
14430 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14431 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14432 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14433 *\ 2.11.*) ;; # other 2.11 versions
14434 *) supports_anon_versioning=yes ;;
14437 # See if GNU ld supports shared libraries.
14439 aix3* | aix4* | aix5*)
14440 # On AIX/PPC, the GNU linker is very broken
14441 if test "$host_cpu" != ia64; then
14445 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14446 *** to be unable to reliably create shared libraries on AIX.
14447 *** Therefore, libtool is disabling shared libraries support. If you
14448 *** really care for shared libraries, you may want to modify your PATH
14449 *** so that a non-GNU linker is found, and then restart.
14456 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)'
14457 hardcode_libdir_flag_spec_F77='-L$libdir'
14458 hardcode_minus_L_F77=yes
14460 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14461 # that the semantics of dynamic libraries on AmigaOS, at least up
14462 # to version 4, is to share data among multiple programs linked
14463 # with the same dynamic library. Since this doesn't match the
14464 # behavior of shared libraries on other platforms, we can't use
14470 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14471 allow_undefined_flag_F77=unsupported
14472 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14473 # support --undefined. This deserves some investigation. FIXME
14474 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14480 cygwin* | mingw* | pw32*)
14481 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14482 # as there is no search path for DLLs.
14483 hardcode_libdir_flag_spec_F77='-L$libdir'
14484 allow_undefined_flag_F77=unsupported
14485 always_export_symbols_F77=no
14486 enable_shared_with_static_runtimes_F77=yes
14487 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14489 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14490 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14491 # If the export-symbols file already is a .def file (1st line
14492 # is EXPORTS), use it as is; otherwise, prepend...
14493 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14494 cp $export_symbols $output_objdir/$soname.def;
14496 echo EXPORTS > $output_objdir/$soname.def;
14497 cat $export_symbols >> $output_objdir/$soname.def;
14499 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14506 hardcode_direct_F77=no
14507 hardcode_shlibpath_var_F77=no
14508 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14509 export_dynamic_flag_spec_F77='${wl}-E'
14510 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14511 # Instead, shared libraries are loaded at an image base (0x10000000 by
14512 # default) and relocated if they conflict, which is a slow very memory
14513 # consuming and fragmenting process. To avoid this, we pick a random,
14514 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14515 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14516 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'
14517 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'
14520 linux* | k*bsd*-gnu)
14521 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14523 case $cc_basename,$host_cpu in
14524 pgcc*) # Portland Group C compiler
14525 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'
14526 tmp_addflag=' $pic_flag'
14528 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14529 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'
14530 tmp_addflag=' $pic_flag -Mnomain' ;;
14531 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14532 tmp_addflag=' -i_dynamic' ;;
14533 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14534 tmp_addflag=' -i_dynamic -nofor_main' ;;
14535 ifc* | ifort*) # Intel Fortran compiler
14536 tmp_addflag=' -nofor_main' ;;
14538 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14540 if test $supports_anon_versioning = yes; then
14541 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14542 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14543 $echo "local: *; };" >> $output_objdir/$libname.ver~
14544 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14546 link_all_deplibs_F77=no
14552 netbsd* | netbsdelf*-gnu)
14553 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14554 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14557 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14558 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14563 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14568 *** create shared libraries on Solaris systems. Therefore, libtool
14569 *** is disabling shared libraries support. We urge you to upgrade GNU
14570 *** binutils to release 2.9.1 or newer. Another option is to modify
14571 *** your PATH or compiler configuration so that the native linker is
14572 *** used, and then restart.
14575 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14576 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14577 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14584 case `$LD -v 2>&1` in
14585 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14589 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14590 *** reliably create shared libraries on SCO systems. Therefore, libtool
14591 *** is disabling shared libraries support. We urge you to upgrade GNU
14592 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14593 *** your PATH or compiler configuration so that the native linker is
14594 *** used, and then restart.
14599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14600 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14601 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14602 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14611 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14613 hardcode_direct_F77=yes
14614 hardcode_shlibpath_var_F77=no
14618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14619 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14620 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14627 if test "$ld_shlibs_F77" = no; then
14629 hardcode_libdir_flag_spec_F77=
14630 export_dynamic_flag_spec_F77=
14631 whole_archive_flag_spec_F77=
14634 # PORTME fill in a description of your system's linker (not GNU ld)
14637 allow_undefined_flag_F77=unsupported
14638 always_export_symbols_F77=yes
14639 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'
14640 # Note: this linker hardcodes the directories in LIBPATH if there
14641 # are no directories specified by -L.
14642 hardcode_minus_L_F77=yes
14643 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14644 # Neither direct hardcoding nor static linking is supported with a
14646 hardcode_direct_F77=unsupported
14651 if test "$host_cpu" = ia64; then
14652 # On IA64, the linker does run time linking by default, so we don't
14653 # have to do anything special.
14654 aix_use_runtimelinking=no
14655 exp_sym_flag='-Bexport'
14658 # If we're using GNU nm, then we don't want the "-C" option.
14659 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14660 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14661 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'
14663 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'
14665 aix_use_runtimelinking=no
14667 # Test if we are trying to use run time linking or normal
14668 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14669 # need to do runtime linking.
14670 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14671 for ld_flag in $LDFLAGS; do
14672 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14673 aix_use_runtimelinking=yes
14680 exp_sym_flag='-bexport'
14681 no_entry_flag='-bnoentry'
14684 # When large executables or shared objects are built, AIX ld can
14685 # have problems creating the table of contents. If linking a library
14686 # or program results in "error TOC overflow" add -mminimal-toc to
14687 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14688 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14690 archive_cmds_F77=''
14691 hardcode_direct_F77=yes
14692 hardcode_libdir_separator_F77=':'
14693 link_all_deplibs_F77=yes
14695 if test "$GCC" = yes; then
14696 case $host_os in aix4.[012]|aix4.[012].*)
14697 # We only want to do this on AIX 4.2 and lower, the check
14698 # below for broken collect2 doesn't work under 4.3+
14699 collect2name=`${CC} -print-prog-name=collect2`
14700 if test -f "$collect2name" && \
14701 strings "$collect2name" | grep resolve_lib_name >/dev/null
14703 # We have reworked collect2
14704 hardcode_direct_F77=yes
14706 # We have old collect2
14707 hardcode_direct_F77=unsupported
14708 # It fails to find uninstalled libraries when the uninstalled
14709 # path is not listed in the libpath. Setting hardcode_minus_L
14710 # to unsupported forces relinking
14711 hardcode_minus_L_F77=yes
14712 hardcode_libdir_flag_spec_F77='-L$libdir'
14713 hardcode_libdir_separator_F77=
14717 shared_flag='-shared'
14718 if test "$aix_use_runtimelinking" = yes; then
14719 shared_flag="$shared_flag "'${wl}-G'
14723 if test "$host_cpu" = ia64; then
14724 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14725 # chokes on -Wl,-G. The following line is correct:
14728 if test "$aix_use_runtimelinking" = yes; then
14729 shared_flag='${wl}-G'
14731 shared_flag='${wl}-bM:SRE'
14736 # It seems that -bexpall does not export symbols beginning with
14737 # underscore (_), so it is better to generate a list of symbols to export.
14738 always_export_symbols_F77=yes
14739 if test "$aix_use_runtimelinking" = yes; then
14740 # Warning - without using the other runtime loading flags (-brtl),
14741 # -berok will link without error, but may produce a broken library.
14742 allow_undefined_flag_F77='-berok'
14743 # Determine the default libpath from the value encoded in an empty executable.
14744 cat >conftest.$ac_ext <<_ACEOF
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_f77_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext &&
14766 $as_test_x conftest$ac_exeext; then
14768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14770 # Check for a 64-bit object if we didn't find anything.
14771 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; }
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14781 conftest$ac_exeext conftest.$ac_ext
14782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14784 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14785 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"
14787 if test "$host_cpu" = ia64; then
14788 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14789 allow_undefined_flag_F77="-z nodefs"
14790 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"
14792 # Determine the default libpath from the value encoded in an empty executable.
14793 cat >conftest.$ac_ext <<_ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (ac_try="$ac_link"
14800 case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_link") 2>conftest.er1
14807 grep -v '^ *+' conftest.er1 >conftest.err
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } && {
14812 test -z "$ac_f77_werror_flag" ||
14813 test ! -s conftest.err
14814 } && test -s conftest$ac_exeext &&
14815 $as_test_x conftest$ac_exeext; then
14817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14819 # Check for a 64-bit object if we didn't find anything.
14820 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; }
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14830 conftest$ac_exeext conftest.$ac_ext
14831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14833 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14834 # Warning - without using the other run time loading flags,
14835 # -berok will link without error, but may produce a broken library.
14836 no_undefined_flag_F77=' ${wl}-bernotok'
14837 allow_undefined_flag_F77=' ${wl}-berok'
14838 # Exported symbols can be pulled into shared objects from archives
14839 whole_archive_flag_spec_F77='$convenience'
14840 archive_cmds_need_lc_F77=yes
14841 # This is similar to how AIX traditionally builds its shared libraries.
14842 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'
14848 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)'
14849 hardcode_libdir_flag_spec_F77='-L$libdir'
14850 hardcode_minus_L_F77=yes
14851 # see comment about different semantics on the GNU ld section
14856 export_dynamic_flag_spec_F77=-rdynamic
14859 cygwin* | mingw* | pw32*)
14860 # When not using gcc, we currently assume that we are using
14861 # Microsoft Visual C++.
14862 # hardcode_libdir_flag_spec is actually meaningless, as there is
14863 # no search path for DLLs.
14864 hardcode_libdir_flag_spec_F77=' '
14865 allow_undefined_flag_F77=unsupported
14866 # Tell ltmain to make .lib files, not .a files.
14868 # Tell ltmain to make .dll files, not .so files.
14870 # FIXME: Setting linknames here is a bad hack.
14871 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14872 # The linker will automatically build a .lib file if we build a DLL.
14873 old_archive_From_new_cmds_F77='true'
14874 # FIXME: Should let the user specify the lib program.
14875 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14876 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14877 enable_shared_with_static_runtimes_F77=yes
14880 darwin* | rhapsody*)
14882 rhapsody* | darwin1.[012])
14883 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14886 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14887 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14889 case ${MACOSX_DEPLOYMENT_TARGET} in
14891 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14894 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14900 archive_cmds_need_lc_F77=no
14901 hardcode_direct_F77=no
14902 hardcode_automatic_F77=yes
14903 hardcode_shlibpath_var_F77=unsupported
14904 whole_archive_flag_spec_F77=''
14905 link_all_deplibs_F77=yes
14906 if test "$GCC" = yes ; then
14907 output_verbose_link_cmd='echo'
14908 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14909 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14910 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14911 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}'
14912 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}'
14914 case $cc_basename in
14916 output_verbose_link_cmd='echo'
14917 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14918 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14919 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14920 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}'
14921 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}'
14931 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14932 hardcode_libdir_flag_spec_F77='-L$libdir'
14933 hardcode_shlibpath_var_F77=no
14940 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14941 # support. Future versions do this automatically, but an explicit c++rt0.o
14942 # does not break anything, and helps significantly (at the cost of a little
14945 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14946 hardcode_libdir_flag_spec_F77='-R$libdir'
14947 hardcode_direct_F77=yes
14948 hardcode_shlibpath_var_F77=no
14951 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14953 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14954 hardcode_direct_F77=yes
14955 hardcode_minus_L_F77=yes
14956 hardcode_shlibpath_var_F77=no
14959 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14960 freebsd* | dragonfly*)
14961 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14962 hardcode_libdir_flag_spec_F77='-R$libdir'
14963 hardcode_direct_F77=yes
14964 hardcode_shlibpath_var_F77=no
14968 if test "$GCC" = yes; then
14969 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'
14971 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'
14973 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14974 hardcode_libdir_separator_F77=:
14975 hardcode_direct_F77=yes
14977 # hardcode_minus_L: Not really in the search PATH,
14978 # but as the default location of the library.
14979 hardcode_minus_L_F77=yes
14980 export_dynamic_flag_spec_F77='${wl}-E'
14984 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14985 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14987 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14989 if test "$with_gnu_ld" = no; then
14990 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14991 hardcode_libdir_separator_F77=:
14993 hardcode_direct_F77=yes
14994 export_dynamic_flag_spec_F77='${wl}-E'
14996 # hardcode_minus_L: Not really in the search PATH,
14997 # but as the default location of the library.
14998 hardcode_minus_L_F77=yes
15003 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15006 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15012 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15018 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15024 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15028 if test "$with_gnu_ld" = no; then
15029 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15030 hardcode_libdir_separator_F77=:
15034 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15035 hardcode_direct_F77=no
15036 hardcode_shlibpath_var_F77=no
15039 hardcode_direct_F77=yes
15040 export_dynamic_flag_spec_F77='${wl}-E'
15042 # hardcode_minus_L: Not really in the search PATH,
15043 # but as the default location of the library.
15044 hardcode_minus_L_F77=yes
15050 irix5* | irix6* | nonstopux*)
15051 if test "$GCC" = yes; then
15052 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'
15054 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'
15055 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15057 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15058 hardcode_libdir_separator_F77=:
15059 link_all_deplibs_F77=yes
15062 netbsd* | netbsdelf*-gnu)
15063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15064 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15066 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15068 hardcode_libdir_flag_spec_F77='-R$libdir'
15069 hardcode_direct_F77=yes
15070 hardcode_shlibpath_var_F77=no
15074 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075 hardcode_direct_F77=yes
15076 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15077 hardcode_libdir_separator_F77=:
15078 hardcode_shlibpath_var_F77=no
15082 hardcode_direct_F77=yes
15083 hardcode_shlibpath_var_F77=no
15084 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15085 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15086 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15087 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15088 export_dynamic_flag_spec_F77='${wl}-E'
15091 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15092 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15093 hardcode_libdir_flag_spec_F77='-R$libdir'
15096 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15097 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15104 hardcode_libdir_flag_spec_F77='-L$libdir'
15105 hardcode_minus_L_F77=yes
15106 allow_undefined_flag_F77=unsupported
15107 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'
15108 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15112 if test "$GCC" = yes; then
15113 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15114 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'
15116 allow_undefined_flag_F77=' -expect_unresolved \*'
15117 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'
15119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15120 hardcode_libdir_separator_F77=:
15123 osf4* | osf5*) # as osf3* with the addition of -msym flag
15124 if test "$GCC" = yes; then
15125 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15126 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'
15127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15129 allow_undefined_flag_F77=' -expect_unresolved \*'
15130 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'
15131 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~
15132 $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'
15134 # Both c and cxx compiler support -rpath directly
15135 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15137 hardcode_libdir_separator_F77=:
15141 no_undefined_flag_F77=' -z text'
15142 if test "$GCC" = yes; then
15144 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15145 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15146 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15149 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15150 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15151 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15153 hardcode_libdir_flag_spec_F77='-R$libdir'
15154 hardcode_shlibpath_var_F77=no
15156 solaris2.[0-5] | solaris2.[0-5].*) ;;
15158 # The compiler driver will combine linker options so we
15159 # cannot just pass the convience library names through
15160 # without $wl, iff we do not link with $LD.
15161 # Luckily, gcc supports the same syntax we need for Sun Studio.
15162 # Supported since Solaris 2.6 (maybe 2.5.1?)
15165 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15167 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' ;;
15170 link_all_deplibs_F77=yes
15174 if test "x$host_vendor" = xsequent; then
15175 # Use $CC to link under sequent, because it throws in some extra .o
15176 # files that make .init and .fini sections work.
15177 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15179 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15181 hardcode_libdir_flag_spec_F77='-L$libdir'
15182 hardcode_direct_F77=yes
15183 hardcode_minus_L_F77=yes
15184 hardcode_shlibpath_var_F77=no
15188 case $host_vendor in
15190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15191 hardcode_direct_F77=yes # is this really true???
15194 ## LD is ld it makes a PLAMLIB
15195 ## CC just makes a GrossModule.
15196 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15197 reload_cmds_F77='$CC -r -o $output$reload_objs'
15198 hardcode_direct_F77=no
15201 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15202 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15205 runpath_var='LD_RUN_PATH'
15206 hardcode_shlibpath_var_F77=no
15210 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15211 hardcode_shlibpath_var_F77=no
15212 export_dynamic_flag_spec_F77='-Bexport'
15216 if test -d /usr/nec; then
15217 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15218 hardcode_shlibpath_var_F77=no
15219 runpath_var=LD_RUN_PATH
15220 hardcode_runpath_var=yes
15225 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15226 no_undefined_flag_F77='${wl}-z,text'
15227 archive_cmds_need_lc_F77=no
15228 hardcode_shlibpath_var_F77=no
15229 runpath_var='LD_RUN_PATH'
15231 if test "$GCC" = yes; then
15232 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15233 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15235 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15236 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 sysv5* | sco3.2v5* | sco5v6*)
15241 # Note: We can NOT use -z defs as we might desire, because we do not
15242 # link with -lc, and that would cause any symbols used from libc to
15243 # always be unresolved, which means just about no library would
15244 # ever link correctly. If we're not using GNU ld we use -z text
15245 # though, which does catch some bad symbols but isn't as heavy-handed
15247 no_undefined_flag_F77='${wl}-z,text'
15248 allow_undefined_flag_F77='${wl}-z,nodefs'
15249 archive_cmds_need_lc_F77=no
15250 hardcode_shlibpath_var_F77=no
15251 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15252 hardcode_libdir_separator_F77=':'
15253 link_all_deplibs_F77=yes
15254 export_dynamic_flag_spec_F77='${wl}-Bexport'
15255 runpath_var='LD_RUN_PATH'
15257 if test "$GCC" = yes; then
15258 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15259 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15261 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15262 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15267 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15268 hardcode_libdir_flag_spec_F77='-L$libdir'
15269 hardcode_shlibpath_var_F77=no
15278 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15279 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15280 test "$ld_shlibs_F77" = no && can_build_shared=no
15283 # Do we need to explicitly link libc?
15285 case "x$archive_cmds_need_lc_F77" in
15287 # Assume -lc should be added
15288 archive_cmds_need_lc_F77=yes
15290 if test "$enable_shared" = yes && test "$GCC" = yes; then
15291 case $archive_cmds_F77 in
15293 # FIXME: we may have to deal with multi-command sequences.
15296 # Test whether the compiler implicitly links with -lc since on some
15297 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15298 # to ld, don't add -lc before -lgcc.
15299 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15300 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15305 (eval $ac_compile) 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } 2>conftest.err; then
15311 libobjs=conftest.$ac_objext
15313 wl=$lt_prog_compiler_wl_F77
15314 pic_flag=$lt_prog_compiler_pic_F77
15320 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15321 allow_undefined_flag_F77=
15322 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15323 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }
15328 archive_cmds_need_lc_F77=no
15330 archive_cmds_need_lc_F77=yes
15332 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15334 cat conftest.err 1>&5
15337 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15338 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15345 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15346 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15347 library_names_spec=
15348 libname_spec='lib$name'
15352 postuninstall_cmds=
15356 shlibpath_overrides_runpath=unknown
15358 dynamic_linker="$host_os ld.so"
15359 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15360 if test "$GCC" = yes; then
15361 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15362 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15363 # if the path contains ";" then we assume it to be the separator
15364 # otherwise default to the standard path separator (i.e. ":") - it is
15365 # assumed that no part of a normal pathname contains ";" but that should
15366 # okay in the real world where ";" in dirpaths is itself problematic.
15367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15372 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15374 need_lib_prefix=unknown
15375 hardcode_into_libs=no
15377 # when you set need_version to no, make sure it does not cause -set_version
15378 # flags to be left without arguments
15379 need_version=unknown
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15385 shlibpath_var=LIBPATH
15387 # AIX 3 has no versioning support, so we append a major version to the name.
15388 soname_spec='${libname}${release}${shared_ext}$major'
15395 hardcode_into_libs=yes
15396 if test "$host_cpu" = ia64; then
15397 # AIX 5 supports IA64
15398 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15399 shlibpath_var=LD_LIBRARY_PATH
15401 # With GCC up to 2.95.x, collect2 would create an import file
15402 # for dependence libraries. The import file would start with
15403 # the line `#! .'. This would cause the generated library to
15404 # depend on `.', always an invalid library. This was fixed in
15405 # development snapshots of GCC prior to 3.0.
15407 aix4 | aix4.[01] | aix4.[01].*)
15408 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15410 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15413 can_build_shared=no
15417 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15418 # soname into executable. Probably we can add versioning support to
15419 # collect2, so additional links can be useful in future.
15420 if test "$aix_use_runtimelinking" = yes; then
15421 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15422 # instead of lib<name>.a to let people know that these are not
15423 # typical AIX shared libraries.
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 # We preserve .a as extension for shared libraries through AIX4.2
15427 # and later when we are not doing run time linking.
15428 library_names_spec='${libname}${release}.a $libname.a'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15431 shlibpath_var=LIBPATH
15436 library_names_spec='$libname.ixlibrary $libname.a'
15437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15438 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'
15442 library_names_spec='${libname}${shared_ext}'
15443 dynamic_linker="$host_os ld.so"
15444 shlibpath_var=LIBRARY_PATH
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15451 soname_spec='${libname}${release}${shared_ext}$major'
15452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15456 # the default ld.so.conf also contains /usr/contrib/lib and
15457 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15458 # libtool to hard-code these into programs
15461 cygwin* | mingw* | pw32*)
15462 version_type=windows
15467 case $GCC,$host_os in
15468 yes,cygwin* | yes,mingw* | yes,pw32*)
15469 library_names_spec='$libname.dll.a'
15470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15471 postinstall_cmds='base_file=`basename \${file}`~
15472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15473 dldir=$destdir/`dirname \$dlpath`~
15474 test -d \$dldir || mkdir -p \$dldir~
15475 $install_prog $dir/$dlname \$dldir/$dlname~
15476 chmod a+x \$dldir/$dlname'
15477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15478 dlpath=$dir/\$dldll~
15480 shlibpath_overrides_runpath=yes
15484 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15485 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15486 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15489 # MinGW DLLs use traditional 'lib' prefix
15490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15491 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15492 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15493 # It is most probably a Windows format PATH printed by
15494 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15495 # path with ; separators, and with drive letters. We can handle the
15496 # drive letters (cygwin fileutils understands them), so leave them,
15497 # especially as we might pass files found there to a mingw objdump,
15498 # which wouldn't understand a cygwinified path. Ahh.
15499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15505 # pw32 DLLs use 'pw' prefix rather than 'lib'
15506 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15512 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15515 dynamic_linker='Win32 ld.exe'
15516 # FIXME: first we should search . and the directory the executable is in
15520 darwin* | rhapsody*)
15521 dynamic_linker="$host_os dyld"
15522 version_type=darwin
15525 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15526 soname_spec='${libname}${release}${major}$shared_ext'
15527 shlibpath_overrides_runpath=yes
15528 shlibpath_var=DYLD_LIBRARY_PATH
15529 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15530 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15531 if test "$GCC" = yes; then
15532 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"`
15534 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15536 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15544 soname_spec='${libname}${release}${shared_ext}$major'
15545 shlibpath_var=LD_LIBRARY_PATH
15552 freebsd* | dragonfly*)
15553 # DragonFly does not have aout. When/if they implement a new
15554 # versioning mechanism, adjust this.
15555 if test -x /usr/bin/objformat; then
15556 objformat=`/usr/bin/objformat`
15559 freebsd[123]*) objformat=aout ;;
15560 *) objformat=elf ;;
15563 version_type=freebsd-$objformat
15564 case $version_type in
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15575 shlibpath_var=LD_LIBRARY_PATH
15578 shlibpath_overrides_runpath=yes
15580 freebsd3.[01]* | freebsdelf3.[01]*)
15581 shlibpath_overrides_runpath=yes
15582 hardcode_into_libs=yes
15584 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15585 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15586 shlibpath_overrides_runpath=no
15587 hardcode_into_libs=yes
15589 freebsd*) # from 4.6 on
15590 shlibpath_overrides_runpath=yes
15591 hardcode_into_libs=yes
15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 hardcode_into_libs=yes
15606 hpux9* | hpux10* | hpux11*)
15607 # Give a soname corresponding to the major version so that dld.sl refuses to
15608 # link against other versions.
15615 hardcode_into_libs=yes
15616 dynamic_linker="$host_os dld.so"
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 if test "X$HPUX_IA64_MODE" = X32; then
15622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15630 hardcode_into_libs=yes
15631 dynamic_linker="$host_os dld.sl"
15632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15641 dynamic_linker="$host_os dld.sl"
15642 shlibpath_var=SHLIB_PATH
15643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15648 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15649 postinstall_cmds='chmod 555 $lib'
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=no
15661 hardcode_into_libs=yes
15664 irix5* | irix6* | nonstopux*)
15666 nonstopux*) version_type=nonstopux ;;
15668 if test "$lt_cv_prog_gnu_ld" = yes; then
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15679 irix5* | nonstopux*)
15680 libsuff= shlibsuff=
15683 case $LD in # libtool.m4 will add one of these switches to LD
15684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15685 libsuff= shlibsuff= libmagic=32-bit;;
15686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15687 libsuff=32 shlibsuff=N32 libmagic=N32;;
15688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15690 *) libsuff= shlibsuff= libmagic=never-match;;
15694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15695 shlibpath_overrides_runpath=no
15696 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15697 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15698 hardcode_into_libs=yes
15701 # No shared lib support for Linux oldld, aout, or coff.
15702 linux*oldld* | linux*aout* | linux*coff*)
15706 # This must be Linux ELF.
15707 linux* | k*bsd*-gnu)
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712 soname_spec='${libname}${release}${shared_ext}$major'
15713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=no
15716 # This implies no fast_install, which is unacceptable.
15717 # Some rework will be needed to allow for fast_install
15718 # before this can be enabled.
15719 hardcode_into_libs=yes
15721 # Append ld.so.conf contents to the search path
15722 if test -f /etc/ld.so.conf; then
15723 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' ' '`
15724 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15727 # We used to test for /lib/ld.so.1 and disable shared libraries on
15728 # powerpc, because MkLinux only supported shared libraries with the
15729 # GNU dynamic linker. Since this was broken with cross compilers,
15730 # most powerpc-linux boxes support dynamic linking these days and
15731 # people can always --disable-shared, the test was removed, and we
15732 # assume the GNU/Linux dynamic linker is in use.
15733 dynamic_linker='GNU/Linux ld.so'
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath=no
15744 hardcode_into_libs=yes
15745 dynamic_linker='NetBSD ld.elf_so'
15752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15755 dynamic_linker='NetBSD (a.out) ld.so'
15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15758 soname_spec='${libname}${release}${shared_ext}$major'
15759 dynamic_linker='NetBSD ld.elf_so'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15763 hardcode_into_libs=yes
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 shlibpath_overrides_runpath=yes
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15778 soname_spec='${libname}${release}${shared_ext}$major'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 shlibpath_overrides_runpath=yes
15785 sys_lib_dlsearch_path_spec="/usr/lib"
15787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15789 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15790 *) need_version=no ;;
15792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15794 shlibpath_var=LD_LIBRARY_PATH
15795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15797 openbsd2.[89] | openbsd2.[89].*)
15798 shlibpath_overrides_runpath=no
15801 shlibpath_overrides_runpath=yes
15805 shlibpath_overrides_runpath=yes
15810 libname_spec='$name'
15813 library_names_spec='$libname${shared_ext} $libname.a'
15814 dynamic_linker='OS/2 ld.exe'
15815 shlibpath_var=LIBPATH
15818 osf3* | osf4* | osf5*)
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15824 shlibpath_var=LD_LIBRARY_PATH
15825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15837 hardcode_into_libs=yes
15838 # ldd complains unless libraries are executable
15839 postinstall_cmds='chmod +x $lib'
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 shlibpath_overrides_runpath=yes
15848 if test "$with_gnu_ld" = yes; then
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15859 case $host_vendor in
15861 shlibpath_overrides_runpath=no
15863 export_dynamic_flag_spec='${wl}-Blargedynsym'
15864 runpath_var=LD_RUN_PATH
15872 shlibpath_overrides_runpath=no
15873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15879 if test -d /usr/nec ;then
15881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15882 soname_spec='$libname${shared_ext}.$major'
15883 shlibpath_var=LD_LIBRARY_PATH
15887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15888 version_type=freebsd-elf
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 hardcode_into_libs=yes
15895 if test "$with_gnu_ld" = yes; then
15896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15897 shlibpath_overrides_runpath=no
15899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15900 shlibpath_overrides_runpath=yes
15903 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15907 sys_lib_dlsearch_path_spec='/usr/lib'
15912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 soname_spec='${libname}${release}${shared_ext}$major'
15914 shlibpath_var=LD_LIBRARY_PATH
15921 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15922 echo "${ECHO_T}$dynamic_linker" >&6; }
15923 test "$dynamic_linker" = no && can_build_shared=no
15925 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15926 if test "$GCC" = yes; then
15927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15930 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15931 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15932 hardcode_action_F77=
15933 if test -n "$hardcode_libdir_flag_spec_F77" || \
15934 test -n "$runpath_var_F77" || \
15935 test "X$hardcode_automatic_F77" = "Xyes" ; then
15937 # We can hardcode non-existant directories.
15938 if test "$hardcode_direct_F77" != no &&
15939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15940 # have to relink, otherwise we might link with an installed library
15941 # when we should be linking with a yet-to-be-installed one
15942 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15943 test "$hardcode_minus_L_F77" != no; then
15944 # Linking always hardcodes the temporary library directory.
15945 hardcode_action_F77=relink
15947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15948 hardcode_action_F77=immediate
15951 # We cannot hardcode anything, or else we can only hardcode existing
15953 hardcode_action_F77=unsupported
15955 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15956 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15958 if test "$hardcode_action_F77" = relink; then
15959 # Fast installation is not supported
15960 enable_fast_install=no
15961 elif test "$shlibpath_overrides_runpath" = yes ||
15962 test "$enable_shared" = no; then
15963 # Fast installation is not necessary
15964 enable_fast_install=needless
15968 # The else clause should only fire when bootstrapping the
15969 # libtool distribution, otherwise you forgot to ship ltmain.sh
15970 # with your package, and you will get complaints that there are
15971 # no rules to generate ltmain.sh.
15972 if test -f "$ltmain"; then
15973 # See if we are running on zsh, and set the options which allow our commands through
15974 # without removal of \ escapes.
15975 if test -n "${ZSH_VERSION+set}" ; then
15976 setopt NO_GLOB_SUBST
15978 # Now quote all the things that may contain metacharacters while being
15979 # careful not to overquote the AC_SUBSTed values. We take copies of the
15980 # variables and quote the copies for generation of the libtool script.
15981 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15983 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15984 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15985 deplibs_check_method reload_flag reload_cmds need_locks \
15986 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15987 lt_cv_sys_global_symbol_to_c_name_address \
15988 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15989 old_postinstall_cmds old_postuninstall_cmds \
15993 lt_prog_compiler_wl_F77 \
15994 lt_prog_compiler_pic_F77 \
15995 lt_prog_compiler_static_F77 \
15996 lt_prog_compiler_no_builtin_flag_F77 \
15997 export_dynamic_flag_spec_F77 \
15998 thread_safe_flag_spec_F77 \
15999 whole_archive_flag_spec_F77 \
16000 enable_shared_with_static_runtimes_F77 \
16001 old_archive_cmds_F77 \
16002 old_archive_from_new_cmds_F77 \
16003 predep_objects_F77 \
16004 postdep_objects_F77 \
16007 compiler_lib_search_path_F77 \
16009 archive_expsym_cmds_F77 \
16010 postinstall_cmds_F77 \
16011 postuninstall_cmds_F77 \
16012 old_archive_from_expsyms_cmds_F77 \
16013 allow_undefined_flag_F77 \
16014 no_undefined_flag_F77 \
16015 export_symbols_cmds_F77 \
16016 hardcode_libdir_flag_spec_F77 \
16017 hardcode_libdir_flag_spec_ld_F77 \
16018 hardcode_libdir_separator_F77 \
16019 hardcode_automatic_F77 \
16021 module_expsym_cmds_F77 \
16022 lt_cv_prog_compiler_c_o_F77 \
16023 exclude_expsyms_F77 \
16024 include_expsyms_F77; do
16027 old_archive_cmds_F77 | \
16028 old_archive_from_new_cmds_F77 | \
16029 archive_cmds_F77 | \
16030 archive_expsym_cmds_F77 | \
16031 module_cmds_F77 | \
16032 module_expsym_cmds_F77 | \
16033 old_archive_from_expsyms_cmds_F77 | \
16034 export_symbols_cmds_F77 | \
16035 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16036 postinstall_cmds | postuninstall_cmds | \
16037 old_postinstall_cmds | old_postuninstall_cmds | \
16038 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16039 # Double-quote double-evaled strings.
16040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16049 *'\$0 --fallback-echo"')
16050 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16056 cat <<__EOF__ >> "$cfgfile"
16057 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16061 # Shell to use when invoking shell scripts.
16064 # Whether or not to build shared libraries.
16065 build_libtool_libs=$enable_shared
16067 # Whether or not to build static libraries.
16068 build_old_libs=$enable_static
16070 # Whether or not to add -lc for building shared libraries.
16071 build_libtool_need_lc=$archive_cmds_need_lc_F77
16073 # Whether or not to disallow shared libs when runtime libs are static
16074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16076 # Whether or not to optimize for fast installation.
16077 fast_install=$enable_fast_install
16080 host_alias=$host_alias
16084 # The build system.
16085 build_alias=$build_alias
16089 # An echo program that does not interpret backslashes.
16094 AR_FLAGS=$lt_AR_FLAGS
16099 # LTCC compiler flags.
16100 LTCFLAGS=$lt_LTCFLAGS
16102 # A language-specific compiler.
16103 CC=$lt_compiler_F77
16105 # Is the compiler the GNU C compiler?
16111 # The linker used to build libraries.
16114 # Whether we need hard or soft links.
16117 # A BSD-compatible nm program.
16120 # A symbol stripping program
16123 # Used to examine libraries when file_magic_cmd begins "file"
16124 MAGIC_CMD=$MAGIC_CMD
16126 # Used on cygwin: DLL creation program.
16129 # Used on cygwin: object dumper.
16132 # Used on cygwin: assembler.
16135 # The name of the directory that contains temporary libtool files.
16138 # How to create reloadable object files.
16139 reload_flag=$lt_reload_flag
16140 reload_cmds=$lt_reload_cmds
16142 # How to pass a linker flag through the compiler.
16143 wl=$lt_lt_prog_compiler_wl_F77
16145 # Object file suffix (normally "o").
16146 objext="$ac_objext"
16148 # Old archive suffix (normally "a").
16151 # Shared library suffix (normally ".so").
16152 shrext_cmds='$shrext_cmds'
16154 # Executable file suffix (normally "").
16157 # Additional compiler flags for building library objects.
16158 pic_flag=$lt_lt_prog_compiler_pic_F77
16161 # What is the maximum length of a command?
16162 max_cmd_len=$lt_cv_sys_max_cmd_len
16164 # Does compiler simultaneously support -c and -o options?
16165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16167 # Must we lock files when doing compilation?
16168 need_locks=$lt_need_locks
16170 # Do we need the lib prefix for modules?
16171 need_lib_prefix=$need_lib_prefix
16173 # Do we need a version for libraries?
16174 need_version=$need_version
16176 # Whether dlopen is supported.
16177 dlopen_support=$enable_dlopen
16179 # Whether dlopen of programs is supported.
16180 dlopen_self=$enable_dlopen_self
16182 # Whether dlopen of statically linked programs is supported.
16183 dlopen_self_static=$enable_dlopen_self_static
16185 # Compiler flag to prevent dynamic linking.
16186 link_static_flag=$lt_lt_prog_compiler_static_F77
16188 # Compiler flag to turn off builtin functions.
16189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16191 # Compiler flag to allow reflexive dlopens.
16192 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16194 # Compiler flag to generate shared objects directly from archives.
16195 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16197 # Compiler flag to generate thread-safe objects.
16198 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16200 # Library versioning type.
16201 version_type=$version_type
16203 # Format of library name prefix.
16204 libname_spec=$lt_libname_spec
16206 # List of archive names. First name is the real one, the rest are links.
16207 # The last name is the one that the linker finds with -lNAME.
16208 library_names_spec=$lt_library_names_spec
16210 # The coded name of the library, if different from the real name.
16211 soname_spec=$lt_soname_spec
16213 # Commands used to build and install an old-style archive.
16215 old_archive_cmds=$lt_old_archive_cmds_F77
16216 old_postinstall_cmds=$lt_old_postinstall_cmds
16217 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16219 # Create an old-style archive from a shared archive.
16220 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16222 # Create a temporary old-style archive to link instead of a shared archive.
16223 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16225 # Commands used to build and install a shared archive.
16226 archive_cmds=$lt_archive_cmds_F77
16227 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16228 postinstall_cmds=$lt_postinstall_cmds
16229 postuninstall_cmds=$lt_postuninstall_cmds
16231 # Commands used to build a loadable module (assumed same as above if empty)
16232 module_cmds=$lt_module_cmds_F77
16233 module_expsym_cmds=$lt_module_expsym_cmds_F77
16235 # Commands to strip libraries.
16236 old_striplib=$lt_old_striplib
16237 striplib=$lt_striplib
16239 # Dependencies to place before the objects being linked to create a
16241 predep_objects=$lt_predep_objects_F77
16243 # Dependencies to place after the objects being linked to create a
16245 postdep_objects=$lt_postdep_objects_F77
16247 # Dependencies to place before the objects being linked to create a
16249 predeps=$lt_predeps_F77
16251 # Dependencies to place after the objects being linked to create a
16253 postdeps=$lt_postdeps_F77
16255 # The library search path used internally by the compiler when linking
16256 # a shared library.
16257 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16259 # Method to check whether dependent libraries are shared objects.
16260 deplibs_check_method=$lt_deplibs_check_method
16262 # Command to use when deplibs_check_method == file_magic.
16263 file_magic_cmd=$lt_file_magic_cmd
16265 # Flag that allows shared libraries with undefined symbols to be built.
16266 allow_undefined_flag=$lt_allow_undefined_flag_F77
16268 # Flag that forces no undefined symbols.
16269 no_undefined_flag=$lt_no_undefined_flag_F77
16271 # Commands used to finish a libtool library installation in a directory.
16272 finish_cmds=$lt_finish_cmds
16274 # Same as above, but a single script fragment to be evaled but not shown.
16275 finish_eval=$lt_finish_eval
16277 # Take the output of nm and produce a listing of raw symbols and C names.
16278 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16280 # Transform the output of nm in a proper C declaration
16281 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16283 # Transform the output of nm in a C name address pair
16284 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16286 # This is the shared library runtime path variable.
16287 runpath_var=$runpath_var
16289 # This is the shared library path variable.
16290 shlibpath_var=$shlibpath_var
16292 # Is shlibpath searched before the hard-coded library search path?
16293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16295 # How to hardcode a shared library path into an executable.
16296 hardcode_action=$hardcode_action_F77
16298 # Whether we should hardcode library paths into libraries.
16299 hardcode_into_libs=$hardcode_into_libs
16301 # Flag to hardcode \$libdir into a binary during linking.
16302 # This must work even if \$libdir does not exist.
16303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16305 # If ld is used when linking, flag to hardcode \$libdir into
16306 # a binary during linking. This must work even if \$libdir does
16308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16310 # Whether we need a single -rpath flag with a separated argument.
16311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16313 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16314 # resulting binary.
16315 hardcode_direct=$hardcode_direct_F77
16317 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16318 # resulting binary.
16319 hardcode_minus_L=$hardcode_minus_L_F77
16321 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16322 # the resulting binary.
16323 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16325 # Set to yes if building a shared library automatically hardcodes DIR into the library
16326 # and all subsequent libraries and executables linked against it.
16327 hardcode_automatic=$hardcode_automatic_F77
16329 # Variables whose values should be saved in libtool wrapper scripts and
16330 # restored at relink time.
16331 variables_saved_for_relink="$variables_saved_for_relink"
16333 # Whether libtool must link a program against all its dependency libraries.
16334 link_all_deplibs=$link_all_deplibs_F77
16336 # Compile-time system search path for libraries
16337 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16339 # Run-time system search path for libraries
16340 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16342 # Fix the shell variable \$srcfile for the compiler.
16343 fix_srcfile_path="$fix_srcfile_path_F77"
16345 # Set to yes if exported symbols are required.
16346 always_export_symbols=$always_export_symbols_F77
16348 # The commands to list exported symbols.
16349 export_symbols_cmds=$lt_export_symbols_cmds_F77
16351 # The commands to extract the exported symbol list from a shared archive.
16352 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16354 # Symbols that should not be listed in the preloaded symbols.
16355 exclude_expsyms=$lt_exclude_expsyms_F77
16357 # Symbols that must always be exported.
16358 include_expsyms=$lt_include_expsyms_F77
16360 # ### END LIBTOOL TAG CONFIG: $tagname
16366 # If there is no Makefile yet, we rely on a make rule to execute
16367 # `config.status --recheck' to rerun these tests and create the
16368 # libtool script then.
16369 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16370 if test -f "$ltmain_in"; then
16371 test -f Makefile && make "$ltmain"
16377 ac_cpp='$CPP $CPPFLAGS'
16378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16390 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16393 # Source file extension for Java test sources.
16396 # Object file extension for compiled Java test sources.
16400 # Code to be used in simple compile tests
16401 lt_simple_compile_test_code="class foo {}\n"
16403 # Code to be used in simple link tests
16404 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16406 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16408 # If no C compiler was specified, use CC.
16411 # If no C compiler flags were specified, use CFLAGS.
16412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16414 # Allow CC to be a program name with arguments.
16418 # save warnings/boilerplate of simple test code
16419 ac_outfile=conftest.$ac_objext
16420 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16422 _lt_compiler_boilerplate=`cat conftest.err`
16425 ac_outfile=conftest.$ac_objext
16426 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16428 _lt_linker_boilerplate=`cat conftest.err`
16432 # Allow CC to be a program name with arguments.
16437 for cc_temp in $compiler""; do
16439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16445 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16448 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16449 archive_cmds_need_lc_GCJ=no
16451 old_archive_cmds_GCJ=$old_archive_cmds
16454 lt_prog_compiler_no_builtin_flag_GCJ=
16456 if test "$GCC" = yes; then
16457 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16460 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16461 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16462 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 lt_cv_prog_compiler_rtti_exceptions=no
16466 ac_outfile=conftest.$ac_objext
16467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16468 lt_compiler_flag="-fno-rtti -fno-exceptions"
16469 # Insert the option either (1) after the last *FLAGS variable, or
16470 # (2) before a word containing "conftest.", or (3) at the end.
16471 # Note that $ac_compile itself does not contain backslashes and begins
16472 # with a dollar sign (not a hyphen), so the echo should work correctly.
16473 # The option is referenced via a variable to avoid confusing sed.
16474 lt_compile=`echo "$ac_compile" | $SED \
16475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477 -e 's:$: $lt_compiler_flag:'`
16478 (eval echo "\"\$as_me:16478: $lt_compile\"" >&5)
16479 (eval "$lt_compile" 2>conftest.err)
16481 cat conftest.err >&5
16482 echo "$as_me:16482: \$? = $ac_status" >&5
16483 if (exit $ac_status) && test -s "$ac_outfile"; then
16484 # The compiler can only warn and ignore the option if not recognized
16485 # So say no if there are warnings other than the usual output.
16486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16489 lt_cv_prog_compiler_rtti_exceptions=yes
16495 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16496 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16498 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16499 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16506 lt_prog_compiler_wl_GCJ=
16507 lt_prog_compiler_pic_GCJ=
16508 lt_prog_compiler_static_GCJ=
16510 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16511 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16513 if test "$GCC" = yes; then
16514 lt_prog_compiler_wl_GCJ='-Wl,'
16515 lt_prog_compiler_static_GCJ='-static'
16519 # All AIX code is PIC.
16520 if test "$host_cpu" = ia64; then
16521 # AIX 5 now supports IA64 processor
16522 lt_prog_compiler_static_GCJ='-Bstatic'
16527 # FIXME: we need at least 68020 code to build shared libraries, but
16528 # adding the `-m68020' flag to GCC prevents building anything better,
16530 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16533 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16534 # PIC is the default for these OSes.
16537 mingw* | pw32* | os2*)
16538 # This hack is so that the source file can tell whether it is being
16539 # built for inclusion in a dll (and should export symbols for example).
16540 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16543 darwin* | rhapsody*)
16544 # PIC is the default on this platform
16545 # Common symbols not allowed in MH_DYLIB files
16546 lt_prog_compiler_pic_GCJ='-fno-common'
16550 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16551 # Instead, we relocate shared libraries at runtime.
16555 # Just because we use GCC doesn't mean we suddenly get shared libraries
16556 # on systems that don't support them.
16557 lt_prog_compiler_can_build_shared_GCJ=no
16562 if test -d /usr/nec; then
16563 lt_prog_compiler_pic_GCJ=-Kconform_pic
16568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16569 # not for PA HP-UX.
16575 lt_prog_compiler_pic_GCJ='-fPIC'
16581 lt_prog_compiler_pic_GCJ='-fPIC'
16585 # PORTME Check for flag to pass linker flags through the system compiler.
16588 lt_prog_compiler_wl_GCJ='-Wl,'
16589 if test "$host_cpu" = ia64; then
16590 # AIX 5 now supports IA64 processor
16591 lt_prog_compiler_static_GCJ='-Bstatic'
16593 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16597 # PIC is the default on this platform
16598 # Common symbols not allowed in MH_DYLIB files
16599 case $cc_basename in
16601 lt_prog_compiler_pic_GCJ='-qnocommon'
16602 lt_prog_compiler_wl_GCJ='-Wl,'
16607 mingw* | pw32* | os2*)
16608 # This hack is so that the source file can tell whether it is being
16609 # built for inclusion in a dll (and should export symbols for example).
16610 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16613 hpux9* | hpux10* | hpux11*)
16614 lt_prog_compiler_wl_GCJ='-Wl,'
16615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16616 # not for PA HP-UX.
16622 lt_prog_compiler_pic_GCJ='+Z'
16625 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16626 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16629 irix5* | irix6* | nonstopux*)
16630 lt_prog_compiler_wl_GCJ='-Wl,'
16631 # PIC (with -KPIC) is the default.
16632 lt_prog_compiler_static_GCJ='-non_shared'
16636 lt_prog_compiler_pic_GCJ='-KPIC'
16637 lt_prog_compiler_static_GCJ='-Bstatic'
16640 linux* | k*bsd*-gnu)
16641 case $cc_basename in
16643 lt_prog_compiler_wl_GCJ='-Wl,'
16644 lt_prog_compiler_pic_GCJ='-KPIC'
16645 lt_prog_compiler_static_GCJ='-static'
16647 pgcc* | pgf77* | pgf90* | pgf95*)
16648 # Portland Group compilers (*not* the Pentium gcc compiler,
16649 # which looks to be a dead project)
16650 lt_prog_compiler_wl_GCJ='-Wl,'
16651 lt_prog_compiler_pic_GCJ='-fpic'
16652 lt_prog_compiler_static_GCJ='-Bstatic'
16655 lt_prog_compiler_wl_GCJ='-Wl,'
16656 # All Alpha code is PIC.
16657 lt_prog_compiler_static_GCJ='-non_shared'
16662 osf3* | osf4* | osf5*)
16663 lt_prog_compiler_wl_GCJ='-Wl,'
16664 # All OSF/1 code is PIC.
16665 lt_prog_compiler_static_GCJ='-non_shared'
16669 lt_prog_compiler_pic_GCJ='-KPIC'
16670 lt_prog_compiler_static_GCJ='-Bstatic'
16671 case $cc_basename in
16672 f77* | f90* | f95*)
16673 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16675 lt_prog_compiler_wl_GCJ='-Wl,';;
16680 lt_prog_compiler_wl_GCJ='-Qoption ld '
16681 lt_prog_compiler_pic_GCJ='-PIC'
16682 lt_prog_compiler_static_GCJ='-Bstatic'
16685 sysv4 | sysv4.2uw2* | sysv4.3*)
16686 lt_prog_compiler_wl_GCJ='-Wl,'
16687 lt_prog_compiler_pic_GCJ='-KPIC'
16688 lt_prog_compiler_static_GCJ='-Bstatic'
16692 if test -d /usr/nec ;then
16693 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16694 lt_prog_compiler_static_GCJ='-Bstatic'
16698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16699 lt_prog_compiler_wl_GCJ='-Wl,'
16700 lt_prog_compiler_pic_GCJ='-KPIC'
16701 lt_prog_compiler_static_GCJ='-Bstatic'
16705 lt_prog_compiler_wl_GCJ='-Wl,'
16706 lt_prog_compiler_can_build_shared_GCJ=no
16710 lt_prog_compiler_pic_GCJ='-pic'
16711 lt_prog_compiler_static_GCJ='-Bstatic'
16715 lt_prog_compiler_can_build_shared_GCJ=no
16720 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16721 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16724 # Check to make sure the PIC flag actually works.
16726 if test -n "$lt_prog_compiler_pic_GCJ"; then
16728 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16729 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16730 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 lt_prog_compiler_pic_works_GCJ=no
16734 ac_outfile=conftest.$ac_objext
16735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16736 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16737 # Insert the option either (1) after the last *FLAGS variable, or
16738 # (2) before a word containing "conftest.", or (3) at the end.
16739 # Note that $ac_compile itself does not contain backslashes and begins
16740 # with a dollar sign (not a hyphen), so the echo should work correctly.
16741 # The option is referenced via a variable to avoid confusing sed.
16742 lt_compile=`echo "$ac_compile" | $SED \
16743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16745 -e 's:$: $lt_compiler_flag:'`
16746 (eval echo "\"\$as_me:16746: $lt_compile\"" >&5)
16747 (eval "$lt_compile" 2>conftest.err)
16749 cat conftest.err >&5
16750 echo "$as_me:16750: \$? = $ac_status" >&5
16751 if (exit $ac_status) && test -s "$ac_outfile"; then
16752 # The compiler can only warn and ignore the option if not recognized
16753 # So say no if there are warnings other than the usual output.
16754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16757 lt_prog_compiler_pic_works_GCJ=yes
16763 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16764 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16766 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16767 case $lt_prog_compiler_pic_GCJ in
16769 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16772 lt_prog_compiler_pic_GCJ=
16773 lt_prog_compiler_can_build_shared_GCJ=no
16778 # For platforms which do not support PIC, -DPIC is meaningless:
16780 lt_prog_compiler_pic_GCJ=
16783 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16788 # Check to make sure the static flag actually works.
16790 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16791 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16792 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16793 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16796 lt_prog_compiler_static_works_GCJ=no
16797 save_LDFLAGS="$LDFLAGS"
16798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16799 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16801 # The linker can only warn and ignore the option if not recognized
16802 # So say no if there are warnings
16803 if test -s conftest.err; then
16804 # Append any errors to the config.log.
16805 cat conftest.err 1>&5
16806 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16808 if diff conftest.exp conftest.er2 >/dev/null; then
16809 lt_prog_compiler_static_works_GCJ=yes
16812 lt_prog_compiler_static_works_GCJ=yes
16816 LDFLAGS="$save_LDFLAGS"
16819 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16820 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16822 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16825 lt_prog_compiler_static_GCJ=
16829 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16830 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16831 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 lt_cv_prog_compiler_c_o_GCJ=no
16835 $rm -r conftest 2>/dev/null
16839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16841 lt_compiler_flag="-o out/conftest2.$ac_objext"
16842 # Insert the option either (1) after the last *FLAGS variable, or
16843 # (2) before a word containing "conftest.", or (3) at the end.
16844 # Note that $ac_compile itself does not contain backslashes and begins
16845 # with a dollar sign (not a hyphen), so the echo should work correctly.
16846 lt_compile=`echo "$ac_compile" | $SED \
16847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16849 -e 's:$: $lt_compiler_flag:'`
16850 (eval echo "\"\$as_me:16850: $lt_compile\"" >&5)
16851 (eval "$lt_compile" 2>out/conftest.err)
16853 cat out/conftest.err >&5
16854 echo "$as_me:16854: \$? = $ac_status" >&5
16855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16857 # The compiler can only warn and ignore the option if not recognized
16858 # So say no if there are warnings
16859 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16862 lt_cv_prog_compiler_c_o_GCJ=yes
16867 # SGI C++ compiler will create directory out/ii_files/ for
16868 # template instantiation
16869 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16870 $rm out/* && rmdir out
16876 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16877 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16880 hard_links="nottested"
16881 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16882 # do not overwrite the value of need_locks provided by the user
16883 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16884 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16889 ln conftest.a conftest.b 2>&5 || hard_links=no
16890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16891 { echo "$as_me:$LINENO: result: $hard_links" >&5
16892 echo "${ECHO_T}$hard_links" >&6; }
16893 if test "$hard_links" = no; then
16894 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16895 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16902 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16903 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16906 allow_undefined_flag_GCJ=
16907 enable_shared_with_static_runtimes_GCJ=no
16909 archive_expsym_cmds_GCJ=
16910 old_archive_From_new_cmds_GCJ=
16911 old_archive_from_expsyms_cmds_GCJ=
16912 export_dynamic_flag_spec_GCJ=
16913 whole_archive_flag_spec_GCJ=
16914 thread_safe_flag_spec_GCJ=
16915 hardcode_libdir_flag_spec_GCJ=
16916 hardcode_libdir_flag_spec_ld_GCJ=
16917 hardcode_libdir_separator_GCJ=
16918 hardcode_direct_GCJ=no
16919 hardcode_minus_L_GCJ=no
16920 hardcode_shlibpath_var_GCJ=unsupported
16921 link_all_deplibs_GCJ=unknown
16922 hardcode_automatic_GCJ=no
16924 module_expsym_cmds_GCJ=
16925 always_export_symbols_GCJ=no
16926 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16927 # include_expsyms should be a list of space-separated symbols to be *always*
16928 # included in the symbol list
16929 include_expsyms_GCJ=
16930 # exclude_expsyms can be an extended regexp of symbols to exclude
16931 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16932 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16933 # as well as any symbol that contains `d'.
16934 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16936 # platforms (ab)use it in PIC code, but their linkers get confused if
16937 # the symbol is explicitly referenced. Since portable code cannot
16938 # rely on this symbol name, it's probably fine to never include it in
16939 # preloaded symbol tables.
16940 extract_expsyms_cmds=
16941 # Just being paranoid about ensuring that cc_basename is set.
16942 for cc_temp in $compiler""; do
16944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16953 cygwin* | mingw* | pw32*)
16954 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16955 # When not using gcc, we currently assume that we are using
16956 # Microsoft Visual C++.
16957 if test "$GCC" != yes; then
16962 # we just hope/assume this is gcc and not c89 (= MSVC++)
16971 if test "$with_gnu_ld" = yes; then
16972 # If archive_cmds runs LD, not CC, wlarc should be empty
16975 # Set some defaults for GNU ld with shared library support. These
16976 # are reset later if shared libraries are not supported. Putting them
16977 # here allows them to be overridden if necessary.
16978 runpath_var=LD_RUN_PATH
16979 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16980 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16981 # ancient GNU ld didn't support --whole-archive et. al.
16982 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16983 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16985 whole_archive_flag_spec_GCJ=
16987 supports_anon_versioning=no
16988 case `$LD -v 2>/dev/null` in
16989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16992 *\ 2.11.*) ;; # other 2.11 versions
16993 *) supports_anon_versioning=yes ;;
16996 # See if GNU ld supports shared libraries.
16998 aix3* | aix4* | aix5*)
16999 # On AIX/PPC, the GNU linker is very broken
17000 if test "$host_cpu" != ia64; then
17004 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17005 *** to be unable to reliably create shared libraries on AIX.
17006 *** Therefore, libtool is disabling shared libraries support. If you
17007 *** really care for shared libraries, you may want to modify your PATH
17008 *** so that a non-GNU linker is found, and then restart.
17015 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)'
17016 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17017 hardcode_minus_L_GCJ=yes
17019 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17020 # that the semantics of dynamic libraries on AmigaOS, at least up
17021 # to version 4, is to share data among multiple programs linked
17022 # with the same dynamic library. Since this doesn't match the
17023 # behavior of shared libraries on other platforms, we can't use
17029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030 allow_undefined_flag_GCJ=unsupported
17031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17032 # support --undefined. This deserves some investigation. FIXME
17033 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17039 cygwin* | mingw* | pw32*)
17040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17041 # as there is no search path for DLLs.
17042 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17043 allow_undefined_flag_GCJ=unsupported
17044 always_export_symbols_GCJ=no
17045 enable_shared_with_static_runtimes_GCJ=yes
17046 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17048 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17049 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17050 # If the export-symbols file already is a .def file (1st line
17051 # is EXPORTS), use it as is; otherwise, prepend...
17052 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17053 cp $export_symbols $output_objdir/$soname.def;
17055 echo EXPORTS > $output_objdir/$soname.def;
17056 cat $export_symbols >> $output_objdir/$soname.def;
17058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17065 hardcode_direct_GCJ=no
17066 hardcode_shlibpath_var_GCJ=no
17067 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17068 export_dynamic_flag_spec_GCJ='${wl}-E'
17069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17070 # Instead, shared libraries are loaded at an image base (0x10000000 by
17071 # default) and relocated if they conflict, which is a slow very memory
17072 # consuming and fragmenting process. To avoid this, we pick a random,
17073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17075 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'
17076 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'
17079 linux* | k*bsd*-gnu)
17080 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17082 case $cc_basename,$host_cpu in
17083 pgcc*) # Portland Group C compiler
17084 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'
17085 tmp_addflag=' $pic_flag'
17087 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17088 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'
17089 tmp_addflag=' $pic_flag -Mnomain' ;;
17090 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17091 tmp_addflag=' -i_dynamic' ;;
17092 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17093 tmp_addflag=' -i_dynamic -nofor_main' ;;
17094 ifc* | ifort*) # Intel Fortran compiler
17095 tmp_addflag=' -nofor_main' ;;
17097 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17099 if test $supports_anon_versioning = yes; then
17100 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17102 $echo "local: *; };" >> $output_objdir/$libname.ver~
17103 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17105 link_all_deplibs_GCJ=no
17111 netbsd* | netbsdelf*-gnu)
17112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17113 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17116 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17117 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17122 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17127 *** create shared libraries on Solaris systems. Therefore, libtool
17128 *** is disabling shared libraries support. We urge you to upgrade GNU
17129 *** binutils to release 2.9.1 or newer. Another option is to modify
17130 *** your PATH or compiler configuration so that the native linker is
17131 *** used, and then restart.
17134 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17135 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17136 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17143 case `$LD -v 2>&1` in
17144 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17149 *** reliably create shared libraries on SCO systems. Therefore, libtool
17150 *** is disabling shared libraries support. We urge you to upgrade GNU
17151 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17152 *** your PATH or compiler configuration so that the native linker is
17153 *** used, and then restart.
17158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17159 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17160 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17161 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17170 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17172 hardcode_direct_GCJ=yes
17173 hardcode_shlibpath_var_GCJ=no
17177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17178 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17179 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17186 if test "$ld_shlibs_GCJ" = no; then
17188 hardcode_libdir_flag_spec_GCJ=
17189 export_dynamic_flag_spec_GCJ=
17190 whole_archive_flag_spec_GCJ=
17193 # PORTME fill in a description of your system's linker (not GNU ld)
17196 allow_undefined_flag_GCJ=unsupported
17197 always_export_symbols_GCJ=yes
17198 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'
17199 # Note: this linker hardcodes the directories in LIBPATH if there
17200 # are no directories specified by -L.
17201 hardcode_minus_L_GCJ=yes
17202 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17203 # Neither direct hardcoding nor static linking is supported with a
17205 hardcode_direct_GCJ=unsupported
17210 if test "$host_cpu" = ia64; then
17211 # On IA64, the linker does run time linking by default, so we don't
17212 # have to do anything special.
17213 aix_use_runtimelinking=no
17214 exp_sym_flag='-Bexport'
17217 # If we're using GNU nm, then we don't want the "-C" option.
17218 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17219 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17220 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'
17222 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'
17224 aix_use_runtimelinking=no
17226 # Test if we are trying to use run time linking or normal
17227 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17228 # need to do runtime linking.
17229 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17230 for ld_flag in $LDFLAGS; do
17231 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17232 aix_use_runtimelinking=yes
17239 exp_sym_flag='-bexport'
17240 no_entry_flag='-bnoentry'
17243 # When large executables or shared objects are built, AIX ld can
17244 # have problems creating the table of contents. If linking a library
17245 # or program results in "error TOC overflow" add -mminimal-toc to
17246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17249 archive_cmds_GCJ=''
17250 hardcode_direct_GCJ=yes
17251 hardcode_libdir_separator_GCJ=':'
17252 link_all_deplibs_GCJ=yes
17254 if test "$GCC" = yes; then
17255 case $host_os in aix4.[012]|aix4.[012].*)
17256 # We only want to do this on AIX 4.2 and lower, the check
17257 # below for broken collect2 doesn't work under 4.3+
17258 collect2name=`${CC} -print-prog-name=collect2`
17259 if test -f "$collect2name" && \
17260 strings "$collect2name" | grep resolve_lib_name >/dev/null
17262 # We have reworked collect2
17263 hardcode_direct_GCJ=yes
17265 # We have old collect2
17266 hardcode_direct_GCJ=unsupported
17267 # It fails to find uninstalled libraries when the uninstalled
17268 # path is not listed in the libpath. Setting hardcode_minus_L
17269 # to unsupported forces relinking
17270 hardcode_minus_L_GCJ=yes
17271 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17272 hardcode_libdir_separator_GCJ=
17276 shared_flag='-shared'
17277 if test "$aix_use_runtimelinking" = yes; then
17278 shared_flag="$shared_flag "'${wl}-G'
17282 if test "$host_cpu" = ia64; then
17283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17284 # chokes on -Wl,-G. The following line is correct:
17287 if test "$aix_use_runtimelinking" = yes; then
17288 shared_flag='${wl}-G'
17290 shared_flag='${wl}-bM:SRE'
17295 # It seems that -bexpall does not export symbols beginning with
17296 # underscore (_), so it is better to generate a list of symbols to export.
17297 always_export_symbols_GCJ=yes
17298 if test "$aix_use_runtimelinking" = yes; then
17299 # Warning - without using the other runtime loading flags (-brtl),
17300 # -berok will link without error, but may produce a broken library.
17301 allow_undefined_flag_GCJ='-berok'
17302 # Determine the default libpath from the value encoded in an empty executable.
17303 cat >conftest.$ac_ext <<_ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>conftest.er1
17327 grep -v '^ *+' conftest.er1 >conftest.err
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest$ac_exeext &&
17335 $as_test_x conftest$ac_exeext; then
17337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17339 # Check for a 64-bit object if we didn't find anything.
17340 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17350 conftest$ac_exeext conftest.$ac_ext
17351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17353 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17354 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"
17356 if test "$host_cpu" = ia64; then
17357 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17358 allow_undefined_flag_GCJ="-z nodefs"
17359 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"
17361 # Determine the default libpath from the value encoded in an empty executable.
17362 cat >conftest.$ac_ext <<_ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (ac_try="$ac_link"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_link") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest$ac_exeext &&
17394 $as_test_x conftest$ac_exeext; then
17396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17398 # Check for a 64-bit object if we didn't find anything.
17399 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; }
17402 echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17409 conftest$ac_exeext conftest.$ac_ext
17410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17412 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17413 # Warning - without using the other run time loading flags,
17414 # -berok will link without error, but may produce a broken library.
17415 no_undefined_flag_GCJ=' ${wl}-bernotok'
17416 allow_undefined_flag_GCJ=' ${wl}-berok'
17417 # Exported symbols can be pulled into shared objects from archives
17418 whole_archive_flag_spec_GCJ='$convenience'
17419 archive_cmds_need_lc_GCJ=yes
17420 # This is similar to how AIX traditionally builds its shared libraries.
17421 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'
17427 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)'
17428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17429 hardcode_minus_L_GCJ=yes
17430 # see comment about different semantics on the GNU ld section
17435 export_dynamic_flag_spec_GCJ=-rdynamic
17438 cygwin* | mingw* | pw32*)
17439 # When not using gcc, we currently assume that we are using
17440 # Microsoft Visual C++.
17441 # hardcode_libdir_flag_spec is actually meaningless, as there is
17442 # no search path for DLLs.
17443 hardcode_libdir_flag_spec_GCJ=' '
17444 allow_undefined_flag_GCJ=unsupported
17445 # Tell ltmain to make .lib files, not .a files.
17447 # Tell ltmain to make .dll files, not .so files.
17449 # FIXME: Setting linknames here is a bad hack.
17450 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17451 # The linker will automatically build a .lib file if we build a DLL.
17452 old_archive_From_new_cmds_GCJ='true'
17453 # FIXME: Should let the user specify the lib program.
17454 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17455 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17456 enable_shared_with_static_runtimes_GCJ=yes
17459 darwin* | rhapsody*)
17461 rhapsody* | darwin1.[012])
17462 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17465 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17466 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17468 case ${MACOSX_DEPLOYMENT_TARGET} in
17470 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17473 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17479 archive_cmds_need_lc_GCJ=no
17480 hardcode_direct_GCJ=no
17481 hardcode_automatic_GCJ=yes
17482 hardcode_shlibpath_var_GCJ=unsupported
17483 whole_archive_flag_spec_GCJ=''
17484 link_all_deplibs_GCJ=yes
17485 if test "$GCC" = yes ; then
17486 output_verbose_link_cmd='echo'
17487 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17488 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17490 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}'
17491 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}'
17493 case $cc_basename in
17495 output_verbose_link_cmd='echo'
17496 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17497 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17498 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17499 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}'
17500 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}'
17510 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17512 hardcode_shlibpath_var_GCJ=no
17519 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17520 # support. Future versions do this automatically, but an explicit c++rt0.o
17521 # does not break anything, and helps significantly (at the cost of a little
17524 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17525 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17526 hardcode_direct_GCJ=yes
17527 hardcode_shlibpath_var_GCJ=no
17530 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17532 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17533 hardcode_direct_GCJ=yes
17534 hardcode_minus_L_GCJ=yes
17535 hardcode_shlibpath_var_GCJ=no
17538 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17539 freebsd* | dragonfly*)
17540 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17541 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17542 hardcode_direct_GCJ=yes
17543 hardcode_shlibpath_var_GCJ=no
17547 if test "$GCC" = yes; then
17548 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'
17550 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'
17552 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17553 hardcode_libdir_separator_GCJ=:
17554 hardcode_direct_GCJ=yes
17556 # hardcode_minus_L: Not really in the search PATH,
17557 # but as the default location of the library.
17558 hardcode_minus_L_GCJ=yes
17559 export_dynamic_flag_spec_GCJ='${wl}-E'
17563 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17564 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17566 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17568 if test "$with_gnu_ld" = no; then
17569 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17570 hardcode_libdir_separator_GCJ=:
17572 hardcode_direct_GCJ=yes
17573 export_dynamic_flag_spec_GCJ='${wl}-E'
17575 # hardcode_minus_L: Not really in the search PATH,
17576 # but as the default location of the library.
17577 hardcode_minus_L_GCJ=yes
17582 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17585 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17588 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17591 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17597 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17600 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17603 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17607 if test "$with_gnu_ld" = no; then
17608 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17609 hardcode_libdir_separator_GCJ=:
17613 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17614 hardcode_direct_GCJ=no
17615 hardcode_shlibpath_var_GCJ=no
17618 hardcode_direct_GCJ=yes
17619 export_dynamic_flag_spec_GCJ='${wl}-E'
17621 # hardcode_minus_L: Not really in the search PATH,
17622 # but as the default location of the library.
17623 hardcode_minus_L_GCJ=yes
17629 irix5* | irix6* | nonstopux*)
17630 if test "$GCC" = yes; then
17631 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'
17633 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'
17634 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17636 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17637 hardcode_libdir_separator_GCJ=:
17638 link_all_deplibs_GCJ=yes
17641 netbsd* | netbsdelf*-gnu)
17642 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17643 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17645 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17647 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17648 hardcode_direct_GCJ=yes
17649 hardcode_shlibpath_var_GCJ=no
17653 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17654 hardcode_direct_GCJ=yes
17655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17656 hardcode_libdir_separator_GCJ=:
17657 hardcode_shlibpath_var_GCJ=no
17661 hardcode_direct_GCJ=yes
17662 hardcode_shlibpath_var_GCJ=no
17663 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17664 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17665 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17666 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17667 export_dynamic_flag_spec_GCJ='${wl}-E'
17670 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17671 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17672 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17675 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17676 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17683 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17684 hardcode_minus_L_GCJ=yes
17685 allow_undefined_flag_GCJ=unsupported
17686 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'
17687 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17691 if test "$GCC" = yes; then
17692 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17693 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'
17695 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17696 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'
17698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17699 hardcode_libdir_separator_GCJ=:
17702 osf4* | osf5*) # as osf3* with the addition of -msym flag
17703 if test "$GCC" = yes; then
17704 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17705 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'
17706 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17708 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17709 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'
17710 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~
17711 $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'
17713 # Both c and cxx compiler support -rpath directly
17714 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17716 hardcode_libdir_separator_GCJ=:
17720 no_undefined_flag_GCJ=' -z text'
17721 if test "$GCC" = yes; then
17723 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17724 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17725 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17728 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17729 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17732 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17733 hardcode_shlibpath_var_GCJ=no
17735 solaris2.[0-5] | solaris2.[0-5].*) ;;
17737 # The compiler driver will combine linker options so we
17738 # cannot just pass the convience library names through
17739 # without $wl, iff we do not link with $LD.
17740 # Luckily, gcc supports the same syntax we need for Sun Studio.
17741 # Supported since Solaris 2.6 (maybe 2.5.1?)
17744 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17746 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' ;;
17749 link_all_deplibs_GCJ=yes
17753 if test "x$host_vendor" = xsequent; then
17754 # Use $CC to link under sequent, because it throws in some extra .o
17755 # files that make .init and .fini sections work.
17756 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17758 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17761 hardcode_direct_GCJ=yes
17762 hardcode_minus_L_GCJ=yes
17763 hardcode_shlibpath_var_GCJ=no
17767 case $host_vendor in
17769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17770 hardcode_direct_GCJ=yes # is this really true???
17773 ## LD is ld it makes a PLAMLIB
17774 ## CC just makes a GrossModule.
17775 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17776 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17777 hardcode_direct_GCJ=no
17780 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17781 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17784 runpath_var='LD_RUN_PATH'
17785 hardcode_shlibpath_var_GCJ=no
17789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17790 hardcode_shlibpath_var_GCJ=no
17791 export_dynamic_flag_spec_GCJ='-Bexport'
17795 if test -d /usr/nec; then
17796 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17797 hardcode_shlibpath_var_GCJ=no
17798 runpath_var=LD_RUN_PATH
17799 hardcode_runpath_var=yes
17804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17805 no_undefined_flag_GCJ='${wl}-z,text'
17806 archive_cmds_need_lc_GCJ=no
17807 hardcode_shlibpath_var_GCJ=no
17808 runpath_var='LD_RUN_PATH'
17810 if test "$GCC" = yes; then
17811 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17812 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17814 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17815 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17819 sysv5* | sco3.2v5* | sco5v6*)
17820 # Note: We can NOT use -z defs as we might desire, because we do not
17821 # link with -lc, and that would cause any symbols used from libc to
17822 # always be unresolved, which means just about no library would
17823 # ever link correctly. If we're not using GNU ld we use -z text
17824 # though, which does catch some bad symbols but isn't as heavy-handed
17826 no_undefined_flag_GCJ='${wl}-z,text'
17827 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17828 archive_cmds_need_lc_GCJ=no
17829 hardcode_shlibpath_var_GCJ=no
17830 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17831 hardcode_libdir_separator_GCJ=':'
17832 link_all_deplibs_GCJ=yes
17833 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17834 runpath_var='LD_RUN_PATH'
17836 if test "$GCC" = yes; then
17837 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17838 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17840 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17841 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17847 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17848 hardcode_shlibpath_var_GCJ=no
17857 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17858 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17859 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17862 # Do we need to explicitly link libc?
17864 case "x$archive_cmds_need_lc_GCJ" in
17866 # Assume -lc should be added
17867 archive_cmds_need_lc_GCJ=yes
17869 if test "$enable_shared" = yes && test "$GCC" = yes; then
17870 case $archive_cmds_GCJ in
17872 # FIXME: we may have to deal with multi-command sequences.
17875 # Test whether the compiler implicitly links with -lc since on some
17876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17877 # to ld, don't add -lc before -lgcc.
17878 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17879 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17884 (eval $ac_compile) 2>&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } 2>conftest.err; then
17890 libobjs=conftest.$ac_objext
17892 wl=$lt_prog_compiler_wl_GCJ
17893 pic_flag=$lt_prog_compiler_pic_GCJ
17899 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17900 allow_undefined_flag_GCJ=
17901 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17902 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }
17907 archive_cmds_need_lc_GCJ=no
17909 archive_cmds_need_lc_GCJ=yes
17911 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17913 cat conftest.err 1>&5
17916 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17917 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17924 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17925 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17926 library_names_spec=
17927 libname_spec='lib$name'
17931 postuninstall_cmds=
17935 shlibpath_overrides_runpath=unknown
17937 dynamic_linker="$host_os ld.so"
17938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17939 if test "$GCC" = yes; then
17940 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17941 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17942 # if the path contains ";" then we assume it to be the separator
17943 # otherwise default to the standard path separator (i.e. ":") - it is
17944 # assumed that no part of a normal pathname contains ";" but that should
17945 # okay in the real world where ";" in dirpaths is itself problematic.
17946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17951 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17953 need_lib_prefix=unknown
17954 hardcode_into_libs=no
17956 # when you set need_version to no, make sure it does not cause -set_version
17957 # flags to be left without arguments
17958 need_version=unknown
17963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17964 shlibpath_var=LIBPATH
17966 # AIX 3 has no versioning support, so we append a major version to the name.
17967 soname_spec='${libname}${release}${shared_ext}$major'
17974 hardcode_into_libs=yes
17975 if test "$host_cpu" = ia64; then
17976 # AIX 5 supports IA64
17977 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17978 shlibpath_var=LD_LIBRARY_PATH
17980 # With GCC up to 2.95.x, collect2 would create an import file
17981 # for dependence libraries. The import file would start with
17982 # the line `#! .'. This would cause the generated library to
17983 # depend on `.', always an invalid library. This was fixed in
17984 # development snapshots of GCC prior to 3.0.
17986 aix4 | aix4.[01] | aix4.[01].*)
17987 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17989 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17992 can_build_shared=no
17996 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17997 # soname into executable. Probably we can add versioning support to
17998 # collect2, so additional links can be useful in future.
17999 if test "$aix_use_runtimelinking" = yes; then
18000 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18001 # instead of lib<name>.a to let people know that these are not
18002 # typical AIX shared libraries.
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005 # We preserve .a as extension for shared libraries through AIX4.2
18006 # and later when we are not doing run time linking.
18007 library_names_spec='${libname}${release}.a $libname.a'
18008 soname_spec='${libname}${release}${shared_ext}$major'
18010 shlibpath_var=LIBPATH
18015 library_names_spec='$libname.ixlibrary $libname.a'
18016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18017 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'
18021 library_names_spec='${libname}${shared_ext}'
18022 dynamic_linker="$host_os ld.so"
18023 shlibpath_var=LIBRARY_PATH
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030 soname_spec='${libname}${release}${shared_ext}$major'
18031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18032 shlibpath_var=LD_LIBRARY_PATH
18033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18035 # the default ld.so.conf also contains /usr/contrib/lib and
18036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18037 # libtool to hard-code these into programs
18040 cygwin* | mingw* | pw32*)
18041 version_type=windows
18046 case $GCC,$host_os in
18047 yes,cygwin* | yes,mingw* | yes,pw32*)
18048 library_names_spec='$libname.dll.a'
18049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18050 postinstall_cmds='base_file=`basename \${file}`~
18051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18052 dldir=$destdir/`dirname \$dlpath`~
18053 test -d \$dldir || mkdir -p \$dldir~
18054 $install_prog $dir/$dlname \$dldir/$dlname~
18055 chmod a+x \$dldir/$dlname'
18056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18057 dlpath=$dir/\$dldll~
18059 shlibpath_overrides_runpath=yes
18063 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18064 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18065 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18068 # MinGW DLLs use traditional 'lib' prefix
18069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18070 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18071 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18072 # It is most probably a Windows format PATH printed by
18073 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18074 # path with ; separators, and with drive letters. We can handle the
18075 # drive letters (cygwin fileutils understands them), so leave them,
18076 # especially as we might pass files found there to a mingw objdump,
18077 # which wouldn't understand a cygwinified path. Ahh.
18078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18084 # pw32 DLLs use 'pw' prefix rather than 'lib'
18085 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18091 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18094 dynamic_linker='Win32 ld.exe'
18095 # FIXME: first we should search . and the directory the executable is in
18099 darwin* | rhapsody*)
18100 dynamic_linker="$host_os dyld"
18101 version_type=darwin
18104 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18105 soname_spec='${libname}${release}${major}$shared_ext'
18106 shlibpath_overrides_runpath=yes
18107 shlibpath_var=DYLD_LIBRARY_PATH
18108 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18109 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18110 if test "$GCC" = yes; then
18111 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"`
18113 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18123 soname_spec='${libname}${release}${shared_ext}$major'
18124 shlibpath_var=LD_LIBRARY_PATH
18131 freebsd* | dragonfly*)
18132 # DragonFly does not have aout. When/if they implement a new
18133 # versioning mechanism, adjust this.
18134 if test -x /usr/bin/objformat; then
18135 objformat=`/usr/bin/objformat`
18138 freebsd[123]*) objformat=aout ;;
18139 *) objformat=elf ;;
18142 version_type=freebsd-$objformat
18143 case $version_type in
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18154 shlibpath_var=LD_LIBRARY_PATH
18157 shlibpath_overrides_runpath=yes
18159 freebsd3.[01]* | freebsdelf3.[01]*)
18160 shlibpath_overrides_runpath=yes
18161 hardcode_into_libs=yes
18163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18165 shlibpath_overrides_runpath=no
18166 hardcode_into_libs=yes
18168 freebsd*) # from 4.6 on
18169 shlibpath_overrides_runpath=yes
18170 hardcode_into_libs=yes
18179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18180 soname_spec='${libname}${release}${shared_ext}$major'
18181 shlibpath_var=LD_LIBRARY_PATH
18182 hardcode_into_libs=yes
18185 hpux9* | hpux10* | hpux11*)
18186 # Give a soname corresponding to the major version so that dld.sl refuses to
18187 # link against other versions.
18194 hardcode_into_libs=yes
18195 dynamic_linker="$host_os dld.so"
18196 shlibpath_var=LD_LIBRARY_PATH
18197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18199 soname_spec='${libname}${release}${shared_ext}$major'
18200 if test "X$HPUX_IA64_MODE" = X32; then
18201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18209 hardcode_into_libs=yes
18210 dynamic_linker="$host_os dld.sl"
18211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18220 dynamic_linker="$host_os dld.sl"
18221 shlibpath_var=SHLIB_PATH
18222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18224 soname_spec='${libname}${release}${shared_ext}$major'
18227 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18228 postinstall_cmds='chmod 555 $lib'
18235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18236 soname_spec='${libname}${release}${shared_ext}$major'
18237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18238 shlibpath_var=LD_LIBRARY_PATH
18239 shlibpath_overrides_runpath=no
18240 hardcode_into_libs=yes
18243 irix5* | irix6* | nonstopux*)
18245 nonstopux*) version_type=nonstopux ;;
18247 if test "$lt_cv_prog_gnu_ld" = yes; then
18255 soname_spec='${libname}${release}${shared_ext}$major'
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18258 irix5* | nonstopux*)
18259 libsuff= shlibsuff=
18262 case $LD in # libtool.m4 will add one of these switches to LD
18263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18264 libsuff= shlibsuff= libmagic=32-bit;;
18265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18266 libsuff=32 shlibsuff=N32 libmagic=N32;;
18267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18269 *) libsuff= shlibsuff= libmagic=never-match;;
18273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18274 shlibpath_overrides_runpath=no
18275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18277 hardcode_into_libs=yes
18280 # No shared lib support for Linux oldld, aout, or coff.
18281 linux*oldld* | linux*aout* | linux*coff*)
18285 # This must be Linux ELF.
18286 linux* | k*bsd*-gnu)
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18293 shlibpath_var=LD_LIBRARY_PATH
18294 shlibpath_overrides_runpath=no
18295 # This implies no fast_install, which is unacceptable.
18296 # Some rework will be needed to allow for fast_install
18297 # before this can be enabled.
18298 hardcode_into_libs=yes
18300 # Append ld.so.conf contents to the search path
18301 if test -f /etc/ld.so.conf; then
18302 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' ' '`
18303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18306 # We used to test for /lib/ld.so.1 and disable shared libraries on
18307 # powerpc, because MkLinux only supported shared libraries with the
18308 # GNU dynamic linker. Since this was broken with cross compilers,
18309 # most powerpc-linux boxes support dynamic linking these days and
18310 # people can always --disable-shared, the test was removed, and we
18311 # assume the GNU/Linux dynamic linker is in use.
18312 dynamic_linker='GNU/Linux ld.so'
18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18320 soname_spec='${libname}${release}${shared_ext}$major'
18321 shlibpath_var=LD_LIBRARY_PATH
18322 shlibpath_overrides_runpath=no
18323 hardcode_into_libs=yes
18324 dynamic_linker='NetBSD ld.elf_so'
18331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18334 dynamic_linker='NetBSD (a.out) ld.so'
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 dynamic_linker='NetBSD ld.elf_so'
18340 shlibpath_var=LD_LIBRARY_PATH
18341 shlibpath_overrides_runpath=yes
18342 hardcode_into_libs=yes
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18348 shlibpath_var=LD_LIBRARY_PATH
18349 shlibpath_overrides_runpath=yes
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 soname_spec='${libname}${release}${shared_ext}$major'
18358 shlibpath_var=LD_LIBRARY_PATH
18359 shlibpath_overrides_runpath=yes
18364 sys_lib_dlsearch_path_spec="/usr/lib"
18366 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18368 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18369 *) need_version=no ;;
18371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18373 shlibpath_var=LD_LIBRARY_PATH
18374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18376 openbsd2.[89] | openbsd2.[89].*)
18377 shlibpath_overrides_runpath=no
18380 shlibpath_overrides_runpath=yes
18384 shlibpath_overrides_runpath=yes
18389 libname_spec='$name'
18392 library_names_spec='$libname${shared_ext} $libname.a'
18393 dynamic_linker='OS/2 ld.exe'
18394 shlibpath_var=LIBPATH
18397 osf3* | osf4* | osf5*)
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18403 shlibpath_var=LD_LIBRARY_PATH
18404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18413 soname_spec='${libname}${release}${shared_ext}$major'
18414 shlibpath_var=LD_LIBRARY_PATH
18415 shlibpath_overrides_runpath=yes
18416 hardcode_into_libs=yes
18417 # ldd complains unless libraries are executable
18418 postinstall_cmds='chmod +x $lib'
18423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18424 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18425 shlibpath_var=LD_LIBRARY_PATH
18426 shlibpath_overrides_runpath=yes
18427 if test "$with_gnu_ld" = yes; then
18435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18436 soname_spec='${libname}${release}${shared_ext}$major'
18437 shlibpath_var=LD_LIBRARY_PATH
18438 case $host_vendor in
18440 shlibpath_overrides_runpath=no
18442 export_dynamic_flag_spec='${wl}-Blargedynsym'
18443 runpath_var=LD_RUN_PATH
18451 shlibpath_overrides_runpath=no
18452 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18458 if test -d /usr/nec ;then
18460 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18461 soname_spec='$libname${shared_ext}.$major'
18462 shlibpath_var=LD_LIBRARY_PATH
18466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18467 version_type=freebsd-elf
18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18471 soname_spec='${libname}${release}${shared_ext}$major'
18472 shlibpath_var=LD_LIBRARY_PATH
18473 hardcode_into_libs=yes
18474 if test "$with_gnu_ld" = yes; then
18475 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18476 shlibpath_overrides_runpath=no
18478 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18479 shlibpath_overrides_runpath=yes
18482 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18486 sys_lib_dlsearch_path_spec='/usr/lib'
18491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18492 soname_spec='${libname}${release}${shared_ext}$major'
18493 shlibpath_var=LD_LIBRARY_PATH
18500 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18501 echo "${ECHO_T}$dynamic_linker" >&6; }
18502 test "$dynamic_linker" = no && can_build_shared=no
18504 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18505 if test "$GCC" = yes; then
18506 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18509 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18510 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18511 hardcode_action_GCJ=
18512 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18513 test -n "$runpath_var_GCJ" || \
18514 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18516 # We can hardcode non-existant directories.
18517 if test "$hardcode_direct_GCJ" != no &&
18518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18519 # have to relink, otherwise we might link with an installed library
18520 # when we should be linking with a yet-to-be-installed one
18521 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18522 test "$hardcode_minus_L_GCJ" != no; then
18523 # Linking always hardcodes the temporary library directory.
18524 hardcode_action_GCJ=relink
18526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18527 hardcode_action_GCJ=immediate
18530 # We cannot hardcode anything, or else we can only hardcode existing
18532 hardcode_action_GCJ=unsupported
18534 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18535 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18537 if test "$hardcode_action_GCJ" = relink; then
18538 # Fast installation is not supported
18539 enable_fast_install=no
18540 elif test "$shlibpath_overrides_runpath" = yes ||
18541 test "$enable_shared" = no; then
18542 # Fast installation is not necessary
18543 enable_fast_install=needless
18547 # The else clause should only fire when bootstrapping the
18548 # libtool distribution, otherwise you forgot to ship ltmain.sh
18549 # with your package, and you will get complaints that there are
18550 # no rules to generate ltmain.sh.
18551 if test -f "$ltmain"; then
18552 # See if we are running on zsh, and set the options which allow our commands through
18553 # without removal of \ escapes.
18554 if test -n "${ZSH_VERSION+set}" ; then
18555 setopt NO_GLOB_SUBST
18557 # Now quote all the things that may contain metacharacters while being
18558 # careful not to overquote the AC_SUBSTed values. We take copies of the
18559 # variables and quote the copies for generation of the libtool script.
18560 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18562 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18563 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18564 deplibs_check_method reload_flag reload_cmds need_locks \
18565 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18566 lt_cv_sys_global_symbol_to_c_name_address \
18567 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18568 old_postinstall_cmds old_postuninstall_cmds \
18572 lt_prog_compiler_wl_GCJ \
18573 lt_prog_compiler_pic_GCJ \
18574 lt_prog_compiler_static_GCJ \
18575 lt_prog_compiler_no_builtin_flag_GCJ \
18576 export_dynamic_flag_spec_GCJ \
18577 thread_safe_flag_spec_GCJ \
18578 whole_archive_flag_spec_GCJ \
18579 enable_shared_with_static_runtimes_GCJ \
18580 old_archive_cmds_GCJ \
18581 old_archive_from_new_cmds_GCJ \
18582 predep_objects_GCJ \
18583 postdep_objects_GCJ \
18586 compiler_lib_search_path_GCJ \
18588 archive_expsym_cmds_GCJ \
18589 postinstall_cmds_GCJ \
18590 postuninstall_cmds_GCJ \
18591 old_archive_from_expsyms_cmds_GCJ \
18592 allow_undefined_flag_GCJ \
18593 no_undefined_flag_GCJ \
18594 export_symbols_cmds_GCJ \
18595 hardcode_libdir_flag_spec_GCJ \
18596 hardcode_libdir_flag_spec_ld_GCJ \
18597 hardcode_libdir_separator_GCJ \
18598 hardcode_automatic_GCJ \
18600 module_expsym_cmds_GCJ \
18601 lt_cv_prog_compiler_c_o_GCJ \
18602 exclude_expsyms_GCJ \
18603 include_expsyms_GCJ; do
18606 old_archive_cmds_GCJ | \
18607 old_archive_from_new_cmds_GCJ | \
18608 archive_cmds_GCJ | \
18609 archive_expsym_cmds_GCJ | \
18610 module_cmds_GCJ | \
18611 module_expsym_cmds_GCJ | \
18612 old_archive_from_expsyms_cmds_GCJ | \
18613 export_symbols_cmds_GCJ | \
18614 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18615 postinstall_cmds | postuninstall_cmds | \
18616 old_postinstall_cmds | old_postuninstall_cmds | \
18617 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18618 # Double-quote double-evaled strings.
18619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18628 *'\$0 --fallback-echo"')
18629 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18635 cat <<__EOF__ >> "$cfgfile"
18636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18640 # Shell to use when invoking shell scripts.
18643 # Whether or not to build shared libraries.
18644 build_libtool_libs=$enable_shared
18646 # Whether or not to build static libraries.
18647 build_old_libs=$enable_static
18649 # Whether or not to add -lc for building shared libraries.
18650 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18652 # Whether or not to disallow shared libs when runtime libs are static
18653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18655 # Whether or not to optimize for fast installation.
18656 fast_install=$enable_fast_install
18659 host_alias=$host_alias
18663 # The build system.
18664 build_alias=$build_alias
18668 # An echo program that does not interpret backslashes.
18673 AR_FLAGS=$lt_AR_FLAGS
18678 # LTCC compiler flags.
18679 LTCFLAGS=$lt_LTCFLAGS
18681 # A language-specific compiler.
18682 CC=$lt_compiler_GCJ
18684 # Is the compiler the GNU C compiler?
18690 # The linker used to build libraries.
18693 # Whether we need hard or soft links.
18696 # A BSD-compatible nm program.
18699 # A symbol stripping program
18702 # Used to examine libraries when file_magic_cmd begins "file"
18703 MAGIC_CMD=$MAGIC_CMD
18705 # Used on cygwin: DLL creation program.
18708 # Used on cygwin: object dumper.
18711 # Used on cygwin: assembler.
18714 # The name of the directory that contains temporary libtool files.
18717 # How to create reloadable object files.
18718 reload_flag=$lt_reload_flag
18719 reload_cmds=$lt_reload_cmds
18721 # How to pass a linker flag through the compiler.
18722 wl=$lt_lt_prog_compiler_wl_GCJ
18724 # Object file suffix (normally "o").
18725 objext="$ac_objext"
18727 # Old archive suffix (normally "a").
18730 # Shared library suffix (normally ".so").
18731 shrext_cmds='$shrext_cmds'
18733 # Executable file suffix (normally "").
18736 # Additional compiler flags for building library objects.
18737 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18740 # What is the maximum length of a command?
18741 max_cmd_len=$lt_cv_sys_max_cmd_len
18743 # Does compiler simultaneously support -c and -o options?
18744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18746 # Must we lock files when doing compilation?
18747 need_locks=$lt_need_locks
18749 # Do we need the lib prefix for modules?
18750 need_lib_prefix=$need_lib_prefix
18752 # Do we need a version for libraries?
18753 need_version=$need_version
18755 # Whether dlopen is supported.
18756 dlopen_support=$enable_dlopen
18758 # Whether dlopen of programs is supported.
18759 dlopen_self=$enable_dlopen_self
18761 # Whether dlopen of statically linked programs is supported.
18762 dlopen_self_static=$enable_dlopen_self_static
18764 # Compiler flag to prevent dynamic linking.
18765 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18767 # Compiler flag to turn off builtin functions.
18768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18770 # Compiler flag to allow reflexive dlopens.
18771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18773 # Compiler flag to generate shared objects directly from archives.
18774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18776 # Compiler flag to generate thread-safe objects.
18777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18779 # Library versioning type.
18780 version_type=$version_type
18782 # Format of library name prefix.
18783 libname_spec=$lt_libname_spec
18785 # List of archive names. First name is the real one, the rest are links.
18786 # The last name is the one that the linker finds with -lNAME.
18787 library_names_spec=$lt_library_names_spec
18789 # The coded name of the library, if different from the real name.
18790 soname_spec=$lt_soname_spec
18792 # Commands used to build and install an old-style archive.
18794 old_archive_cmds=$lt_old_archive_cmds_GCJ
18795 old_postinstall_cmds=$lt_old_postinstall_cmds
18796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18798 # Create an old-style archive from a shared archive.
18799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18801 # Create a temporary old-style archive to link instead of a shared archive.
18802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18804 # Commands used to build and install a shared archive.
18805 archive_cmds=$lt_archive_cmds_GCJ
18806 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18807 postinstall_cmds=$lt_postinstall_cmds
18808 postuninstall_cmds=$lt_postuninstall_cmds
18810 # Commands used to build a loadable module (assumed same as above if empty)
18811 module_cmds=$lt_module_cmds_GCJ
18812 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18814 # Commands to strip libraries.
18815 old_striplib=$lt_old_striplib
18816 striplib=$lt_striplib
18818 # Dependencies to place before the objects being linked to create a
18820 predep_objects=$lt_predep_objects_GCJ
18822 # Dependencies to place after the objects being linked to create a
18824 postdep_objects=$lt_postdep_objects_GCJ
18826 # Dependencies to place before the objects being linked to create a
18828 predeps=$lt_predeps_GCJ
18830 # Dependencies to place after the objects being linked to create a
18832 postdeps=$lt_postdeps_GCJ
18834 # The library search path used internally by the compiler when linking
18835 # a shared library.
18836 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18838 # Method to check whether dependent libraries are shared objects.
18839 deplibs_check_method=$lt_deplibs_check_method
18841 # Command to use when deplibs_check_method == file_magic.
18842 file_magic_cmd=$lt_file_magic_cmd
18844 # Flag that allows shared libraries with undefined symbols to be built.
18845 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18847 # Flag that forces no undefined symbols.
18848 no_undefined_flag=$lt_no_undefined_flag_GCJ
18850 # Commands used to finish a libtool library installation in a directory.
18851 finish_cmds=$lt_finish_cmds
18853 # Same as above, but a single script fragment to be evaled but not shown.
18854 finish_eval=$lt_finish_eval
18856 # Take the output of nm and produce a listing of raw symbols and C names.
18857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18859 # Transform the output of nm in a proper C declaration
18860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18862 # Transform the output of nm in a C name address pair
18863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18865 # This is the shared library runtime path variable.
18866 runpath_var=$runpath_var
18868 # This is the shared library path variable.
18869 shlibpath_var=$shlibpath_var
18871 # Is shlibpath searched before the hard-coded library search path?
18872 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18874 # How to hardcode a shared library path into an executable.
18875 hardcode_action=$hardcode_action_GCJ
18877 # Whether we should hardcode library paths into libraries.
18878 hardcode_into_libs=$hardcode_into_libs
18880 # Flag to hardcode \$libdir into a binary during linking.
18881 # This must work even if \$libdir does not exist.
18882 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18884 # If ld is used when linking, flag to hardcode \$libdir into
18885 # a binary during linking. This must work even if \$libdir does
18887 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18889 # Whether we need a single -rpath flag with a separated argument.
18890 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18892 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18893 # resulting binary.
18894 hardcode_direct=$hardcode_direct_GCJ
18896 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18897 # resulting binary.
18898 hardcode_minus_L=$hardcode_minus_L_GCJ
18900 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18901 # the resulting binary.
18902 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18904 # Set to yes if building a shared library automatically hardcodes DIR into the library
18905 # and all subsequent libraries and executables linked against it.
18906 hardcode_automatic=$hardcode_automatic_GCJ
18908 # Variables whose values should be saved in libtool wrapper scripts and
18909 # restored at relink time.
18910 variables_saved_for_relink="$variables_saved_for_relink"
18912 # Whether libtool must link a program against all its dependency libraries.
18913 link_all_deplibs=$link_all_deplibs_GCJ
18915 # Compile-time system search path for libraries
18916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18918 # Run-time system search path for libraries
18919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18921 # Fix the shell variable \$srcfile for the compiler.
18922 fix_srcfile_path="$fix_srcfile_path_GCJ"
18924 # Set to yes if exported symbols are required.
18925 always_export_symbols=$always_export_symbols_GCJ
18927 # The commands to list exported symbols.
18928 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18930 # The commands to extract the exported symbol list from a shared archive.
18931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18933 # Symbols that should not be listed in the preloaded symbols.
18934 exclude_expsyms=$lt_exclude_expsyms_GCJ
18936 # Symbols that must always be exported.
18937 include_expsyms=$lt_include_expsyms_GCJ
18939 # ### END LIBTOOL TAG CONFIG: $tagname
18945 # If there is no Makefile yet, we rely on a make rule to execute
18946 # `config.status --recheck' to rerun these tests and create the
18947 # libtool script then.
18948 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18949 if test -f "$ltmain_in"; then
18950 test -f Makefile && make "$ltmain"
18956 ac_cpp='$CPP $CPPFLAGS'
18957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18971 # Source file extension for RC test sources.
18974 # Object file extension for compiled RC test sources.
18978 # Code to be used in simple compile tests
18979 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18981 # Code to be used in simple link tests
18982 lt_simple_link_test_code="$lt_simple_compile_test_code"
18984 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18986 # If no C compiler was specified, use CC.
18989 # If no C compiler flags were specified, use CFLAGS.
18990 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18992 # Allow CC to be a program name with arguments.
18996 # save warnings/boilerplate of simple test code
18997 ac_outfile=conftest.$ac_objext
18998 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18999 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19000 _lt_compiler_boilerplate=`cat conftest.err`
19003 ac_outfile=conftest.$ac_objext
19004 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19005 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19006 _lt_linker_boilerplate=`cat conftest.err`
19010 # Allow CC to be a program name with arguments.
19015 for cc_temp in $compiler""; do
19017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19023 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19025 lt_cv_prog_compiler_c_o_RC=yes
19027 # The else clause should only fire when bootstrapping the
19028 # libtool distribution, otherwise you forgot to ship ltmain.sh
19029 # with your package, and you will get complaints that there are
19030 # no rules to generate ltmain.sh.
19031 if test -f "$ltmain"; then
19032 # See if we are running on zsh, and set the options which allow our commands through
19033 # without removal of \ escapes.
19034 if test -n "${ZSH_VERSION+set}" ; then
19035 setopt NO_GLOB_SUBST
19037 # Now quote all the things that may contain metacharacters while being
19038 # careful not to overquote the AC_SUBSTed values. We take copies of the
19039 # variables and quote the copies for generation of the libtool script.
19040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19044 deplibs_check_method reload_flag reload_cmds need_locks \
19045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19046 lt_cv_sys_global_symbol_to_c_name_address \
19047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19048 old_postinstall_cmds old_postuninstall_cmds \
19052 lt_prog_compiler_wl_RC \
19053 lt_prog_compiler_pic_RC \
19054 lt_prog_compiler_static_RC \
19055 lt_prog_compiler_no_builtin_flag_RC \
19056 export_dynamic_flag_spec_RC \
19057 thread_safe_flag_spec_RC \
19058 whole_archive_flag_spec_RC \
19059 enable_shared_with_static_runtimes_RC \
19060 old_archive_cmds_RC \
19061 old_archive_from_new_cmds_RC \
19062 predep_objects_RC \
19063 postdep_objects_RC \
19066 compiler_lib_search_path_RC \
19068 archive_expsym_cmds_RC \
19069 postinstall_cmds_RC \
19070 postuninstall_cmds_RC \
19071 old_archive_from_expsyms_cmds_RC \
19072 allow_undefined_flag_RC \
19073 no_undefined_flag_RC \
19074 export_symbols_cmds_RC \
19075 hardcode_libdir_flag_spec_RC \
19076 hardcode_libdir_flag_spec_ld_RC \
19077 hardcode_libdir_separator_RC \
19078 hardcode_automatic_RC \
19080 module_expsym_cmds_RC \
19081 lt_cv_prog_compiler_c_o_RC \
19082 exclude_expsyms_RC \
19083 include_expsyms_RC; do
19086 old_archive_cmds_RC | \
19087 old_archive_from_new_cmds_RC | \
19088 archive_cmds_RC | \
19089 archive_expsym_cmds_RC | \
19091 module_expsym_cmds_RC | \
19092 old_archive_from_expsyms_cmds_RC | \
19093 export_symbols_cmds_RC | \
19094 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19095 postinstall_cmds | postuninstall_cmds | \
19096 old_postinstall_cmds | old_postuninstall_cmds | \
19097 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19098 # Double-quote double-evaled strings.
19099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19108 *'\$0 --fallback-echo"')
19109 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19115 cat <<__EOF__ >> "$cfgfile"
19116 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19118 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19120 # Shell to use when invoking shell scripts.
19123 # Whether or not to build shared libraries.
19124 build_libtool_libs=$enable_shared
19126 # Whether or not to build static libraries.
19127 build_old_libs=$enable_static
19129 # Whether or not to add -lc for building shared libraries.
19130 build_libtool_need_lc=$archive_cmds_need_lc_RC
19132 # Whether or not to disallow shared libs when runtime libs are static
19133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19135 # Whether or not to optimize for fast installation.
19136 fast_install=$enable_fast_install
19139 host_alias=$host_alias
19143 # The build system.
19144 build_alias=$build_alias
19148 # An echo program that does not interpret backslashes.
19153 AR_FLAGS=$lt_AR_FLAGS
19158 # LTCC compiler flags.
19159 LTCFLAGS=$lt_LTCFLAGS
19161 # A language-specific compiler.
19164 # Is the compiler the GNU C compiler?
19170 # The linker used to build libraries.
19173 # Whether we need hard or soft links.
19176 # A BSD-compatible nm program.
19179 # A symbol stripping program
19182 # Used to examine libraries when file_magic_cmd begins "file"
19183 MAGIC_CMD=$MAGIC_CMD
19185 # Used on cygwin: DLL creation program.
19188 # Used on cygwin: object dumper.
19191 # Used on cygwin: assembler.
19194 # The name of the directory that contains temporary libtool files.
19197 # How to create reloadable object files.
19198 reload_flag=$lt_reload_flag
19199 reload_cmds=$lt_reload_cmds
19201 # How to pass a linker flag through the compiler.
19202 wl=$lt_lt_prog_compiler_wl_RC
19204 # Object file suffix (normally "o").
19205 objext="$ac_objext"
19207 # Old archive suffix (normally "a").
19210 # Shared library suffix (normally ".so").
19211 shrext_cmds='$shrext_cmds'
19213 # Executable file suffix (normally "").
19216 # Additional compiler flags for building library objects.
19217 pic_flag=$lt_lt_prog_compiler_pic_RC
19220 # What is the maximum length of a command?
19221 max_cmd_len=$lt_cv_sys_max_cmd_len
19223 # Does compiler simultaneously support -c and -o options?
19224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19226 # Must we lock files when doing compilation?
19227 need_locks=$lt_need_locks
19229 # Do we need the lib prefix for modules?
19230 need_lib_prefix=$need_lib_prefix
19232 # Do we need a version for libraries?
19233 need_version=$need_version
19235 # Whether dlopen is supported.
19236 dlopen_support=$enable_dlopen
19238 # Whether dlopen of programs is supported.
19239 dlopen_self=$enable_dlopen_self
19241 # Whether dlopen of statically linked programs is supported.
19242 dlopen_self_static=$enable_dlopen_self_static
19244 # Compiler flag to prevent dynamic linking.
19245 link_static_flag=$lt_lt_prog_compiler_static_RC
19247 # Compiler flag to turn off builtin functions.
19248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19250 # Compiler flag to allow reflexive dlopens.
19251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19253 # Compiler flag to generate shared objects directly from archives.
19254 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19256 # Compiler flag to generate thread-safe objects.
19257 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19259 # Library versioning type.
19260 version_type=$version_type
19262 # Format of library name prefix.
19263 libname_spec=$lt_libname_spec
19265 # List of archive names. First name is the real one, the rest are links.
19266 # The last name is the one that the linker finds with -lNAME.
19267 library_names_spec=$lt_library_names_spec
19269 # The coded name of the library, if different from the real name.
19270 soname_spec=$lt_soname_spec
19272 # Commands used to build and install an old-style archive.
19274 old_archive_cmds=$lt_old_archive_cmds_RC
19275 old_postinstall_cmds=$lt_old_postinstall_cmds
19276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19278 # Create an old-style archive from a shared archive.
19279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19281 # Create a temporary old-style archive to link instead of a shared archive.
19282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19284 # Commands used to build and install a shared archive.
19285 archive_cmds=$lt_archive_cmds_RC
19286 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19287 postinstall_cmds=$lt_postinstall_cmds
19288 postuninstall_cmds=$lt_postuninstall_cmds
19290 # Commands used to build a loadable module (assumed same as above if empty)
19291 module_cmds=$lt_module_cmds_RC
19292 module_expsym_cmds=$lt_module_expsym_cmds_RC
19294 # Commands to strip libraries.
19295 old_striplib=$lt_old_striplib
19296 striplib=$lt_striplib
19298 # Dependencies to place before the objects being linked to create a
19300 predep_objects=$lt_predep_objects_RC
19302 # Dependencies to place after the objects being linked to create a
19304 postdep_objects=$lt_postdep_objects_RC
19306 # Dependencies to place before the objects being linked to create a
19308 predeps=$lt_predeps_RC
19310 # Dependencies to place after the objects being linked to create a
19312 postdeps=$lt_postdeps_RC
19314 # The library search path used internally by the compiler when linking
19315 # a shared library.
19316 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19318 # Method to check whether dependent libraries are shared objects.
19319 deplibs_check_method=$lt_deplibs_check_method
19321 # Command to use when deplibs_check_method == file_magic.
19322 file_magic_cmd=$lt_file_magic_cmd
19324 # Flag that allows shared libraries with undefined symbols to be built.
19325 allow_undefined_flag=$lt_allow_undefined_flag_RC
19327 # Flag that forces no undefined symbols.
19328 no_undefined_flag=$lt_no_undefined_flag_RC
19330 # Commands used to finish a libtool library installation in a directory.
19331 finish_cmds=$lt_finish_cmds
19333 # Same as above, but a single script fragment to be evaled but not shown.
19334 finish_eval=$lt_finish_eval
19336 # Take the output of nm and produce a listing of raw symbols and C names.
19337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19339 # Transform the output of nm in a proper C declaration
19340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19342 # Transform the output of nm in a C name address pair
19343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19345 # This is the shared library runtime path variable.
19346 runpath_var=$runpath_var
19348 # This is the shared library path variable.
19349 shlibpath_var=$shlibpath_var
19351 # Is shlibpath searched before the hard-coded library search path?
19352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19354 # How to hardcode a shared library path into an executable.
19355 hardcode_action=$hardcode_action_RC
19357 # Whether we should hardcode library paths into libraries.
19358 hardcode_into_libs=$hardcode_into_libs
19360 # Flag to hardcode \$libdir into a binary during linking.
19361 # This must work even if \$libdir does not exist.
19362 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19364 # If ld is used when linking, flag to hardcode \$libdir into
19365 # a binary during linking. This must work even if \$libdir does
19367 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19369 # Whether we need a single -rpath flag with a separated argument.
19370 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19372 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19373 # resulting binary.
19374 hardcode_direct=$hardcode_direct_RC
19376 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19377 # resulting binary.
19378 hardcode_minus_L=$hardcode_minus_L_RC
19380 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19381 # the resulting binary.
19382 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19384 # Set to yes if building a shared library automatically hardcodes DIR into the library
19385 # and all subsequent libraries and executables linked against it.
19386 hardcode_automatic=$hardcode_automatic_RC
19388 # Variables whose values should be saved in libtool wrapper scripts and
19389 # restored at relink time.
19390 variables_saved_for_relink="$variables_saved_for_relink"
19392 # Whether libtool must link a program against all its dependency libraries.
19393 link_all_deplibs=$link_all_deplibs_RC
19395 # Compile-time system search path for libraries
19396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19398 # Run-time system search path for libraries
19399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19401 # Fix the shell variable \$srcfile for the compiler.
19402 fix_srcfile_path="$fix_srcfile_path_RC"
19404 # Set to yes if exported symbols are required.
19405 always_export_symbols=$always_export_symbols_RC
19407 # The commands to list exported symbols.
19408 export_symbols_cmds=$lt_export_symbols_cmds_RC
19410 # The commands to extract the exported symbol list from a shared archive.
19411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19413 # Symbols that should not be listed in the preloaded symbols.
19414 exclude_expsyms=$lt_exclude_expsyms_RC
19416 # Symbols that must always be exported.
19417 include_expsyms=$lt_include_expsyms_RC
19419 # ### END LIBTOOL TAG CONFIG: $tagname
19425 # If there is no Makefile yet, we rely on a make rule to execute
19426 # `config.status --recheck' to rerun these tests and create the
19427 # libtool script then.
19428 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19429 if test -f "$ltmain_in"; then
19430 test -f Makefile && make "$ltmain"
19436 ac_cpp='$CPP $CPPFLAGS'
19437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19447 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19448 { (exit 1); exit 1; }; }
19452 # Append the new tag name to the list of available tags.
19453 if test -n "$tagname" ; then
19454 available_tags="$available_tags $tagname"
19460 # Now substitute the updated list of available tags.
19461 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19462 mv "${ofile}T" "$ofile"
19466 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19467 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19468 { (exit 1); exit 1; }; }
19474 # This can be used to rebuild libtool when needed
19475 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19477 # Always use our own libtool.
19478 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19480 # Prevent multiple expansion
19506 { echo "$as_me:$LINENO: result: " >&5
19507 echo "${ECHO_T}" >&6; }
19508 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19509 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19512 ac_cpp='$CPP $CPPFLAGS'
19513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19516 if test -n "$ac_tool_prefix"; then
19517 for ac_prog in xlC gcc cc
19519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19523 if test "${ac_cv_prog_CC+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 if test -n "$CC"; then
19527 ac_cv_prog_CC="$CC" # Let the user override the test.
19529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19530 for as_dir in $PATH
19533 test -z "$as_dir" && as_dir=.
19534 for ac_exec_ext in '' $ac_executable_extensions; do
19535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19547 if test -n "$CC"; then
19548 { echo "$as_me:$LINENO: result: $CC" >&5
19549 echo "${ECHO_T}$CC" >&6; }
19551 { echo "$as_me:$LINENO: result: no" >&5
19552 echo "${ECHO_T}no" >&6; }
19556 test -n "$CC" && break
19559 if test -z "$CC"; then
19561 for ac_prog in xlC gcc cc
19563 # Extract the first word of "$ac_prog", so it can be a program name with args.
19564 set dummy $ac_prog; ac_word=$2
19565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19570 if test -n "$ac_ct_CC"; then
19571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19574 for as_dir in $PATH
19577 test -z "$as_dir" && as_dir=.
19578 for ac_exec_ext in '' $ac_executable_extensions; do
19579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19580 ac_cv_prog_ac_ct_CC="$ac_prog"
19581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19591 if test -n "$ac_ct_CC"; then
19592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19593 echo "${ECHO_T}$ac_ct_CC" >&6; }
19595 { echo "$as_me:$LINENO: result: no" >&5
19596 echo "${ECHO_T}no" >&6; }
19600 test -n "$ac_ct_CC" && break
19603 if test "x$ac_ct_CC" = x; then
19606 case $cross_compiling:$ac_tool_warned in
19608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19609 whose name does not start with the host triplet. If you think this
19610 configuration is useful to you, please write to autoconf@gnu.org." >&5
19611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19612 whose name does not start with the host triplet. If you think this
19613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19614 ac_tool_warned=yes ;;
19621 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19622 See \`config.log' for more details." >&5
19623 echo "$as_me: error: no acceptable C compiler found in \$PATH
19624 See \`config.log' for more details." >&2;}
19625 { (exit 1); exit 1; }; }
19627 # Provide some information about the compiler.
19628 echo "$as_me:$LINENO: checking for C compiler version" >&5
19629 ac_compiler=`set X $ac_compile; echo $2`
19630 { (ac_try="$ac_compiler --version >&5"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_compiler --version >&5") 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }
19640 { (ac_try="$ac_compiler -v >&5"
19641 case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_compiler -v >&5") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }
19650 { (ac_try="$ac_compiler -V >&5"
19651 case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_compiler -V >&5") 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }
19661 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19662 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19663 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19664 echo $ECHO_N "(cached) $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19684 rm -f conftest.$ac_objext
19685 if { (ac_try="$ac_compile"
19686 case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_compile") 2>conftest.er1
19693 grep -v '^ *+' conftest.er1 >conftest.err
19695 cat conftest.err >&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } && {
19698 test -z "$ac_c_werror_flag" ||
19699 test ! -s conftest.err
19700 } && test -s conftest.$ac_objext; then
19701 ac_compiler_gnu=yes
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19713 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19714 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19715 GCC=`test $ac_compiler_gnu = yes && echo yes`
19716 ac_test_CFLAGS=${CFLAGS+set}
19717 ac_save_CFLAGS=$CFLAGS
19718 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19719 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19720 if test "${ac_cv_prog_cc_g+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 ac_save_c_werror_flag=$ac_c_werror_flag
19724 ac_c_werror_flag=yes
19727 cat >conftest.$ac_ext <<_ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19742 rm -f conftest.$ac_objext
19743 if { (ac_try="$ac_compile"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_compile") 2>conftest.er1
19751 grep -v '^ *+' conftest.er1 >conftest.err
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && {
19756 test -z "$ac_c_werror_flag" ||
19757 test ! -s conftest.err
19758 } && test -s conftest.$ac_objext; then
19759 ac_cv_prog_cc_g=yes
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19765 cat >conftest.$ac_ext <<_ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19780 rm -f conftest.$ac_objext
19781 if { (ac_try="$ac_compile"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_compile") 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest.$ac_objext; then
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 ac_c_werror_flag=$ac_save_c_werror_flag
19804 cat >conftest.$ac_ext <<_ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19819 rm -f conftest.$ac_objext
19820 if { (ac_try="$ac_compile"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest.$ac_objext; then
19836 ac_cv_prog_cc_g=yes
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851 ac_c_werror_flag=$ac_save_c_werror_flag
19853 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19854 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19855 if test "$ac_test_CFLAGS" = set; then
19856 CFLAGS=$ac_save_CFLAGS
19857 elif test $ac_cv_prog_cc_g = yes; then
19858 if test "$GCC" = yes; then
19864 if test "$GCC" = yes; then
19870 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19871 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19872 if test "${ac_cv_prog_cc_c89+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 ac_cv_prog_cc_c89=no
19877 cat >conftest.$ac_ext <<_ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19883 #include <stdarg.h>
19885 #include <sys/types.h>
19886 #include <sys/stat.h>
19887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19888 struct buf { int x; };
19889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19890 static char *e (p, i)
19896 static char *f (char * (*g) (char **, int), char **p, ...)
19901 s = g (p, va_arg (v,int));
19906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19907 function prototypes and stuff, but not '\xHH' hex character constants.
19908 These don't provoke an error unfortunately, instead are silently treated
19909 as 'x'. The following induces an error, until -std is added to get
19910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19911 array size at least. It's necessary to write '\x00'==0 to get something
19912 that's true only with -std. */
19913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19916 inside strings and character constants. */
19918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19920 int test (int i, double x);
19921 struct s1 {int (*f) (int a);};
19922 struct s2 {int (*f) (double a);};
19923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19937 CC="$ac_save_CC $ac_arg"
19938 rm -f conftest.$ac_objext
19939 if { (ac_try="$ac_compile"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_compile") 2>conftest.er1
19947 grep -v '^ *+' conftest.er1 >conftest.err
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } && {
19952 test -z "$ac_c_werror_flag" ||
19953 test ! -s conftest.err
19954 } && test -s conftest.$ac_objext; then
19955 ac_cv_prog_cc_c89=$ac_arg
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19963 rm -f core conftest.err conftest.$ac_objext
19964 test "x$ac_cv_prog_cc_c89" != "xno" && break
19966 rm -f conftest.$ac_ext
19971 case "x$ac_cv_prog_cc_c89" in
19973 { echo "$as_me:$LINENO: result: none needed" >&5
19974 echo "${ECHO_T}none needed" >&6; } ;;
19976 { echo "$as_me:$LINENO: result: unsupported" >&5
19977 echo "${ECHO_T}unsupported" >&6; } ;;
19979 CC="$CC $ac_cv_prog_cc_c89"
19980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19981 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19986 ac_cpp='$CPP $CPPFLAGS'
19987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19991 depcc="$CC" am_compiler_list=
19993 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19994 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19995 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19999 # We make a subdir and do the tests there. Otherwise we can end up
20000 # making bogus files that we don't know about and never remove. For
20001 # instance it was reported that on HP-UX the gcc test will end up
20002 # making a dummy file named `D' -- because `-MD' means `put the output
20005 # Copy depcomp to subdir because otherwise we won't find it if we're
20006 # using a relative directory.
20007 cp "$am_depcomp" conftest.dir
20009 # We will build objects and dependencies in a subdirectory because
20010 # it helps to detect inapplicable dependency modes. For instance
20011 # both Tru64's cc and ICC support -MD to output dependencies as a
20012 # side effect of compilation, but ICC will put the dependencies in
20013 # the current directory while Tru64 will put them in the object
20017 am_cv_CC_dependencies_compiler_type=none
20018 if test "$am_compiler_list" = ""; then
20019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20021 for depmode in $am_compiler_list; do
20022 # Setup a source with many dependencies, because some compilers
20023 # like to wrap large dependency lists on column 80 (with \), and
20024 # we should not choose a depcomp mode which is confused by this.
20026 # We need to recreate these files for each test, as the compiler may
20027 # overwrite some of them when testing with obscure command lines.
20028 # This happens at least with the AIX C compiler.
20030 for i in 1 2 3 4 5 6; do
20031 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20032 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20033 # Solaris 8's {/usr,}/bin/sh.
20034 touch sub/conftst$i.h
20036 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20040 # after this tag, mechanisms are not by side-effect, so they'll
20041 # only be used when explicitly requested
20042 if test "x$enable_dependency_tracking" = xyes; then
20050 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20051 # mode. It turns out that the SunPro C++ compiler does not properly
20052 # handle `-M -o', and we need to detect this.
20053 if depmode=$depmode \
20054 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20056 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20057 >/dev/null 2>conftest.err &&
20058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20059 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20061 # icc doesn't choke on unknown options, it will just issue warnings
20062 # or remarks (even with -Werror). So we grep stderr for any message
20063 # that says an option was ignored or not supported.
20064 # When given -MP, icc 7.0 and 7.1 complain thusly:
20065 # icc: Command line warning: ignoring option '-M'; no argument required
20066 # The diagnosis changed in icc 8.0:
20067 # icc: Command line remark: option '-MP' not supported
20068 if (grep 'ignoring option' conftest.err ||
20069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20070 am_cv_CC_dependencies_compiler_type=$depmode
20077 rm -rf conftest.dir
20079 am_cv_CC_dependencies_compiler_type=none
20083 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20084 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20085 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20090 test "x$enable_dependency_tracking" != xno \
20091 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20092 am__fastdepCC_TRUE=
20093 am__fastdepCC_FALSE='#'
20095 am__fastdepCC_TRUE='#'
20096 am__fastdepCC_FALSE=
20100 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20101 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20104 echo timestamp > conftest.file
20105 # Do `set' in a subshell so we don't clobber the current shell's
20106 # arguments. Must try -L first in case configure is actually a
20107 # symlink; some systems play weird games with the mod time of symlinks
20108 # (eg FreeBSD returns the mod time of the symlink's containing
20111 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20112 if test "$*" = "X"; then
20114 set X `ls -t $srcdir/configure conftest.file`
20116 rm -f conftest.file
20117 if test "$*" != "X $srcdir/configure conftest.file" \
20118 && test "$*" != "X conftest.file $srcdir/configure"; then
20120 # If neither matched, then we have a broken ls. This can happen
20121 # if, for instance, CONFIG_SHELL is bash and it inherits a
20122 # broken ls alias from the environment. This has actually
20123 # happened. Such a system could not be considered "sane".
20124 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20125 alias in your environment" >&5
20126 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20127 alias in your environment" >&2;}
20128 { (exit 1); exit 1; }; }
20131 test "$2" = conftest.file
20137 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20138 Check your system clock" >&5
20139 echo "$as_me: error: newly created file is older than distributed files!
20140 Check your system clock" >&2;}
20141 { (exit 1); exit 1; }; }
20143 { echo "$as_me:$LINENO: result: yes" >&5
20144 echo "${ECHO_T}yes" >&6; }
20145 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20146 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20147 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20148 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 cat >conftest.make <<\_ACEOF
20154 @echo '@@@%%%=$(MAKE)=@@@%%%'
20156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20158 *@@@%%%=?*=@@@%%%*)
20159 eval ac_cv_prog_make_${ac_make}_set=yes;;
20161 eval ac_cv_prog_make_${ac_make}_set=no;;
20163 rm -f conftest.make
20165 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20166 { echo "$as_me:$LINENO: result: yes" >&5
20167 echo "${ECHO_T}yes" >&6; }
20170 { echo "$as_me:$LINENO: result: no" >&5
20171 echo "${ECHO_T}no" >&6; }
20172 SET_MAKE="MAKE=${MAKE-make}"
20176 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20177 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20178 if test "$cross_compiling" = yes; then
20179 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20180 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20197 rm -f conftest$ac_exeext
20198 if { (ac_try="$ac_link"
20199 case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_link") 2>&5
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20208 { (case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_try") 2>&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; }; then
20218 cat >>confdefs.h <<\_ACEOF
20219 #define PRINTF_NULL_WORKING 1
20222 { echo "$as_me:$LINENO: result: yes" >&5
20223 echo "${ECHO_T}yes" >&6; }
20225 echo "$as_me: program exited with status $ac_status" >&5
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 ( exit $ac_status )
20230 { echo "$as_me:$LINENO: result: no" >&5
20231 echo "${ECHO_T}no" >&6; }
20233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20239 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20240 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20241 if test "${ac_cv_va_copy+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 if test ".$ac_cv_va_copy" = .; then
20250 if test "$cross_compiling" = yes; then
20251 ac_cv_va_copy="C99"
20253 cat >conftest.$ac_ext <<_ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20260 #include <stdlib.h>
20261 #include <stdarg.h>
20262 #include <string.h>
20263 #define DO_VA_COPY(d, s) va_copy((d), (s))
20264 void test(char *str, ...)
20269 DO_VA_COPY(ap2, ap);
20270 for (i = 1; i <= 9; i++) {
20271 int k = (int)va_arg(ap, int);
20275 DO_VA_COPY(ap, ap2);
20276 for (i = 1; i <= 9; i++) {
20277 int k = (int)va_arg(ap, int);
20283 int main(int argc, char *argv[])
20285 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20290 rm -f conftest$ac_exeext
20291 if { (ac_try="$ac_link"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20297 (eval "$ac_link") 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20301 { (case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_try") 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; }; then
20310 ac_cv_va_copy="C99"
20312 echo "$as_me: program exited with status $ac_status" >&5
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20326 if test ".$ac_cv_va_copy" = .; then
20327 if test "$cross_compiling" = yes; then
20328 ac_cv_va_copy="GCM"
20330 cat >conftest.$ac_ext <<_ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20337 #include <stdlib.h>
20338 #include <stdarg.h>
20339 #include <string.h>
20340 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20341 void test(char *str, ...)
20346 DO_VA_COPY(ap2, ap);
20347 for (i = 1; i <= 9; i++) {
20348 int k = (int)va_arg(ap, int);
20352 DO_VA_COPY(ap, ap2);
20353 for (i = 1; i <= 9; i++) {
20354 int k = (int)va_arg(ap, int);
20360 int main(int argc, char *argv[])
20362 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20367 rm -f conftest$ac_exeext
20368 if { (ac_try="$ac_link"
20369 case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_link") 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20378 { (case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_try") 2>&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20387 ac_cv_va_copy="GCM"
20389 echo "$as_me: program exited with status $ac_status" >&5
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20403 if test ".$ac_cv_va_copy" = .; then
20404 if test "$cross_compiling" = yes; then
20405 ac_cv_va_copy="GCH"
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20414 #include <stdlib.h>
20415 #include <stdarg.h>
20416 #include <string.h>
20417 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20418 void test(char *str, ...)
20423 DO_VA_COPY(ap2, ap);
20424 for (i = 1; i <= 9; i++) {
20425 int k = (int)va_arg(ap, int);
20429 DO_VA_COPY(ap, ap2);
20430 for (i = 1; i <= 9; i++) {
20431 int k = (int)va_arg(ap, int);
20437 int main(int argc, char *argv[])
20439 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20444 rm -f conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_link") 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20455 { (case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_try") 2>&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); }; }; then
20464 ac_cv_va_copy="GCH"
20466 echo "$as_me: program exited with status $ac_status" >&5
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20480 if test ".$ac_cv_va_copy" = .; then
20481 if test "$cross_compiling" = yes; then
20482 ac_cv_va_copy="GCB"
20484 cat >conftest.$ac_ext <<_ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20491 #include <stdlib.h>
20492 #include <stdarg.h>
20493 #include <string.h>
20494 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20495 void test(char *str, ...)
20500 DO_VA_COPY(ap2, ap);
20501 for (i = 1; i <= 9; i++) {
20502 int k = (int)va_arg(ap, int);
20506 DO_VA_COPY(ap, ap2);
20507 for (i = 1; i <= 9; i++) {
20508 int k = (int)va_arg(ap, int);
20514 int main(int argc, char *argv[])
20516 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20521 rm -f conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_link") 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20532 { (case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_try") 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 ac_cv_va_copy="GCB"
20543 echo "$as_me: program exited with status $ac_status" >&5
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20557 if test ".$ac_cv_va_copy" = .; then
20558 if test "$cross_compiling" = yes; then
20559 ac_cv_va_copy="ASS"
20561 cat >conftest.$ac_ext <<_ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20568 #include <stdlib.h>
20569 #include <stdarg.h>
20570 #include <string.h>
20571 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20572 void test(char *str, ...)
20577 DO_VA_COPY(ap2, ap);
20578 for (i = 1; i <= 9; i++) {
20579 int k = (int)va_arg(ap, int);
20583 DO_VA_COPY(ap, ap2);
20584 for (i = 1; i <= 9; i++) {
20585 int k = (int)va_arg(ap, int);
20591 int main(int argc, char *argv[])
20593 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20598 rm -f conftest$ac_exeext
20599 if { (ac_try="$ac_link"
20600 case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_link") 2>&5
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20609 { (case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_try") 2>&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_cv_va_copy="ASS"
20620 echo "$as_me: program exited with status $ac_status" >&5
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20634 if test ".$ac_cv_va_copy" = .; then
20635 if test "$cross_compiling" = yes; then
20636 ac_cv_va_copy="ASP"
20638 cat >conftest.$ac_ext <<_ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h. */
20645 #include <stdlib.h>
20646 #include <stdarg.h>
20647 #include <string.h>
20648 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20649 void test(char *str, ...)
20654 DO_VA_COPY(ap2, ap);
20655 for (i = 1; i <= 9; i++) {
20656 int k = (int)va_arg(ap, int);
20660 DO_VA_COPY(ap, ap2);
20661 for (i = 1; i <= 9; i++) {
20662 int k = (int)va_arg(ap, int);
20668 int main(int argc, char *argv[])
20670 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20675 rm -f conftest$ac_exeext
20676 if { (ac_try="$ac_link"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_link") 2>&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20686 { (case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_try") 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 ac_cv_va_copy="ASP"
20697 echo "$as_me: program exited with status $ac_status" >&5
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20711 if test ".$ac_cv_va_copy" = .; then
20712 if test "$cross_compiling" = yes; then
20713 ac_cv_va_copy="CPS"
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20722 #include <stdlib.h>
20723 #include <stdarg.h>
20724 #include <string.h>
20725 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20726 void test(char *str, ...)
20731 DO_VA_COPY(ap2, ap);
20732 for (i = 1; i <= 9; i++) {
20733 int k = (int)va_arg(ap, int);
20737 DO_VA_COPY(ap, ap2);
20738 for (i = 1; i <= 9; i++) {
20739 int k = (int)va_arg(ap, int);
20745 int main(int argc, char *argv[])
20747 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20752 rm -f conftest$ac_exeext
20753 if { (ac_try="$ac_link"
20754 case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_link") 2>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20763 { (case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_try") 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; }; then
20772 ac_cv_va_copy="CPS"
20774 echo "$as_me: program exited with status $ac_status" >&5
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20788 if test ".$ac_cv_va_copy" = .; then
20789 if test "$cross_compiling" = yes; then
20790 ac_cv_va_copy="CPP"
20792 cat >conftest.$ac_ext <<_ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 #include <stdlib.h>
20800 #include <stdarg.h>
20801 #include <string.h>
20802 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20803 void test(char *str, ...)
20808 DO_VA_COPY(ap2, ap);
20809 for (i = 1; i <= 9; i++) {
20810 int k = (int)va_arg(ap, int);
20814 DO_VA_COPY(ap, ap2);
20815 for (i = 1; i <= 9; i++) {
20816 int k = (int)va_arg(ap, int);
20822 int main(int argc, char *argv[])
20824 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20829 rm -f conftest$ac_exeext
20830 if { (ac_try="$ac_link"
20831 case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_link") 2>&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20840 { (case "(($ac_try" in
20841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842 *) ac_try_echo=$ac_try;;
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845 (eval "$ac_try") 2>&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; }; then
20849 ac_cv_va_copy="CPP"
20851 echo "$as_me: program exited with status $ac_status" >&5
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20862 if test ".$ac_cv_va_copy" = .; then
20863 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20864 echo "$as_me: error: no working implementation found" >&2;}
20865 { (exit 1); exit 1; }; }
20870 if test ".$ac_cv_va_copy" = ".C99"; then
20872 cat >>confdefs.h <<\_ACEOF
20873 #define HAVE_VA_COPY 1
20878 cat >>confdefs.h <<_ACEOF
20879 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20884 if test ".$ac_cv_va_copy" = ".C99"; then
20885 { echo "$as_me:$LINENO: result: yes" >&5
20886 echo "${ECHO_T}yes" >&6; }
20888 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20889 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20893 # Checks for header files.
20894 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20895 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20896 if test "${ac_cv_header_stdc+set}" = set; then
20897 echo $ECHO_N "(cached) $ECHO_C" >&6
20899 cat >conftest.$ac_ext <<_ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905 #include <stdlib.h>
20906 #include <stdarg.h>
20907 #include <string.h>
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20927 grep -v '^ *+' conftest.er1 >conftest.err
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20935 ac_cv_header_stdc=yes
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_header_stdc=no
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945 if test $ac_cv_header_stdc = yes; then
20946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20947 cat >conftest.$ac_ext <<_ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 #include <string.h>
20956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20957 $EGREP "memchr" >/dev/null 2>&1; then
20960 ac_cv_header_stdc=no
20966 if test $ac_cv_header_stdc = yes; then
20967 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 #include <stdlib.h>
20977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20978 $EGREP "free" >/dev/null 2>&1; then
20981 ac_cv_header_stdc=no
20987 if test $ac_cv_header_stdc = yes; then
20988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20989 if test "$cross_compiling" = yes; then
20992 cat >conftest.$ac_ext <<_ACEOF
20995 cat confdefs.h >>conftest.$ac_ext
20996 cat >>conftest.$ac_ext <<_ACEOF
20997 /* end confdefs.h. */
20999 #include <stdlib.h>
21000 #if ((' ' & 0x0FF) == 0x020)
21001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21004 # define ISLOWER(c) \
21005 (('a' <= (c) && (c) <= 'i') \
21006 || ('j' <= (c) && (c) <= 'r') \
21007 || ('s' <= (c) && (c) <= 'z'))
21008 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21011 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21016 for (i = 0; i < 256; i++)
21017 if (XOR (islower (i), ISLOWER (i))
21018 || toupper (i) != TOUPPER (i))
21023 rm -f conftest$ac_exeext
21024 if { (ac_try="$ac_link"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_link") 2>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21034 { (case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_try") 2>&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21045 echo "$as_me: program exited with status $ac_status" >&5
21046 echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21049 ( exit $ac_status )
21050 ac_cv_header_stdc=no
21052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21058 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21059 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21060 if test $ac_cv_header_stdc = yes; then
21062 cat >>confdefs.h <<\_ACEOF
21063 #define STDC_HEADERS 1
21068 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21069 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21070 if test "${ac_cv_header_time+set}" = set; then
21071 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 #include <sys/types.h>
21080 #include <sys/time.h>
21086 if ((struct tm *) 0)
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099 (eval "$ac_compile") 2>conftest.er1
21101 grep -v '^ *+' conftest.er1 >conftest.err
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } && {
21106 test -z "$ac_c_werror_flag" ||
21107 test ! -s conftest.err
21108 } && test -s conftest.$ac_objext; then
21109 ac_cv_header_time=yes
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_cv_header_time=no
21117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21120 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21121 if test $ac_cv_header_time = yes; then
21123 cat >>confdefs.h <<\_ACEOF
21124 #define TIME_WITH_SYS_TIME 1
21139 for ac_header in sys/socket.h \
21141 windows.h winsock.h winsock2.h \
21147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 ac_res=`eval echo '${'$as_ac_Header'}'`
21155 { echo "$as_me:$LINENO: result: $ac_res" >&5
21156 echo "${ECHO_T}$ac_res" >&6; }
21158 # Is the header compilable?
21159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21161 cat >conftest.$ac_ext <<_ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 $ac_includes_default
21168 #include <$ac_header>
21170 rm -f conftest.$ac_objext
21171 if { (ac_try="$ac_compile"
21172 case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_compile") 2>conftest.er1
21179 grep -v '^ *+' conftest.er1 >conftest.err
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } && {
21184 test -z "$ac_c_werror_flag" ||
21185 test ! -s conftest.err
21186 } && test -s conftest.$ac_objext; then
21187 ac_header_compiler=yes
21189 echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21192 ac_header_compiler=no
21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21197 echo "${ECHO_T}$ac_header_compiler" >&6; }
21199 # Is the header present?
21200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21202 cat >conftest.$ac_ext <<_ACEOF
21205 cat confdefs.h >>conftest.$ac_ext
21206 cat >>conftest.$ac_ext <<_ACEOF
21207 /* end confdefs.h. */
21208 #include <$ac_header>
21210 if { (ac_try="$ac_cpp conftest.$ac_ext"
21211 case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21218 grep -v '^ *+' conftest.er1 >conftest.err
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } >/dev/null && {
21223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21226 ac_header_preproc=yes
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21231 ac_header_preproc=no
21234 rm -f conftest.err conftest.$ac_ext
21235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21236 echo "${ECHO_T}$ac_header_preproc" >&6; }
21238 # So? What about this header?
21239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21245 ac_header_preproc=yes
21248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21261 ## -------------------------------------------------- ##
21262 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21263 ## -------------------------------------------------- ##
21265 ) | sed "s/^/$as_me: WARNING: /" >&2
21268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 eval "$as_ac_Header=\$ac_header_preproc"
21275 ac_res=`eval echo '${'$as_ac_Header'}'`
21276 { echo "$as_me:$LINENO: result: $ac_res" >&5
21277 echo "${ECHO_T}$ac_res" >&6; }
21280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21281 cat >>confdefs.h <<_ACEOF
21282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21296 for ac_func in gettimeofday usleep \
21303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21309 cat >conftest.$ac_ext <<_ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21317 #define $ac_func innocuous_$ac_func
21319 /* System header to define __stub macros and hopefully few prototypes,
21320 which can conflict with char $ac_func (); below.
21321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21322 <limits.h> exists even on freestanding compilers. */
21325 # include <limits.h>
21327 # include <assert.h>
21332 /* Override any GCC internal prototype to avoid an error.
21333 Use char because int might match the return type of a GCC
21334 builtin and then its argument prototype would still apply. */
21339 /* The GNU C library defines this for functions which it implements
21340 to always fail with ENOSYS. Some functions are actually named
21341 something starting with __ and the normal name is an alias. */
21342 #if defined __stub_$ac_func || defined __stub___$ac_func
21349 return $ac_func ();
21354 rm -f conftest.$ac_objext conftest$ac_exeext
21355 if { (ac_try="$ac_link"
21356 case "(($ac_try" in
21357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358 *) ac_try_echo=$ac_try;;
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361 (eval "$ac_link") 2>conftest.er1
21363 grep -v '^ *+' conftest.er1 >conftest.err
21365 cat conftest.err >&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } && {
21368 test -z "$ac_c_werror_flag" ||
21369 test ! -s conftest.err
21370 } && test -s conftest$ac_exeext &&
21371 $as_test_x conftest$ac_exeext; then
21372 eval "$as_ac_var=yes"
21374 echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21377 eval "$as_ac_var=no"
21380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21381 conftest$ac_exeext conftest.$ac_ext
21383 ac_res=`eval echo '${'$as_ac_var'}'`
21384 { echo "$as_me:$LINENO: result: $ac_res" >&5
21385 echo "${ECHO_T}$ac_res" >&6; }
21386 if test `eval echo '${'$as_ac_var'}'` = yes; then
21387 cat >>confdefs.h <<_ACEOF
21388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21395 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21398 for ac_func in snprintf vsnprintf
21400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21404 echo $ECHO_N "(cached) $ECHO_C" >&6
21406 cat >conftest.$ac_ext <<_ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21414 #define $ac_func innocuous_$ac_func
21416 /* System header to define __stub macros and hopefully few prototypes,
21417 which can conflict with char $ac_func (); below.
21418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21419 <limits.h> exists even on freestanding compilers. */
21422 # include <limits.h>
21424 # include <assert.h>
21429 /* Override any GCC internal prototype to avoid an error.
21430 Use char because int might match the return type of a GCC
21431 builtin and then its argument prototype would still apply. */
21436 /* The GNU C library defines this for functions which it implements
21437 to always fail with ENOSYS. Some functions are actually named
21438 something starting with __ and the normal name is an alias. */
21439 #if defined __stub_$ac_func || defined __stub___$ac_func
21446 return $ac_func ();
21451 rm -f conftest.$ac_objext conftest$ac_exeext
21452 if { (ac_try="$ac_link"
21453 case "(($ac_try" in
21454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455 *) ac_try_echo=$ac_try;;
21457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21458 (eval "$ac_link") 2>conftest.er1
21460 grep -v '^ *+' conftest.er1 >conftest.err
21462 cat conftest.err >&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } && {
21465 test -z "$ac_c_werror_flag" ||
21466 test ! -s conftest.err
21467 } && test -s conftest$ac_exeext &&
21468 $as_test_x conftest$ac_exeext; then
21469 eval "$as_ac_var=yes"
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 eval "$as_ac_var=no"
21477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21478 conftest$ac_exeext conftest.$ac_ext
21480 ac_res=`eval echo '${'$as_ac_var'}'`
21481 { echo "$as_me:$LINENO: result: $ac_res" >&5
21482 echo "${ECHO_T}$ac_res" >&6; }
21483 if test `eval echo '${'$as_ac_var'}'` = yes; then
21484 cat >>confdefs.h <<_ACEOF
21485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21491 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21492 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21493 if test "${ac_cv_have_working_snprintf+set}" = set; then
21494 echo $ECHO_N "(cached) $ECHO_C" >&6
21496 if test "$cross_compiling" = yes; then
21497 ac_cv_have_working_snprintf=cross
21499 cat >conftest.$ac_ext <<_ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21509 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21510 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21512 i = snprintf (bufs, 2, "%s", "111");
21513 if (strcmp (bufs, "1")) exit (1);
21514 if (i != 3) exit (1);
21515 i = snprintf (bufd, 2, "%d", 111);
21516 if (strcmp (bufd, "1")) exit (1);
21517 if (i != 3) exit (1);
21521 rm -f conftest$ac_exeext
21522 if { (ac_try="$ac_link"
21523 case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_link") 2>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21532 { (case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21537 (eval "$ac_try") 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 ac_cv_have_working_snprintf=yes
21543 echo "$as_me: program exited with status $ac_status" >&5
21544 echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21547 ( exit $ac_status )
21548 ac_cv_have_working_snprintf=no
21550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21556 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21557 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21558 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21559 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21560 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21563 if test "$cross_compiling" = yes; then
21564 ac_cv_have_working_vsnprintf=cross
21566 cat >conftest.$ac_ext <<_ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21573 #include <stdarg.h>
21575 int my_vsnprintf (char *buf, const char *tmpl, ...)
21579 va_start (args, tmpl);
21580 i = vsnprintf (buf, 2, tmpl, args);
21587 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21588 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21590 i = my_vsnprintf (bufs, "%s", "111");
21591 if (strcmp (bufs, "1")) exit (1);
21592 if (i != 3) exit (1);
21593 i = my_vsnprintf (bufd, "%d", 111);
21594 if (strcmp (bufd, "1")) exit (1);
21595 if (i != 3) exit (1);
21599 rm -f conftest$ac_exeext
21600 if { (ac_try="$ac_link"
21601 case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_link") 2>&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21610 { (case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_try") 2>&5
21617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); }; }; then
21619 ac_cv_have_working_vsnprintf=yes
21621 echo "$as_me: program exited with status $ac_status" >&5
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21625 ( exit $ac_status )
21626 ac_cv_have_working_vsnprintf=no
21628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21634 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21635 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21636 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21637 case " $LIBOBJS " in
21638 *" snprintf.$ac_objext "* ) ;;
21639 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21643 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21644 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21646 cat >>confdefs.h <<\_ACEOF
21647 #define PREFER_PORTABLE_SNPRINTF 1
21651 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21652 { echo "$as_me:$LINENO: checking for asprintf" >&5
21653 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21654 if test "${ac_cv_func_asprintf+set}" = set; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21657 cat >conftest.$ac_ext <<_ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21665 #define asprintf innocuous_asprintf
21667 /* System header to define __stub macros and hopefully few prototypes,
21668 which can conflict with char asprintf (); below.
21669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21670 <limits.h> exists even on freestanding compilers. */
21673 # include <limits.h>
21675 # include <assert.h>
21680 /* Override any GCC internal prototype to avoid an error.
21681 Use char because int might match the return type of a GCC
21682 builtin and then its argument prototype would still apply. */
21687 /* The GNU C library defines this for functions which it implements
21688 to always fail with ENOSYS. Some functions are actually named
21689 something starting with __ and the normal name is an alias. */
21690 #if defined __stub_asprintf || defined __stub___asprintf
21697 return asprintf ();
21702 rm -f conftest.$ac_objext conftest$ac_exeext
21703 if { (ac_try="$ac_link"
21704 case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_link") 2>conftest.er1
21711 grep -v '^ *+' conftest.er1 >conftest.err
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } && {
21716 test -z "$ac_c_werror_flag" ||
21717 test ! -s conftest.err
21718 } && test -s conftest$ac_exeext &&
21719 $as_test_x conftest$ac_exeext; then
21720 ac_cv_func_asprintf=yes
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21725 ac_cv_func_asprintf=no
21728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21729 conftest$ac_exeext conftest.$ac_ext
21731 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21732 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21733 if test $ac_cv_func_asprintf = yes; then
21737 cat >>confdefs.h <<\_ACEOF
21738 #define NEED_ASPRINTF 1
21743 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21744 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21745 if test "${ac_cv_func_vasprintf+set}" = set; then
21746 echo $ECHO_N "(cached) $ECHO_C" >&6
21748 cat >conftest.$ac_ext <<_ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h. */
21754 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21756 #define vasprintf innocuous_vasprintf
21758 /* System header to define __stub macros and hopefully few prototypes,
21759 which can conflict with char vasprintf (); below.
21760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21761 <limits.h> exists even on freestanding compilers. */
21764 # include <limits.h>
21766 # include <assert.h>
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21778 /* The GNU C library defines this for functions which it implements
21779 to always fail with ENOSYS. Some functions are actually named
21780 something starting with __ and the normal name is an alias. */
21781 #if defined __stub_vasprintf || defined __stub___vasprintf
21788 return vasprintf ();
21793 rm -f conftest.$ac_objext conftest$ac_exeext
21794 if { (ac_try="$ac_link"
21795 case "(($ac_try" in
21796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797 *) ac_try_echo=$ac_try;;
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800 (eval "$ac_link") 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } && {
21807 test -z "$ac_c_werror_flag" ||
21808 test ! -s conftest.err
21809 } && test -s conftest$ac_exeext &&
21810 $as_test_x conftest$ac_exeext; then
21811 ac_cv_func_vasprintf=yes
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21816 ac_cv_func_vasprintf=no
21819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21820 conftest$ac_exeext conftest.$ac_ext
21822 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21823 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21824 if test $ac_cv_func_vasprintf = yes; then
21828 cat >>confdefs.h <<\_ACEOF
21829 #define NEED_VASPRINTF 1
21834 # we don't use those:
21835 # A C_CHECK_FUNC( asnprintf, :, A C_DEFINE(NEED_ASNPRINTF, 1, enable the asnprintf replacement))
21836 # A C_CHECK_FUNC(vasnprintf, :, A C_DEFINE(NEED_VASNPRINTF, 1, enable the vansprintf replacement))
21839 # Checks for typedefs, structures, and compiler characteristics.
21840 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21841 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21842 if test "${ac_cv_c_const+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21845 cat >conftest.$ac_ext <<_ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21855 /* FIXME: Include the comments suggested by Paul. */
21856 #ifndef __cplusplus
21857 /* Ultrix mips cc rejects this. */
21858 typedef int charset[2];
21860 /* SunOS 4.1.1 cc rejects this. */
21861 char const *const *pcpcc;
21863 /* NEC SVR4.0.2 mips cc rejects this. */
21864 struct point {int x, y;};
21865 static struct point const zero = {0,0};
21866 /* AIX XL C 1.02.0.0 rejects this.
21867 It does not let you subtract one const X* pointer from another in
21868 an arm of an if-expression whose if-part is not a constant
21870 const char *g = "string";
21871 pcpcc = &g + (g ? g-g : 0);
21872 /* HPUX 7.0 cc rejects these. */
21874 ppc = (char**) pcpcc;
21875 pcpcc = (char const *const *) ppc;
21876 { /* SCO 3.2v4 cc rejects this. */
21878 char const *s = 0 ? (char *) 0 : (char const *) 0;
21883 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21884 int x[] = {25, 17};
21885 const int *foo = &x[0];
21888 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21889 typedef const int *iptr;
21893 { /* AIX XL C 1.02.0.0 rejects this saying
21894 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21895 struct s { int j; const int *ap[3]; };
21896 struct s *b; b->j = 5;
21898 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21899 const int foo = 10;
21900 if (!foo) return 0;
21902 return !cs[0] && !zero.x;
21909 rm -f conftest.$ac_objext
21910 if { (ac_try="$ac_compile"
21911 case "(($ac_try" in
21912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913 *) ac_try_echo=$ac_try;;
21915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916 (eval "$ac_compile") 2>conftest.er1
21918 grep -v '^ *+' conftest.er1 >conftest.err
21920 cat conftest.err >&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } && {
21923 test -z "$ac_c_werror_flag" ||
21924 test ! -s conftest.err
21925 } && test -s conftest.$ac_objext; then
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21936 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21937 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21938 if test $ac_cv_c_const = no; then
21940 cat >>confdefs.h <<\_ACEOF
21946 { echo "$as_me:$LINENO: checking for inline" >&5
21947 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21948 if test "${ac_cv_c_inline+set}" = set; then
21949 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 for ac_kw in inline __inline__ __inline; do
21953 cat >conftest.$ac_ext <<_ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 #ifndef __cplusplus
21961 static $ac_kw foo_t static_foo () {return 0; }
21962 $ac_kw foo_t foo () {return 0; }
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_compile") 2>conftest.er1
21975 grep -v '^ *+' conftest.er1 >conftest.err
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } && {
21980 test -z "$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21982 } && test -s conftest.$ac_objext; then
21983 ac_cv_c_inline=$ac_kw
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21992 test "$ac_cv_c_inline" != no && break
21996 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21997 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22000 case $ac_cv_c_inline in
22003 case $ac_cv_c_inline in
22005 *) ac_val=$ac_cv_c_inline;;
22007 cat >>confdefs.h <<_ACEOF
22008 #ifndef __cplusplus
22009 #define inline $ac_val
22015 { echo "$as_me:$LINENO: checking for size_t" >&5
22016 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22017 if test "${ac_cv_type_size_t+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 cat >conftest.$ac_ext <<_ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 $ac_includes_default
22027 typedef size_t ac__type_new_;
22031 if ((ac__type_new_ *) 0)
22033 if (sizeof (ac__type_new_))
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest.$ac_objext; then
22056 ac_cv_type_size_t=yes
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_cv_type_size_t=no
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22066 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22067 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22068 if test $ac_cv_type_size_t = yes; then
22072 cat >>confdefs.h <<_ACEOF
22073 #define size_t unsigned int
22079 ###################################
22080 ## SimGrid and GRAS specific checks
22084 { echo "$as_me:$LINENO: result: " >&5
22085 echo "${ECHO_T}" >&6; }
22086 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22087 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22089 # Check architecture signature begin
22091 # Check for the architecture
22092 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22093 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22094 if test "${ac_cv_c_bigendian+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 # See if sys/param.h defines the BYTE_ORDER macro.
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 #include <sys/types.h>
22105 #include <sys/param.h>
22110 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22111 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22112 bogus endian macros
22119 rm -f conftest.$ac_objext
22120 if { (ac_try="$ac_compile"
22121 case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126 (eval "$ac_compile") 2>conftest.er1
22128 grep -v '^ *+' conftest.er1 >conftest.err
22130 cat conftest.err >&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); } && {
22133 test -z "$ac_c_werror_flag" ||
22134 test ! -s conftest.err
22135 } && test -s conftest.$ac_objext; then
22136 # It does; now see whether it defined to BIG_ENDIAN or not.
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 #include <sys/types.h>
22144 #include <sys/param.h>
22149 #if BYTE_ORDER != BIG_ENDIAN
22157 rm -f conftest.$ac_objext
22158 if { (ac_try="$ac_compile"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_compile") 2>conftest.er1
22166 grep -v '^ *+' conftest.er1 >conftest.err
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest.$ac_objext; then
22174 ac_cv_c_bigendian=yes
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22179 ac_cv_c_bigendian=no
22182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 # It does not; compile a test program.
22188 if test "$cross_compiling" = yes; then
22189 # try to guess the endianness by grepping values into an object file
22190 ac_cv_c_bigendian=unknown
22191 cat >conftest.$ac_ext <<_ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22198 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22199 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22200 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22201 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22202 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22206 _ascii (); _ebcdic ();
22211 rm -f conftest.$ac_objext
22212 if { (ac_try="$ac_compile"
22213 case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218 (eval "$ac_compile") 2>conftest.er1
22220 grep -v '^ *+' conftest.er1 >conftest.err
22222 cat conftest.err >&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); } && {
22225 test -z "$ac_c_werror_flag" ||
22226 test ! -s conftest.err
22227 } && test -s conftest.$ac_objext; then
22228 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22229 ac_cv_c_bigendian=yes
22231 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22232 if test "$ac_cv_c_bigendian" = unknown; then
22233 ac_cv_c_bigendian=no
22235 # finding both strings is unlikely to happen, but who knows?
22236 ac_cv_c_bigendian=unknown
22240 echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 cat >conftest.$ac_ext <<_ACEOF
22251 cat confdefs.h >>conftest.$ac_ext
22252 cat >>conftest.$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22254 $ac_includes_default
22259 /* Are we little or big endian? From Harbison&Steele. */
22263 char c[sizeof (long int)];
22266 return u.c[sizeof (long int) - 1] == 1;
22272 rm -f conftest$ac_exeext
22273 if { (ac_try="$ac_link"
22274 case "(($ac_try" in
22275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22276 *) ac_try_echo=$ac_try;;
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279 (eval "$ac_link") 2>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22283 { (case "(($ac_try" in
22284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22285 *) ac_try_echo=$ac_try;;
22287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22288 (eval "$ac_try") 2>&5
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; }; then
22292 ac_cv_c_bigendian=no
22294 echo "$as_me: program exited with status $ac_status" >&5
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 ( exit $ac_status )
22299 ac_cv_c_bigendian=yes
22301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22309 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22310 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22311 case $ac_cv_c_bigendian in
22317 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22318 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22319 { (exit 1); exit 1; }; } ;;
22323 cat >>confdefs.h <<_ACEOF
22324 #define GRAS_BIGENDIAN $endian
22328 { echo "$as_me:$LINENO: checking size of char" >&5
22329 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22330 if test "${ac_cv_sizeof_char+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22334 cat >conftest.$ac_ext <<_ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 #include "confdefs.h"
22341 #include <sys/types.h>
22347 switch (0) case 0: case (sizeof (char) == $ac_size):;
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359 (eval "$ac_compile") 2>conftest.er1
22361 grep -v '^ *+' conftest.er1 >conftest.err
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest.$ac_objext; then
22369 ac_cv_sizeof_char=$ac_size
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 if test x$ac_cv_sizeof_char != x ; then break; fi
22384 unspecif=$ac_cv_sizeof_char
22385 if test x$unspecif = x ; then
22386 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22387 echo "$as_me: error: cannot determine a size for char" >&2;}
22388 { (exit 1); exit 1; }; }
22391 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22394 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 #include "confdefs.h"
22402 #include <sys/types.h>
22408 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22413 rm -f conftest.$ac_objext
22414 if { (ac_try="$ac_compile"
22415 case "(($ac_try" in
22416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417 *) ac_try_echo=$ac_try;;
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420 (eval "$ac_compile") 2>conftest.er1
22422 grep -v '^ *+' conftest.er1 >conftest.err
22424 cat conftest.err >&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } && {
22427 test -z "$ac_c_werror_flag" ||
22428 test ! -s conftest.err
22429 } && test -s conftest.$ac_objext; then
22430 ac_cv_sizeof_signed_char=$ac_size
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22445 signed=$ac_cv_sizeof_signed_char
22446 if test x$signed = x ; then
22447 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22448 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22449 { (exit 1); exit 1; }; }
22451 if test x$unspecif != x$signed ; then
22452 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22453 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22454 { (exit 1); exit 1; }; }
22457 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22458 echo $ECHO_N "(cached) $ECHO_C" >&6
22460 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 #include "confdefs.h"
22468 #include <sys/types.h>
22474 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22479 rm -f conftest.$ac_objext
22480 if { (ac_try="$ac_compile"
22481 case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22486 (eval "$ac_compile") 2>conftest.er1
22488 grep -v '^ *+' conftest.er1 >conftest.err
22490 cat conftest.err >&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); } && {
22493 test -z "$ac_c_werror_flag" ||
22494 test ! -s conftest.err
22495 } && test -s conftest.$ac_objext; then
22496 ac_cv_sizeof_unsigned_char=$ac_size
22498 echo "$as_me: failed program was:" >&5
22499 sed 's/^/| /' conftest.$ac_ext >&5
22504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22511 unsigned=$ac_cv_sizeof_unsigned_char
22512 if test x$unsigned = x ; then
22513 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22514 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22515 { (exit 1); exit 1; }; }
22517 if test x$unsigned != x$signed ; then
22518 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22519 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22520 { (exit 1); exit 1; }; }
22523 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22524 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22525 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22526 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22528 if test "${ac_cv_struct_boundary_char+set}" = set; then
22529 echo $ECHO_N "(cached) $ECHO_C" >&6
22531 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22532 cat >conftest.$ac_ext <<_ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22538 #include "confdefs.h"
22539 #include <sys/types.h>
22540 struct s { char c; char i; };
22545 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22550 rm -f conftest.$ac_objext
22551 if { (ac_try="$ac_compile"
22552 case "(($ac_try" in
22553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554 *) ac_try_echo=$ac_try;;
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557 (eval "$ac_compile") 2>conftest.er1
22559 grep -v '^ *+' conftest.er1 >conftest.err
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest.$ac_objext; then
22567 ac_cv_struct_boundary_char=$ac_size
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22581 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22582 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22583 if test x$ac_cv_struct_boundary_char = x ; then
22584 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22585 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22586 { (exit 1); exit 1; }; }
22589 { echo "$as_me:$LINENO: checking size of short int" >&5
22590 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22591 if test "${ac_cv_sizeof_short_int+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22595 cat >conftest.$ac_ext <<_ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 #include "confdefs.h"
22602 #include <sys/types.h>
22608 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_compile") 2>conftest.er1
22622 grep -v '^ *+' conftest.er1 >conftest.err
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && {
22627 test -z "$ac_c_werror_flag" ||
22628 test ! -s conftest.err
22629 } && test -s conftest.$ac_objext; then
22630 ac_cv_sizeof_short_int=$ac_size
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22639 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22645 unspecif=$ac_cv_sizeof_short_int
22646 if test x$unspecif = x ; then
22647 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22648 echo "$as_me: error: cannot determine a size for short int" >&2;}
22649 { (exit 1); exit 1; }; }
22652 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22656 cat >conftest.$ac_ext <<_ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 #include "confdefs.h"
22663 #include <sys/types.h>
22669 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22674 rm -f conftest.$ac_objext
22675 if { (ac_try="$ac_compile"
22676 case "(($ac_try" in
22677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678 *) ac_try_echo=$ac_try;;
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681 (eval "$ac_compile") 2>conftest.er1
22683 grep -v '^ *+' conftest.er1 >conftest.err
22685 cat conftest.err >&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } && {
22688 test -z "$ac_c_werror_flag" ||
22689 test ! -s conftest.err
22690 } && test -s conftest.$ac_objext; then
22691 ac_cv_sizeof_signed_short_int=$ac_size
22693 echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22700 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22706 signed=$ac_cv_sizeof_signed_short_int
22707 if test x$signed = x ; then
22708 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22709 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22710 { (exit 1); exit 1; }; }
22712 if test x$unspecif != x$signed ; then
22713 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22714 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22715 { (exit 1); exit 1; }; }
22718 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22719 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22722 cat >conftest.$ac_ext <<_ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 #include "confdefs.h"
22729 #include <sys/types.h>
22735 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22740 rm -f conftest.$ac_objext
22741 if { (ac_try="$ac_compile"
22742 case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_compile") 2>conftest.er1
22749 grep -v '^ *+' conftest.er1 >conftest.err
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } && {
22754 test -z "$ac_c_werror_flag" ||
22755 test ! -s conftest.err
22756 } && test -s conftest.$ac_objext; then
22757 ac_cv_sizeof_unsigned_short_int=$ac_size
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22772 unsigned=$ac_cv_sizeof_unsigned_short_int
22773 if test x$unsigned = x ; then
22774 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22775 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22776 { (exit 1); exit 1; }; }
22778 if test x$unsigned != x$signed ; then
22779 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22780 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22781 { (exit 1); exit 1; }; }
22784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22785 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22786 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22787 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22789 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22790 echo $ECHO_N "(cached) $ECHO_C" >&6
22792 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22793 cat >conftest.$ac_ext <<_ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 #include "confdefs.h"
22800 #include <sys/types.h>
22801 struct s { char c; short int i; };
22806 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22811 rm -f conftest.$ac_objext
22812 if { (ac_try="$ac_compile"
22813 case "(($ac_try" in
22814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_compile") 2>conftest.er1
22820 grep -v '^ *+' conftest.er1 >conftest.err
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest.$ac_objext; then
22828 ac_cv_struct_boundary_short_int=$ac_size
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22842 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22843 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22844 if test x$ac_cv_struct_boundary_short_int = x ; then
22845 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22846 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22847 { (exit 1); exit 1; }; }
22850 { echo "$as_me:$LINENO: checking size of int" >&5
22851 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22852 if test "${ac_cv_sizeof_int+set}" = set; then
22853 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22856 cat >conftest.$ac_ext <<_ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 #include "confdefs.h"
22863 #include <sys/types.h>
22869 switch (0) case 0: case (sizeof (int) == $ac_size):;
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_compile") 2>conftest.er1
22883 grep -v '^ *+' conftest.er1 >conftest.err
22885 cat conftest.err >&5
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } && {
22888 test -z "$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22890 } && test -s conftest.$ac_objext; then
22891 ac_cv_sizeof_int=$ac_size
22893 echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 if test x$ac_cv_sizeof_int != x ; then break; fi
22906 unspecif=$ac_cv_sizeof_int
22907 if test x$unspecif = x ; then
22908 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22909 echo "$as_me: error: cannot determine a size for int" >&2;}
22910 { (exit 1); exit 1; }; }
22913 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22916 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22917 cat >conftest.$ac_ext <<_ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923 #include "confdefs.h"
22924 #include <sys/types.h>
22930 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22935 rm -f conftest.$ac_objext
22936 if { (ac_try="$ac_compile"
22937 case "(($ac_try" in
22938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939 *) ac_try_echo=$ac_try;;
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942 (eval "$ac_compile") 2>conftest.er1
22944 grep -v '^ *+' conftest.er1 >conftest.err
22946 cat conftest.err >&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } && {
22949 test -z "$ac_c_werror_flag" ||
22950 test ! -s conftest.err
22951 } && test -s conftest.$ac_objext; then
22952 ac_cv_sizeof_signed_int=$ac_size
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22967 signed=$ac_cv_sizeof_signed_int
22968 if test x$signed = x ; then
22969 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22970 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22971 { (exit 1); exit 1; }; }
22973 if test x$unspecif != x$signed ; then
22974 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22975 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22976 { (exit 1); exit 1; }; }
22979 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22982 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22983 cat >conftest.$ac_ext <<_ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 #include "confdefs.h"
22990 #include <sys/types.h>
22996 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23001 rm -f conftest.$ac_objext
23002 if { (ac_try="$ac_compile"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008 (eval "$ac_compile") 2>conftest.er1
23010 grep -v '^ *+' conftest.er1 >conftest.err
23012 cat conftest.err >&5
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } && {
23015 test -z "$ac_c_werror_flag" ||
23016 test ! -s conftest.err
23017 } && test -s conftest.$ac_objext; then
23018 ac_cv_sizeof_unsigned_int=$ac_size
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23027 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23033 unsigned=$ac_cv_sizeof_unsigned_int
23034 if test x$unsigned = x ; then
23035 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23036 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23037 { (exit 1); exit 1; }; }
23039 if test x$unsigned != x$signed ; then
23040 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23041 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23042 { (exit 1); exit 1; }; }
23045 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23046 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23047 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23048 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23050 if test "${ac_cv_struct_boundary_int+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23053 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23054 cat >conftest.$ac_ext <<_ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23060 #include "confdefs.h"
23061 #include <sys/types.h>
23062 struct s { char c; int i; };
23067 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23072 rm -f conftest.$ac_objext
23073 if { (ac_try="$ac_compile"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_compile") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && {
23086 test -z "$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 } && test -s conftest.$ac_objext; then
23089 ac_cv_struct_boundary_int=$ac_size
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23103 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23104 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23105 if test x$ac_cv_struct_boundary_int = x ; then
23106 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23107 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23108 { (exit 1); exit 1; }; }
23111 { echo "$as_me:$LINENO: checking size of long int" >&5
23112 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23113 if test "${ac_cv_sizeof_long_int+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23116 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23117 cat >conftest.$ac_ext <<_ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23123 #include "confdefs.h"
23124 #include <sys/types.h>
23130 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23135 rm -f conftest.$ac_objext
23136 if { (ac_try="$ac_compile"
23137 case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_compile") 2>conftest.er1
23144 grep -v '^ *+' conftest.er1 >conftest.err
23146 cat conftest.err >&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } && {
23149 test -z "$ac_c_werror_flag" ||
23150 test ! -s conftest.err
23151 } && test -s conftest.$ac_objext; then
23152 ac_cv_sizeof_long_int=$ac_size
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23167 unspecif=$ac_cv_sizeof_long_int
23168 if test x$unspecif = x ; then
23169 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23170 echo "$as_me: error: cannot determine a size for long int" >&2;}
23171 { (exit 1); exit 1; }; }
23174 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23177 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23178 cat >conftest.$ac_ext <<_ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23184 #include "confdefs.h"
23185 #include <sys/types.h>
23191 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23196 rm -f conftest.$ac_objext
23197 if { (ac_try="$ac_compile"
23198 case "(($ac_try" in
23199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200 *) ac_try_echo=$ac_try;;
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203 (eval "$ac_compile") 2>conftest.er1
23205 grep -v '^ *+' conftest.er1 >conftest.err
23207 cat conftest.err >&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); } && {
23210 test -z "$ac_c_werror_flag" ||
23211 test ! -s conftest.err
23212 } && test -s conftest.$ac_objext; then
23213 ac_cv_sizeof_signed_long_int=$ac_size
23215 echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23228 signed=$ac_cv_sizeof_signed_long_int
23229 if test x$signed = x ; then
23230 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23231 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23232 { (exit 1); exit 1; }; }
23234 if test x$unspecif != x$signed ; then
23235 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23236 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23237 { (exit 1); exit 1; }; }
23240 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23241 echo $ECHO_N "(cached) $ECHO_C" >&6
23243 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23244 cat >conftest.$ac_ext <<_ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23250 #include "confdefs.h"
23251 #include <sys/types.h>
23257 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23262 rm -f conftest.$ac_objext
23263 if { (ac_try="$ac_compile"
23264 case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269 (eval "$ac_compile") 2>conftest.er1
23271 grep -v '^ *+' conftest.er1 >conftest.err
23273 cat conftest.err >&5
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } && {
23276 test -z "$ac_c_werror_flag" ||
23277 test ! -s conftest.err
23278 } && test -s conftest.$ac_objext; then
23279 ac_cv_sizeof_unsigned_long_int=$ac_size
23281 echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23288 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23294 unsigned=$ac_cv_sizeof_unsigned_long_int
23295 if test x$unsigned = x ; then
23296 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23297 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23298 { (exit 1); exit 1; }; }
23300 if test x$unsigned != x$signed ; then
23301 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23302 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23303 { (exit 1); exit 1; }; }
23306 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23307 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23308 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23309 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23311 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23315 cat >conftest.$ac_ext <<_ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 #include "confdefs.h"
23322 #include <sys/types.h>
23323 struct s { char c; long int i; };
23328 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23333 rm -f conftest.$ac_objext
23334 if { (ac_try="$ac_compile"
23335 case "(($ac_try" in
23336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337 *) ac_try_echo=$ac_try;;
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340 (eval "$ac_compile") 2>conftest.er1
23342 grep -v '^ *+' conftest.er1 >conftest.err
23344 cat conftest.err >&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } && {
23347 test -z "$ac_c_werror_flag" ||
23348 test ! -s conftest.err
23349 } && test -s conftest.$ac_objext; then
23350 ac_cv_struct_boundary_long_int=$ac_size
23352 echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23364 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23365 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23366 if test x$ac_cv_struct_boundary_long_int = x ; then
23367 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23368 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23369 { (exit 1); exit 1; }; }
23372 { echo "$as_me:$LINENO: checking size of long long int" >&5
23373 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23374 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 #include "confdefs.h"
23385 #include <sys/types.h>
23391 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23396 rm -f conftest.$ac_objext
23397 if { (ac_try="$ac_compile"
23398 case "(($ac_try" in
23399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400 *) ac_try_echo=$ac_try;;
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_compile") 2>conftest.er1
23405 grep -v '^ *+' conftest.er1 >conftest.err
23407 cat conftest.err >&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); } && {
23410 test -z "$ac_c_werror_flag" ||
23411 test ! -s conftest.err
23412 } && test -s conftest.$ac_objext; then
23413 ac_cv_sizeof_long_long_int=$ac_size
23415 echo "$as_me: failed program was:" >&5
23416 sed 's/^/| /' conftest.$ac_ext >&5
23421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23422 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23428 unspecif=$ac_cv_sizeof_long_long_int
23429 if test x$unspecif = x ; then
23430 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23431 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23432 { (exit 1); exit 1; }; }
23435 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23439 cat >conftest.$ac_ext <<_ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h. */
23445 #include "confdefs.h"
23446 #include <sys/types.h>
23452 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23457 rm -f conftest.$ac_objext
23458 if { (ac_try="$ac_compile"
23459 case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464 (eval "$ac_compile") 2>conftest.er1
23466 grep -v '^ *+' conftest.er1 >conftest.err
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } && {
23471 test -z "$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 } && test -s conftest.$ac_objext; then
23474 ac_cv_sizeof_signed_long_long_int=$ac_size
23476 echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23489 signed=$ac_cv_sizeof_signed_long_long_int
23490 if test x$signed = x ; then
23491 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23492 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23493 { (exit 1); exit 1; }; }
23495 if test x$unspecif != x$signed ; then
23496 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23497 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23498 { (exit 1); exit 1; }; }
23501 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23502 echo $ECHO_N "(cached) $ECHO_C" >&6
23504 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23505 cat >conftest.$ac_ext <<_ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 #include "confdefs.h"
23512 #include <sys/types.h>
23518 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23523 rm -f conftest.$ac_objext
23524 if { (ac_try="$ac_compile"
23525 case "(($ac_try" in
23526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23527 *) ac_try_echo=$ac_try;;
23529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23530 (eval "$ac_compile") 2>conftest.er1
23532 grep -v '^ *+' conftest.er1 >conftest.err
23534 cat conftest.err >&5
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } && {
23537 test -z "$ac_c_werror_flag" ||
23538 test ! -s conftest.err
23539 } && test -s conftest.$ac_objext; then
23540 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23542 echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23555 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23556 if test x$unsigned = x ; then
23557 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23558 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23559 { (exit 1); exit 1; }; }
23561 if test x$unsigned != x$signed ; then
23562 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23563 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23564 { (exit 1); exit 1; }; }
23567 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23568 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23569 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23570 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23572 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23575 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23576 cat >conftest.$ac_ext <<_ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23582 #include "confdefs.h"
23583 #include <sys/types.h>
23584 struct s { char c; long long int i; };
23589 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23594 rm -f conftest.$ac_objext
23595 if { (ac_try="$ac_compile"
23596 case "(($ac_try" in
23597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598 *) ac_try_echo=$ac_try;;
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601 (eval "$ac_compile") 2>conftest.er1
23603 grep -v '^ *+' conftest.er1 >conftest.err
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } && {
23608 test -z "$ac_c_werror_flag" ||
23609 test ! -s conftest.err
23610 } && test -s conftest.$ac_objext; then
23611 ac_cv_struct_boundary_long_long_int=$ac_size
23613 echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23620 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23625 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23626 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23627 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23628 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23629 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23630 { (exit 1); exit 1; }; }
23634 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23635 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23637 if test "${ac_cv_struct_boundary_float+set}" = set; then
23638 echo $ECHO_N "(cached) $ECHO_C" >&6
23640 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23641 cat >conftest.$ac_ext <<_ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23647 #include "confdefs.h"
23648 #include <sys/types.h>
23649 struct s { char c; float i; };
23654 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663 *) ac_try_echo=$ac_try;;
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666 (eval "$ac_compile") 2>conftest.er1
23668 grep -v '^ *+' conftest.er1 >conftest.err
23670 cat conftest.err >&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); } && {
23673 test -z "$ac_c_werror_flag" ||
23674 test ! -s conftest.err
23675 } && test -s conftest.$ac_objext; then
23676 ac_cv_struct_boundary_float=$ac_size
23678 echo "$as_me: failed program was:" >&5
23679 sed 's/^/| /' conftest.$ac_ext >&5
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23690 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23691 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23692 if test x$ac_cv_struct_boundary_float = x ; then
23693 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23694 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23695 { (exit 1); exit 1; }; }
23697 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23698 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23700 if test "${ac_cv_struct_boundary_double+set}" = set; then
23701 echo $ECHO_N "(cached) $ECHO_C" >&6
23703 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710 #include "confdefs.h"
23711 #include <sys/types.h>
23712 struct s { char c; double i; };
23717 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23722 rm -f conftest.$ac_objext
23723 if { (ac_try="$ac_compile"
23724 case "(($ac_try" in
23725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726 *) ac_try_echo=$ac_try;;
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729 (eval "$ac_compile") 2>conftest.er1
23731 grep -v '^ *+' conftest.er1 >conftest.err
23733 cat conftest.err >&5
23734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } && {
23736 test -z "$ac_c_werror_flag" ||
23737 test ! -s conftest.err
23738 } && test -s conftest.$ac_objext; then
23739 ac_cv_struct_boundary_double=$ac_size
23741 echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23753 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23754 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23755 if test x$ac_cv_struct_boundary_double = x ; then
23756 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23757 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23758 { (exit 1); exit 1; }; }
23762 { echo "$as_me:$LINENO: checking size of void *" >&5
23763 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23764 if test "${ac_cv_sizeof_void_p+set}" = set; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23767 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23768 cat >conftest.$ac_ext <<_ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h. */
23774 #include "confdefs.h"
23775 #include <sys/types.h>
23781 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23786 rm -f conftest.$ac_objext
23787 if { (ac_try="$ac_compile"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_compile") 2>conftest.er1
23795 grep -v '^ *+' conftest.er1 >conftest.err
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && {
23800 test -z "$ac_c_werror_flag" ||
23801 test ! -s conftest.err
23802 } && test -s conftest.$ac_objext; then
23803 ac_cv_sizeof_void_p=$ac_size
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23812 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23818 if test x$ac_cv_sizeof_void_p = x ; then
23819 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23820 echo "$as_me: error: cannot determine a size for void *" >&2;}
23821 { (exit 1); exit 1; }; }
23823 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23824 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23825 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23826 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23828 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23831 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23832 cat >conftest.$ac_ext <<_ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h. */
23838 #include "confdefs.h"
23839 #include <sys/types.h>
23840 struct s { char c; void * i; };
23845 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23850 rm -f conftest.$ac_objext
23851 if { (ac_try="$ac_compile"
23852 case "(($ac_try" in
23853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854 *) ac_try_echo=$ac_try;;
23856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23857 (eval "$ac_compile") 2>conftest.er1
23859 grep -v '^ *+' conftest.er1 >conftest.err
23861 cat conftest.err >&5
23862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863 (exit $ac_status); } && {
23864 test -z "$ac_c_werror_flag" ||
23865 test ! -s conftest.err
23866 } && test -s conftest.$ac_objext; then
23867 ac_cv_struct_boundary_void_p=$ac_size
23869 echo "$as_me: failed program was:" >&5
23870 sed 's/^/| /' conftest.$ac_ext >&5
23875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23876 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23881 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23882 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23883 if test x$ac_cv_struct_boundary_void_p = x ; then
23884 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23885 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23886 { (exit 1); exit 1; }; }
23889 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23890 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23891 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23892 echo $ECHO_N "(cached) $ECHO_C" >&6
23894 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23895 cat >conftest.$ac_ext <<_ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h. */
23901 #include "confdefs.h"
23902 #include <sys/types.h>
23908 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23913 rm -f conftest.$ac_objext
23914 if { (ac_try="$ac_compile"
23915 case "(($ac_try" in
23916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23917 *) ac_try_echo=$ac_try;;
23919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23920 (eval "$ac_compile") 2>conftest.er1
23922 grep -v '^ *+' conftest.er1 >conftest.err
23924 cat conftest.err >&5
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); } && {
23927 test -z "$ac_c_werror_flag" ||
23928 test ! -s conftest.err
23929 } && test -s conftest.$ac_objext; then
23930 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23932 echo "$as_me: failed program was:" >&5
23933 sed 's/^/| /' conftest.$ac_ext >&5
23938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23945 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23946 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23947 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23948 { (exit 1); exit 1; }; }
23950 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23951 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23955 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23956 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23957 if test x$endian = x1 ; then
23963 trace="$trace_endian"
23965 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23967 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23968 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23969 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23970 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23972 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23973 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23975 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23977 # sizeof float/double are not tested since IEEE 754 is assumed.
23978 # Check README.IEEE for rational.
23980 # The numbers after the _ in the arch name are the maximal packing boundary.
23981 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23982 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23984 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;;
23985 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;;
23986 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;;
23987 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;;
23989 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;;
23991 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;;
23992 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;;
23993 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;;
23994 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;;
23996 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;;
23997 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;;
23999 if test x$gras_arch = xunknown ; then
24000 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24001 echo "${ECHO_T}damnit ($trace)" >&6; }
24002 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24003 Please report this architecture trace ($trace) and what it corresponds to." >&5
24004 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24005 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24006 { (exit 1); exit 1; }; }
24008 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24010 cat >>confdefs.h <<_ACEOF
24011 #define GRAS_THISARCH $gras_arch
24014 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24015 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24017 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24018 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24020 for s in $ac_cv_sizeof_char \
24021 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24022 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24025 if test $ac_cv_sizeof_max -lt $s ; then
24026 ac_cv_sizeof_max=$s
24029 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24030 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24032 cat >>confdefs.h <<_ACEOF
24033 #define SIZEOF_MAX $ac_cv_sizeof_max
24038 # Check architecture signature end
24039 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24040 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24041 cat >conftest.$ac_ext <<_ACEOF
24044 cat confdefs.h >>conftest.$ac_ext
24045 cat >>conftest.$ac_ext <<_ACEOF
24046 /* end confdefs.h. */
24047 #include "confdefs.h"
24048 #include <sys/types.h>
24049 #include <stddef.h> /* offsetof() */
24050 struct s {char c; double d;};
24057 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24063 rm -f conftest.$ac_objext
24064 if { (ac_try="$ac_compile"
24065 case "(($ac_try" in
24066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24067 *) ac_try_echo=$ac_try;;
24069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24070 (eval "$ac_compile") 2>conftest.er1
24072 grep -v '^ *+' conftest.er1 >conftest.err
24074 cat conftest.err >&5
24075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } && {
24077 test -z "$ac_c_werror_flag" ||
24078 test ! -s conftest.err
24079 } && test -s conftest.$ac_objext; then
24080 gras_struct_packed=yes
24082 echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.$ac_ext >&5
24085 gras_struct_packed=no
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24090 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24091 echo "${ECHO_T}$gras_struct_packed" >&6; }
24092 if test x$gras_struct_packed = "xyes" ; then
24093 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24094 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24095 { (exit 1); exit 1; }; }
24098 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24099 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24100 cat >conftest.$ac_ext <<_ACEOF
24103 cat confdefs.h >>conftest.$ac_ext
24104 cat >>conftest.$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24106 #include "confdefs.h"
24107 #include <sys/types.h>
24108 #include <stddef.h> /* offsetof() */
24109 struct s {double d; int i; char c;};
24116 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24122 rm -f conftest.$ac_objext
24123 if { (ac_try="$ac_compile"
24124 case "(($ac_try" in
24125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126 *) ac_try_echo=$ac_try;;
24128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129 (eval "$ac_compile") 2>conftest.er1
24131 grep -v '^ *+' conftest.er1 >conftest.err
24133 cat conftest.err >&5
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest.$ac_objext; then
24139 gras_struct_compact=yes
24141 echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24144 gras_struct_compact=no
24147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24149 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24150 echo "${ECHO_T}$gras_struct_compact" >&6; }
24152 if test x$gras_struct_compact != xyes ; then
24153 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24154 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24155 { (exit 1); exit 1; }; }
24158 cat >>confdefs.h <<_ACEOF
24159 #define GRAS_STRUCT_COMPACT 1
24162 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24163 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24165 cat >conftest.$ac_ext <<_ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h. */
24171 #include "confdefs.h"
24172 #include <sys/types.h>
24173 #include <stddef.h> /* offsetof() */
24174 struct s { double d; int i; char c[6]; };
24181 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24187 rm -f conftest.$ac_objext
24188 if { (ac_try="$ac_compile"
24189 case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_compile") 2>conftest.er1
24196 grep -v '^ *+' conftest.er1 >conftest.err
24198 cat conftest.err >&5
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } && {
24201 test -z "$ac_c_werror_flag" ||
24202 test ! -s conftest.err
24203 } && test -s conftest.$ac_objext; then
24204 gras_array_straddle_struct=yes
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24209 gras_array_straddle_struct=no
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24214 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24215 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24217 if test x$gras_array_straddle_struct = xyes ; then
24219 cat >>confdefs.h <<_ACEOF
24220 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24224 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24225 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24226 { (exit 1); exit 1; }; }
24233 { echo "$as_me:$LINENO: result: " >&5
24234 echo "${ECHO_T}" >&6; }
24235 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24236 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24241 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24242 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24243 if test "${ac_cv_check_mcsc+set}" = set; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24247 if test "$cross_compiling" = yes; then
24248 ac_cv_check_mcsc=no
24251 cat >conftest.$ac_ext <<_ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h. */
24260 #include <stdlib.h>
24261 #include <ucontext.h>
24263 ucontext_t uc_child;
24264 ucontext_t uc_main;
24266 void child(void *arg)
24268 if (arg != (void *)2147483648)
24270 if (swapcontext(&uc_child, &uc_main) != 0)
24274 int main(int argc, char *argv[])
24279 /* the default is that it fails */
24280 if ((fp = fopen("conftestval", "w")) == NULL)
24282 fprintf(fp, "no\n");
24285 /* configure a child user-space context */
24286 if ((stack = malloc(64*1024)) == NULL)
24288 if (getcontext(&uc_child) != 0)
24290 uc_child.uc_link = NULL;
24291 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24292 uc_child.uc_stack.ss_size = 32*1024;
24293 uc_child.uc_stack.ss_flags = 0;
24294 makecontext(&uc_child, child, 2, (void *)2147483648);
24296 /* switch into the user context */
24297 if (swapcontext(&uc_main, &uc_child) != 0)
24300 /* Fine, child came home */
24301 if ((fp = fopen("conftestval", "w")) == NULL)
24303 fprintf(fp, "yes\n");
24306 /* die successfully */
24311 rm -f conftest$ac_exeext
24312 if { (ac_try="$ac_link"
24313 case "(($ac_try" in
24314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24315 *) ac_try_echo=$ac_try;;
24317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24318 (eval "$ac_link") 2>&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24322 { (case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_try") 2>&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24331 ac_cv_check_mcsc=`cat conftestval`
24333 echo "$as_me: program exited with status $ac_status" >&5
24334 echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24337 ( exit $ac_status )
24338 ac_cv_check_mcsc=no
24340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24345 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24346 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24347 if test ".$ac_cv_check_mcsc" = .yes; then
24355 for ac_header in pthread.h
24357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24362 echo $ECHO_N "(cached) $ECHO_C" >&6
24364 ac_res=`eval echo '${'$as_ac_Header'}'`
24365 { echo "$as_me:$LINENO: result: $ac_res" >&5
24366 echo "${ECHO_T}$ac_res" >&6; }
24368 # Is the header compilable?
24369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24371 cat >conftest.$ac_ext <<_ACEOF
24374 cat confdefs.h >>conftest.$ac_ext
24375 cat >>conftest.$ac_ext <<_ACEOF
24376 /* end confdefs.h. */
24377 $ac_includes_default
24378 #include <$ac_header>
24380 rm -f conftest.$ac_objext
24381 if { (ac_try="$ac_compile"
24382 case "(($ac_try" in
24383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24384 *) ac_try_echo=$ac_try;;
24386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24387 (eval "$ac_compile") 2>conftest.er1
24389 grep -v '^ *+' conftest.er1 >conftest.err
24391 cat conftest.err >&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); } && {
24394 test -z "$ac_c_werror_flag" ||
24395 test ! -s conftest.err
24396 } && test -s conftest.$ac_objext; then
24397 ac_header_compiler=yes
24399 echo "$as_me: failed program was:" >&5
24400 sed 's/^/| /' conftest.$ac_ext >&5
24402 ac_header_compiler=no
24405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24407 echo "${ECHO_T}$ac_header_compiler" >&6; }
24409 # Is the header present?
24410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24412 cat >conftest.$ac_ext <<_ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h. */
24418 #include <$ac_header>
24420 if { (ac_try="$ac_cpp conftest.$ac_ext"
24421 case "(($ac_try" in
24422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423 *) ac_try_echo=$ac_try;;
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24428 grep -v '^ *+' conftest.er1 >conftest.err
24430 cat conftest.err >&5
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } >/dev/null && {
24433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24434 test ! -s conftest.err
24436 ac_header_preproc=yes
24438 echo "$as_me: failed program was:" >&5
24439 sed 's/^/| /' conftest.$ac_ext >&5
24441 ac_header_preproc=no
24444 rm -f conftest.err conftest.$ac_ext
24445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24446 echo "${ECHO_T}$ac_header_preproc" >&6; }
24448 # So? What about this header?
24449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24455 ac_header_preproc=yes
24458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24471 ## -------------------------------------------------- ##
24472 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24473 ## -------------------------------------------------- ##
24475 ) | sed "s/^/$as_me: WARNING: /" >&2
24478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24481 echo $ECHO_N "(cached) $ECHO_C" >&6
24483 eval "$as_ac_Header=\$ac_header_preproc"
24485 ac_res=`eval echo '${'$as_ac_Header'}'`
24486 { echo "$as_me:$LINENO: result: $ac_res" >&5
24487 echo "${ECHO_T}$ac_res" >&6; }
24490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24491 cat >>confdefs.h <<_ACEOF
24492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24499 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24500 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24501 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24504 ac_check_lib_save_LIBS=$LIBS
24505 LIBS="-lpthread $LIBS"
24506 cat >conftest.$ac_ext <<_ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24513 /* Override any GCC internal prototype to avoid an error.
24514 Use char because int might match the return type of a GCC
24515 builtin and then its argument prototype would still apply. */
24519 char pthread_create ();
24523 return pthread_create ();
24528 rm -f conftest.$ac_objext conftest$ac_exeext
24529 if { (ac_try="$ac_link"
24530 case "(($ac_try" in
24531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532 *) ac_try_echo=$ac_try;;
24534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24535 (eval "$ac_link") 2>conftest.er1
24537 grep -v '^ *+' conftest.er1 >conftest.err
24539 cat conftest.err >&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); } && {
24542 test -z "$ac_c_werror_flag" ||
24543 test ! -s conftest.err
24544 } && test -s conftest$ac_exeext &&
24545 $as_test_x conftest$ac_exeext; then
24546 ac_cv_lib_pthread_pthread_create=yes
24548 echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24551 ac_cv_lib_pthread_pthread_create=no
24554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24555 conftest$ac_exeext conftest.$ac_ext
24556 LIBS=$ac_check_lib_save_LIBS
24558 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24559 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24560 if test $ac_cv_lib_pthread_pthread_create = yes; then
24568 if test ".$mcsc" = .yes; then
24570 elif test ".$pthread" = .yes; then
24573 ac_header=windows.h
24574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24576 windows_context=yes
24578 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24579 echo "$as_me: error: no appropriate backend found" >&2;}
24580 { (exit 1); exit 1; }; }
24585 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24586 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24589 # Check whether --with-pthread was given.
24590 if test "${with_pthread+set}" = set; then
24591 withval=$with_pthread; with_context=pthread
24596 # Check whether --with-context was given.
24597 if test "${with_context+set}" = set; then
24598 withval=$with_context;
24604 if test "x$with_context$mcsc" = "xucontextno" ; then
24605 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24606 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24607 { (exit 77); exit 77; }; }
24610 case $with_context in
24614 auto) with_context=ucontext;;
24615 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24616 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24617 { (exit 1); exit 1; }; } ;;
24620 if test "x$with_context" = "xucontext" ; then
24621 if test ".$mcsc" = .yes; then
24622 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24623 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24625 cat >>confdefs.h <<\_ACEOF
24626 #define USE_UCONTEXT 1
24630 if test ".$windows_context" = .yes ; then
24631 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24632 echo "${ECHO_T}use windows context portability layer." >&6; }
24633 with_context=windows
24635 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24636 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24637 with_context=pthread
24642 if test "x$with_context" = "xpthread"; then
24644 for ac_header in pthread.h
24646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24653 ac_res=`eval echo '${'$as_ac_Header'}'`
24654 { echo "$as_me:$LINENO: result: $ac_res" >&5
24655 echo "${ECHO_T}$ac_res" >&6; }
24657 # Is the header compilable?
24658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24660 cat >conftest.$ac_ext <<_ACEOF
24663 cat confdefs.h >>conftest.$ac_ext
24664 cat >>conftest.$ac_ext <<_ACEOF
24665 /* end confdefs.h. */
24666 $ac_includes_default
24667 #include <$ac_header>
24669 rm -f conftest.$ac_objext
24670 if { (ac_try="$ac_compile"
24671 case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_compile") 2>conftest.er1
24678 grep -v '^ *+' conftest.er1 >conftest.err
24680 cat conftest.err >&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } && {
24683 test -z "$ac_c_werror_flag" ||
24684 test ! -s conftest.err
24685 } && test -s conftest.$ac_objext; then
24686 ac_header_compiler=yes
24688 echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24691 ac_header_compiler=no
24694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24696 echo "${ECHO_T}$ac_header_compiler" >&6; }
24698 # Is the header present?
24699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24701 cat >conftest.$ac_ext <<_ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h. */
24707 #include <$ac_header>
24709 if { (ac_try="$ac_cpp conftest.$ac_ext"
24710 case "(($ac_try" in
24711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24712 *) ac_try_echo=$ac_try;;
24714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24717 grep -v '^ *+' conftest.er1 >conftest.err
24719 cat conftest.err >&5
24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 (exit $ac_status); } >/dev/null && {
24722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24723 test ! -s conftest.err
24725 ac_header_preproc=yes
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24730 ac_header_preproc=no
24733 rm -f conftest.err conftest.$ac_ext
24734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24735 echo "${ECHO_T}$ac_header_preproc" >&6; }
24737 # So? What about this header?
24738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24744 ac_header_preproc=yes
24747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24760 ## -------------------------------------------------- ##
24761 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24762 ## -------------------------------------------------- ##
24764 ) | sed "s/^/$as_me: WARNING: /" >&2
24767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24770 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 eval "$as_ac_Header=\$ac_header_preproc"
24774 ac_res=`eval echo '${'$as_ac_Header'}'`
24775 { echo "$as_me:$LINENO: result: $ac_res" >&5
24776 echo "${ECHO_T}$ac_res" >&6; }
24779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24780 cat >>confdefs.h <<_ACEOF
24781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24789 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24790 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24791 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24792 echo $ECHO_N "(cached) $ECHO_C" >&6
24794 ac_check_lib_save_LIBS=$LIBS
24795 LIBS="-lpthread $LIBS"
24796 cat >conftest.$ac_ext <<_ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24803 /* Override any GCC internal prototype to avoid an error.
24804 Use char because int might match the return type of a GCC
24805 builtin and then its argument prototype would still apply. */
24809 char pthread_create ();
24813 return pthread_create ();
24818 rm -f conftest.$ac_objext conftest$ac_exeext
24819 if { (ac_try="$ac_link"
24820 case "(($ac_try" in
24821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24822 *) ac_try_echo=$ac_try;;
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825 (eval "$ac_link") 2>conftest.er1
24827 grep -v '^ *+' conftest.er1 >conftest.err
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && {
24832 test -z "$ac_c_werror_flag" ||
24833 test ! -s conftest.err
24834 } && test -s conftest$ac_exeext &&
24835 $as_test_x conftest$ac_exeext; then
24836 ac_cv_lib_pthread_pthread_create=yes
24838 echo "$as_me: failed program was:" >&5
24839 sed 's/^/| /' conftest.$ac_ext >&5
24841 ac_cv_lib_pthread_pthread_create=no
24844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24845 conftest$ac_exeext conftest.$ac_ext
24846 LIBS=$ac_check_lib_save_LIBS
24848 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24849 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24850 if test $ac_cv_lib_pthread_pthread_create = yes; then
24851 cat >>confdefs.h <<_ACEOF
24852 #define HAVE_LIBPTHREAD 1
24855 LIBS="-lpthread $LIBS"
24858 { { echo "$as_me:$LINENO: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&5
24859 echo "$as_me: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&2;}
24860 { (exit 1); exit 1; }; }
24864 cat >>confdefs.h <<\_ACEOF
24865 #define USE_PTHREADS 1
24868 { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24869 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24873 if test "x$with_context" = "xucontext" ; then
24874 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24875 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24876 if test "${ac_cv_check_stackgrowth+set}" = set; then
24877 echo $ECHO_N "(cached) $ECHO_C" >&6
24881 if test "$cross_compiling" = yes; then
24882 ac_cv_check_stackgrowth=down
24885 cat >conftest.$ac_ext <<_ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24893 #include <stdlib.h>
24894 static int iterate = 10;
24895 static int growsdown(int *x)
24905 int main(int argc, char *argv[])
24909 if ((f = fopen("conftestval", "w")) == NULL)
24911 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24918 rm -f conftest$ac_exeext
24919 if { (ac_try="$ac_link"
24920 case "(($ac_try" in
24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922 *) ac_try_echo=$ac_try;;
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925 (eval "$ac_link") 2>&5
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24929 { (case "(($ac_try" in
24930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931 *) ac_try_echo=$ac_try;;
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934 (eval "$ac_try") 2>&5
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_cv_check_stackgrowth=`cat conftestval`
24940 echo "$as_me: program exited with status $ac_status" >&5
24941 echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.$ac_ext >&5
24944 ( exit $ac_status )
24945 ac_cv_check_stackgrowth=down
24947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24952 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24953 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24954 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24960 cat >>confdefs.h <<_ACEOF
24961 #define PTH_STACKGROWTH $val
24965 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24966 PTH_STACK_GROWTH="down"
24968 PTH_STACK_GROWTH="up"
24976 for ac_func in makecontext
24978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24982 echo $ECHO_N "(cached) $ECHO_C" >&6
24984 cat >conftest.$ac_ext <<_ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
24990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24992 #define $ac_func innocuous_$ac_func
24994 /* System header to define __stub macros and hopefully few prototypes,
24995 which can conflict with char $ac_func (); below.
24996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24997 <limits.h> exists even on freestanding compilers. */
25000 # include <limits.h>
25002 # include <assert.h>
25007 /* Override any GCC internal prototype to avoid an error.
25008 Use char because int might match the return type of a GCC
25009 builtin and then its argument prototype would still apply. */
25014 /* The GNU C library defines this for functions which it implements
25015 to always fail with ENOSYS. Some functions are actually named
25016 something starting with __ and the normal name is an alias. */
25017 #if defined __stub_$ac_func || defined __stub___$ac_func
25024 return $ac_func ();
25029 rm -f conftest.$ac_objext conftest$ac_exeext
25030 if { (ac_try="$ac_link"
25031 case "(($ac_try" in
25032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033 *) ac_try_echo=$ac_try;;
25035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25036 (eval "$ac_link") 2>conftest.er1
25038 grep -v '^ *+' conftest.er1 >conftest.err
25040 cat conftest.err >&5
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); } && {
25043 test -z "$ac_c_werror_flag" ||
25044 test ! -s conftest.err
25045 } && test -s conftest$ac_exeext &&
25046 $as_test_x conftest$ac_exeext; then
25047 eval "$as_ac_var=yes"
25049 echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25052 eval "$as_ac_var=no"
25055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25056 conftest$ac_exeext conftest.$ac_ext
25058 ac_res=`eval echo '${'$as_ac_var'}'`
25059 { echo "$as_me:$LINENO: result: $ac_res" >&5
25060 echo "${ECHO_T}$ac_res" >&6; }
25061 if test `eval echo '${'$as_ac_var'}'` = yes; then
25062 cat >>confdefs.h <<_ACEOF
25063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25070 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25071 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25072 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25073 echo $ECHO_N "(cached) $ECHO_C" >&6
25076 if test ".$ac_cv_func_makecontext" = .no; then
25077 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25080 CFLAGS="$CFLAGS -DTEST_makecontext"
25082 if test "$cross_compiling" = yes; then
25084 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25087 cat >conftest.$ac_ext <<_ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25095 #include <stdlib.h>
25096 #include <string.h>
25097 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25098 #include <sys/types.h>
25099 #include <signal.h>
25100 #include <unistd.h>
25102 #if defined(TEST_makecontext)
25103 #include <ucontext.h>
25112 static volatile char *handler_addr = (char *)0xDEAD;
25113 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25114 static volatile int handler_done = 0;
25115 void handler(int sig)
25117 char garbage[1024];
25120 for (i = 0; i < 1024; i++)
25122 handler_addr = (char *)&dummy;
25127 #if defined(TEST_makecontext)
25128 static ucontext_t uc_handler;
25129 static ucontext_t uc_main;
25132 char garbage[1024];
25135 for (i = 0; i < 1024; i++)
25137 handler_addr = (char *)&dummy;
25138 swapcontext(&uc_handler, &uc_main);
25142 int main(int argc, char *argv[])
25151 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25154 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25156 skaddr = skbuf+sizeof(union alltypes);
25157 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25159 struct sigaction sa;
25160 #if defined(TEST_sigstack)
25161 struct sigstack ss;
25162 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25165 struct sigaltstack ss;
25167 #if defined(TEST_sigstack)
25168 ss.ss_sp = (void *)(skaddr + sksize);
25170 if (sigstack(&ss, NULL) < 0)
25172 #elif defined(TEST_sigaltstack)
25173 ss.ss_sp = (void *)(skaddr + sksize);
25174 ss.ss_size = sksize;
25176 if (sigaltstack(&ss, NULL) < 0)
25179 memset((void *)&sa, 0, sizeof(struct sigaction));
25180 sa.sa_handler = handler;
25181 sa.sa_flags = SA_ONSTACK;
25182 sigemptyset(&sa.sa_mask);
25183 sigaction(SIGUSR1, &sa, NULL);
25184 kill(getpid(), SIGUSR1);
25185 while (!handler_done)
25189 #if defined(TEST_makecontext)
25191 if (getcontext(&uc_handler) != 0)
25193 uc_handler.uc_link = NULL;
25194 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25195 uc_handler.uc_stack.ss_size = sksize;
25196 uc_handler.uc_stack.ss_flags = 0;
25197 makecontext(&uc_handler, handler, 1);
25198 swapcontext(&uc_main, &uc_handler);
25201 if (handler_addr == (char *)0xDEAD)
25203 if (handler_addr < skaddr+sksize) {
25204 /* stack was placed into lower area */
25205 if (*(skaddr+sksize) != 'A')
25206 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25207 sizeof(union alltypes), sizeof(union alltypes));
25209 strcpy(result, "(skaddr)+(sksize),(sksize)");
25212 /* stack was placed into higher area */
25213 if (*(skaddr+sksize*2) != 'A')
25214 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25216 strcpy(result, "(skaddr),(sksize)");
25218 if ((f = fopen("conftestval", "w")) == NULL)
25220 fprintf(f, "%s\n", result);
25226 rm -f conftest$ac_exeext
25227 if { (ac_try="$ac_link"
25228 case "(($ac_try" in
25229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230 *) ac_try_echo=$ac_try;;
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233 (eval "$ac_link") 2>&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25237 { (case "(($ac_try" in
25238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25239 *) ac_try_echo=$ac_try;;
25241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25242 (eval "$ac_try") 2>&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); }; }; then
25247 ac_cv_stacksetup_makecontext=`cat conftestval`
25248 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25251 echo "$as_me: program exited with status $ac_status" >&5
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25255 ( exit $ac_status )
25257 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25268 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25269 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25270 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25271 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25272 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25273 { echo "$as_me:$LINENO: result: $type" >&5
25274 echo "${ECHO_T}$type" >&6; }
25275 if test ".$verbose" = .yes; then
25276 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25277 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25280 if test ".$verbose" = .yes; then
25281 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25282 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25289 #########################################
25290 ## Build optional modules (simix)
25293 { echo "$as_me:$LINENO: result: " >&5
25294 echo "${ECHO_T}" >&6; }
25295 { echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
25296 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6; }
25298 # Check whether --enable-simix was given.
25299 if test "${enable_simix+set}" = set; then
25300 enableval=$enable_simix; enable_simix=$enableval
25305 if test "x$enable_simix" = "xyes" ; then
25306 { echo "$as_me:$LINENO: result: \"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&5
25307 echo "${ECHO_T}\"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&6; }
25309 cat >>confdefs.h <<\_ACEOF
25310 #define USE_SIMIX 1
25314 { echo "$as_me:$LINENO: result: Eventually you will come to SimIX: x$enable_simix" >&5
25315 echo "${ECHO_T}Eventually you will come to SimIX: x$enable_simix" >&6; }
25319 if test x$enable_simix != xno; then
25321 USE_SIMIX_FALSE='#'
25328 #########################################
25329 ## Check for libraries extra-dependencies
25333 { echo "$as_me:$LINENO: result: " >&5
25334 echo "${ECHO_T}" >&6; }
25335 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25336 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25339 { echo "$as_me:$LINENO: checking for csdp" >&5
25340 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25343 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25344 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25345 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25346 echo $ECHO_N "(cached) $ECHO_C" >&6
25348 ac_check_lib_save_LIBS=$LIBS
25349 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25350 cat >conftest.$ac_ext <<_ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25357 /* Override any GCC internal prototype to avoid an error.
25358 Use char because int might match the return type of a GCC
25359 builtin and then its argument prototype would still apply. */
25372 rm -f conftest.$ac_objext conftest$ac_exeext
25373 if { (ac_try="$ac_link"
25374 case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_link") 2>conftest.er1
25381 grep -v '^ *+' conftest.er1 >conftest.err
25383 cat conftest.err >&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); } && {
25386 test -z "$ac_c_werror_flag" ||
25387 test ! -s conftest.err
25388 } && test -s conftest$ac_exeext &&
25389 $as_test_x conftest$ac_exeext; then
25390 ac_cv_lib_sdp_sdp=yes
25392 echo "$as_me: failed program was:" >&5
25393 sed 's/^/| /' conftest.$ac_ext >&5
25395 ac_cv_lib_sdp_sdp=no
25398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25399 conftest$ac_exeext conftest.$ac_ext
25400 LIBS=$ac_check_lib_save_LIBS
25402 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25403 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25404 if test $ac_cv_lib_sdp_sdp = yes; then
25410 if test "x$csdp" = xyes; then
25411 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25412 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25413 echo "${ECHO_T}Found working sdp library." >&6; }
25415 cat >>confdefs.h <<\_ACEOF
25420 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25421 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25425 if test x$csdp != xno; then
25437 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25438 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25439 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25442 ac_check_lib_save_LIBS=$LIBS
25444 cat >conftest.$ac_ext <<_ACEOF
25447 cat confdefs.h >>conftest.$ac_ext
25448 cat >>conftest.$ac_ext <<_ACEOF
25449 /* end confdefs.h. */
25451 /* Override any GCC internal prototype to avoid an error.
25452 Use char because int might match the return type of a GCC
25453 builtin and then its argument prototype would still apply. */
25457 char gethostbyname ();
25461 return gethostbyname ();
25466 rm -f conftest.$ac_objext conftest$ac_exeext
25467 if { (ac_try="$ac_link"
25468 case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_link") 2>conftest.er1
25475 grep -v '^ *+' conftest.er1 >conftest.err
25477 cat conftest.err >&5
25478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479 (exit $ac_status); } && {
25480 test -z "$ac_c_werror_flag" ||
25481 test ! -s conftest.err
25482 } && test -s conftest$ac_exeext &&
25483 $as_test_x conftest$ac_exeext; then
25484 ac_cv_lib_nsl_gethostbyname=yes
25486 echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25489 ac_cv_lib_nsl_gethostbyname=no
25492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25493 conftest$ac_exeext conftest.$ac_ext
25494 LIBS=$ac_check_lib_save_LIBS
25496 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25497 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25498 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25499 GRAS_DEP="$GRAS_DEP -lnsl"
25502 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25503 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25504 if test "${ac_cv_lib_socket_connect+set}" = set; then
25505 echo $ECHO_N "(cached) $ECHO_C" >&6
25507 ac_check_lib_save_LIBS=$LIBS
25508 LIBS="-lsocket $LIBS"
25509 cat >conftest.$ac_ext <<_ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25516 /* Override any GCC internal prototype to avoid an error.
25517 Use char because int might match the return type of a GCC
25518 builtin and then its argument prototype would still apply. */
25531 rm -f conftest.$ac_objext conftest$ac_exeext
25532 if { (ac_try="$ac_link"
25533 case "(($ac_try" in
25534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535 *) ac_try_echo=$ac_try;;
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538 (eval "$ac_link") 2>conftest.er1
25540 grep -v '^ *+' conftest.er1 >conftest.err
25542 cat conftest.err >&5
25543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25544 (exit $ac_status); } && {
25545 test -z "$ac_c_werror_flag" ||
25546 test ! -s conftest.err
25547 } && test -s conftest$ac_exeext &&
25548 $as_test_x conftest$ac_exeext; then
25549 ac_cv_lib_socket_connect=yes
25551 echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25554 ac_cv_lib_socket_connect=no
25557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25558 conftest$ac_exeext conftest.$ac_ext
25559 LIBS=$ac_check_lib_save_LIBS
25561 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25562 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25563 if test $ac_cv_lib_socket_connect = yes; then
25564 GRAS_DEP="$GRAS_DEP -lsocket"
25568 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25569 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25571 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32" ;;
25574 if test "x$GRAS_DEP" = x; then
25575 { echo "$as_me:$LINENO: result: none" >&5
25576 echo "${ECHO_T}none" >&6; }
25578 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25579 echo "${ECHO_T}$GRAS_DEP" >&6; }
25584 ##############################################
25585 ## Enhance maintainer mode and SUBST variables
25586 ## (must be placed after any compilation tests since our overprotective flags
25587 ## let some tests fail)
25589 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25590 # Next line is modified by sed when building gramine source tree
25592 if test x$gramine_mode = xyes
25594 USE_MAINTAINER_MODE=no
25598 if test x$gramine_mode != xno; then
25600 GRAMINE_MODE_FALSE='#'
25602 GRAMINE_MODE_TRUE='#'
25603 GRAMINE_MODE_FALSE=
25608 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25609 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25610 # Check whether --enable-maintainer-mode was given.
25611 if test "${enable_maintainer_mode+set}" = set; then
25612 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25614 USE_MAINTAINER_MODE=no
25617 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25618 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25621 if test $USE_MAINTAINER_MODE = yes; then
25622 MAINTAINER_MODE_TRUE=
25623 MAINTAINER_MODE_FALSE='#'
25625 MAINTAINER_MODE_TRUE='#'
25626 MAINTAINER_MODE_FALSE=
25629 MAINT=$MAINTAINER_MODE_TRUE
25632 if test x$USE_MAINTAINER_MODE = xyes
25634 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25635 enable_compile_warnings=yes
25638 # Check whether --enable-compile-warnings was given.
25639 if test "${enable_compile_warnings+set}" = set; then
25640 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25642 enable_compile_warnings=no
25646 # Check whether --enable-compile-optimizations was given.
25647 if test "${enable_compile_optimizations+set}" = set; then
25648 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25650 enable_compile_optimizations=auto
25654 if test "x$cflags_set" != "xyes" ; then
25655 # if user didn't specify CFLAGS explicitely
25657 # AC PROG CC tests whether -g is accepted.
25658 # Cool, but it also tries to set -O2. I don't want it with gcc
25659 saveCFLAGS="$CFLAGS"
25661 case " $saveCFLAGS " in
25662 *-g*) CFLAGS="-g" ;;
25664 case " $saveCFLAGS " in
25665 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25668 # damn AC PROG CC, why did you set -O??
25672 if test "x$enable_compile_warnings" = "xyes" ; then
25673 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25674 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25676 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25677 case " $CFLAGS " in
25679 *) warnCFLAGS="-Wall -Wunused" ;;
25682 ## -W is not all that useful. And it cannot be controlled
25683 ## with individual -Wno-xxx flags, unlike -Wall
25685 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25686 ## -Wshadow chokes on try{ try{} } constructs
25687 if test "x$enable_compile_warnings" = "xyes"; then
25688 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25689 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25690 -Wno-unused-function \
25693 # -Wno-unused-variable -Wno-unused-label
25696 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25697 echo "${ECHO_T}$warnCFLAGS" >&6; }
25698 # placed before since gcc remembers the last one on conflict
25699 CFLAGS="$warnCFLAGS $CFLAGS"
25702 if test "x$enable_compile_optimizations" = "xyes" ||
25703 test "x$enable_compile_optimizations" = "xauto" ; then
25704 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25705 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25707 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25708 case " $CFLAGS " in
25710 *) optCFLAGS="$optCFLAGS -O3" ;;
25712 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25714 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25715 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25716 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25717 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25718 # isn't propagated enough to desserve an extra check
25720 # Note that the flag didn't exist before gcc 3.0
25721 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25724 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25725 echo "${ECHO_T}$optCFLAGS" >&6; }
25726 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25727 if test "x$cflags_set" != "xyes" ; then
25728 CFLAGS="$optCFLAGS $CFLAGS"
25732 if test x$lt_cv_prog_gnu_ld = xyes ; then
25733 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25749 #####################
25750 ## Check for programs
25754 { echo "$as_me:$LINENO: result: " >&5
25755 echo "${ECHO_T}" >&6; }
25756 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25757 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25759 # Extract the first word of "bash", so it can be a program name with args.
25760 set dummy bash; ac_word=$2
25761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25763 if test "${ac_cv_prog_BASH+set}" = set; then
25764 echo $ECHO_N "(cached) $ECHO_C" >&6
25766 if test -n "$BASH"; then
25767 ac_cv_prog_BASH="$BASH" # Let the user override the test.
25769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25770 for as_dir in $PATH
25773 test -z "$as_dir" && as_dir=.
25774 for ac_exec_ext in '' $ac_executable_extensions; do
25775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25776 ac_cv_prog_BASH="`which bash`"
25777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25784 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25787 BASH=$ac_cv_prog_BASH
25788 if test -n "$BASH"; then
25789 { echo "$as_me:$LINENO: result: $BASH" >&5
25790 echo "${ECHO_T}$BASH" >&6; }
25792 { echo "$as_me:$LINENO: result: no" >&5
25793 echo "${ECHO_T}no" >&6; }
25797 WARNING="This file is generated, do not edit"
25801 # Can we rebuild the parsers?
25802 # We really want flex and refuse other lex. So, the parser is portable and
25803 # does not induce extra lib dependency
25804 for ac_prog in flex lex
25806 # Extract the first word of "$ac_prog", so it can be a program name with args.
25807 set dummy $ac_prog; ac_word=$2
25808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25810 if test "${ac_cv_prog_LEX+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25813 if test -n "$LEX"; then
25814 ac_cv_prog_LEX="$LEX" # Let the user override the test.
25816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25817 for as_dir in $PATH
25820 test -z "$as_dir" && as_dir=.
25821 for ac_exec_ext in '' $ac_executable_extensions; do
25822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25823 ac_cv_prog_LEX="$ac_prog"
25824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25833 LEX=$ac_cv_prog_LEX
25834 if test -n "$LEX"; then
25835 { echo "$as_me:$LINENO: result: $LEX" >&5
25836 echo "${ECHO_T}$LEX" >&6; }
25838 { echo "$as_me:$LINENO: result: no" >&5
25839 echo "${ECHO_T}no" >&6; }
25843 test -n "$LEX" && break
25845 test -n "$LEX" || LEX=":"
25847 if test "x$LEX" != "x:"; then
25848 cat >conftest.l <<_ACEOF
25854 e { yyless (input () != 0); }
25855 f { unput (yytext[0]); }
25856 . { BEGIN INITIAL; }
25858 #ifdef YYTEXT_POINTER
25859 extern char *yytext;
25864 return ! yylex () + ! yywrap ();
25867 { (ac_try="$LEX conftest.l"
25868 case "(($ac_try" in
25869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25870 *) ac_try_echo=$ac_try;;
25872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25873 (eval "$LEX conftest.l") 2>&5
25875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); }
25877 { echo "$as_me:$LINENO: checking lex output file root" >&5
25878 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25879 if test "${ac_cv_prog_lex_root+set}" = set; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25883 if test -f lex.yy.c; then
25884 ac_cv_prog_lex_root=lex.yy
25885 elif test -f lexyy.c; then
25886 ac_cv_prog_lex_root=lexyy
25888 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25889 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25890 { (exit 1); exit 1; }; }
25893 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25894 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25895 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25897 if test -z "${LEXLIB+set}"; then
25898 { echo "$as_me:$LINENO: checking lex library" >&5
25899 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25900 if test "${ac_cv_lib_lex+set}" = set; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25905 ac_cv_lib_lex='none needed'
25906 for ac_lib in '' -lfl -ll; do
25907 LIBS="$ac_lib $ac_save_LIBS"
25908 cat >conftest.$ac_ext <<_ACEOF
25909 `cat $LEX_OUTPUT_ROOT.c`
25911 rm -f conftest.$ac_objext conftest$ac_exeext
25912 if { (ac_try="$ac_link"
25913 case "(($ac_try" in
25914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25915 *) ac_try_echo=$ac_try;;
25917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25918 (eval "$ac_link") 2>conftest.er1
25920 grep -v '^ *+' conftest.er1 >conftest.err
25922 cat conftest.err >&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); } && {
25925 test -z "$ac_c_werror_flag" ||
25926 test ! -s conftest.err
25927 } && test -s conftest$ac_exeext &&
25928 $as_test_x conftest$ac_exeext; then
25929 ac_cv_lib_lex=$ac_lib
25931 echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25938 conftest$ac_exeext conftest.$ac_ext
25939 test "$ac_cv_lib_lex" != 'none needed' && break
25944 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
25945 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
25946 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
25950 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25951 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
25952 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25953 echo $ECHO_N "(cached) $ECHO_C" >&6
25955 # POSIX says lex can declare yytext either as a pointer or an array; the
25956 # default is implementation-dependent. Figure out which it is, since
25957 # not all implementations provide the %pointer and %array declarations.
25958 ac_cv_prog_lex_yytext_pointer=no
25960 LIBS="$LEXLIB $ac_save_LIBS"
25961 cat >conftest.$ac_ext <<_ACEOF
25962 #define YYTEXT_POINTER 1
25963 `cat $LEX_OUTPUT_ROOT.c`
25965 rm -f conftest.$ac_objext conftest$ac_exeext
25966 if { (ac_try="$ac_link"
25967 case "(($ac_try" in
25968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969 *) ac_try_echo=$ac_try;;
25971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25972 (eval "$ac_link") 2>conftest.er1
25974 grep -v '^ *+' conftest.er1 >conftest.err
25976 cat conftest.err >&5
25977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978 (exit $ac_status); } && {
25979 test -z "$ac_c_werror_flag" ||
25980 test ! -s conftest.err
25981 } && test -s conftest$ac_exeext &&
25982 $as_test_x conftest$ac_exeext; then
25983 ac_cv_prog_lex_yytext_pointer=yes
25985 echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25992 conftest$ac_exeext conftest.$ac_ext
25996 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25997 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
25998 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26000 cat >>confdefs.h <<\_ACEOF
26001 #define YYTEXT_POINTER 1
26005 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26009 if test "$LEX" != flex; then
26010 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26011 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26012 LEX=${am_missing_run}flex
26016 if test "x2.5.30" != "x" ; then
26017 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26019 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26020 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26021 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26023 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26024 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26025 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26027 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26028 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
26029 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26031 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26032 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26033 LEX=${am_missing_run}flex
26037 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26038 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26044 # Can we rebuild the xml-lexers from the XML specification?
26045 # if not, simply touch the flex source files (which are distributed in
26046 # tarballs even if generated by flexml) and hope for the best.
26047 # Extract the first word of "flexml", so it can be a program name with args.
26048 set dummy flexml; ac_word=$2
26049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26051 if test "${ac_cv_prog_FLEXML+set}" = set; then
26052 echo $ECHO_N "(cached) $ECHO_C" >&6
26054 if test -n "$FLEXML"; then
26055 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26058 for as_dir in $PATH
26061 test -z "$as_dir" && as_dir=.
26062 for ac_exec_ext in '' $ac_executable_extensions; do
26063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26064 ac_cv_prog_FLEXML="`which flexml`"
26065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26072 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26075 FLEXML=$ac_cv_prog_FLEXML
26076 if test -n "$FLEXML"; then
26077 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26078 echo "${ECHO_T}$FLEXML" >&6; }
26080 { echo "$as_me:$LINENO: result: no" >&5
26081 echo "${ECHO_T}no" >&6; }
26087 if test x$FLEXML != xNOTFOUND; then
26089 HAVE_FLEXML_FALSE='#'
26091 HAVE_FLEXML_TRUE='#'
26096 if test x$USE_MAINTAINER_MODE = xyes
26098 # Check for doxygen when in maintainer mode since dist* targets fail
26100 # Extract the first word of "doxygen", so it can be a program name with args.
26101 set dummy doxygen; ac_word=$2
26102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26104 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26105 echo $ECHO_N "(cached) $ECHO_C" >&6
26109 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26113 for as_dir in $PATH
26116 test -z "$as_dir" && as_dir=.
26117 for ac_exec_ext in '' $ac_executable_extensions; do
26118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26119 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26127 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26131 DOXYGEN=$ac_cv_path_DOXYGEN
26132 if test -n "$DOXYGEN"; then
26133 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26134 echo "${ECHO_T}$DOXYGEN" >&6; }
26136 { echo "$as_me:$LINENO: result: no" >&5
26137 echo "${ECHO_T}no" >&6; }
26141 if test x$DOXYGEN = x ; then
26142 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26143 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26144 { (exit 1); exit 1; }; }
26148 # Can we extract really usable backtraces? (also need the popen function)
26149 # Extract the first word of "addr2line", so it can be a program name with args.
26150 set dummy addr2line; ac_word=$2
26151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26153 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26154 echo $ECHO_N "(cached) $ECHO_C" >&6
26158 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26162 for as_dir in $PATH
26165 test -z "$as_dir" && as_dir=.
26166 for ac_exec_ext in '' $ac_executable_extensions; do
26167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26168 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26179 ADDR2LINE=$ac_cv_path_ADDR2LINE
26180 if test -n "$ADDR2LINE"; then
26181 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26182 echo "${ECHO_T}$ADDR2LINE" >&6; }
26184 { echo "$as_me:$LINENO: result: no" >&5
26185 echo "${ECHO_T}no" >&6; }
26189 if test x$ADDR2LINE != x ; then
26191 cat >>confdefs.h <<_ACEOF
26192 #define ADDR2LINE "$ADDR2LINE"
26198 # Can we make status line about the compilation result?
26199 # Extract the first word of "md5sum", so it can be a program name with args.
26200 set dummy md5sum; ac_word=$2
26201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26203 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26204 echo $ECHO_N "(cached) $ECHO_C" >&6
26206 if test -n "$MD5SUM"; then
26207 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26210 for as_dir in $PATH
26213 test -z "$as_dir" && as_dir=.
26214 for ac_exec_ext in '' $ac_executable_extensions; do
26215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26216 ac_cv_prog_MD5SUM="`which md5sum`"
26217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26226 MD5SUM=$ac_cv_prog_MD5SUM
26227 if test -n "$MD5SUM"; then
26228 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26229 echo "${ECHO_T}$MD5SUM" >&6; }
26231 { echo "$as_me:$LINENO: result: no" >&5
26232 echo "${ECHO_T}no" >&6; }
26236 if test x$MD5SUM != xno ; then
26237 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26238 xargs cat| $MD5SUM | sed 's/ .*$//'`
26240 build_version="no_md5sum_binary"
26242 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26245 ###################
26246 ## Makes the output
26251 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26252 # src/amok/Makefile
26255 { echo "$as_me:$LINENO: result: " >&5
26256 echo "${ECHO_T}" >&6; }
26257 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26258 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26261 # Core of the libraries
26263 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26266 # Tools being embeeded in gramine (stub generator)
26267 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
26270 # GRAMINE_CUT_BEGIN
26272 # Tools NOT being embeeded in gramine
26273 ac_config_files="$ac_config_files tools/graspe-slave"
26278 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26282 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26287 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/run_msg_test 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"
26290 # examples/gras/chord/test_sg examples/gras/chord/test_rl \
26291 # examples/gras/pastry/test_sg
26295 # examples/gras/saturate/Makefile examples/gras/saturate/test_sg
26296 # examples/gras/alnem/Makefile examples/gras/alnem/test_sg
26301 cat >confcache <<\_ACEOF
26302 # This file is a shell script that caches the results of configure
26303 # tests run on this system so they can be shared between configure
26304 # scripts and configure runs, see configure's option --config-cache.
26305 # It is not useful on other systems. If it contains results you don't
26306 # want to keep, you may remove or edit it.
26308 # config.status only pays attention to the cache file if you give it
26309 # the --recheck option to rerun configure.
26311 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26312 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26313 # following values.
26317 # The following way of writing the cache mishandles newlines in values,
26318 # but we know of no workaround that is simple, portable, and efficient.
26319 # So, we kill variables containing newlines.
26320 # Ultrix sh set writes to stderr and can't be redirected directly,
26321 # and sets the high bit in the cache file unless we assign to the vars.
26323 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26324 eval ac_val=\$$ac_var
26328 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26329 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26332 _ | IFS | as_nl) ;; #(
26333 *) $as_unset $ac_var ;;
26339 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26340 *${as_nl}ac_space=\ *)
26341 # `set' does not quote correctly, so add quotes (double-quote
26342 # substitution turns \\\\ into \\, and sed turns \\ into \).
26345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26348 # `set' quotes correctly as required by POSIX, so do not add quotes.
26349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26358 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26360 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26362 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26363 if test -w "$cache_file"; then
26364 test "x$cache_file" != "x/dev/null" &&
26365 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26366 echo "$as_me: updating cache $cache_file" >&6;}
26367 cat confcache >$cache_file
26369 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26370 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26375 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26376 # Let make expand exec_prefix.
26377 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26379 DEFS=-DHAVE_CONFIG_H
26383 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26384 # 1. Remove the extension, and $U if already installed.
26385 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26386 ac_i=`echo "$ac_i" | sed "$ac_script"`
26387 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26388 # will be set to the directory where LIBOBJS objects are built.
26389 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26390 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26392 LIBOBJS=$ac_libobjs
26394 LTLIBOBJS=$ac_ltlibobjs
26397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26398 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26399 Usually this means the macro was only invoked conditionally." >&5
26400 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26401 Usually this means the macro was only invoked conditionally." >&2;}
26402 { (exit 1); exit 1; }; }
26404 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26405 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26406 Usually this means the macro was only invoked conditionally." >&5
26407 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26408 Usually this means the macro was only invoked conditionally." >&2;}
26409 { (exit 1); exit 1; }; }
26411 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26412 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26413 Usually this means the macro was only invoked conditionally." >&5
26414 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26415 Usually this means the macro was only invoked conditionally." >&2;}
26416 { (exit 1); exit 1; }; }
26418 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26419 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26420 Usually this means the macro was only invoked conditionally." >&5
26421 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26422 Usually this means the macro was only invoked conditionally." >&2;}
26423 { (exit 1); exit 1; }; }
26425 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
26426 { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
26427 Usually this means the macro was only invoked conditionally." >&5
26428 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
26429 Usually this means the macro was only invoked conditionally." >&2;}
26430 { (exit 1); exit 1; }; }
26432 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26433 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26434 Usually this means the macro was only invoked conditionally." >&5
26435 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26436 Usually this means the macro was only invoked conditionally." >&2;}
26437 { (exit 1); exit 1; }; }
26439 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26440 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26441 Usually this means the macro was only invoked conditionally." >&5
26442 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26443 Usually this means the macro was only invoked conditionally." >&2;}
26444 { (exit 1); exit 1; }; }
26446 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26447 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26448 Usually this means the macro was only invoked conditionally." >&5
26449 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26450 Usually this means the macro was only invoked conditionally." >&2;}
26451 { (exit 1); exit 1; }; }
26453 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26454 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26455 Usually this means the macro was only invoked conditionally." >&5
26456 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26457 Usually this means the macro was only invoked conditionally." >&2;}
26458 { (exit 1); exit 1; }; }
26461 : ${CONFIG_STATUS=./config.status}
26462 ac_clean_files_save=$ac_clean_files
26463 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26464 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26465 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26466 cat >$CONFIG_STATUS <<_ACEOF
26468 # Generated by $as_me.
26469 # Run this file to recreate the current configuration.
26470 # Compiler output produced by configure, useful for debugging
26471 # configure, is in config.log if it exists.
26474 ac_cs_recheck=false
26476 SHELL=\${CONFIG_SHELL-$SHELL}
26479 cat >>$CONFIG_STATUS <<\_ACEOF
26480 ## --------------------- ##
26481 ## M4sh Initialization. ##
26482 ## --------------------- ##
26484 # Be more Bourne compatible
26485 DUALCASE=1; export DUALCASE # for MKS sh
26486 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26489 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26490 # is contrary to our usage. Disable this feature.
26491 alias -g '${1+"$@"}'='"$@"'
26492 setopt NO_GLOB_SUBST
26494 case `(set -o) 2>/dev/null` in
26495 *posix*) set -o posix ;;
26504 # Avoid depending upon Character Ranges.
26505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26508 as_cr_digits='0123456789'
26509 as_cr_alnum=$as_cr_Letters$as_cr_digits
26511 # The user is always right.
26512 if test "${PATH_SEPARATOR+set}" != set; then
26513 echo "#! /bin/sh" >conf$$.sh
26514 echo "exit 0" >>conf$$.sh
26516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26524 # Support unset when possible.
26525 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26533 # We need space, tab and new line, in precisely that order. Quoting is
26534 # there to prevent editors from complaining about space-tab.
26535 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26536 # splitting by setting IFS to empty value.)
26541 # Find who we are. Look in the path if we contain no directory separator.
26543 *[\\/]* ) as_myself=$0 ;;
26544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26545 for as_dir in $PATH
26548 test -z "$as_dir" && as_dir=.
26549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26555 # We did not find ourselves, most probably we were run as `sh COMMAND'
26556 # in which case we are not to be found in the path.
26557 if test "x$as_myself" = x; then
26560 if test ! -f "$as_myself"; then
26561 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26562 { (exit 1); exit 1; }
26565 # Work around bugs in pre-3.0 UWIN ksh.
26566 for as_var in ENV MAIL MAILPATH
26567 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26575 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26576 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26577 LC_TELEPHONE LC_TIME
26579 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26580 eval $as_var=C; export $as_var
26582 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26586 # Required to use basename.
26587 if expr a : '\(a\)' >/dev/null 2>&1 &&
26588 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26594 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26595 as_basename=basename
26601 # Name of the executable.
26602 as_me=`$as_basename -- "$0" ||
26603 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26604 X"$0" : 'X\(//\)$' \| \
26605 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26607 sed '/^.*\/\([^/][^/]*\)\/*$/{
26626 as_lineno_1=$LINENO
26627 as_lineno_2=$LINENO
26628 test "x$as_lineno_1" != "x$as_lineno_2" &&
26629 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26631 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26632 # uniformly replaced by the line number. The first 'sed' inserts a
26633 # line-number line after each line using $LINENO; the second 'sed'
26634 # does the real work. The second script uses 'N' to pair each
26635 # line-number line with the line containing $LINENO, and appends
26636 # trailing '-' during substitution so that $LINENO is not a special
26637 # case at line end.
26638 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26639 # scripts with optimization help from Paolo Bonzini. Blame Lee
26640 # E. McMahon (1931-1989) for sed's syntax. :-)
26652 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26655 ' >$as_me.lineno &&
26656 chmod +x "$as_me.lineno" ||
26657 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26658 { (exit 1); exit 1; }; }
26660 # Don't try to exec as it changes $[0], causing all sort of problems
26661 # (the dirname of $[0] is not the place where we might find the
26662 # original and so on. Autoconf is especially sensitive to this).
26663 . "./$as_me.lineno"
26664 # Exit status is that of the last command.
26669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26675 ECHO_C= ECHO_N= ECHO_T=
26676 case `echo -n x` in
26678 case `echo 'x\c'` in
26679 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26686 if expr a : '\(a\)' >/dev/null 2>&1 &&
26687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26693 rm -f conf$$ conf$$.exe conf$$.file
26694 if test -d conf$$.dir; then
26695 rm -f conf$$.dir/conf$$.file
26701 if ln -s conf$$.file conf$$ 2>/dev/null; then
26703 # ... but there are two gotchas:
26704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26706 # In both cases, we have to default to `cp -p'.
26707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26709 elif ln conf$$.file conf$$ 2>/dev/null; then
26714 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26715 rmdir conf$$.dir 2>/dev/null
26717 if mkdir -p . 2>/dev/null; then
26720 test -d ./-p && rmdir ./-p
26724 if test -x / >/dev/null 2>&1; then
26725 as_test_x='test -x'
26727 if ls -dL / >/dev/null 2>&1; then
26734 if test -d "$1"; then
26740 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26741 ???[sx]*):;;*)false;;esac;fi
26745 as_executable_p=$as_test_x
26747 # Sed expression to map a string onto a valid CPP name.
26748 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26750 # Sed expression to map a string onto a valid variable name.
26751 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26756 # Save the log message, to keep $[0] and so on meaningful, and to
26757 # report actual input values of CONFIG_FILES etc. instead of their
26758 # values after options handling.
26760 This file was extended by simgrid $as_me 3.1.1-cvs, which was
26761 generated by GNU Autoconf 2.61. Invocation command line was
26763 CONFIG_FILES = $CONFIG_FILES
26764 CONFIG_HEADERS = $CONFIG_HEADERS
26765 CONFIG_LINKS = $CONFIG_LINKS
26766 CONFIG_COMMANDS = $CONFIG_COMMANDS
26769 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26774 cat >>$CONFIG_STATUS <<_ACEOF
26775 # Files that config.status was made for.
26776 config_files="$ac_config_files"
26777 config_headers="$ac_config_headers"
26778 config_commands="$ac_config_commands"
26782 cat >>$CONFIG_STATUS <<\_ACEOF
26784 \`$as_me' instantiates files from templates according to the
26785 current configuration.
26787 Usage: $0 [OPTIONS] [FILE]...
26789 -h, --help print this help, then exit
26790 -V, --version print version number and configuration settings, then exit
26791 -q, --quiet do not print progress messages
26792 -d, --debug don't remove temporary files
26793 --recheck update $as_me by reconfiguring in the same conditions
26794 --file=FILE[:TEMPLATE]
26795 instantiate the configuration file FILE
26796 --header=FILE[:TEMPLATE]
26797 instantiate the configuration header FILE
26799 Configuration files:
26802 Configuration headers:
26805 Configuration commands:
26808 Report bugs to <bug-autoconf@gnu.org>."
26811 cat >>$CONFIG_STATUS <<_ACEOF
26813 simgrid config.status 3.1.1-cvs
26814 configured by $0, generated by GNU Autoconf 2.61,
26815 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26817 Copyright (C) 2006 Free Software Foundation, Inc.
26818 This config.status script is free software; the Free Software Foundation
26819 gives unlimited permission to copy, distribute and modify it."
26826 cat >>$CONFIG_STATUS <<\_ACEOF
26827 # If no file are specified by the user, then we need to provide default
26828 # value. By we need to know if files were specified by the user.
26834 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26835 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26846 # Handling of the options.
26847 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26849 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26850 echo "$ac_cs_version"; exit ;;
26851 --debug | --debu | --deb | --de | --d | -d )
26853 --file | --fil | --fi | --f )
26855 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26856 ac_need_defaults=false;;
26857 --header | --heade | --head | --hea )
26859 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26860 ac_need_defaults=false;;
26862 # Conflict between --help and --header
26863 { echo "$as_me: error: ambiguous option: $1
26864 Try \`$0 --help' for more information." >&2
26865 { (exit 1); exit 1; }; };;
26866 --help | --hel | -h )
26867 echo "$ac_cs_usage"; exit ;;
26868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26869 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26872 # This is an error.
26873 -*) { echo "$as_me: error: unrecognized option: $1
26874 Try \`$0 --help' for more information." >&2
26875 { (exit 1); exit 1; }; } ;;
26877 *) ac_config_targets="$ac_config_targets $1"
26878 ac_need_defaults=false ;;
26884 ac_configure_extra_args=
26886 if $ac_cs_silent; then
26888 ac_configure_extra_args="$ac_configure_extra_args --silent"
26892 cat >>$CONFIG_STATUS <<_ACEOF
26893 if \$ac_cs_recheck; then
26894 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26895 CONFIG_SHELL=$SHELL
26896 export CONFIG_SHELL
26897 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26901 cat >>$CONFIG_STATUS <<\_ACEOF
26905 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26906 ## Running $as_me. ##
26912 cat >>$CONFIG_STATUS <<_ACEOF
26916 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26920 cat >>$CONFIG_STATUS <<\_ACEOF
26922 # Handling of arguments.
26923 for ac_config_target in $ac_config_targets
26925 case $ac_config_target in
26926 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26927 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26928 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26929 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26930 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26931 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26932 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26933 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26934 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26935 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26936 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26937 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26938 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26939 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26940 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26941 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26942 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26943 "examples/msg/run_msg_test") CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26944 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26945 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26946 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26947 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26948 "examples/gras/ping/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26949 "examples/gras/ping/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26950 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26951 "examples/gras/rpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26952 "examples/gras/rpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26953 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26954 "examples/gras/timer/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26955 "examples/gras/timer/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26956 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26957 "examples/gras/chrono/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26958 "examples/gras/chrono/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26959 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26960 "examples/gras/mutual_exclusion/simple_token/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26961 "examples/gras/mutual_exclusion/simple_token/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26962 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26963 "examples/gras/mmrpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26964 "examples/gras/mmrpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26965 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26966 "examples/gras/pmm/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26967 "examples/gras/pmm/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26968 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26969 "examples/gras/all2all/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26970 "examples/gras/all2all/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26971 "examples/gras/p2p/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26972 "examples/gras/p2p/chord/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26973 "examples/gras/p2p/chord/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26974 "examples/gras/p2p/chord/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26975 "examples/gras/p2p/can/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26976 "examples/gras/p2p/can/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26977 "examples/gras/p2p/can/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26978 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26979 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26980 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26981 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26982 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26983 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26984 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26986 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26987 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26988 { (exit 1); exit 1; }; };;
26993 # If the user did not use the arguments to specify the items to instantiate,
26994 # then the envvar interface is used. Set only those that are not.
26995 # We use the long form for the default assignment because of an extremely
26996 # bizarre bug on SunOS 4.1.3.
26997 if $ac_need_defaults; then
26998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27000 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27003 # Have a temporary directory for convenience. Make it in the build tree
27004 # simply because there is no reason against having it here, and in addition,
27005 # creating and moving files from /tmp can sometimes cause problems.
27006 # Hook for its removal unless debugging.
27007 # Note that there is a small window in which the directory will not be cleaned:
27008 # after its creation but before its name has been assigned to `$tmp'.
27012 trap 'exit_status=$?
27013 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27015 trap '{ (exit 1); exit 1; }' 1 2 13 15
27017 # Create a (secure) tmp directory for tmp files.
27020 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27021 test -n "$tmp" && test -d "$tmp"
27024 tmp=./conf$$-$RANDOM
27025 (umask 077 && mkdir "$tmp")
27028 echo "$me: cannot create a temporary directory in ." >&2
27029 { (exit 1); exit 1; }
27033 # Set up the sed scripts for CONFIG_FILES section.
27036 # No need to generate the scripts if there are no CONFIG_FILES.
27037 # This happens for instance when ./config.status config.h
27038 if test -n "$CONFIG_FILES"; then
27045 for ac_last_try in false false false false false :; do
27046 cat >conf$$subs.sed <<_ACEOF
27047 SHELL!$SHELL$ac_delim
27048 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27049 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27050 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27051 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27052 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27053 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27054 exec_prefix!$exec_prefix$ac_delim
27055 prefix!$prefix$ac_delim
27056 program_transform_name!$program_transform_name$ac_delim
27057 bindir!$bindir$ac_delim
27058 sbindir!$sbindir$ac_delim
27059 libexecdir!$libexecdir$ac_delim
27060 datarootdir!$datarootdir$ac_delim
27061 datadir!$datadir$ac_delim
27062 sysconfdir!$sysconfdir$ac_delim
27063 sharedstatedir!$sharedstatedir$ac_delim
27064 localstatedir!$localstatedir$ac_delim
27065 includedir!$includedir$ac_delim
27066 oldincludedir!$oldincludedir$ac_delim
27067 docdir!$docdir$ac_delim
27068 infodir!$infodir$ac_delim
27069 htmldir!$htmldir$ac_delim
27070 dvidir!$dvidir$ac_delim
27071 pdfdir!$pdfdir$ac_delim
27072 psdir!$psdir$ac_delim
27073 libdir!$libdir$ac_delim
27074 localedir!$localedir$ac_delim
27075 mandir!$mandir$ac_delim
27076 DEFS!$DEFS$ac_delim
27077 ECHO_C!$ECHO_C$ac_delim
27078 ECHO_N!$ECHO_N$ac_delim
27079 ECHO_T!$ECHO_T$ac_delim
27080 LIBS!$LIBS$ac_delim
27081 build_alias!$build_alias$ac_delim
27082 host_alias!$host_alias$ac_delim
27083 target_alias!$target_alias$ac_delim
27084 build!$build$ac_delim
27085 build_cpu!$build_cpu$ac_delim
27086 build_vendor!$build_vendor$ac_delim
27087 build_os!$build_os$ac_delim
27088 host!$host$ac_delim
27089 host_cpu!$host_cpu$ac_delim
27090 host_vendor!$host_vendor$ac_delim
27091 host_os!$host_os$ac_delim
27092 target!$target$ac_delim
27093 target_cpu!$target_cpu$ac_delim
27094 target_vendor!$target_vendor$ac_delim
27095 target_os!$target_os$ac_delim
27096 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27097 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27098 INSTALL_DATA!$INSTALL_DATA$ac_delim
27099 CYGPATH_W!$CYGPATH_W$ac_delim
27100 PACKAGE!$PACKAGE$ac_delim
27101 VERSION!$VERSION$ac_delim
27102 ACLOCAL!$ACLOCAL$ac_delim
27103 AUTOCONF!$AUTOCONF$ac_delim
27104 AUTOMAKE!$AUTOMAKE$ac_delim
27105 AUTOHEADER!$AUTOHEADER$ac_delim
27106 MAKEINFO!$MAKEINFO$ac_delim
27107 install_sh!$install_sh$ac_delim
27108 STRIP!$STRIP$ac_delim
27109 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27110 mkdir_p!$mkdir_p$ac_delim
27112 SET_MAKE!$SET_MAKE$ac_delim
27113 am__leading_dot!$am__leading_dot$ac_delim
27114 AMTAR!$AMTAR$ac_delim
27115 am__tar!$am__tar$ac_delim
27116 am__untar!$am__untar$ac_delim
27118 CFLAGS!$CFLAGS$ac_delim
27119 LDFLAGS!$LDFLAGS$ac_delim
27120 CPPFLAGS!$CPPFLAGS$ac_delim
27121 ac_ct_CC!$ac_ct_CC$ac_delim
27122 EXEEXT!$EXEEXT$ac_delim
27123 OBJEXT!$OBJEXT$ac_delim
27124 DEPDIR!$DEPDIR$ac_delim
27125 am__include!$am__include$ac_delim
27126 am__quote!$am__quote$ac_delim
27127 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27128 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27129 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27130 CCDEPMODE!$CCDEPMODE$ac_delim
27131 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27132 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27133 GREP!$GREP$ac_delim
27134 EGREP!$EGREP$ac_delim
27135 LN_S!$LN_S$ac_delim
27136 ECHO!$ECHO$ac_delim
27138 RANLIB!$RANLIB$ac_delim
27139 DLLTOOL!$DLLTOOL$ac_delim
27141 OBJDUMP!$OBJDUMP$ac_delim
27146 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27148 elif $ac_last_try; then
27149 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27150 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27151 { (exit 1); exit 1; }; }
27153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27157 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27158 if test -n "$ac_eof"; then
27159 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27160 ac_eof=`expr $ac_eof + 1`
27163 cat >>$CONFIG_STATUS <<_ACEOF
27164 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27168 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27169 s/^/s,@/; s/!/@,|#_!!_#|/
27172 s/'"$ac_delim"'$/,g/; t
27174 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27175 ' >>$CONFIG_STATUS <conf$$subs.sed
27176 rm -f conf$$subs.sed
27177 cat >>$CONFIG_STATUS <<_ACEOF
27183 for ac_last_try in false false false false false :; do
27184 cat >conf$$subs.sed <<_ACEOF
27185 CXXFLAGS!$CXXFLAGS$ac_delim
27186 ac_ct_CXX!$ac_ct_CXX$ac_delim
27187 CXXDEPMODE!$CXXDEPMODE$ac_delim
27188 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27189 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27190 CXXCPP!$CXXCPP$ac_delim
27192 FFLAGS!$FFLAGS$ac_delim
27193 ac_ct_F77!$ac_ct_F77$ac_delim
27194 LIBTOOL!$LIBTOOL$ac_delim
27195 LIBOBJS!$LIBOBJS$ac_delim
27196 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27197 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27198 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27199 USE_SIMIX_TRUE!$USE_SIMIX_TRUE$ac_delim
27200 USE_SIMIX_FALSE!$USE_SIMIX_FALSE$ac_delim
27201 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27202 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27203 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27204 GRAS_DEP!$GRAS_DEP$ac_delim
27205 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27206 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27207 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27208 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27209 MAINT!$MAINT$ac_delim
27210 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27211 abs_builddir!$abs_builddir$ac_delim
27212 abs_srcdir!$abs_srcdir$ac_delim
27213 abs_top_builddir!$abs_top_builddir$ac_delim
27214 abs_top_srcdir!$abs_top_srcdir$ac_delim
27215 BASH!$BASH$ac_delim
27216 WARNING!$WARNING$ac_delim
27218 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27219 LEXLIB!$LEXLIB$ac_delim
27220 FLEXML!$FLEXML$ac_delim
27221 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27222 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27223 DOXYGEN!$DOXYGEN$ac_delim
27224 ADDR2LINE!$ADDR2LINE$ac_delim
27225 ac_configure_args!$ac_configure_args$ac_delim
27226 MD5SUM!$MD5SUM$ac_delim
27227 build_id!$build_id$ac_delim
27228 LTLIBOBJS!$LTLIBOBJS$ac_delim
27231 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 44; then
27233 elif $ac_last_try; then
27234 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27235 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27236 { (exit 1); exit 1; }; }
27238 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27242 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27243 if test -n "$ac_eof"; then
27244 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27245 ac_eof=`expr $ac_eof + 1`
27248 cat >>$CONFIG_STATUS <<_ACEOF
27249 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27253 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27254 s/^/s,@/; s/!/@,|#_!!_#|/
27257 s/'"$ac_delim"'$/,g/; t
27259 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27260 ' >>$CONFIG_STATUS <conf$$subs.sed
27261 rm -f conf$$subs.sed
27262 cat >>$CONFIG_STATUS <<_ACEOF
27269 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27270 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27271 # trailing colons and then remove the whole line if VPATH becomes empty
27272 # (actually we leave an empty line to preserve line numbers).
27273 if test "x$srcdir" = x.; then
27274 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27275 s/:*\$(srcdir):*/:/
27276 s/:*\${srcdir}:*/:/
27278 s/^\([^=]*=[ ]*\):*/\1/
27284 cat >>$CONFIG_STATUS <<\_ACEOF
27285 fi # test -n "$CONFIG_FILES"
27288 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27291 :[FHLC]) ac_mode=$ac_tag; continue;;
27293 case $ac_mode$ac_tag in
27295 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27296 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27297 { (exit 1); exit 1; }; };;
27298 :[FH]-) ac_tag=-:-;;
27299 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27316 -) ac_f="$tmp/stdin";;
27317 *) # Look for the file first in the build tree, then in the source tree
27318 # (if the path is not absolute). The absolute path cannot be DOS-style,
27319 # because $ac_f cannot contain `:'.
27323 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27325 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27326 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27327 { (exit 1); exit 1; }; };;
27329 ac_file_inputs="$ac_file_inputs $ac_f"
27332 # Let's still pretend it is `configure' which instantiates (i.e., don't
27333 # use $as_me), people would be surprised to read:
27334 # /* config.h. Generated by config.status. */
27335 configure_input="Generated from "`IFS=:
27336 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27337 if test x"$ac_file" != x-; then
27338 configure_input="$ac_file. $configure_input"
27339 { echo "$as_me:$LINENO: creating $ac_file" >&5
27340 echo "$as_me: creating $ac_file" >&6;}
27344 *:-:* | *:-) cat >"$tmp/stdin";;
27349 ac_dir=`$as_dirname -- "$ac_file" ||
27350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27351 X"$ac_file" : 'X\(//\)[^/]' \| \
27352 X"$ac_file" : 'X\(//\)$' \| \
27353 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27359 /^X\(\/\/\)[^/].*/{
27374 -*) as_dir=./$as_dir;;
27376 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27380 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27381 *) as_qdir=$as_dir;;
27383 as_dirs="'$as_qdir' $as_dirs"
27384 as_dir=`$as_dirname -- "$as_dir" ||
27385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27386 X"$as_dir" : 'X\(//\)[^/]' \| \
27387 X"$as_dir" : 'X\(//\)$' \| \
27388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27394 /^X\(\/\/\)[^/].*/{
27407 test -d "$as_dir" && break
27409 test -z "$as_dirs" || eval "mkdir $as_dirs"
27410 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27411 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27412 { (exit 1); exit 1; }; }; }
27416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27418 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27419 # A ".." for each directory in $ac_dir_suffix.
27420 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27421 case $ac_top_builddir_sub in
27422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27426 ac_abs_top_builddir=$ac_pwd
27427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27428 # for backward compatibility:
27429 ac_top_builddir=$ac_top_build_prefix
27432 .) # We are building in place.
27434 ac_top_srcdir=$ac_top_builddir_sub
27435 ac_abs_top_srcdir=$ac_pwd ;;
27436 [\\/]* | ?:[\\/]* ) # Absolute name.
27437 ac_srcdir=$srcdir$ac_dir_suffix;
27438 ac_top_srcdir=$srcdir
27439 ac_abs_top_srcdir=$srcdir ;;
27440 *) # Relative name.
27441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27442 ac_top_srcdir=$ac_top_build_prefix$srcdir
27443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27455 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27456 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27460 cat >>$CONFIG_STATUS <<\_ACEOF
27461 # If the template does not know about datarootdir, expand it.
27462 # FIXME: This hack should be removed a few years after 2.60.
27463 ac_datarootdir_hack=; ac_datarootdir_seen=
27465 case `sed -n '/datarootdir/ {
27474 ' $ac_file_inputs` in
27475 *datarootdir*) ac_datarootdir_seen=yes;;
27476 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27477 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27478 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27480 cat >>$CONFIG_STATUS <<_ACEOF
27481 ac_datarootdir_hack='
27482 s&@datadir@&$datadir&g
27483 s&@docdir@&$docdir&g
27484 s&@infodir@&$infodir&g
27485 s&@localedir@&$localedir&g
27486 s&@mandir@&$mandir&g
27487 s&\\\${datarootdir}&$datarootdir&g' ;;
27491 # Neutralize VPATH when `$srcdir' = `.'.
27492 # Shell code in configure.ac might set extrasub.
27493 # FIXME: do we really want to maintain this feature?
27494 cat >>$CONFIG_STATUS <<_ACEOF
27498 cat >>$CONFIG_STATUS <<\_ACEOF
27500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27501 s&@configure_input@&$configure_input&;t t
27502 s&@top_builddir@&$ac_top_builddir_sub&;t t
27503 s&@srcdir@&$ac_srcdir&;t t
27504 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27505 s&@top_srcdir@&$ac_top_srcdir&;t t
27506 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27507 s&@builddir@&$ac_builddir&;t t
27508 s&@abs_builddir@&$ac_abs_builddir&;t t
27509 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27510 s&@INSTALL@&$ac_INSTALL&;t t
27511 $ac_datarootdir_hack
27512 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27515 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27517 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27518 which seems to be undefined. Please make sure it is defined." >&5
27519 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27520 which seems to be undefined. Please make sure it is defined." >&2;}
27524 -) cat "$tmp/out"; rm -f "$tmp/out";;
27525 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27534 # Transform confdefs.h into a sed script `conftest.defines', that
27535 # substitutes the proper values into config.h.in to produce config.h.
27536 rm -f conftest.defines conftest.tail
27537 # First, append a space to every undef/define line, to ease matching.
27538 echo 's/$/ /' >conftest.defines
27539 # Then, protect against being on the right side of a sed subst, or in
27540 # an unquoted here document, in config.status. If some macros were
27541 # called several times there might be several #defines for the same
27542 # symbol, which is useless. But do not sort them, since the last
27543 # AC_DEFINE must be honored.
27544 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27545 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27546 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27547 # PARAMS is the parameter list in the macro definition--in most cases, it's
27548 # just an empty string.
27549 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27550 ac_dB='\\)[ (].*,\\1define\\2'
27558 s/^[ ]*#[ ]*define[ ][ ]*//
27563 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27564 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27565 ' >>conftest.defines
27567 # Remove the space that was appended to ease matching.
27568 # Then replace #undef with comments. This is necessary, for
27569 # example, in the case of _POSIX_SOURCE, which is predefined and required
27570 # on some systems where configure will not decide to define it.
27571 # (The regexp can be short, since the line contains either #define or #undef.)
27573 s,^[ #]*u.*,/* & */,' >>conftest.defines
27575 # Break up conftest.defines:
27576 ac_max_sed_lines=50
27578 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27579 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27580 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27582 ac_in='$ac_file_inputs'
27583 ac_out='"$tmp/out1"'
27584 ac_nxt='"$tmp/out2"'
27588 # Write a here document:
27589 cat >>$CONFIG_STATUS <<_ACEOF
27590 # First, check the format of the line:
27591 cat >"\$tmp/defines.sed" <<\\CEOF
27592 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27593 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27597 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27599 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27600 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27601 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27602 grep . conftest.tail >/dev/null || break
27603 rm -f conftest.defines
27604 mv conftest.tail conftest.defines
27606 rm -f conftest.defines conftest.tail
27608 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27609 cat >>$CONFIG_STATUS <<\_ACEOF
27610 if test x"$ac_file" != x-; then
27611 echo "/* $configure_input */" >"$tmp/config.h"
27612 cat "$ac_result" >>"$tmp/config.h"
27613 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27614 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27615 echo "$as_me: $ac_file is unchanged" >&6;}
27618 mv "$tmp/config.h" $ac_file
27621 echo "/* $configure_input */"
27625 # Compute $ac_file's index in $config_headers.
27627 for _am_header in $config_headers :; do
27628 case $_am_header in
27629 $ac_file | $ac_file:* )
27632 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27635 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27636 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27637 X$ac_file : 'X\(//\)[^/]' \| \
27638 X$ac_file : 'X\(//\)$' \| \
27639 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27645 /^X\(\/\/\)[^/].*/{
27657 s/.*/./; q'`/stamp-h$_am_stamp_count
27660 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27661 echo "$as_me: executing $ac_file commands" >&6;}
27666 case $ac_file$ac_mode in
27667 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27668 # Strip MF so we end up with the name of the file.
27669 mf=`echo "$mf" | sed -e 's/:.*$//'`
27670 # Check whether this is an Automake generated Makefile or not.
27671 # We used to match only the files named `Makefile.in', but
27672 # some people rename them; so instead we look at the file content.
27673 # Grep'ing the first line is not enough: some people post-process
27674 # each Makefile.in and add a new line on top of each file to say so.
27675 # So let's grep whole file.
27676 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27677 dirpart=`$as_dirname -- "$mf" ||
27678 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27679 X"$mf" : 'X\(//\)[^/]' \| \
27680 X"$mf" : 'X\(//\)$' \| \
27681 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27687 /^X\(\/\/\)[^/].*/{
27703 # Extract the definition of DEPDIR, am__include, and am__quote
27704 # from the Makefile without running `make'.
27705 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27706 test -z "$DEPDIR" && continue
27707 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27708 test -z "am__include" && continue
27709 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27710 # When using ansi2knr, U may be empty or an underscore; expand it
27711 U=`sed -n 's/^U = //p' < "$mf"`
27712 # Find all dependency output files, they are included files with
27713 # $(DEPDIR) in their names. We invoke sed twice because it is the
27714 # simplest approach to changing $(DEPDIR) to its actual value in the
27716 for file in `sed -n "
27717 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27718 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27719 # Make sure the directory exists.
27720 test -f "$dirpart/$file" && continue
27721 fdir=`$as_dirname -- "$file" ||
27722 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27723 X"$file" : 'X\(//\)[^/]' \| \
27724 X"$file" : 'X\(//\)$' \| \
27725 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27731 /^X\(\/\/\)[^/].*/{
27744 { as_dir=$dirpart/$fdir
27746 -*) as_dir=./$as_dir;;
27748 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27752 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27753 *) as_qdir=$as_dir;;
27755 as_dirs="'$as_qdir' $as_dirs"
27756 as_dir=`$as_dirname -- "$as_dir" ||
27757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27758 X"$as_dir" : 'X\(//\)[^/]' \| \
27759 X"$as_dir" : 'X\(//\)$' \| \
27760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27766 /^X\(\/\/\)[^/].*/{
27779 test -d "$as_dir" && break
27781 test -z "$as_dirs" || eval "mkdir $as_dirs"
27782 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27783 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27784 { (exit 1); exit 1; }; }; }
27785 # echo "creating $dirpart/$file"
27786 echo '# dummy' > "$dirpart/$file"
27790 "tools/graspe-slave":F)
27792 tools/graspe-slave tools/graspe-master \
27794 test -e $file && chmod +x $file; \
27797 "testsuite/Makefile":F)
27799 testsuite/run_tests \
27800 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27802 test -e $file && chmod +x $file; \
27805 "testsuite/run_tests":F)
27807 testsuite/run_tests \
27808 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27810 test -e $file && chmod +x $file; \
27813 "testsuite/gras/trp_tcp_usage":F)
27815 testsuite/run_tests \
27816 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27818 test -e $file && chmod +x $file; \
27821 "testsuite/gras/trp_file_usage":F)
27823 testsuite/run_tests \
27824 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27826 test -e $file && chmod +x $file; \
27829 "examples/Makefile":F)
27832 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27833 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27835 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27836 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27837 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27838 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27839 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27840 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27841 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27842 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27843 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27844 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27845 examples/msg/run_msg_test \
27846 examples/simdag/test_simdag \
27848 test -e $file && chmod +x $file; \
27851 "examples/msg/Makefile":F)
27854 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27855 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27857 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27858 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27859 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27860 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27861 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27862 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27863 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27864 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27865 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27866 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27867 examples/msg/run_msg_test \
27868 examples/simdag/test_simdag \
27870 test -e $file && chmod +x $file; \
27873 "examples/msg/run_msg_test":F)
27876 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27877 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27879 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27880 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27881 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27882 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27883 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27884 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27885 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27886 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27887 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27888 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27889 examples/msg/run_msg_test \
27890 examples/simdag/test_simdag \
27892 test -e $file && chmod +x $file; \
27895 "examples/simdag/Makefile":F)
27898 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27899 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27901 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27902 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27903 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27904 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27905 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27906 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27907 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27908 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27909 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27910 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27911 examples/msg/run_msg_test \
27912 examples/simdag/test_simdag \
27914 test -e $file && chmod +x $file; \
27917 "examples/simdag/test_simdag":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/gras/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/gras/ping/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/gras/ping/test_sg":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/ping/test_rl":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/rpc/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/rpc/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/rpc/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/timer/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/timer/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/timer/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/chrono/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/chrono/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/chrono/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/mutual_exclusion/simple_token/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/mutual_exclusion/simple_token/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/mutual_exclusion/simple_token/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/mmrpc/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/mmrpc/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/mmrpc/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/pmm/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/pmm/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/pmm/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/all2all/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/all2all/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/all2all/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/p2p/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/p2p/chord/Makefile":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/p2p/chord/test_sg":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/chord/test_rl":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/can/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/can/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/can/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/amok/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/amok/bandwidth/Makefile":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/amok/bandwidth/test_sg":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/bandwidth/test_rl":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/saturate/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/saturate/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/saturate/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; \
28802 { (exit 0); exit 0; }
28804 chmod +x $CONFIG_STATUS
28805 ac_clean_files=$ac_clean_files_save
28808 # configure is writing to config.log, and then calls config.status.
28809 # config.status does its own redirection, appending to config.log.
28810 # Unfortunately, on DOS this fails, as config.log is still kept open
28811 # by configure, so config.status won't be able to write to it; its
28812 # output is simply discarded. So we exec the FD to /dev/null,
28813 # effectively closing config.log, so it can be properly (re)opened and
28814 # appended to by config.status. When coming back to configure, we
28815 # need to make the FD available again.
28816 if test "$no_create" != yes; then
28818 ac_config_status_args=
28819 test "$silent" = yes &&
28820 ac_config_status_args="$ac_config_status_args --quiet"
28822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28825 # would make configure fail if this is the last instruction.
28826 $ac_cs_success || { (exit 1); exit 1; }
28832 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28834 Compiler: ${CC} (version: ${GCC_VERSION})
28837 CPPFlags: ${CPPFLAGS}
28838 LDFlags: ${LDFLAGS}
28840 Context backend: ${with_context}
28843 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28845 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28846 echo "WARNING: You may want to enable this by specifying:"
28848 echo "WARNING: ./configure --enable-maintainer-mode $ac_configure_args"
28851 echo $build_id > stamp.configure