2 # From configure.ac Revision: 1.137 .
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
891 MAINTAINER_MODE_FALSE
913 ac_precious_vars='build_alias
930 # Initialize some variables set by options.
932 ac_init_version=false
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
942 program_transform_name=s,x,x,
950 # Installation directory options.
951 # These are left unexpanded so users can "make install exec_prefix=/foo"
952 # and all the variables that are supposed to be based on exec_prefix
953 # by default will actually change.
954 # Use braces instead of parens because sh, perl, etc. also accept them.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
982 eval $ac_prev=\$ac_option
988 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 # Accept the important Cygnus configure options, so we can diagnose typos.
994 case $ac_dashdash$ac_option in
998 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 bindir=$ac_optarg ;;
1003 -build | --build | --buil | --bui | --bu)
1004 ac_prev=build_alias ;;
1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006 build_alias=$ac_optarg ;;
1008 -cache-file | --cache-file | --cache-fil | --cache-fi \
1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010 ac_prev=cache_file ;;
1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013 cache_file=$ac_optarg ;;
1015 --config-cache | -C)
1016 cache_file=config.cache ;;
1018 -datadir | --datadir | --datadi | --datad)
1020 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021 datadir=$ac_optarg ;;
1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024 | --dataroo | --dataro | --datar)
1025 ac_prev=datarootdir ;;
1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028 datarootdir=$ac_optarg ;;
1030 -disable-* | --disable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037 eval enable_$ac_feature=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1053 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1056 eval enable_$ac_feature=\$ac_optarg ;;
1058 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060 | --exec | --exe | --ex)
1061 ac_prev=exec_prefix ;;
1062 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064 | --exec=* | --exe=* | --ex=*)
1065 exec_prefix=$ac_optarg ;;
1067 -gas | --gas | --ga | --g)
1068 # Obsolete; use --with-gas.
1071 -help | --help | --hel | --he | -h)
1072 ac_init_help=long ;;
1073 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074 ac_init_help=recursive ;;
1075 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076 ac_init_help=short ;;
1078 -host | --host | --hos | --ho)
1079 ac_prev=host_alias ;;
1080 -host=* | --host=* | --hos=* | --ho=*)
1081 host_alias=$ac_optarg ;;
1083 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 htmldir=$ac_optarg ;;
1089 -includedir | --includedir | --includedi | --included | --include \
1090 | --includ | --inclu | --incl | --inc)
1091 ac_prev=includedir ;;
1092 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093 | --includ=* | --inclu=* | --incl=* | --inc=*)
1094 includedir=$ac_optarg ;;
1096 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099 infodir=$ac_optarg ;;
1101 -libdir | --libdir | --libdi | --libd)
1103 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104 libdir=$ac_optarg ;;
1106 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107 | --libexe | --libex | --libe)
1108 ac_prev=libexecdir ;;
1109 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110 | --libexe=* | --libex=* | --libe=*)
1111 libexecdir=$ac_optarg ;;
1113 -localedir | --localedir | --localedi | --localed | --locale)
1114 ac_prev=localedir ;;
1115 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116 localedir=$ac_optarg ;;
1118 -localstatedir | --localstatedir | --localstatedi | --localstated \
1119 | --localstate | --localstat | --localsta | --localst | --locals)
1120 ac_prev=localstatedir ;;
1121 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123 localstatedir=$ac_optarg ;;
1125 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128 mandir=$ac_optarg ;;
1130 -nfp | --nfp | --nf)
1131 # Obsolete; use --without-fp.
1134 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135 | --no-cr | --no-c | -n)
1138 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144 | --oldin | --oldi | --old | --ol | --o)
1145 ac_prev=oldincludedir ;;
1146 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149 oldincludedir=$ac_optarg ;;
1151 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154 prefix=$ac_optarg ;;
1156 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157 | --program-pre | --program-pr | --program-p)
1158 ac_prev=program_prefix ;;
1159 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161 program_prefix=$ac_optarg ;;
1163 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164 | --program-suf | --program-su | --program-s)
1165 ac_prev=program_suffix ;;
1166 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168 program_suffix=$ac_optarg ;;
1170 -program-transform-name | --program-transform-name \
1171 | --program-transform-nam | --program-transform-na \
1172 | --program-transform-n | --program-transform- \
1173 | --program-transform | --program-transfor \
1174 | --program-transfo | --program-transf \
1175 | --program-trans | --program-tran \
1176 | --progr-tra | --program-tr | --program-t)
1177 ac_prev=program_transform_name ;;
1178 -program-transform-name=* | --program-transform-name=* \
1179 | --program-transform-nam=* | --program-transform-na=* \
1180 | --program-transform-n=* | --program-transform-=* \
1181 | --program-transform=* | --program-transfor=* \
1182 | --program-transfo=* | --program-transf=* \
1183 | --program-trans=* | --program-tran=* \
1184 | --progr-tra=* | --program-tr=* | --program-t=*)
1185 program_transform_name=$ac_optarg ;;
1187 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190 pdfdir=$ac_optarg ;;
1192 -psdir | --psdir | --psdi | --psd | --ps)
1194 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198 | -silent | --silent | --silen | --sile | --sil)
1201 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 sbindir=$ac_optarg ;;
1207 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1208 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1209 | --sharedst | --shareds | --shared | --share | --shar \
1211 ac_prev=sharedstatedir ;;
1212 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1213 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1214 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 sharedstatedir=$ac_optarg ;;
1218 -site | --site | --sit)
1220 -site=* | --site=* | --sit=*)
1223 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1226 srcdir=$ac_optarg ;;
1228 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1229 | --syscon | --sysco | --sysc | --sys | --sy)
1230 ac_prev=sysconfdir ;;
1231 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1232 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1233 sysconfdir=$ac_optarg ;;
1235 -target | --target | --targe | --targ | --tar | --ta | --t)
1236 ac_prev=target_alias ;;
1237 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1238 target_alias=$ac_optarg ;;
1240 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 -version | --version | --versio | --versi | --vers | -V)
1244 ac_init_version=: ;;
1247 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 { echo "$as_me: error: invalid package name: $ac_package" >&2
1251 { (exit 1); exit 1; }; }
1252 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253 eval with_$ac_package=\$ac_optarg ;;
1255 -without-* | --without-*)
1256 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid package name: $ac_package" >&2
1260 { (exit 1); exit 1; }; }
1261 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1262 eval with_$ac_package=no ;;
1265 # Obsolete; use --with-x.
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1282 -*) { echo "$as_me: error: unrecognized option: $ac_option
1283 Try \`$0 --help' for more information." >&2
1284 { (exit 1); exit 1; }; }
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1291 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1292 { (exit 1); exit 1; }; }
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1297 # FIXME: should be removed in autoconf 3.0.
1298 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 { echo "$as_me: error: missing argument to $ac_option" >&2
1310 { (exit 1); exit 1; }; }
1313 # Be sure to have absolute directory names.
1314 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
1319 eval ac_val=\$$ac_var
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325 { (exit 1); exit 1; }; }
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1333 target=$target_alias
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349 test "$silent" = yes && exec 6>/dev/null
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 { echo "$as_me: error: Working directory cannot be determined" >&2
1356 { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 { echo "$as_me: error: pwd does not report name of working directory" >&2
1359 { (exit 1); exit 1; }; }
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$0" ||
1367 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$0" : 'X\(//\)[^/]' \| \
1369 X"$0" : 'X\(//\)$' \| \
1370 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1394 ac_srcdir_defaulted=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399 { (exit 1); exit 1; }; }
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1404 { (exit 1); exit 1; }; }
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 for ac_var in $ac_precious_vars; do
1417 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_${ac_var}_value=\$${ac_var}
1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1430 \`configure' configures simgrid 3.1.1-cvs to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/simgrid]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 --target=TARGET configure for building compilers for TARGET [HOST]
1499 if test -n "$ac_init_help"; then
1500 case $ac_init_help in
1501 short | recursive ) echo "Configuration of simgrid 3.1.1-cvs:";;
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-shared[=PKGS] build shared libraries [default=yes]
1509 --enable-static[=PKGS] build static libraries [default=yes]
1510 --enable-fast-install[=PKGS]
1511 optimize for fast installation [default=yes]
1512 --disable-dependency-tracking speeds up one-time build
1513 --enable-dependency-tracking do not reject slow dependency extractors
1514 --disable-libtool-lock avoid locking (might break parallel builds)
1515 --enable-maintainer-mode enable make rules and dependencies not useful
1516 (and sometimes confusing) to the casual installer
1517 --enable-compile-warnings
1518 use compiler warnings (default=no, unless in
1520 --disable-compile-optimizations
1521 use compiler optimizations (default=yes, unless if
1522 CFLAGS is explicitly set)
1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 --with-pic try to use only PIC/non-PIC objects [default=use
1530 --with-tags[=TAGS] include additional configurations [automatic]
1531 --with-pthread Use pthread instead of ucontext.
1532 --with-context=ucontext/pthread Use either (System V) swapcontext or pthread [default=auto].
1534 Some influential environment variables:
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538 nonstandard directory <lib dir>
1539 LIBS libraries to pass to the linker, e.g. -l<library>
1540 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1541 you have headers in a nonstandard directory <include dir>
1543 CXX C++ compiler command
1544 CXXFLAGS C++ compiler flags
1545 CXXCPP C++ preprocessor
1546 F77 Fortran 77 compiler command
1547 FFLAGS Fortran 77 compiler flags
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1552 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" || continue
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1580 .) # We are building in place.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1604 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1613 simgrid configure 3.1.1-cvs
1614 generated by GNU Autoconf 2.61
1616 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1617 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1623 cat >config.log <<_ACEOF
1624 This file contains any messages produced by compilers while
1625 running configure, to aid debugging if configure makes a mistake.
1627 It was created by simgrid $as_me 3.1.1-cvs, which was
1628 generated by GNU Autoconf 2.61. Invocation command line was
1640 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1641 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1642 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1643 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1644 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1646 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1647 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1649 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1650 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1651 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1652 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1653 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1654 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1655 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 echo "PATH: $as_dir"
1680 # Keep a trace of the command line.
1681 # Strip out --no-create and --no-recursion so they do not pile up.
1682 # Strip out --silent because we don't want to record it for future runs.
1683 # Also quote any args containing shell meta-characters.
1684 # Make two passes to allow for proper duplicate-argument suppression.
1688 ac_must_keep_next=false
1694 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1696 | -silent | --silent | --silen | --sile | --sil)
1699 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1702 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1704 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1705 if test $ac_must_keep_next = true; then
1706 ac_must_keep_next=false # Got value, back to normal.
1709 *=* | --config-cache | -C | -disable-* | --disable-* \
1710 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1711 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1712 | -with-* | --with-* | -without-* | --without-* | --x)
1713 case "$ac_configure_args0 " in
1714 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1717 -* ) ac_must_keep_next=true ;;
1720 ac_configure_args="$ac_configure_args '$ac_arg'"
1725 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1726 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1728 # When interrupted or exit'd, cleanup temporary files, and complete
1729 # config.log. We remove comments because anyway the quotes in there
1730 # would cause problems or look ugly.
1731 # WARNING: Use '\'' to represent an apostrophe within the trap.
1732 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1733 trap 'exit_status=$?
1734 # Save into config.log some information that might help in debugging.
1739 ## ---------------- ##
1740 ## Cache variables. ##
1741 ## ---------------- ##
1744 # The following way of writing the cache mishandles newlines in values,
1746 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1747 eval ac_val=\$$ac_var
1751 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1752 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1755 _ | IFS | as_nl) ;; #(
1756 *) $as_unset $ac_var ;;
1761 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1762 *${as_nl}ac_space=\ *)
1764 "s/'\''/'\''\\\\'\'''\''/g;
1765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1776 ## ----------------- ##
1777 ## Output variables. ##
1778 ## ----------------- ##
1781 for ac_var in $ac_subst_vars
1783 eval ac_val=\$$ac_var
1785 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 echo "$ac_var='\''$ac_val'\''"
1791 if test -n "$ac_subst_files"; then
1793 ## ------------------- ##
1794 ## File substitutions. ##
1795 ## ------------------- ##
1798 for ac_var in $ac_subst_files
1800 eval ac_val=\$$ac_var
1802 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 echo "$ac_var='\''$ac_val'\''"
1809 if test -s confdefs.h; then
1819 test "$ac_signal" != 0 &&
1820 echo "$as_me: caught signal $ac_signal"
1821 echo "$as_me: exit $exit_status"
1823 rm -f core *.core core.conftest.* &&
1824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1827 for ac_signal in 1 2 13 15; do
1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1833 rm -f -r conftest* confdefs.h
1835 # Predefined preprocessor variables.
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 # Let the site file select an alternate cache file if it wants to.
1863 # Prefer explicitly selected file to automatically selected ones.
1864 if test -n "$CONFIG_SITE"; then
1865 set x "$CONFIG_SITE"
1866 elif test "x$prefix" != xNONE; then
1867 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1869 set x "$ac_default_prefix/share/config.site" \
1870 "$ac_default_prefix/etc/config.site"
1875 if test -r "$ac_site_file"; then
1876 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1877 echo "$as_me: loading site script $ac_site_file" >&6;}
1878 sed 's/^/| /' "$ac_site_file" >&5
1883 if test -r "$cache_file"; then
1884 # Some versions of bash will fail to source /dev/null (special
1885 # files actually), so we avoid doing that.
1886 if test -f "$cache_file"; then
1887 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1888 echo "$as_me: loading cache $cache_file" >&6;}
1890 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891 *) . "./$cache_file";;
1895 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1896 echo "$as_me: creating cache $cache_file" >&6;}
1900 # Check that the precious variables saved in the cache have kept the same
1902 ac_cache_corrupted=false
1903 for ac_var in $ac_precious_vars; do
1904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905 eval ac_new_set=\$ac_env_${ac_var}_set
1906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907 eval ac_new_val=\$ac_env_${ac_var}_value
1908 case $ac_old_set,$ac_new_set in
1910 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1914 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1915 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1916 ac_cache_corrupted=: ;;
1919 if test "x$ac_old_val" != "x$ac_new_val"; then
1920 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1923 echo "$as_me: former value: $ac_old_val" >&2;}
1924 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1925 echo "$as_me: current value: $ac_new_val" >&2;}
1926 ac_cache_corrupted=:
1929 # Pass precious variables to config.status.
1930 if test "$ac_new_set" = set; then
1932 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 *) ac_arg=$ac_var=$ac_new_val ;;
1935 case " $ac_configure_args " in
1936 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1937 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941 if $ac_cache_corrupted; then
1942 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946 { (exit 1); exit 1; }; }
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 ac_config_headers="$ac_config_headers src/gras_config.h"
1983 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1987 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1988 if test -f "$ac_dir/install-sh"; then
1990 ac_install_sh="$ac_aux_dir/install-sh -c"
1992 elif test -f "$ac_dir/install.sh"; then
1994 ac_install_sh="$ac_aux_dir/install.sh -c"
1996 elif test -f "$ac_dir/shtool"; then
1998 ac_install_sh="$ac_aux_dir/shtool install -c"
2002 if test -z "$ac_aux_dir"; then
2003 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2004 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2005 { (exit 1); exit 1; }; }
2008 # These three variables are undocumented and unsupported,
2009 # and are intended to be withdrawn in a future Autoconf release.
2010 # They can cause serious problems if a builder's source tree is in a directory
2011 # whose full name contains unusual characters.
2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2014 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2017 # Make sure we can run config.sub.
2018 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2019 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2020 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2021 { (exit 1); exit 1; }; }
2023 { echo "$as_me:$LINENO: checking build system type" >&5
2024 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2025 if test "${ac_cv_build+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 ac_build_alias=$build_alias
2029 test "x$ac_build_alias" = x &&
2030 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2031 test "x$ac_build_alias" = x &&
2032 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2034 { (exit 1); exit 1; }; }
2035 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2036 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2037 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2038 { (exit 1); exit 1; }; }
2041 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2042 echo "${ECHO_T}$ac_cv_build" >&6; }
2043 case $ac_cv_build in
2045 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2046 echo "$as_me: error: invalid value of canonical build" >&2;}
2047 { (exit 1); exit 1; }; };;
2050 ac_save_IFS=$IFS; IFS='-'
2056 # Remember, the first character of IFS is used to create $*,
2057 # except with old shells:
2060 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2063 { echo "$as_me:$LINENO: checking host system type" >&5
2064 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2065 if test "${ac_cv_host+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test "x$host_alias" = x; then
2069 ac_cv_host=$ac_cv_build
2071 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2073 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
2078 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079 echo "${ECHO_T}$ac_cv_host" >&6; }
2082 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2083 echo "$as_me: error: invalid value of canonical host" >&2;}
2084 { (exit 1); exit 1; }; };;
2087 ac_save_IFS=$IFS; IFS='-'
2093 # Remember, the first character of IFS is used to create $*,
2094 # except with old shells:
2097 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2100 { echo "$as_me:$LINENO: checking target system type" >&5
2101 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2102 if test "${ac_cv_target+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test "x$target_alias" = x; then
2106 ac_cv_target=$ac_cv_host
2108 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2109 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2115 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2116 echo "${ECHO_T}$ac_cv_target" >&6; }
2117 case $ac_cv_target in
2119 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2120 echo "$as_me: error: invalid value of canonical target" >&2;}
2121 { (exit 1); exit 1; }; };;
2123 target=$ac_cv_target
2124 ac_save_IFS=$IFS; IFS='-'
2130 # Remember, the first character of IFS is used to create $*,
2131 # except with old shells:
2134 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2137 # The aliases save the names the user supplied, while $host etc.
2138 # will get canonicalized.
2139 test -n "$target_alias" &&
2140 test "$program_prefix$program_suffix$program_transform_name" = \
2142 program_prefix=${target_alias}-
2144 ac_cpp='$CPP $CPPFLAGS'
2145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2150 am__api_version="1.9"
2151 # Find a good install program. We prefer a C program (faster),
2152 # so one script is as good as another. But avoid the broken or
2153 # incompatible versions:
2154 # SysV /etc/install, /usr/sbin/install
2155 # SunOS /usr/etc/install
2156 # IRIX /sbin/install
2158 # AmigaOS /C/install, which installs bootblocks on floppy discs
2159 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2160 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2161 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2162 # OS/2's system install, which has a completely different semantic
2163 # ./install, which can be erroneously created by make from ./install.sh.
2164 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2165 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2166 if test -z "$INSTALL"; then
2167 if test "${ac_cv_path_install+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 test -z "$as_dir" && as_dir=.
2175 # Account for people who put trailing slashes in PATH elements.
2177 ./ | .// | /cC/* | \
2178 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2179 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2182 # OSF1 and SCO ODT 3.0 have their own names for install.
2183 # Don't use installbsd from OSF since it installs stuff as root
2185 for ac_prog in ginstall scoinst install; do
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2188 if test $ac_prog = install &&
2189 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2190 # AIX install. It has an incompatible calling convention.
2192 elif test $ac_prog = install &&
2193 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2194 # program-specific install script used by HP pwplus--don't use.
2197 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2210 if test "${ac_cv_path_install+set}" = set; then
2211 INSTALL=$ac_cv_path_install
2213 # As a last resort, use the slow shell script. Don't cache a
2214 # value for INSTALL within a source directory, because that will
2215 # break other packages using the cache if that directory is
2216 # removed, or if the value is a relative name.
2217 INSTALL=$ac_install_sh
2220 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2221 echo "${ECHO_T}$INSTALL" >&6; }
2223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2224 # It thinks the first close brace ends the variable substitution.
2225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2229 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2231 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2232 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2235 echo timestamp > conftest.file
2236 # Do `set' in a subshell so we don't clobber the current shell's
2237 # arguments. Must try -L first in case configure is actually a
2238 # symlink; some systems play weird games with the mod time of symlinks
2239 # (eg FreeBSD returns the mod time of the symlink's containing
2242 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2243 if test "$*" = "X"; then
2245 set X `ls -t $srcdir/configure conftest.file`
2248 if test "$*" != "X $srcdir/configure conftest.file" \
2249 && test "$*" != "X conftest.file $srcdir/configure"; then
2251 # If neither matched, then we have a broken ls. This can happen
2252 # if, for instance, CONFIG_SHELL is bash and it inherits a
2253 # broken ls alias from the environment. This has actually
2254 # happened. Such a system could not be considered "sane".
2255 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2256 alias in your environment" >&5
2257 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2258 alias in your environment" >&2;}
2259 { (exit 1); exit 1; }; }
2262 test "$2" = conftest.file
2268 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2269 Check your system clock" >&5
2270 echo "$as_me: error: newly created file is older than distributed files!
2271 Check your system clock" >&2;}
2272 { (exit 1); exit 1; }; }
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2276 test "$program_prefix" != NONE &&
2277 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2278 # Use a double $ so make ignores it.
2279 test "$program_suffix" != NONE &&
2280 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2281 # Double any \ or $. echo might interpret backslashes.
2282 # By default was `s,x,x', remove it if useless.
2283 cat <<\_ACEOF >conftest.sed
2284 s/[\\$]/&&/g;s/;s,x,x,$//
2286 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2289 # expand $ac_aux_dir to an absolute path
2290 am_aux_dir=`cd $ac_aux_dir && pwd`
2292 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2293 # Use eval to expand $SHELL
2294 if eval "$MISSING --run true"; then
2295 am_missing_run="$MISSING --run "
2298 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2299 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2302 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2303 # We used to keeping the `.' as first argument, in order to
2304 # allow $(mkdir_p) to be used without argument. As in
2305 # $(mkdir_p) $(somedir)
2306 # where $(somedir) is conditionally defined. However this is wrong
2308 # 1. if the package is installed by a user who cannot write `.'
2309 # make install will fail,
2310 # 2. the above comment should most certainly read
2311 # $(mkdir_p) $(DESTDIR)$(somedir)
2312 # so it does not work when $(somedir) is undefined and
2313 # $(DESTDIR) is not.
2314 # To support the latter case, we have to write
2315 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2316 # so the `.' trick is pointless.
2317 mkdir_p='mkdir -p --'
2319 # On NextStep and OpenStep, the `mkdir' command does not
2320 # recognize any option. It will interpret all options as
2321 # directories to create, and then abort because `.' already
2323 for d in ./-p ./--version;
2325 test -d $d && rmdir $d
2327 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2328 if test -f "$ac_aux_dir/mkinstalldirs"; then
2329 mkdir_p='$(mkinstalldirs)'
2331 mkdir_p='$(install_sh) -d'
2335 for ac_prog in gawk mawk nawk awk
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_AWK+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$AWK"; then
2345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_AWK="$ac_prog"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$AWK"; then
2366 { echo "$as_me:$LINENO: result: $AWK" >&5
2367 echo "${ECHO_T}$AWK" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2374 test -n "$AWK" && break
2377 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2378 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2379 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2380 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 cat >conftest.make <<\_ACEOF
2386 @echo '@@@%%%=$(MAKE)=@@@%%%'
2388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2389 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2391 eval ac_cv_prog_make_${ac_make}_set=yes;;
2393 eval ac_cv_prog_make_${ac_make}_set=no;;
2397 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2398 { echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6; }
2402 { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2404 SET_MAKE="MAKE=${MAKE-make}"
2407 rm -rf .tst 2>/dev/null
2408 mkdir .tst 2>/dev/null
2409 if test -d .tst; then
2414 rmdir .tst 2>/dev/null
2416 # test to see if srcdir already configured
2417 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2418 test -f $srcdir/config.status; then
2419 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2420 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2421 { (exit 1); exit 1; }; }
2424 # test whether we have cygpath
2425 if test -z "$CYGPATH_W"; then
2426 if (cygpath --version) >/dev/null 2>/dev/null; then
2427 CYGPATH_W='cygpath -w'
2434 # Define the identity of the package.
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE "$PACKAGE"
2444 cat >>confdefs.h <<_ACEOF
2445 #define VERSION "$VERSION"
2448 # Some tools Automake needs.
2450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2464 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2466 # Installed binaries are usually stripped using `strip' when the user
2467 # run `make install-strip'. However `strip' might not be the right
2468 # tool to use in cross-compilation environments, therefore Automake
2469 # will honor the `STRIP' environment variable to overrule this program.
2470 if test "$cross_compiling" != no; then
2471 if test -n "$ac_tool_prefix"; then
2472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2473 set dummy ${ac_tool_prefix}strip; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_STRIP+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$STRIP"; then
2480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 STRIP=$ac_cv_prog_STRIP
2500 if test -n "$STRIP"; then
2501 { echo "$as_me:$LINENO: result: $STRIP" >&5
2502 echo "${ECHO_T}$STRIP" >&6; }
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2510 if test -z "$ac_cv_prog_STRIP"; then
2512 # Extract the first word of "strip", so it can be a program name with args.
2513 set dummy strip; ac_word=$2
2514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 if test -n "$ac_ct_STRIP"; then
2520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529 ac_cv_prog_ac_ct_STRIP="strip"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2540 if test -n "$ac_ct_STRIP"; then
2541 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2542 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2548 if test "x$ac_ct_STRIP" = x; then
2551 case $cross_compiling:$ac_tool_warned in
2553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2554 whose name does not start with the host triplet. If you think this
2555 configuration is useful to you, please write to autoconf@gnu.org." >&5
2556 echo "$as_me: 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." >&2;}
2559 ac_tool_warned=yes ;;
2564 STRIP="$ac_cv_prog_STRIP"
2568 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2570 # We need awk for the "check" target. The system "awk" is bad on
2572 # Always define AMTAR for backward compatibility.
2574 AMTAR=${AMTAR-"${am_missing_run}tar"}
2576 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2583 ACLOCAL="$ACLOCAL -I acmacro"
2586 # Check whether --enable-shared was given.
2587 if test "${enable_shared+set}" = set; then
2588 enableval=$enable_shared; p=${PACKAGE-default}
2590 yes) enable_shared=yes ;;
2591 no) enable_shared=no ;;
2594 # Look at the argument we got. We use all the common list separators.
2595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2596 for pkg in $enableval; do
2598 if test "X$pkg" = "X$p"; then
2610 # Check whether --enable-static was given.
2611 if test "${enable_static+set}" = set; then
2612 enableval=$enable_static; p=${PACKAGE-default}
2614 yes) enable_static=yes ;;
2615 no) enable_static=no ;;
2618 # Look at the argument we got. We use all the common list separators.
2619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2620 for pkg in $enableval; do
2622 if test "X$pkg" = "X$p"; then
2634 # Check whether --enable-fast-install was given.
2635 if test "${enable_fast_install+set}" = set; then
2636 enableval=$enable_fast_install; p=${PACKAGE-default}
2638 yes) enable_fast_install=yes ;;
2639 no) enable_fast_install=no ;;
2641 enable_fast_install=no
2642 # Look at the argument we got. We use all the common list separators.
2643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2644 for pkg in $enableval; do
2646 if test "X$pkg" = "X$p"; then
2647 enable_fast_install=yes
2654 enable_fast_install=yes
2658 DEPDIR="${am__leading_dot}deps"
2660 ac_config_commands="$ac_config_commands depfiles"
2663 am_make=${MAKE-make}
2664 cat > confinc << 'END'
2669 # If we don't find an include directive, just comment out the code.
2670 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2671 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2675 # First try GNU make style include.
2676 echo "include confinc" > confmf
2677 # We grep out `Entering directory' and `Leaving directory'
2678 # messages which can occur if `w' ends up in MAKEFLAGS.
2679 # In particular we don't look at `^make:' because GNU make might
2680 # be invoked under some other name (usually "gmake"), in which
2681 # case it prints its new name instead of `make'.
2682 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2687 # Now try BSD make style include.
2688 if test "$am__include" = "#"; then
2689 echo '.include "confinc"' > confmf
2690 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2691 am__include=.include
2698 { echo "$as_me:$LINENO: result: $_am_result" >&5
2699 echo "${ECHO_T}$_am_result" >&6; }
2700 rm -f confinc confmf
2702 # Check whether --enable-dependency-tracking was given.
2703 if test "${enable_dependency_tracking+set}" = set; then
2704 enableval=$enable_dependency_tracking;
2707 if test "x$enable_dependency_tracking" != xno; then
2708 am_depcomp="$ac_aux_dir/depcomp"
2713 if test "x$enable_dependency_tracking" != xno; then
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 if test -n "$CC"; then
2758 { echo "$as_me:$LINENO: result: $CC" >&5
2759 echo "${ECHO_T}$CC" >&6; }
2761 { echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6; }
2767 if test -z "$ac_cv_prog_CC"; then
2769 # Extract the first word of "gcc", so it can be a program name with args.
2770 set dummy gcc; ac_word=$2
2771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_ac_ct_CC="gcc"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2799 echo "${ECHO_T}$ac_ct_CC" >&6; }
2801 { echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6; }
2805 if test "x$ac_ct_CC" = x; then
2808 case $cross_compiling:$ac_tool_warned in
2810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2811 whose name does not start with the host triplet. If you think this
2812 configuration is useful to you, please write to autoconf@gnu.org." >&5
2813 echo "$as_me: 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." >&2;}
2816 ac_tool_warned=yes ;;
2824 if test -z "$CC"; then
2825 if test -n "$ac_tool_prefix"; then
2826 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2827 set dummy ${ac_tool_prefix}cc; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_CC="${ac_tool_prefix}cc"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CC"; then
2855 { echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6; }
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2865 if test -z "$CC"; then
2866 # Extract the first word of "cc", so it can be a program name with args.
2867 set dummy cc; ac_word=$2
2868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2870 if test "${ac_cv_prog_CC+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2885 ac_prog_rejected=yes
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 if test $ac_prog_rejected = yes; then
2897 # We found a bogon in the path, so make sure we never use it.
2898 set dummy $ac_cv_prog_CC
2900 if test $# != 0; then
2901 # We chose a different compiler from the bogus one.
2902 # However, it has the same basename, so the bogon will be chosen
2903 # first if we set CC to just the basename; use the full file name.
2905 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2911 if test -n "$CC"; then
2912 { echo "$as_me:$LINENO: result: $CC" >&5
2913 echo "${ECHO_T}$CC" >&6; }
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2921 if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2923 for ac_prog in cl.exe
2925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2929 if test "${ac_cv_prog_CC+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 if test -n "$CC"; then
2933 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 if test -n "$CC"; then
2954 { echo "$as_me:$LINENO: result: $CC" >&5
2955 echo "${ECHO_T}$CC" >&6; }
2957 { echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6; }
2962 test -n "$CC" && break
2965 if test -z "$CC"; then
2967 for ac_prog in cl.exe
2969 # Extract the first word of "$ac_prog", so it can be a program name with args.
2970 set dummy $ac_prog; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 if test -n "$ac_ct_CC"; then
2977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_CC="$ac_prog"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2999 echo "${ECHO_T}$ac_ct_CC" >&6; }
3001 { echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6; }
3006 test -n "$ac_ct_CC" && break
3009 if test "x$ac_ct_CC" = x; then
3012 case $cross_compiling:$ac_tool_warned in
3014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3015 whose name does not start with the host triplet. If you think this
3016 configuration is useful to you, please write to autoconf@gnu.org." >&5
3017 echo "$as_me: 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." >&2;}
3020 ac_tool_warned=yes ;;
3029 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&5
3031 echo "$as_me: error: no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details." >&2;}
3033 { (exit 1); exit 1; }; }
3035 # Provide some information about the compiler.
3036 echo "$as_me:$LINENO: checking for C compiler version" >&5
3037 ac_compiler=`set X $ac_compile; echo $2`
3038 { (ac_try="$ac_compiler --version >&5"
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler --version >&5") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048 { (ac_try="$ac_compiler -v >&5"
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compiler -v >&5") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }
3058 { (ac_try="$ac_compiler -V >&5"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compiler -V >&5") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }
3069 cat >conftest.$ac_ext <<_ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3084 ac_clean_files_save=$ac_clean_files
3085 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3086 # Try to create an executable without -o first, disregard a.out.
3087 # It will help us diagnose broken compilers, and finding out an intuition
3089 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3090 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3091 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3093 # List of possible output files, starting from the most likely.
3094 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3095 # only as a last resort. b.out is created by i960 compilers.
3096 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3098 # The IRIX 6 linker writes into existing files which may not be
3099 # executable, retaining their permissions. Remove them first so a
3100 # subsequent execution test works.
3102 for ac_file in $ac_files
3105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3106 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3111 if { (ac_try="$ac_link_default"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_link_default") 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; then
3121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3123 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3124 # so that the user can short-circuit this test for compilers unknown to
3126 for ac_file in $ac_files ''
3128 test -f "$ac_file" || continue
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3133 # We found the default executable, but exeext='' is most
3137 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141 # We set ac_cv_exeext here because the later test for it is not
3142 # safe: cross compilers may not add the suffix if given an `-o'
3143 # argument, so we may need to know it at that point already.
3144 # Even if this section looks crufty: it has the advantage of
3151 test "$ac_cv_exeext" = no && ac_cv_exeext=
3157 { echo "$as_me:$LINENO: result: $ac_file" >&5
3158 echo "${ECHO_T}$ac_file" >&6; }
3159 if test -z "$ac_file"; then
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3164 See \`config.log' for more details." >&5
3165 echo "$as_me: error: C compiler cannot create executables
3166 See \`config.log' for more details." >&2;}
3167 { (exit 77); exit 77; }; }
3170 ac_exeext=$ac_cv_exeext
3172 # Check that the compiler produces executables we can run. If not, either
3173 # the compiler is broken, or we cross compile.
3174 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3175 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3176 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3177 # If not cross compiling, check that we can run a simple program.
3178 if test "$cross_compiling" != yes; then
3179 if { ac_try='./$ac_file'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3191 if test "$cross_compiling" = maybe; then
3194 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3195 If you meant to cross compile, use \`--host'.
3196 See \`config.log' for more details." >&5
3197 echo "$as_me: error: cannot run C compiled programs.
3198 If you meant to cross compile, use \`--host'.
3199 See \`config.log' for more details." >&2;}
3200 { (exit 1); exit 1; }; }
3204 { echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6; }
3207 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3208 ac_clean_files=$ac_clean_files_save
3209 # Check that the compiler produces executables we can run. If not, either
3210 # the compiler is broken, or we cross compile.
3211 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3212 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3213 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3214 echo "${ECHO_T}$cross_compiling" >&6; }
3216 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3217 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3218 if { (ac_try="$ac_link"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_link") 2>&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; then
3228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3230 # work properly (i.e., refer to `conftest.exe'), while it won't with
3232 for ac_file in conftest.exe conftest conftest.*; do
3233 test -f "$ac_file" || continue
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details." >&5
3244 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details." >&2;}
3246 { (exit 1); exit 1; }; }
3249 rm -f conftest$ac_cv_exeext
3250 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3251 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3253 rm -f conftest.$ac_ext
3254 EXEEXT=$ac_cv_exeext
3256 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3257 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3258 if test "${ac_cv_objext+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3276 rm -f conftest.o conftest.obj
3277 if { (ac_try="$ac_compile"
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_compile") 2>&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; then
3287 for ac_file in conftest.o conftest.obj conftest.*; do
3288 test -f "$ac_file" || continue;
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3291 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3300 See \`config.log' for more details." >&5
3301 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3302 See \`config.log' for more details." >&2;}
3303 { (exit 1); exit 1; }; }
3306 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3308 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3309 echo "${ECHO_T}$ac_cv_objext" >&6; }
3310 OBJEXT=$ac_cv_objext
3312 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3313 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3314 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3335 rm -f conftest.$ac_objext
3336 if { (ac_try="$ac_compile"
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_compile") 2>conftest.er1
3344 grep -v '^ *+' conftest.er1 >conftest.err
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && {
3349 test -z "$ac_c_werror_flag" ||
3350 test ! -s conftest.err
3351 } && test -s conftest.$ac_objext; then
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3364 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3365 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3366 GCC=`test $ac_compiler_gnu = yes && echo yes`
3367 ac_test_CFLAGS=${CFLAGS+set}
3368 ac_save_CFLAGS=$CFLAGS
3369 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3371 if test "${ac_cv_prog_cc_g+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 ac_save_c_werror_flag=$ac_c_werror_flag
3375 ac_c_werror_flag=yes
3378 cat >conftest.$ac_ext <<_ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_compile") 2>conftest.er1
3402 grep -v '^ *+' conftest.er1 >conftest.err
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } && {
3407 test -z "$ac_c_werror_flag" ||
3408 test ! -s conftest.err
3409 } && test -s conftest.$ac_objext; then
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3416 cat >conftest.$ac_ext <<_ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.$ac_objext; then
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 ac_c_werror_flag=$ac_save_c_werror_flag
3455 cat >conftest.$ac_ext <<_ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_compile") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } && {
3484 test -z "$ac_c_werror_flag" ||
3485 test ! -s conftest.err
3486 } && test -s conftest.$ac_objext; then
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3504 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3505 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3506 if test "$ac_test_CFLAGS" = set; then
3507 CFLAGS=$ac_save_CFLAGS
3508 elif test $ac_cv_prog_cc_g = yes; then
3509 if test "$GCC" = yes; then
3515 if test "$GCC" = yes; then
3521 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3522 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3523 if test "${ac_cv_prog_cc_c89+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 ac_cv_prog_cc_c89=no
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3536 #include <sys/types.h>
3537 #include <sys/stat.h>
3538 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3539 struct buf { int x; };
3540 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3541 static char *e (p, i)
3547 static char *f (char * (*g) (char **, int), char **p, ...)
3552 s = g (p, va_arg (v,int));
3557 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3558 function prototypes and stuff, but not '\xHH' hex character constants.
3559 These don't provoke an error unfortunately, instead are silently treated
3560 as 'x'. The following induces an error, until -std is added to get
3561 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3562 array size at least. It's necessary to write '\x00'==0 to get something
3563 that's true only with -std. */
3564 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3567 inside strings and character constants. */
3569 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571 int test (int i, double x);
3572 struct s1 {int (*f) (int a);};
3573 struct s2 {int (*f) (double a);};
3574 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3580 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3585 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3586 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588 CC="$ac_save_CC $ac_arg"
3589 rm -f conftest.$ac_objext
3590 if { (ac_try="$ac_compile"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compile") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } && {
3603 test -z "$ac_c_werror_flag" ||
3604 test ! -s conftest.err
3605 } && test -s conftest.$ac_objext; then
3606 ac_cv_prog_cc_c89=$ac_arg
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3614 rm -f core conftest.err conftest.$ac_objext
3615 test "x$ac_cv_prog_cc_c89" != "xno" && break
3617 rm -f conftest.$ac_ext
3622 case "x$ac_cv_prog_cc_c89" in
3624 { echo "$as_me:$LINENO: result: none needed" >&5
3625 echo "${ECHO_T}none needed" >&6; } ;;
3627 { echo "$as_me:$LINENO: result: unsupported" >&5
3628 echo "${ECHO_T}unsupported" >&6; } ;;
3630 CC="$CC $ac_cv_prog_cc_c89"
3631 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3632 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642 depcc="$CC" am_compiler_list=
3644 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3645 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3646 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3650 # We make a subdir and do the tests there. Otherwise we can end up
3651 # making bogus files that we don't know about and never remove. For
3652 # instance it was reported that on HP-UX the gcc test will end up
3653 # making a dummy file named `D' -- because `-MD' means `put the output
3656 # Copy depcomp to subdir because otherwise we won't find it if we're
3657 # using a relative directory.
3658 cp "$am_depcomp" conftest.dir
3660 # We will build objects and dependencies in a subdirectory because
3661 # it helps to detect inapplicable dependency modes. For instance
3662 # both Tru64's cc and ICC support -MD to output dependencies as a
3663 # side effect of compilation, but ICC will put the dependencies in
3664 # the current directory while Tru64 will put them in the object
3668 am_cv_CC_dependencies_compiler_type=none
3669 if test "$am_compiler_list" = ""; then
3670 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672 for depmode in $am_compiler_list; do
3673 # Setup a source with many dependencies, because some compilers
3674 # like to wrap large dependency lists on column 80 (with \), and
3675 # we should not choose a depcomp mode which is confused by this.
3677 # We need to recreate these files for each test, as the compiler may
3678 # overwrite some of them when testing with obscure command lines.
3679 # This happens at least with the AIX C compiler.
3681 for i in 1 2 3 4 5 6; do
3682 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3683 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3684 # Solaris 8's {/usr,}/bin/sh.
3685 touch sub/conftst$i.h
3687 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3691 # after this tag, mechanisms are not by side-effect, so they'll
3692 # only be used when explicitly requested
3693 if test "x$enable_dependency_tracking" = xyes; then
3701 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3702 # mode. It turns out that the SunPro C++ compiler does not properly
3703 # handle `-M -o', and we need to detect this.
3704 if depmode=$depmode \
3705 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3707 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3708 >/dev/null 2>conftest.err &&
3709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3710 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3712 # icc doesn't choke on unknown options, it will just issue warnings
3713 # or remarks (even with -Werror). So we grep stderr for any message
3714 # that says an option was ignored or not supported.
3715 # When given -MP, icc 7.0 and 7.1 complain thusly:
3716 # icc: Command line warning: ignoring option '-M'; no argument required
3717 # The diagnosis changed in icc 8.0:
3718 # icc: Command line remark: option '-MP' not supported
3719 if (grep 'ignoring option' conftest.err ||
3720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3721 am_cv_CC_dependencies_compiler_type=$depmode
3730 am_cv_CC_dependencies_compiler_type=none
3734 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3735 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3736 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3741 test "x$enable_dependency_tracking" != xno \
3742 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3744 am__fastdepCC_FALSE='#'
3746 am__fastdepCC_TRUE='#'
3747 am__fastdepCC_FALSE=
3751 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3752 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3753 if test "${lt_cv_path_SED+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 # Loop through the user's path and test for sed and gsed.
3757 # Then use that list of sed's as ones to test for truncation.
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 test -z "$as_dir" && as_dir=.
3763 for lt_ac_prog in sed gsed; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3766 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3773 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3774 # along with /bin/sed that truncates output.
3775 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3776 test ! -f $lt_ac_sed && continue
3777 cat /dev/null > conftest.in
3779 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3780 # Check for GNU sed and select it if it is found.
3781 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3782 lt_cv_path_SED=$lt_ac_sed
3786 cat conftest.in conftest.in >conftest.tmp
3787 mv conftest.tmp conftest.in
3788 cp conftest.in conftest.nl
3790 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3791 cmp -s conftest.out conftest.nl || break
3792 # 10000 chars as input seems more than enough
3793 test $lt_ac_count -gt 10 && break
3794 lt_ac_count=`expr $lt_ac_count + 1`
3795 if test $lt_ac_count -gt $lt_ac_max; then
3796 lt_ac_max=$lt_ac_count
3797 lt_cv_path_SED=$lt_ac_sed
3805 { echo "$as_me:$LINENO: result: $SED" >&5
3806 echo "${ECHO_T}$SED" >&6; }
3808 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3809 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3810 if test "${ac_cv_path_GREP+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 # Extract the first word of "grep ggrep" to use in msg output
3814 if test -z "$GREP"; then
3815 set dummy grep ggrep; ac_prog_name=$2
3816 if test "${ac_cv_path_GREP+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 ac_path_GREP_found=false
3820 # Loop through the user's path and test for each of PROGNAME-LIST
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3825 test -z "$as_dir" && as_dir=.
3826 for ac_prog in grep ggrep; do
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3829 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3830 # Check for GNU ac_path_GREP and select it if it is found.
3831 # Check for GNU $ac_path_GREP
3832 case `"$ac_path_GREP" --version 2>&1` in
3834 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3837 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3840 cat "conftest.in" "conftest.in" >"conftest.tmp"
3841 mv "conftest.tmp" "conftest.in"
3842 cp "conftest.in" "conftest.nl"
3843 echo 'GREP' >> "conftest.nl"
3844 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3845 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3846 ac_count=`expr $ac_count + 1`
3847 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3848 # Best one so far, save it but keep looking for a better one
3849 ac_cv_path_GREP="$ac_path_GREP"
3850 ac_path_GREP_max=$ac_count
3852 # 10*(2^10) chars as input seems more than enough
3853 test $ac_count -gt 10 && break
3855 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3859 $ac_path_GREP_found && break 3
3869 GREP="$ac_cv_path_GREP"
3870 if test -z "$GREP"; then
3871 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3872 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3873 { (exit 1); exit 1; }; }
3877 ac_cv_path_GREP=$GREP
3882 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3883 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3884 GREP="$ac_cv_path_GREP"
3887 { echo "$as_me:$LINENO: checking for egrep" >&5
3888 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3889 if test "${ac_cv_path_EGREP+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3893 then ac_cv_path_EGREP="$GREP -E"
3895 # Extract the first word of "egrep" to use in msg output
3896 if test -z "$EGREP"; then
3897 set dummy egrep; ac_prog_name=$2
3898 if test "${ac_cv_path_EGREP+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 ac_path_EGREP_found=false
3902 # Loop through the user's path and test for each of PROGNAME-LIST
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3907 test -z "$as_dir" && as_dir=.
3908 for ac_prog in egrep; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3911 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3912 # Check for GNU ac_path_EGREP and select it if it is found.
3913 # Check for GNU $ac_path_EGREP
3914 case `"$ac_path_EGREP" --version 2>&1` in
3916 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3919 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3922 cat "conftest.in" "conftest.in" >"conftest.tmp"
3923 mv "conftest.tmp" "conftest.in"
3924 cp "conftest.in" "conftest.nl"
3925 echo 'EGREP' >> "conftest.nl"
3926 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3928 ac_count=`expr $ac_count + 1`
3929 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3930 # Best one so far, save it but keep looking for a better one
3931 ac_cv_path_EGREP="$ac_path_EGREP"
3932 ac_path_EGREP_max=$ac_count
3934 # 10*(2^10) chars as input seems more than enough
3935 test $ac_count -gt 10 && break
3937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 $ac_path_EGREP_found && break 3
3951 EGREP="$ac_cv_path_EGREP"
3952 if test -z "$EGREP"; then
3953 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3954 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3955 { (exit 1); exit 1; }; }
3959 ac_cv_path_EGREP=$EGREP
3965 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3966 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3967 EGREP="$ac_cv_path_EGREP"
3971 # Check whether --with-gnu-ld was given.
3972 if test "${with_gnu_ld+set}" = set; then
3973 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3979 if test "$GCC" = yes; then
3980 # Check if gcc -print-prog-name=ld gives a path.
3981 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3982 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3985 # gcc leaves a trailing carriage return which upsets mingw
3986 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3988 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3991 # Accept absolute paths.
3993 re_direlt='/[^/][^/]*/\.\./'
3994 # Canonicalize the pathname of ld
3995 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3996 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3997 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3999 test -z "$LD" && LD="$ac_prog"
4002 # If it fails, then pretend we aren't using GCC.
4006 # If it is relative, then search for the first ld in PATH.
4010 elif test "$with_gnu_ld" = yes; then
4011 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4012 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4014 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4015 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4017 if test "${lt_cv_path_LD+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 if test -z "$LD"; then
4021 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4022 for ac_dir in $PATH; do
4024 test -z "$ac_dir" && ac_dir=.
4025 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4026 lt_cv_path_LD="$ac_dir/$ac_prog"
4027 # Check to see if the program is GNU ld. I'd rather use --version,
4028 # but apparently some variants of GNU ld only accept -v.
4029 # Break only if it was the GNU/non-GNU ld that we prefer.
4030 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4031 *GNU* | *'with BFD'*)
4032 test "$with_gnu_ld" != no && break
4035 test "$with_gnu_ld" != yes && break
4042 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4047 if test -n "$LD"; then
4048 { echo "$as_me:$LINENO: result: $LD" >&5
4049 echo "${ECHO_T}$LD" >&6; }
4051 { echo "$as_me:$LINENO: result: no" >&5
4052 echo "${ECHO_T}no" >&6; }
4054 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4055 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4056 { (exit 1); exit 1; }; }
4057 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4058 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4059 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4063 case `$LD -v 2>&1 </dev/null` in
4064 *GNU* | *'with BFD'*)
4065 lt_cv_prog_gnu_ld=yes
4068 lt_cv_prog_gnu_ld=no
4072 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4073 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4074 with_gnu_ld=$lt_cv_prog_gnu_ld
4077 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4078 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4079 if test "${lt_cv_ld_reload_flag+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 lt_cv_ld_reload_flag='-r'
4084 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4085 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4086 reload_flag=$lt_cv_ld_reload_flag
4087 case $reload_flag in
4089 *) reload_flag=" $reload_flag" ;;
4091 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4094 if test "$GCC" = yes; then
4095 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4097 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4102 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4103 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4104 if test "${lt_cv_path_NM+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 if test -n "$NM"; then
4108 # Let the user override the test.
4111 lt_nm_to_check="${ac_tool_prefix}nm"
4112 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4113 lt_nm_to_check="$lt_nm_to_check nm"
4115 for lt_tmp_nm in $lt_nm_to_check; do
4116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4117 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4119 test -z "$ac_dir" && ac_dir=.
4120 tmp_nm="$ac_dir/$lt_tmp_nm"
4121 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4122 # Check to see if the nm accepts a BSD-compat flag.
4123 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4124 # nm: unknown option "B" ignored
4125 # Tru64's nm complains that /dev/null is an invalid object file
4126 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4127 */dev/null* | *'Invalid file or object type'*)
4128 lt_cv_path_NM="$tmp_nm -B"
4132 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4134 lt_cv_path_NM="$tmp_nm -p"
4138 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4139 continue # so that we can try to find one that supports BSD flags
4148 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4151 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4152 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4155 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4156 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4158 if test "$LN_S" = "ln -s"; then
4159 { echo "$as_me:$LINENO: result: yes" >&5
4160 echo "${ECHO_T}yes" >&6; }
4162 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4163 echo "${ECHO_T}no, using $LN_S" >&6; }
4166 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4167 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4168 if test "${lt_cv_deplibs_check_method+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 lt_cv_file_magic_cmd='$MAGIC_CMD'
4172 lt_cv_file_magic_test_file=
4173 lt_cv_deplibs_check_method='unknown'
4174 # Need to set the preceding variable on all platforms that support
4175 # interlibrary dependencies.
4176 # 'none' -- dependencies not supported.
4177 # `unknown' -- same as none, but documents that we really don't know.
4178 # 'pass_all' -- all dependencies passed with no checks.
4179 # 'test_compile' -- check by making test program.
4180 # 'file_magic [[regex]]' -- check by looking for files in library path
4181 # which responds to the $file_magic_cmd with a given extended regex.
4182 # If you have `file' or equivalent on your system and you're not sure
4183 # whether `pass_all' will *always* work, you probably want this one.
4187 lt_cv_deplibs_check_method=pass_all
4191 lt_cv_deplibs_check_method=pass_all
4195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4196 lt_cv_file_magic_cmd='/usr/bin/file -L'
4197 lt_cv_file_magic_test_file=/shlib/libc.so
4201 # func_win32_libid is a shell function defined in ltmain.sh
4202 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4203 lt_cv_file_magic_cmd='func_win32_libid'
4207 # Base MSYS/MinGW do not provide the 'file' command needed by
4208 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4209 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4210 lt_cv_file_magic_cmd='$OBJDUMP -f'
4213 darwin* | rhapsody*)
4214 lt_cv_deplibs_check_method=pass_all
4217 freebsd* | dragonfly*)
4218 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4221 # Not sure whether the presence of OpenBSD here was a mistake.
4222 # Let's accept both of them until this is cleared up.
4223 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4224 lt_cv_file_magic_cmd=/usr/bin/file
4225 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4229 lt_cv_deplibs_check_method=pass_all
4234 lt_cv_deplibs_check_method=pass_all
4237 hpux10.20* | hpux11*)
4238 lt_cv_file_magic_cmd=/usr/bin/file
4241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4242 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4245 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]'
4246 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4250 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4256 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4260 irix5* | irix6* | nonstopux*)
4262 *-32|*"-32 ") libmagic=32-bit;;
4263 *-n32|*"-n32 ") libmagic=N32;;
4264 *-64|*"-64 ") libmagic=64-bit;;
4265 *) libmagic=never-match;;
4267 lt_cv_deplibs_check_method=pass_all
4270 # This must be Linux ELF.
4271 linux* | k*bsd*-gnu)
4272 lt_cv_deplibs_check_method=pass_all
4275 netbsd* | netbsdelf*-gnu)
4276 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4285 lt_cv_file_magic_cmd=/usr/bin/file
4286 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4290 lt_cv_deplibs_check_method=unknown
4294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4301 osf3* | osf4* | osf5*)
4302 lt_cv_deplibs_check_method=pass_all
4306 lt_cv_deplibs_check_method=pass_all
4310 case $host_vendor in
4312 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]'
4313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4316 lt_cv_deplibs_check_method=pass_all
4319 lt_cv_file_magic_cmd='/bin/file'
4320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4323 lt_cv_file_magic_cmd='/bin/file'
4324 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4325 lt_cv_file_magic_test_file=/lib/libc.so
4328 lt_cv_deplibs_check_method=pass_all
4331 lt_cv_deplibs_check_method=pass_all
4336 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4337 lt_cv_deplibs_check_method=pass_all
4342 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4343 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4344 file_magic_cmd=$lt_cv_file_magic_cmd
4345 deplibs_check_method=$lt_cv_deplibs_check_method
4346 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4351 # If no C compiler was specified, use CC.
4354 # If no C compiler flags were specified, use CFLAGS.
4355 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4357 # Allow CC to be a program name with arguments.
4361 # Check whether --enable-libtool-lock was given.
4362 if test "${enable_libtool_lock+set}" = set; then
4363 enableval=$enable_libtool_lock;
4366 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4368 # Some flags need to be propagated to the compiler or linker for good
4372 # Find out which ABI we are using.
4373 echo 'int i;' > conftest.$ac_ext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; then
4379 case `/usr/bin/file conftest.$ac_objext` in
4391 # Find out which ABI we are using.
4392 echo '#line 4392 "configure"' > conftest.$ac_ext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; then
4398 if test "$lt_cv_prog_gnu_ld" = yes; then
4399 case `/usr/bin/file conftest.$ac_objext` in
4401 LD="${LD-ld} -melf32bsmip"
4404 LD="${LD-ld} -melf32bmipn32"
4407 LD="${LD-ld} -melf64bmip"
4411 case `/usr/bin/file conftest.$ac_objext` in
4427 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4428 # Find out which ABI we are using.
4429 echo 'int i;' > conftest.$ac_ext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; then
4435 case `/usr/bin/file conftest.o` in
4439 LD="${LD-ld} -m elf_i386"
4441 ppc64-*linux*|powerpc64-*linux*)
4442 LD="${LD-ld} -m elf32ppclinux"
4445 LD="${LD-ld} -m elf_s390"
4448 LD="${LD-ld} -m elf32_sparc"
4455 LD="${LD-ld} -m elf_x86_64"
4457 ppc*-*linux*|powerpc*-*linux*)
4458 LD="${LD-ld} -m elf64ppc"
4461 LD="${LD-ld} -m elf64_s390"
4464 LD="${LD-ld} -m elf64_sparc"
4474 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4475 SAVE_CFLAGS="$CFLAGS"
4476 CFLAGS="$CFLAGS -belf"
4477 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4478 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4479 if test "${lt_cv_cc_needs_belf+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4503 rm -f conftest.$ac_objext conftest$ac_exeext
4504 if { (ac_try="$ac_link"
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_link") 2>conftest.er1
4512 grep -v '^ *+' conftest.er1 >conftest.err
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } && {
4517 test -z "$ac_c_werror_flag" ||
4518 test ! -s conftest.err
4519 } && test -s conftest$ac_exeext &&
4520 $as_test_x conftest$ac_exeext; then
4521 lt_cv_cc_needs_belf=yes
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 lt_cv_cc_needs_belf=no
4529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4530 conftest$ac_exeext conftest.$ac_ext
4532 ac_cpp='$CPP $CPPFLAGS'
4533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4539 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4540 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4541 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4542 CFLAGS="$SAVE_CFLAGS"
4546 # Find out which ABI we are using.
4547 echo 'int i;' > conftest.$ac_ext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549 (eval $ac_compile) 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; then
4553 case `/usr/bin/file conftest.o` in
4555 case $lt_cv_prog_gnu_ld in
4556 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4557 *) LD="${LD-ld} -64" ;;
4565 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4566 if test -n "$ac_tool_prefix"; then
4567 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4568 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4571 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 if test -n "$DLLTOOL"; then
4575 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 DLLTOOL=$ac_cv_prog_DLLTOOL
4595 if test -n "$DLLTOOL"; then
4596 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4597 echo "${ECHO_T}$DLLTOOL" >&6; }
4599 { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4605 if test -z "$ac_cv_prog_DLLTOOL"; then
4606 ac_ct_DLLTOOL=$DLLTOOL
4607 # Extract the first word of "dlltool", so it can be a program name with args.
4608 set dummy dlltool; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 if test -n "$ac_ct_DLLTOOL"; then
4615 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4635 if test -n "$ac_ct_DLLTOOL"; then
4636 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4637 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4639 { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4643 if test "x$ac_ct_DLLTOOL" = x; then
4646 case $cross_compiling:$ac_tool_warned in
4648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4649 whose name does not start with the host triplet. If you think this
4650 configuration is useful to you, please write to autoconf@gnu.org." >&5
4651 echo "$as_me: 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." >&2;}
4654 ac_tool_warned=yes ;;
4656 DLLTOOL=$ac_ct_DLLTOOL
4659 DLLTOOL="$ac_cv_prog_DLLTOOL"
4662 if test -n "$ac_tool_prefix"; then
4663 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4664 set dummy ${ac_tool_prefix}as; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_AS+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 if test -n "$AS"; then
4671 ac_cv_prog_AS="$AS" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_AS="${ac_tool_prefix}as"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 if test -n "$AS"; then
4692 { echo "$as_me:$LINENO: result: $AS" >&5
4693 echo "${ECHO_T}$AS" >&6; }
4695 { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4701 if test -z "$ac_cv_prog_AS"; then
4703 # Extract the first word of "as", so it can be a program name with args.
4704 set dummy as; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test -n "$ac_ct_AS"; then
4711 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_ac_ct_AS="as"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4731 if test -n "$ac_ct_AS"; then
4732 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4733 echo "${ECHO_T}$ac_ct_AS" >&6; }
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4739 if test "x$ac_ct_AS" = x; then
4742 case $cross_compiling:$ac_tool_warned in
4744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4745 whose name does not start with the host triplet. If you think this
4746 configuration is useful to you, please write to autoconf@gnu.org." >&5
4747 echo "$as_me: 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." >&2;}
4750 ac_tool_warned=yes ;;
4758 if test -n "$ac_tool_prefix"; then
4759 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4760 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 if test -n "$OBJDUMP"; then
4767 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 OBJDUMP=$ac_cv_prog_OBJDUMP
4787 if test -n "$OBJDUMP"; then
4788 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4789 echo "${ECHO_T}$OBJDUMP" >&6; }
4791 { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4797 if test -z "$ac_cv_prog_OBJDUMP"; then
4798 ac_ct_OBJDUMP=$OBJDUMP
4799 # Extract the first word of "objdump", so it can be a program name with args.
4800 set dummy objdump; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 if test -n "$ac_ct_OBJDUMP"; then
4807 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4827 if test -n "$ac_ct_OBJDUMP"; then
4828 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4829 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4831 { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4835 if test "x$ac_ct_OBJDUMP" = x; then
4838 case $cross_compiling:$ac_tool_warned in
4840 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4841 whose name does not start with the host triplet. If you think this
4842 configuration is useful to you, please write to autoconf@gnu.org." >&5
4843 echo "$as_me: 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." >&2;}
4846 ac_tool_warned=yes ;;
4848 OBJDUMP=$ac_ct_OBJDUMP
4851 OBJDUMP="$ac_cv_prog_OBJDUMP"
4858 need_locks="$enable_libtool_lock"
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4867 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4868 # On Suns, sometimes $CPP names a directory.
4869 if test -n "$CPP" && test -d "$CPP"; then
4872 if test -z "$CPP"; then
4873 if test "${ac_cv_prog_CPP+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 # Double quotes because CPP needs to be expanded
4877 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4880 for ac_c_preproc_warn_flag in '' yes
4882 # Use a header file that comes with gcc, so configuring glibc
4883 # with a fresh cross-compiler works.
4884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4885 # <limits.h> exists even on freestanding compilers.
4886 # On the NeXT, cc -E runs the code through the compiler's parser,
4887 # not just through cpp. "Syntax error" is here to catch this case.
4888 cat >conftest.$ac_ext <<_ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4895 # include <limits.h>
4897 # include <assert.h>
4901 if { (ac_try="$ac_cpp conftest.$ac_ext"
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } >/dev/null && {
4914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 # Broken: fails on valid input.
4926 rm -f conftest.err conftest.$ac_ext
4928 # OK, works on sane cases. Now check whether nonexistent headers
4929 # can be detected and how.
4930 cat >conftest.$ac_ext <<_ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4936 #include <ac_nonexistent.h>
4938 if { (ac_try="$ac_cpp conftest.$ac_ext"
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4946 grep -v '^ *+' conftest.er1 >conftest.err
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } >/dev/null && {
4951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4952 test ! -s conftest.err
4954 # Broken: success on invalid input.
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4960 # Passes both tests.
4965 rm -f conftest.err conftest.$ac_ext
4968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4969 rm -f conftest.err conftest.$ac_ext
4970 if $ac_preproc_ok; then
4982 { echo "$as_me:$LINENO: result: $CPP" >&5
4983 echo "${ECHO_T}$CPP" >&6; }
4985 for ac_c_preproc_warn_flag in '' yes
4987 # Use a header file that comes with gcc, so configuring glibc
4988 # with a fresh cross-compiler works.
4989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4990 # <limits.h> exists even on freestanding compilers.
4991 # On the NeXT, cc -E runs the code through the compiler's parser,
4992 # not just through cpp. "Syntax error" is here to catch this case.
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5000 # include <limits.h>
5002 # include <assert.h>
5006 if { (ac_try="$ac_cpp conftest.$ac_ext"
5008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009 *) ac_try_echo=$ac_try;;
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5014 grep -v '^ *+' conftest.er1 >conftest.err
5016 cat conftest.err >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } >/dev/null && {
5019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5020 test ! -s conftest.err
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 # Broken: fails on valid input.
5031 rm -f conftest.err conftest.$ac_ext
5033 # OK, works on sane cases. Now check whether nonexistent headers
5034 # can be detected and how.
5035 cat >conftest.$ac_ext <<_ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <ac_nonexistent.h>
5043 if { (ac_try="$ac_cpp conftest.$ac_ext"
5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null && {
5056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5059 # Broken: success on invalid input.
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 # Passes both tests.
5070 rm -f conftest.err conftest.$ac_ext
5073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5074 rm -f conftest.err conftest.$ac_ext
5075 if $ac_preproc_ok; then
5078 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5079 See \`config.log' for more details." >&5
5080 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5081 See \`config.log' for more details." >&2;}
5082 { (exit 1); exit 1; }; }
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5093 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5094 if test "${ac_cv_header_stdc+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_compile") 2>conftest.er1
5125 grep -v '^ *+' conftest.er1 >conftest.err
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && {
5130 test -z "$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 } && test -s conftest.$ac_objext; then
5133 ac_cv_header_stdc=yes
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 ac_cv_header_stdc=no
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 if test $ac_cv_header_stdc = yes; then
5144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5145 cat >conftest.$ac_ext <<_ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5155 $EGREP "memchr" >/dev/null 2>&1; then
5158 ac_cv_header_stdc=no
5164 if test $ac_cv_header_stdc = yes; then
5165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5166 cat >conftest.$ac_ext <<_ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5176 $EGREP "free" >/dev/null 2>&1; then
5179 ac_cv_header_stdc=no
5185 if test $ac_cv_header_stdc = yes; then
5186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5187 if test "$cross_compiling" = yes; then
5190 cat >conftest.$ac_ext <<_ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5198 #if ((' ' & 0x0FF) == 0x020)
5199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5202 # define ISLOWER(c) \
5203 (('a' <= (c) && (c) <= 'i') \
5204 || ('j' <= (c) && (c) <= 'r') \
5205 || ('s' <= (c) && (c) <= 'z'))
5206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5214 for (i = 0; i < 256; i++)
5215 if (XOR (islower (i), ISLOWER (i))
5216 || toupper (i) != TOUPPER (i))
5221 rm -f conftest$ac_exeext
5222 if { (ac_try="$ac_link"
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_link") 2>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5232 { (case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_try") 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5243 echo "$as_me: program exited with status $ac_status" >&5
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5248 ac_cv_header_stdc=no
5250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5256 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5257 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5258 if test $ac_cv_header_stdc = yes; then
5260 cat >>confdefs.h <<\_ACEOF
5261 #define STDC_HEADERS 1
5266 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5276 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5277 inttypes.h stdint.h unistd.h
5279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 cat >conftest.$ac_ext <<_ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 $ac_includes_default
5293 #include <$ac_header>
5295 rm -f conftest.$ac_objext
5296 if { (ac_try="$ac_compile"
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302 (eval "$ac_compile") 2>conftest.er1
5304 grep -v '^ *+' conftest.er1 >conftest.err
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } && {
5309 test -z "$ac_c_werror_flag" ||
5310 test ! -s conftest.err
5311 } && test -s conftest.$ac_objext; then
5312 eval "$as_ac_Header=yes"
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5317 eval "$as_ac_Header=no"
5320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 ac_res=`eval echo '${'$as_ac_Header'}'`
5323 { echo "$as_me:$LINENO: result: $ac_res" >&5
5324 echo "${ECHO_T}$ac_res" >&6; }
5325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5326 cat >>confdefs.h <<_ACEOF
5327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336 for ac_header in dlfcn.h
5338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 ac_res=`eval echo '${'$as_ac_Header'}'`
5346 { echo "$as_me:$LINENO: result: $ac_res" >&5
5347 echo "${ECHO_T}$ac_res" >&6; }
5349 # Is the header compilable?
5350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5352 cat >conftest.$ac_ext <<_ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 $ac_includes_default
5359 #include <$ac_header>
5361 rm -f conftest.$ac_objext
5362 if { (ac_try="$ac_compile"
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_compile") 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } && {
5375 test -z "$ac_c_werror_flag" ||
5376 test ! -s conftest.err
5377 } && test -s conftest.$ac_objext; then
5378 ac_header_compiler=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_header_compiler=no
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5388 echo "${ECHO_T}$ac_header_compiler" >&6; }
5390 # Is the header present?
5391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5393 cat >conftest.$ac_ext <<_ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 #include <$ac_header>
5401 if { (ac_try="$ac_cpp conftest.$ac_ext"
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5409 grep -v '^ *+' conftest.er1 >conftest.err
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } >/dev/null && {
5414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5417 ac_header_preproc=yes
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 ac_header_preproc=no
5425 rm -f conftest.err conftest.$ac_ext
5426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5427 echo "${ECHO_T}$ac_header_preproc" >&6; }
5429 # So? What about this header?
5430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5436 ac_header_preproc=yes
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5452 ## -------------------------------------------------- ##
5453 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5454 ## -------------------------------------------------- ##
5456 ) | sed "s/^/$as_me: WARNING: /" >&2
5459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 eval "$as_ac_Header=\$ac_header_preproc"
5466 ac_res=`eval echo '${'$as_ac_Header'}'`
5467 { echo "$as_me:$LINENO: result: $ac_res" >&5
5468 echo "${ECHO_T}$ac_res" >&6; }
5471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5472 cat >>confdefs.h <<_ACEOF
5473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5481 ac_cpp='$CXXCPP $CPPFLAGS'
5482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5485 if test -z "$CXX"; then
5486 if test -n "$CCC"; then
5489 if test -n "$ac_tool_prefix"; then
5490 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5496 if test "${ac_cv_prog_CXX+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 if test -n "$CXX"; then
5500 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 if test -n "$CXX"; then
5521 { echo "$as_me:$LINENO: result: $CXX" >&5
5522 echo "${ECHO_T}$CXX" >&6; }
5524 { echo "$as_me:$LINENO: result: no" >&5
5525 echo "${ECHO_T}no" >&6; }
5529 test -n "$CXX" && break
5532 if test -z "$CXX"; then
5534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5536 # Extract the first word of "$ac_prog", so it can be a program name with args.
5537 set dummy $ac_prog; ac_word=$2
5538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5540 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 if test -n "$ac_ct_CXX"; then
5544 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553 ac_cv_prog_ac_ct_CXX="$ac_prog"
5554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5564 if test -n "$ac_ct_CXX"; then
5565 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5566 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5568 { echo "$as_me:$LINENO: result: no" >&5
5569 echo "${ECHO_T}no" >&6; }
5573 test -n "$ac_ct_CXX" && break
5576 if test "x$ac_ct_CXX" = x; then
5579 case $cross_compiling:$ac_tool_warned in
5581 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5582 whose name does not start with the host triplet. If you think this
5583 configuration is useful to you, please write to autoconf@gnu.org." >&5
5584 echo "$as_me: 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." >&2;}
5587 ac_tool_warned=yes ;;
5595 # Provide some information about the compiler.
5596 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5597 ac_compiler=`set X $ac_compile; echo $2`
5598 { (ac_try="$ac_compiler --version >&5"
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compiler --version >&5") 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }
5608 { (ac_try="$ac_compiler -v >&5"
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compiler -v >&5") 2>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }
5618 { (ac_try="$ac_compiler -V >&5"
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compiler -V >&5") 2>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }
5629 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5630 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5631 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1 >conftest.err
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_cxx_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.$ac_objext; then
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5681 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5682 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5683 GXX=`test $ac_compiler_gnu = yes && echo yes`
5684 ac_test_CXXFLAGS=${CXXFLAGS+set}
5685 ac_save_CXXFLAGS=$CXXFLAGS
5686 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5687 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5688 if test "${ac_cv_prog_cxx_g+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5692 ac_cxx_werror_flag=yes
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_cxx_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5727 ac_cv_prog_cxx_g=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5733 cat >conftest.$ac_ext <<_ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_cxx_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5772 cat >conftest.$ac_ext <<_ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_cxx_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5804 ac_cv_prog_cxx_g=yes
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5821 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5822 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5823 if test "$ac_test_CXXFLAGS" = set; then
5824 CXXFLAGS=$ac_save_CXXFLAGS
5825 elif test $ac_cv_prog_cxx_g = yes; then
5826 if test "$GXX" = yes; then
5832 if test "$GXX" = yes; then
5839 ac_cpp='$CXXCPP $CPPFLAGS'
5840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5844 depcc="$CXX" am_compiler_list=
5846 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5847 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5848 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5852 # We make a subdir and do the tests there. Otherwise we can end up
5853 # making bogus files that we don't know about and never remove. For
5854 # instance it was reported that on HP-UX the gcc test will end up
5855 # making a dummy file named `D' -- because `-MD' means `put the output
5858 # Copy depcomp to subdir because otherwise we won't find it if we're
5859 # using a relative directory.
5860 cp "$am_depcomp" conftest.dir
5862 # We will build objects and dependencies in a subdirectory because
5863 # it helps to detect inapplicable dependency modes. For instance
5864 # both Tru64's cc and ICC support -MD to output dependencies as a
5865 # side effect of compilation, but ICC will put the dependencies in
5866 # the current directory while Tru64 will put them in the object
5870 am_cv_CXX_dependencies_compiler_type=none
5871 if test "$am_compiler_list" = ""; then
5872 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5874 for depmode in $am_compiler_list; do
5875 # Setup a source with many dependencies, because some compilers
5876 # like to wrap large dependency lists on column 80 (with \), and
5877 # we should not choose a depcomp mode which is confused by this.
5879 # We need to recreate these files for each test, as the compiler may
5880 # overwrite some of them when testing with obscure command lines.
5881 # This happens at least with the AIX C compiler.
5883 for i in 1 2 3 4 5 6; do
5884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5885 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5886 # Solaris 8's {/usr,}/bin/sh.
5887 touch sub/conftst$i.h
5889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5893 # after this tag, mechanisms are not by side-effect, so they'll
5894 # only be used when explicitly requested
5895 if test "x$enable_dependency_tracking" = xyes; then
5903 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5904 # mode. It turns out that the SunPro C++ compiler does not properly
5905 # handle `-M -o', and we need to detect this.
5906 if depmode=$depmode \
5907 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5909 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5910 >/dev/null 2>conftest.err &&
5911 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5912 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5913 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5914 # icc doesn't choke on unknown options, it will just issue warnings
5915 # or remarks (even with -Werror). So we grep stderr for any message
5916 # that says an option was ignored or not supported.
5917 # When given -MP, icc 7.0 and 7.1 complain thusly:
5918 # icc: Command line warning: ignoring option '-M'; no argument required
5919 # The diagnosis changed in icc 8.0:
5920 # icc: Command line remark: option '-MP' not supported
5921 if (grep 'ignoring option' conftest.err ||
5922 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5923 am_cv_CXX_dependencies_compiler_type=$depmode
5932 am_cv_CXX_dependencies_compiler_type=none
5936 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5937 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5938 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5943 test "x$enable_dependency_tracking" != xno \
5944 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5945 am__fastdepCXX_TRUE=
5946 am__fastdepCXX_FALSE='#'
5948 am__fastdepCXX_TRUE='#'
5949 am__fastdepCXX_FALSE=
5955 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5956 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5957 (test "X$CXX" != "Xg++"))) ; then
5959 ac_cpp='$CXXCPP $CPPFLAGS'
5960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5963 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5964 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5965 if test -z "$CXXCPP"; then
5966 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 # Double quotes because CXXCPP needs to be expanded
5970 for CXXCPP in "$CXX -E" "/lib/cpp"
5973 for ac_cxx_preproc_warn_flag in '' yes
5975 # Use a header file that comes with gcc, so configuring glibc
5976 # with a fresh cross-compiler works.
5977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5978 # <limits.h> exists even on freestanding compilers.
5979 # On the NeXT, cc -E runs the code through the compiler's parser,
5980 # not just through cpp. "Syntax error" is here to catch this case.
5981 cat >conftest.$ac_ext <<_ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5988 # include <limits.h>
5990 # include <assert.h>
5994 if { (ac_try="$ac_cpp conftest.$ac_ext"
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6002 grep -v '^ *+' conftest.er1 >conftest.err
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } >/dev/null && {
6007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6008 test ! -s conftest.err
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 # Broken: fails on valid input.
6019 rm -f conftest.err conftest.$ac_ext
6021 # OK, works on sane cases. Now check whether nonexistent headers
6022 # can be detected and how.
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 #include <ac_nonexistent.h>
6031 if { (ac_try="$ac_cpp conftest.$ac_ext"
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6039 grep -v '^ *+' conftest.er1 >conftest.err
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } >/dev/null && {
6044 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6045 test ! -s conftest.err
6047 # Broken: success on invalid input.
6050 echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6053 # Passes both tests.
6058 rm -f conftest.err conftest.$ac_ext
6061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6062 rm -f conftest.err conftest.$ac_ext
6063 if $ac_preproc_ok; then
6068 ac_cv_prog_CXXCPP=$CXXCPP
6071 CXXCPP=$ac_cv_prog_CXXCPP
6073 ac_cv_prog_CXXCPP=$CXXCPP
6075 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6076 echo "${ECHO_T}$CXXCPP" >&6; }
6078 for ac_cxx_preproc_warn_flag in '' yes
6080 # Use a header file that comes with gcc, so configuring glibc
6081 # with a fresh cross-compiler works.
6082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 # <limits.h> exists even on freestanding compilers.
6084 # On the NeXT, cc -E runs the code through the compiler's parser,
6085 # not just through cpp. "Syntax error" is here to catch this case.
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 # include <limits.h>
6095 # include <assert.h>
6099 if { (ac_try="$ac_cpp conftest.$ac_ext"
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6107 grep -v '^ *+' conftest.er1 >conftest.err
6109 cat conftest.err >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } >/dev/null && {
6112 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6113 test ! -s conftest.err
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6120 # Broken: fails on valid input.
6124 rm -f conftest.err conftest.$ac_ext
6126 # OK, works on sane cases. Now check whether nonexistent headers
6127 # can be detected and how.
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <ac_nonexistent.h>
6136 if { (ac_try="$ac_cpp conftest.$ac_ext"
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6144 grep -v '^ *+' conftest.er1 >conftest.err
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } >/dev/null && {
6149 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6150 test ! -s conftest.err
6152 # Broken: success on invalid input.
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 # Passes both tests.
6163 rm -f conftest.err conftest.$ac_ext
6166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6167 rm -f conftest.err conftest.$ac_ext
6168 if $ac_preproc_ok; then
6171 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6172 See \`config.log' for more details." >&5
6173 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6174 See \`config.log' for more details." >&2;}
6175 { (exit 1); exit 1; }; }
6179 ac_cpp='$CXXCPP $CPPFLAGS'
6180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6188 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6189 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6191 if test -n "$ac_tool_prefix"; then
6192 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
6194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6198 if test "${ac_cv_prog_F77+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 if test -n "$F77"; then
6202 ac_cv_prog_F77="$F77" # Let the user override the test.
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 if test -n "$F77"; then
6223 { echo "$as_me:$LINENO: result: $F77" >&5
6224 echo "${ECHO_T}$F77" >&6; }
6226 { echo "$as_me:$LINENO: result: no" >&5
6227 echo "${ECHO_T}no" >&6; }
6231 test -n "$F77" && break
6234 if test -z "$F77"; then
6236 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
6238 # Extract the first word of "$ac_prog", so it can be a program name with args.
6239 set dummy $ac_prog; ac_word=$2
6240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6242 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 if test -n "$ac_ct_F77"; then
6246 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_ac_ct_F77="$ac_prog"
6256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6266 if test -n "$ac_ct_F77"; then
6267 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6268 echo "${ECHO_T}$ac_ct_F77" >&6; }
6270 { echo "$as_me:$LINENO: result: no" >&5
6271 echo "${ECHO_T}no" >&6; }
6275 test -n "$ac_ct_F77" && break
6278 if test "x$ac_ct_F77" = x; then
6281 case $cross_compiling:$ac_tool_warned in
6283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6284 whose name does not start with the host triplet. If you think this
6285 configuration is useful to you, please write to autoconf@gnu.org." >&5
6286 echo "$as_me: 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." >&2;}
6289 ac_tool_warned=yes ;;
6296 # Provide some information about the compiler.
6297 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6298 ac_compiler=`set X $ac_compile; echo $2`
6299 { (ac_try="$ac_compiler --version >&5"
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compiler --version >&5") 2>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }
6309 { (ac_try="$ac_compiler -v >&5"
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compiler -v >&5") 2>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }
6319 { (ac_try="$ac_compiler -V >&5"
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_compiler -V >&5") 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }
6331 # If we don't use `.F' as extension, the preprocessor is not run on the
6332 # input file. (Note that this only needs to work for GNU compilers.)
6335 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6336 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6337 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 cat >conftest.$ac_ext <<_ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (ac_try="$ac_compile"
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compile") 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } && {
6362 test -z "$ac_f77_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest.$ac_objext; then
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6377 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6378 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6380 ac_test_FFLAGS=${FFLAGS+set}
6381 ac_save_FFLAGS=$FFLAGS
6383 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6384 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6385 if test "${ac_cv_prog_f77_g+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 cat >conftest.$ac_ext <<_ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_f77_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest.$ac_objext; then
6411 ac_cv_prog_f77_g=yes
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6423 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6424 if test "$ac_test_FFLAGS" = set; then
6425 FFLAGS=$ac_save_FFLAGS
6426 elif test $ac_cv_prog_f77_g = yes; then
6427 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6433 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6440 G77=`test $ac_compiler_gnu = yes && echo yes`
6442 ac_cpp='$CPP $CPPFLAGS'
6443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6449 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6451 # find the maximum length of command line arguments
6452 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6453 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6454 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 # On DJGPP, this test can blow up pretty badly due to problems in libc
6463 # (any single argument exceeding 2000 bytes causes a buffer overrun
6464 # during glob expansion). Even if it were fixed, the result of this
6465 # check would be larger than it should be.
6466 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6470 # Under GNU Hurd, this test is not required because there is
6471 # no limit to the length of command line arguments.
6472 # Libtool will interpret -1 as no limit whatsoever
6473 lt_cv_sys_max_cmd_len=-1;
6477 # On Win9x/ME, this test blows up -- it succeeds, but takes
6478 # about 5 minutes as the teststring grows exponentially.
6479 # Worse, since 9x/ME are not pre-emptively multitasking,
6480 # you end up with a "frozen" computer, even though with patience
6481 # the test eventually succeeds (with a max line length of 256k).
6482 # Instead, let's just punt: use the minimum linelength reported by
6483 # all of the supported platforms: 8192 (on NT/2K/XP).
6484 lt_cv_sys_max_cmd_len=8192;
6488 # On AmigaOS with pdksh, this test takes hours, literally.
6489 # So we just punt and use a minimum line length of 8192.
6490 lt_cv_sys_max_cmd_len=8192;
6493 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6494 # This has been around since 386BSD, at least. Likely further.
6495 if test -x /sbin/sysctl; then
6496 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6497 elif test -x /usr/sbin/sysctl; then
6498 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6500 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6502 # And add a safety zone
6503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6508 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6509 lt_cv_sys_max_cmd_len=196608
6513 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6514 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6515 # nice to cause kernel panics so lets avoid the loop below.
6516 # First set a reasonable default.
6517 lt_cv_sys_max_cmd_len=16384
6519 if test -x /sbin/sysconfig; then
6520 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6521 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6526 lt_cv_sys_max_cmd_len=102400
6528 sysv5* | sco5v6* | sysv4.2uw2*)
6529 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6530 if test -n "$kargmax"; then
6531 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6533 lt_cv_sys_max_cmd_len=32768
6537 # If test is not a shell built-in, we'll probably end up computing a
6538 # maximum length that is only half of the actual maximum length, but
6540 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6541 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6542 = "XX$teststring") >/dev/null 2>&1 &&
6543 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6544 lt_cv_sys_max_cmd_len=$new_result &&
6545 test $i != 17 # 1/2 MB should be enough
6548 teststring=$teststring$teststring
6551 # Add a significant safety factor because C++ compilers can tack on massive
6552 # amounts of additional arguments before passing them to the linker.
6553 # It appears as though 1/2 is a usable value.
6554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6560 if test -n $lt_cv_sys_max_cmd_len ; then
6561 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6562 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6564 { echo "$as_me:$LINENO: result: none" >&5
6565 echo "${ECHO_T}none" >&6; }
6571 # Check for command to grab the raw symbol name followed by C symbol from nm.
6572 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6573 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6574 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 # These are sane defaults that work on at least a few old systems.
6579 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6581 # Character class describing NM global symbol codes.
6582 symcode='[BCDEGRST]'
6584 # Regexp to match symbols that can be accessed directly from C.
6585 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6587 # Transform an extracted symbol line into a proper C declaration
6588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6590 # Transform an extracted symbol line into symbol name and symbol address
6591 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'"
6593 # Define system-specific variables.
6598 cygwin* | mingw* | pw32*)
6599 symcode='[ABCDGISTW]'
6601 hpux*) # Its linker distinguishes data from code symbols
6602 if test "$host_cpu" = ia64; then
6603 symcode='[ABCDEGRST]'
6605 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6606 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'"
6608 linux* | k*bsd*-gnu)
6609 if test "$host_cpu" = ia64; then
6610 symcode='[ABCDGIRSTW]'
6611 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6612 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'"
6616 symcode='[BCDEGRST]'
6619 symcode='[BCDEGQRST]'
6630 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6638 # Handle CRLF in mingw tool chain
6642 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6646 # If we're using GNU nm, then use its standard symbol codes.
6647 case `$NM -V 2>&1` in
6648 *GNU* | *'with BFD'*)
6649 symcode='[ABCDGIRSTW]' ;;
6652 # Try without a prefix undercore, then with it.
6653 for ac_symprfx in "" "_"; do
6655 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6656 symxfrm="\\1 $ac_symprfx\\2 \\2"
6658 # Write the raw and C identifiers.
6659 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6661 # Check to see that the pipe works correctly.
6665 cat > conftest.$ac_ext <<EOF
6670 void nm_test_func(){}
6674 int main(){nm_test_var='a';nm_test_func();return(0);}
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; then
6682 # Now try to grab the symbols.
6684 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6685 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } && test -s "$nlist"; then
6689 # Try sorting and uniquifying the output.
6690 if sort "$nlist" | uniq > "$nlist"T; then
6691 mv -f "$nlist"T "$nlist"
6696 # Make sure that we snagged all the symbols we need.
6697 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6698 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6699 cat <<EOF > conftest.$ac_ext
6705 # Now generate the symbol file.
6706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6708 cat <<EOF >> conftest.$ac_ext
6709 #if defined (__STDC__) && __STDC__
6710 # define lt_ptr_t void *
6712 # define lt_ptr_t char *
6716 /* The mapping between symbol names and symbols. */
6721 lt_preloaded_symbols[] =
6724 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6725 cat <<\EOF >> conftest.$ac_ext
6733 # Now try linking the two files.
6734 mv conftest.$ac_objext conftstm.$ac_objext
6735 lt_save_LIBS="$LIBS"
6736 lt_save_CFLAGS="$CFLAGS"
6737 LIBS="conftstm.$ac_objext"
6738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6746 LIBS="$lt_save_LIBS"
6747 CFLAGS="$lt_save_CFLAGS"
6749 echo "cannot find nm_test_func in $nlist" >&5
6752 echo "cannot find nm_test_var in $nlist" >&5
6755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6758 echo "$progname: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6761 rm -f conftest* conftst*
6763 # Do not use the global_symbol_pipe unless it works.
6764 if test "$pipe_works" = yes; then
6767 lt_cv_sys_global_symbol_pipe=
6773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6774 lt_cv_sys_global_symbol_to_cdecl=
6776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6777 { echo "$as_me:$LINENO: result: failed" >&5
6778 echo "${ECHO_T}failed" >&6; }
6780 { echo "$as_me:$LINENO: result: ok" >&5
6781 echo "${ECHO_T}ok" >&6; }
6784 { echo "$as_me:$LINENO: checking for objdir" >&5
6785 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6786 if test "${lt_cv_objdir+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 rm -f .libs 2>/dev/null
6790 mkdir .libs 2>/dev/null
6791 if test -d .libs; then
6794 # MS-DOS does not allow filenames that begin with a dot.
6797 rmdir .libs 2>/dev/null
6799 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6800 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6801 objdir=$lt_cv_objdir
6809 # AIX sometimes has problems with the GCC collect2 program. For some
6810 # reason, if we set the COLLECT_NAMES environment variable, the problems
6811 # vanish in a puff of smoke.
6812 if test "X${COLLECT_NAMES+set}" != Xset; then
6814 export COLLECT_NAMES
6819 # Sed substitution that helps us do robust quoting. It backslashifies
6820 # metacharacters that are still active within double-quoted strings.
6821 Xsed='sed -e 1s/^X//'
6822 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6824 # Same as above, but do not quote variable references.
6825 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6827 # Sed substitution to delay expansion of an escaped shell variable in a
6828 # double_quote_subst'ed string.
6829 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6831 # Sed substitution to avoid accidental globbing in evaled expressions
6832 no_glob_subst='s/\*/\\\*/g'
6838 default_ofile=libtool
6839 can_build_shared=yes
6841 # All known linkers require a `.a' archive for static linking (except MSVC,
6842 # which needs '.lib').
6844 ltmain="$ac_aux_dir/ltmain.sh"
6845 ofile="$default_ofile"
6846 with_gnu_ld="$lt_cv_prog_gnu_ld"
6848 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}ar; ac_word=$2
6851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853 if test "${ac_cv_prog_AR+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 if test -n "$AR"; then
6857 ac_cv_prog_AR="$AR" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_AR="${ac_tool_prefix}ar"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 if test -n "$AR"; then
6878 { echo "$as_me:$LINENO: result: $AR" >&5
6879 echo "${ECHO_T}$AR" >&6; }
6881 { echo "$as_me:$LINENO: result: no" >&5
6882 echo "${ECHO_T}no" >&6; }
6887 if test -z "$ac_cv_prog_AR"; then
6889 # Extract the first word of "ar", so it can be a program name with args.
6890 set dummy ar; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 if test -n "$ac_ct_AR"; then
6897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_prog_ac_ct_AR="ar"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6917 if test -n "$ac_ct_AR"; then
6918 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6919 echo "${ECHO_T}$ac_ct_AR" >&6; }
6921 { echo "$as_me:$LINENO: result: no" >&5
6922 echo "${ECHO_T}no" >&6; }
6925 if test "x$ac_ct_AR" = x; then
6928 case $cross_compiling:$ac_tool_warned in
6930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6931 whose name does not start with the host triplet. If you think this
6932 configuration is useful to you, please write to autoconf@gnu.org." >&5
6933 echo "$as_me: 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." >&2;}
6936 ac_tool_warned=yes ;;
6944 if test -n "$ac_tool_prefix"; then
6945 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6946 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_prog_RANLIB+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 if test -n "$RANLIB"; then
6953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 RANLIB=$ac_cv_prog_RANLIB
6973 if test -n "$RANLIB"; then
6974 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6975 echo "${ECHO_T}$RANLIB" >&6; }
6977 { echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6; }
6983 if test -z "$ac_cv_prog_RANLIB"; then
6984 ac_ct_RANLIB=$RANLIB
6985 # Extract the first word of "ranlib", so it can be a program name with args.
6986 set dummy ranlib; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 if test -n "$ac_ct_RANLIB"; then
6993 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_prog_ac_ct_RANLIB="ranlib"
7003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7013 if test -n "$ac_ct_RANLIB"; then
7014 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7015 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7021 if test "x$ac_ct_RANLIB" = x; then
7024 case $cross_compiling:$ac_tool_warned in
7026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7027 whose name does not start with the host triplet. If you think this
7028 configuration is useful to you, please write to autoconf@gnu.org." >&5
7029 echo "$as_me: 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." >&2;}
7032 ac_tool_warned=yes ;;
7034 RANLIB=$ac_ct_RANLIB
7037 RANLIB="$ac_cv_prog_RANLIB"
7040 if test -n "$ac_tool_prefix"; then
7041 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7042 set dummy ${ac_tool_prefix}strip; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_prog_STRIP+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 if test -n "$STRIP"; then
7049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 STRIP=$ac_cv_prog_STRIP
7069 if test -n "$STRIP"; then
7070 { echo "$as_me:$LINENO: result: $STRIP" >&5
7071 echo "${ECHO_T}$STRIP" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7079 if test -z "$ac_cv_prog_STRIP"; then
7081 # Extract the first word of "strip", so it can be a program name with args.
7082 set dummy strip; ac_word=$2
7083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 if test -n "$ac_ct_STRIP"; then
7089 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098 ac_cv_prog_ac_ct_STRIP="strip"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7109 if test -n "$ac_ct_STRIP"; then
7110 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7111 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7117 if test "x$ac_ct_STRIP" = x; then
7120 case $cross_compiling:$ac_tool_warned in
7122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7123 whose name does not start with the host triplet. If you think this
7124 configuration is useful to you, please write to autoconf@gnu.org." >&5
7125 echo "$as_me: 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." >&2;}
7128 ac_tool_warned=yes ;;
7133 STRIP="$ac_cv_prog_STRIP"
7138 old_CFLAGS="$CFLAGS"
7140 # Set sane defaults for various variables
7141 test -z "$AR" && AR=ar
7142 test -z "$AR_FLAGS" && AR_FLAGS=cru
7143 test -z "$AS" && AS=as
7144 test -z "$CC" && CC=cc
7145 test -z "$LTCC" && LTCC=$CC
7146 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7147 test -z "$DLLTOOL" && DLLTOOL=dlltool
7148 test -z "$LD" && LD=ld
7149 test -z "$LN_S" && LN_S="ln -s"
7150 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7151 test -z "$NM" && NM=nm
7152 test -z "$SED" && SED=sed
7153 test -z "$OBJDUMP" && OBJDUMP=objdump
7154 test -z "$RANLIB" && RANLIB=:
7155 test -z "$STRIP" && STRIP=:
7156 test -z "$ac_objext" && ac_objext=o
7158 # Determine commands to create old-style static archives.
7159 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7160 old_postinstall_cmds='chmod 644 $oldlib'
7161 old_postuninstall_cmds=
7163 if test -n "$RANLIB"; then
7166 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7172 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7175 for cc_temp in $compiler""; do
7177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7183 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7186 # Only perform the check for file, if the check method requires it
7187 case $deplibs_check_method in
7189 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7190 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7191 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7192 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7200 lt_save_MAGIC_CMD="$MAGIC_CMD"
7201 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7202 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7203 for ac_dir in $ac_dummy; do
7205 test -z "$ac_dir" && ac_dir=.
7206 if test -f $ac_dir/${ac_tool_prefix}file; then
7207 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7208 if test -n "$file_magic_test_file"; then
7209 case $deplibs_check_method in
7211 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7214 $EGREP "$file_magic_regex" > /dev/null; then
7219 *** Warning: the command libtool uses to detect shared libraries,
7220 *** $file_magic_cmd, produces output that libtool cannot recognize.
7221 *** The result is that libtool may fail to recognize shared libraries
7222 *** as such. This will affect the creation of libtool libraries that
7223 *** depend on shared libraries, but programs linked with such libtool
7224 *** libraries will work regardless of this problem. Nevertheless, you
7225 *** may want to report the problem to your system manager and/or to
7226 *** bug-libtool@gnu.org
7236 MAGIC_CMD="$lt_save_MAGIC_CMD"
7241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7242 if test -n "$MAGIC_CMD"; then
7243 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7244 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7250 if test -z "$lt_cv_path_MAGIC_CMD"; then
7251 if test -n "$ac_tool_prefix"; then
7252 { echo "$as_me:$LINENO: checking for file" >&5
7253 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7262 lt_save_MAGIC_CMD="$MAGIC_CMD"
7263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7265 for ac_dir in $ac_dummy; do
7267 test -z "$ac_dir" && ac_dir=.
7268 if test -f $ac_dir/file; then
7269 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7270 if test -n "$file_magic_test_file"; then
7271 case $deplibs_check_method in
7273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7276 $EGREP "$file_magic_regex" > /dev/null; then
7281 *** Warning: the command libtool uses to detect shared libraries,
7282 *** $file_magic_cmd, produces output that libtool cannot recognize.
7283 *** The result is that libtool may fail to recognize shared libraries
7284 *** as such. This will affect the creation of libtool libraries that
7285 *** depend on shared libraries, but programs linked with such libtool
7286 *** libraries will work regardless of this problem. Nevertheless, you
7287 *** may want to report the problem to your system manager and/or to
7288 *** bug-libtool@gnu.org
7298 MAGIC_CMD="$lt_save_MAGIC_CMD"
7303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7304 if test -n "$MAGIC_CMD"; then
7305 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7306 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7308 { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7322 enable_win32_dll=yes
7324 # Check whether --enable-libtool-lock was given.
7325 if test "${enable_libtool_lock+set}" = set; then
7326 enableval=$enable_libtool_lock;
7329 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7332 # Check whether --with-pic was given.
7333 if test "${with_pic+set}" = set; then
7334 withval=$with_pic; pic_mode="$withval"
7339 test -z "$pic_mode" && pic_mode=default
7341 # Use C for the default configuration in the libtool script
7345 ac_cpp='$CPP $CPPFLAGS'
7346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7351 # Source file extension for C test sources.
7354 # Object file extension for compiled C test sources.
7358 # Code to be used in simple compile tests
7359 lt_simple_compile_test_code="int some_variable = 0;\n"
7361 # Code to be used in simple link tests
7362 lt_simple_link_test_code='int main(){return(0);}\n'
7365 # If no C compiler was specified, use CC.
7368 # If no C compiler flags were specified, use CFLAGS.
7369 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7371 # Allow CC to be a program name with arguments.
7375 # save warnings/boilerplate of simple test code
7376 ac_outfile=conftest.$ac_objext
7377 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7378 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7379 _lt_compiler_boilerplate=`cat conftest.err`
7382 ac_outfile=conftest.$ac_objext
7383 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7384 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7385 _lt_linker_boilerplate=`cat conftest.err`
7390 lt_prog_compiler_no_builtin_flag=
7392 if test "$GCC" = yes; then
7393 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7396 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7397 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7398 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 lt_cv_prog_compiler_rtti_exceptions=no
7402 ac_outfile=conftest.$ac_objext
7403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7404 lt_compiler_flag="-fno-rtti -fno-exceptions"
7405 # Insert the option either (1) after the last *FLAGS variable, or
7406 # (2) before a word containing "conftest.", or (3) at the end.
7407 # Note that $ac_compile itself does not contain backslashes and begins
7408 # with a dollar sign (not a hyphen), so the echo should work correctly.
7409 # The option is referenced via a variable to avoid confusing sed.
7410 lt_compile=`echo "$ac_compile" | $SED \
7411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7413 -e 's:$: $lt_compiler_flag:'`
7414 (eval echo "\"\$as_me:7414: $lt_compile\"" >&5)
7415 (eval "$lt_compile" 2>conftest.err)
7417 cat conftest.err >&5
7418 echo "$as_me:7418: \$? = $ac_status" >&5
7419 if (exit $ac_status) && test -s "$ac_outfile"; then
7420 # The compiler can only warn and ignore the option if not recognized
7421 # So say no if there are warnings other than the usual output.
7422 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7425 lt_cv_prog_compiler_rtti_exceptions=yes
7431 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7432 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7434 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7435 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7442 lt_prog_compiler_wl=
7443 lt_prog_compiler_pic=
7444 lt_prog_compiler_static=
7446 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7447 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7449 if test "$GCC" = yes; then
7450 lt_prog_compiler_wl='-Wl,'
7451 lt_prog_compiler_static='-static'
7455 # All AIX code is PIC.
7456 if test "$host_cpu" = ia64; then
7457 # AIX 5 now supports IA64 processor
7458 lt_prog_compiler_static='-Bstatic'
7463 # FIXME: we need at least 68020 code to build shared libraries, but
7464 # adding the `-m68020' flag to GCC prevents building anything better,
7466 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7469 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7470 # PIC is the default for these OSes.
7473 mingw* | pw32* | os2*)
7474 # This hack is so that the source file can tell whether it is being
7475 # built for inclusion in a dll (and should export symbols for example).
7476 lt_prog_compiler_pic='-DDLL_EXPORT'
7479 darwin* | rhapsody*)
7480 # PIC is the default on this platform
7481 # Common symbols not allowed in MH_DYLIB files
7482 lt_prog_compiler_pic='-fno-common'
7486 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7487 # Instead, we relocate shared libraries at runtime.
7491 # Just because we use GCC doesn't mean we suddenly get shared libraries
7492 # on systems that don't support them.
7493 lt_prog_compiler_can_build_shared=no
7498 if test -d /usr/nec; then
7499 lt_prog_compiler_pic=-Kconform_pic
7504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7511 lt_prog_compiler_pic='-fPIC'
7517 lt_prog_compiler_pic='-fPIC'
7521 # PORTME Check for flag to pass linker flags through the system compiler.
7524 lt_prog_compiler_wl='-Wl,'
7525 if test "$host_cpu" = ia64; then
7526 # AIX 5 now supports IA64 processor
7527 lt_prog_compiler_static='-Bstatic'
7529 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7533 # PIC is the default on this platform
7534 # Common symbols not allowed in MH_DYLIB files
7535 case $cc_basename in
7537 lt_prog_compiler_pic='-qnocommon'
7538 lt_prog_compiler_wl='-Wl,'
7543 mingw* | pw32* | os2*)
7544 # This hack is so that the source file can tell whether it is being
7545 # built for inclusion in a dll (and should export symbols for example).
7546 lt_prog_compiler_pic='-DDLL_EXPORT'
7549 hpux9* | hpux10* | hpux11*)
7550 lt_prog_compiler_wl='-Wl,'
7551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7558 lt_prog_compiler_pic='+Z'
7561 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7562 lt_prog_compiler_static='${wl}-a ${wl}archive'
7565 irix5* | irix6* | nonstopux*)
7566 lt_prog_compiler_wl='-Wl,'
7567 # PIC (with -KPIC) is the default.
7568 lt_prog_compiler_static='-non_shared'
7572 lt_prog_compiler_pic='-KPIC'
7573 lt_prog_compiler_static='-Bstatic'
7576 linux* | k*bsd*-gnu)
7577 case $cc_basename in
7579 lt_prog_compiler_wl='-Wl,'
7580 lt_prog_compiler_pic='-KPIC'
7581 lt_prog_compiler_static='-static'
7583 pgcc* | pgf77* | pgf90* | pgf95*)
7584 # Portland Group compilers (*not* the Pentium gcc compiler,
7585 # which looks to be a dead project)
7586 lt_prog_compiler_wl='-Wl,'
7587 lt_prog_compiler_pic='-fpic'
7588 lt_prog_compiler_static='-Bstatic'
7591 lt_prog_compiler_wl='-Wl,'
7592 # All Alpha code is PIC.
7593 lt_prog_compiler_static='-non_shared'
7598 osf3* | osf4* | osf5*)
7599 lt_prog_compiler_wl='-Wl,'
7600 # All OSF/1 code is PIC.
7601 lt_prog_compiler_static='-non_shared'
7605 lt_prog_compiler_pic='-KPIC'
7606 lt_prog_compiler_static='-Bstatic'
7607 case $cc_basename in
7609 lt_prog_compiler_wl='-Qoption ld ';;
7611 lt_prog_compiler_wl='-Wl,';;
7616 lt_prog_compiler_wl='-Qoption ld '
7617 lt_prog_compiler_pic='-PIC'
7618 lt_prog_compiler_static='-Bstatic'
7621 sysv4 | sysv4.2uw2* | sysv4.3*)
7622 lt_prog_compiler_wl='-Wl,'
7623 lt_prog_compiler_pic='-KPIC'
7624 lt_prog_compiler_static='-Bstatic'
7628 if test -d /usr/nec ;then
7629 lt_prog_compiler_pic='-Kconform_pic'
7630 lt_prog_compiler_static='-Bstatic'
7634 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7635 lt_prog_compiler_wl='-Wl,'
7636 lt_prog_compiler_pic='-KPIC'
7637 lt_prog_compiler_static='-Bstatic'
7641 lt_prog_compiler_wl='-Wl,'
7642 lt_prog_compiler_can_build_shared=no
7646 lt_prog_compiler_pic='-pic'
7647 lt_prog_compiler_static='-Bstatic'
7651 lt_prog_compiler_can_build_shared=no
7656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7657 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7660 # Check to make sure the PIC flag actually works.
7662 if test -n "$lt_prog_compiler_pic"; then
7664 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7665 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7666 if test "${lt_prog_compiler_pic_works+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 lt_prog_compiler_pic_works=no
7670 ac_outfile=conftest.$ac_objext
7671 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7672 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7673 # Insert the option either (1) after the last *FLAGS variable, or
7674 # (2) before a word containing "conftest.", or (3) at the end.
7675 # Note that $ac_compile itself does not contain backslashes and begins
7676 # with a dollar sign (not a hyphen), so the echo should work correctly.
7677 # The option is referenced via a variable to avoid confusing sed.
7678 lt_compile=`echo "$ac_compile" | $SED \
7679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7681 -e 's:$: $lt_compiler_flag:'`
7682 (eval echo "\"\$as_me:7682: $lt_compile\"" >&5)
7683 (eval "$lt_compile" 2>conftest.err)
7685 cat conftest.err >&5
7686 echo "$as_me:7686: \$? = $ac_status" >&5
7687 if (exit $ac_status) && test -s "$ac_outfile"; then
7688 # The compiler can only warn and ignore the option if not recognized
7689 # So say no if there are warnings other than the usual output.
7690 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7692 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7693 lt_prog_compiler_pic_works=yes
7699 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7700 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7702 if test x"$lt_prog_compiler_pic_works" = xyes; then
7703 case $lt_prog_compiler_pic in
7705 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7708 lt_prog_compiler_pic=
7709 lt_prog_compiler_can_build_shared=no
7714 # For platforms which do not support PIC, -DPIC is meaningless:
7716 lt_prog_compiler_pic=
7719 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7724 # Check to make sure the static flag actually works.
7726 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7727 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7728 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7729 if test "${lt_prog_compiler_static_works+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7732 lt_prog_compiler_static_works=no
7733 save_LDFLAGS="$LDFLAGS"
7734 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7735 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7736 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7737 # The linker can only warn and ignore the option if not recognized
7738 # So say no if there are warnings
7739 if test -s conftest.err; then
7740 # Append any errors to the config.log.
7741 cat conftest.err 1>&5
7742 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7744 if diff conftest.exp conftest.er2 >/dev/null; then
7745 lt_prog_compiler_static_works=yes
7748 lt_prog_compiler_static_works=yes
7752 LDFLAGS="$save_LDFLAGS"
7755 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7756 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7758 if test x"$lt_prog_compiler_static_works" = xyes; then
7761 lt_prog_compiler_static=
7765 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7766 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7767 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 lt_cv_prog_compiler_c_o=no
7771 $rm -r conftest 2>/dev/null
7775 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7777 lt_compiler_flag="-o out/conftest2.$ac_objext"
7778 # Insert the option either (1) after the last *FLAGS variable, or
7779 # (2) before a word containing "conftest.", or (3) at the end.
7780 # Note that $ac_compile itself does not contain backslashes and begins
7781 # with a dollar sign (not a hyphen), so the echo should work correctly.
7782 lt_compile=`echo "$ac_compile" | $SED \
7783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7785 -e 's:$: $lt_compiler_flag:'`
7786 (eval echo "\"\$as_me:7786: $lt_compile\"" >&5)
7787 (eval "$lt_compile" 2>out/conftest.err)
7789 cat out/conftest.err >&5
7790 echo "$as_me:7790: \$? = $ac_status" >&5
7791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7793 # The compiler can only warn and ignore the option if not recognized
7794 # So say no if there are warnings
7795 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7798 lt_cv_prog_compiler_c_o=yes
7803 # SGI C++ compiler will create directory out/ii_files/ for
7804 # template instantiation
7805 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7806 $rm out/* && rmdir out
7812 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7813 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7816 hard_links="nottested"
7817 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7818 # do not overwrite the value of need_locks provided by the user
7819 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7820 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7825 ln conftest.a conftest.b 2>&5 || hard_links=no
7826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7827 { echo "$as_me:$LINENO: result: $hard_links" >&5
7828 echo "${ECHO_T}$hard_links" >&6; }
7829 if test "$hard_links" = no; then
7830 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7831 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7838 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7839 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7842 allow_undefined_flag=
7843 enable_shared_with_static_runtimes=no
7845 archive_expsym_cmds=
7846 old_archive_From_new_cmds=
7847 old_archive_from_expsyms_cmds=
7848 export_dynamic_flag_spec=
7849 whole_archive_flag_spec=
7850 thread_safe_flag_spec=
7851 hardcode_libdir_flag_spec=
7852 hardcode_libdir_flag_spec_ld=
7853 hardcode_libdir_separator=
7856 hardcode_shlibpath_var=unsupported
7857 link_all_deplibs=unknown
7858 hardcode_automatic=no
7861 always_export_symbols=no
7862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7863 # include_expsyms should be a list of space-separated symbols to be *always*
7864 # included in the symbol list
7866 # exclude_expsyms can be an extended regexp of symbols to exclude
7867 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7868 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7869 # as well as any symbol that contains `d'.
7870 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7871 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7872 # platforms (ab)use it in PIC code, but their linkers get confused if
7873 # the symbol is explicitly referenced. Since portable code cannot
7874 # rely on this symbol name, it's probably fine to never include it in
7875 # preloaded symbol tables.
7876 extract_expsyms_cmds=
7877 # Just being paranoid about ensuring that cc_basename is set.
7878 for cc_temp in $compiler""; do
7880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7886 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7889 cygwin* | mingw* | pw32*)
7890 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7891 # When not using gcc, we currently assume that we are using
7892 # Microsoft Visual C++.
7893 if test "$GCC" != yes; then
7898 # we just hope/assume this is gcc and not c89 (= MSVC++)
7907 if test "$with_gnu_ld" = yes; then
7908 # If archive_cmds runs LD, not CC, wlarc should be empty
7911 # Set some defaults for GNU ld with shared library support. These
7912 # are reset later if shared libraries are not supported. Putting them
7913 # here allows them to be overridden if necessary.
7914 runpath_var=LD_RUN_PATH
7915 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7916 export_dynamic_flag_spec='${wl}--export-dynamic'
7917 # ancient GNU ld didn't support --whole-archive et. al.
7918 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7919 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7921 whole_archive_flag_spec=
7923 supports_anon_versioning=no
7924 case `$LD -v 2>/dev/null` in
7925 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7926 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7927 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7928 *\ 2.11.*) ;; # other 2.11 versions
7929 *) supports_anon_versioning=yes ;;
7932 # See if GNU ld supports shared libraries.
7934 aix3* | aix4* | aix5*)
7935 # On AIX/PPC, the GNU linker is very broken
7936 if test "$host_cpu" != ia64; then
7940 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7941 *** to be unable to reliably create shared libraries on AIX.
7942 *** Therefore, libtool is disabling shared libraries support. If you
7943 *** really care for shared libraries, you may want to modify your PATH
7944 *** so that a non-GNU linker is found, and then restart.
7951 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)'
7952 hardcode_libdir_flag_spec='-L$libdir'
7953 hardcode_minus_L=yes
7955 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7956 # that the semantics of dynamic libraries on AmigaOS, at least up
7957 # to version 4, is to share data among multiple programs linked
7958 # with the same dynamic library. Since this doesn't match the
7959 # behavior of shared libraries on other platforms, we can't use
7965 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7966 allow_undefined_flag=unsupported
7967 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7968 # support --undefined. This deserves some investigation. FIXME
7969 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7975 cygwin* | mingw* | pw32*)
7976 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7977 # as there is no search path for DLLs.
7978 hardcode_libdir_flag_spec='-L$libdir'
7979 allow_undefined_flag=unsupported
7980 always_export_symbols=no
7981 enable_shared_with_static_runtimes=yes
7982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7984 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7986 # If the export-symbols file already is a .def file (1st line
7987 # is EXPORTS), use it as is; otherwise, prepend...
7988 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7989 cp $export_symbols $output_objdir/$soname.def;
7991 echo EXPORTS > $output_objdir/$soname.def;
7992 cat $export_symbols >> $output_objdir/$soname.def;
7994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8002 hardcode_shlibpath_var=no
8003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8004 export_dynamic_flag_spec='${wl}-E'
8005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8006 # Instead, shared libraries are loaded at an image base (0x10000000 by
8007 # default) and relocated if they conflict, which is a slow very memory
8008 # consuming and fragmenting process. To avoid this, we pick a random,
8009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8010 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8011 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8012 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'
8015 linux* | k*bsd*-gnu)
8016 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8018 case $cc_basename,$host_cpu in
8019 pgcc*) # Portland Group C compiler
8020 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'
8021 tmp_addflag=' $pic_flag'
8023 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8024 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'
8025 tmp_addflag=' $pic_flag -Mnomain' ;;
8026 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8027 tmp_addflag=' -i_dynamic' ;;
8028 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8029 tmp_addflag=' -i_dynamic -nofor_main' ;;
8030 ifc* | ifort*) # Intel Fortran compiler
8031 tmp_addflag=' -nofor_main' ;;
8033 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8035 if test $supports_anon_versioning = yes; then
8036 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8038 $echo "local: *; };" >> $output_objdir/$libname.ver~
8039 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8047 netbsd* | netbsdelf*-gnu)
8048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8049 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8058 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8062 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8063 *** create shared libraries on Solaris systems. Therefore, libtool
8064 *** is disabling shared libraries support. We urge you to upgrade GNU
8065 *** binutils to release 2.9.1 or newer. Another option is to modify
8066 *** your PATH or compiler configuration so that the native linker is
8067 *** used, and then restart.
8070 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8072 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8079 case `$LD -v 2>&1` in
8080 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8084 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8085 *** reliably create shared libraries on SCO systems. Therefore, libtool
8086 *** is disabling shared libraries support. We urge you to upgrade GNU
8087 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8088 *** your PATH or compiler configuration so that the native linker is
8089 *** used, and then restart.
8094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8095 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8106 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8109 hardcode_shlibpath_var=no
8113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8122 if test "$ld_shlibs" = no; then
8124 hardcode_libdir_flag_spec=
8125 export_dynamic_flag_spec=
8126 whole_archive_flag_spec=
8129 # PORTME fill in a description of your system's linker (not GNU ld)
8132 allow_undefined_flag=unsupported
8133 always_export_symbols=yes
8134 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'
8135 # Note: this linker hardcodes the directories in LIBPATH if there
8136 # are no directories specified by -L.
8137 hardcode_minus_L=yes
8138 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8139 # Neither direct hardcoding nor static linking is supported with a
8141 hardcode_direct=unsupported
8146 if test "$host_cpu" = ia64; then
8147 # On IA64, the linker does run time linking by default, so we don't
8148 # have to do anything special.
8149 aix_use_runtimelinking=no
8150 exp_sym_flag='-Bexport'
8153 # If we're using GNU nm, then we don't want the "-C" option.
8154 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8155 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8156 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'
8158 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'
8160 aix_use_runtimelinking=no
8162 # Test if we are trying to use run time linking or normal
8163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8164 # need to do runtime linking.
8165 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8166 for ld_flag in $LDFLAGS; do
8167 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8168 aix_use_runtimelinking=yes
8175 exp_sym_flag='-bexport'
8176 no_entry_flag='-bnoentry'
8179 # When large executables or shared objects are built, AIX ld can
8180 # have problems creating the table of contents. If linking a library
8181 # or program results in "error TOC overflow" add -mminimal-toc to
8182 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8183 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8187 hardcode_libdir_separator=':'
8188 link_all_deplibs=yes
8190 if test "$GCC" = yes; then
8191 case $host_os in aix4.[012]|aix4.[012].*)
8192 # We only want to do this on AIX 4.2 and lower, the check
8193 # below for broken collect2 doesn't work under 4.3+
8194 collect2name=`${CC} -print-prog-name=collect2`
8195 if test -f "$collect2name" && \
8196 strings "$collect2name" | grep resolve_lib_name >/dev/null
8198 # We have reworked collect2
8201 # We have old collect2
8202 hardcode_direct=unsupported
8203 # It fails to find uninstalled libraries when the uninstalled
8204 # path is not listed in the libpath. Setting hardcode_minus_L
8205 # to unsupported forces relinking
8206 hardcode_minus_L=yes
8207 hardcode_libdir_flag_spec='-L$libdir'
8208 hardcode_libdir_separator=
8212 shared_flag='-shared'
8213 if test "$aix_use_runtimelinking" = yes; then
8214 shared_flag="$shared_flag "'${wl}-G'
8218 if test "$host_cpu" = ia64; then
8219 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8220 # chokes on -Wl,-G. The following line is correct:
8223 if test "$aix_use_runtimelinking" = yes; then
8224 shared_flag='${wl}-G'
8226 shared_flag='${wl}-bM:SRE'
8231 # It seems that -bexpall does not export symbols beginning with
8232 # underscore (_), so it is better to generate a list of symbols to export.
8233 always_export_symbols=yes
8234 if test "$aix_use_runtimelinking" = yes; then
8235 # Warning - without using the other runtime loading flags (-brtl),
8236 # -berok will link without error, but may produce a broken library.
8237 allow_undefined_flag='-berok'
8238 # Determine the default libpath from the value encoded in an empty executable.
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (ac_try="$ac_link"
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_link") 2>conftest.er1
8263 grep -v '^ *+' conftest.er1 >conftest.err
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
8270 } && test -s conftest$ac_exeext &&
8271 $as_test_x conftest$ac_exeext; then
8273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8275 # Check for a 64-bit object if we didn't find anything.
8276 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8286 conftest$ac_exeext conftest.$ac_ext
8287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8289 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8290 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"
8292 if test "$host_cpu" = ia64; then
8293 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8294 allow_undefined_flag="-z nodefs"
8295 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"
8297 # Determine the default libpath from the value encoded in an empty executable.
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8313 rm -f conftest.$ac_objext conftest$ac_exeext
8314 if { (ac_try="$ac_link"
8316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317 *) ac_try_echo=$ac_try;;
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320 (eval "$ac_link") 2>conftest.er1
8322 grep -v '^ *+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && {
8327 test -z "$ac_c_werror_flag" ||
8328 test ! -s conftest.err
8329 } && test -s conftest$ac_exeext &&
8330 $as_test_x conftest$ac_exeext; then
8332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8334 # Check for a 64-bit object if we didn't find anything.
8335 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; }
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8345 conftest$ac_exeext conftest.$ac_ext
8346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8349 # Warning - without using the other run time loading flags,
8350 # -berok will link without error, but may produce a broken library.
8351 no_undefined_flag=' ${wl}-bernotok'
8352 allow_undefined_flag=' ${wl}-berok'
8353 # Exported symbols can be pulled into shared objects from archives
8354 whole_archive_flag_spec='$convenience'
8355 archive_cmds_need_lc=yes
8356 # This is similar to how AIX traditionally builds its shared libraries.
8357 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'
8363 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)'
8364 hardcode_libdir_flag_spec='-L$libdir'
8365 hardcode_minus_L=yes
8366 # see comment about different semantics on the GNU ld section
8371 export_dynamic_flag_spec=-rdynamic
8374 cygwin* | mingw* | pw32*)
8375 # When not using gcc, we currently assume that we are using
8376 # Microsoft Visual C++.
8377 # hardcode_libdir_flag_spec is actually meaningless, as there is
8378 # no search path for DLLs.
8379 hardcode_libdir_flag_spec=' '
8380 allow_undefined_flag=unsupported
8381 # Tell ltmain to make .lib files, not .a files.
8383 # Tell ltmain to make .dll files, not .so files.
8385 # FIXME: Setting linknames here is a bad hack.
8386 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8387 # The linker will automatically build a .lib file if we build a DLL.
8388 old_archive_From_new_cmds='true'
8389 # FIXME: Should let the user specify the lib program.
8390 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8391 fix_srcfile_path='`cygpath -w "$srcfile"`'
8392 enable_shared_with_static_runtimes=yes
8395 darwin* | rhapsody*)
8397 rhapsody* | darwin1.[012])
8398 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8401 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8402 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8404 case ${MACOSX_DEPLOYMENT_TARGET} in
8406 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8409 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8415 archive_cmds_need_lc=no
8417 hardcode_automatic=yes
8418 hardcode_shlibpath_var=unsupported
8419 whole_archive_flag_spec=''
8420 link_all_deplibs=yes
8421 if test "$GCC" = yes ; then
8422 output_verbose_link_cmd='echo'
8423 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8424 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8425 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8426 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}'
8427 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}'
8429 case $cc_basename in
8431 output_verbose_link_cmd='echo'
8432 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8433 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8434 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8435 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}'
8436 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}'
8446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_shlibpath_var=no
8455 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8456 # support. Future versions do this automatically, but an explicit c++rt0.o
8457 # does not break anything, and helps significantly (at the cost of a little
8460 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8461 hardcode_libdir_flag_spec='-R$libdir'
8463 hardcode_shlibpath_var=no
8466 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8470 hardcode_minus_L=yes
8471 hardcode_shlibpath_var=no
8474 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8475 freebsd* | dragonfly*)
8476 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8477 hardcode_libdir_flag_spec='-R$libdir'
8479 hardcode_shlibpath_var=no
8483 if test "$GCC" = yes; then
8484 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'
8486 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'
8488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8489 hardcode_libdir_separator=:
8492 # hardcode_minus_L: Not really in the search PATH,
8493 # but as the default location of the library.
8494 hardcode_minus_L=yes
8495 export_dynamic_flag_spec='${wl}-E'
8499 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8500 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8502 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8504 if test "$with_gnu_ld" = no; then
8505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8506 hardcode_libdir_separator=:
8509 export_dynamic_flag_spec='${wl}-E'
8511 # hardcode_minus_L: Not really in the search PATH,
8512 # but as the default location of the library.
8513 hardcode_minus_L=yes
8518 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8521 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8524 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8527 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8533 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8536 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8543 if test "$with_gnu_ld" = no; then
8544 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8545 hardcode_libdir_separator=:
8549 hardcode_libdir_flag_spec_ld='+b $libdir'
8551 hardcode_shlibpath_var=no
8555 export_dynamic_flag_spec='${wl}-E'
8557 # hardcode_minus_L: Not really in the search PATH,
8558 # but as the default location of the library.
8559 hardcode_minus_L=yes
8565 irix5* | irix6* | nonstopux*)
8566 if test "$GCC" = yes; then
8567 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'
8569 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'
8570 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573 hardcode_libdir_separator=:
8574 link_all_deplibs=yes
8577 netbsd* | netbsdelf*-gnu)
8578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8581 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8583 hardcode_libdir_flag_spec='-R$libdir'
8585 hardcode_shlibpath_var=no
8589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8592 hardcode_libdir_separator=:
8593 hardcode_shlibpath_var=no
8598 hardcode_shlibpath_var=no
8599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8603 export_dynamic_flag_spec='${wl}-E'
8606 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8608 hardcode_libdir_flag_spec='-R$libdir'
8611 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8612 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8619 hardcode_libdir_flag_spec='-L$libdir'
8620 hardcode_minus_L=yes
8621 allow_undefined_flag=unsupported
8622 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'
8623 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8627 if test "$GCC" = yes; then
8628 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8629 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'
8631 allow_undefined_flag=' -expect_unresolved \*'
8632 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'
8634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8635 hardcode_libdir_separator=:
8638 osf4* | osf5*) # as osf3* with the addition of -msym flag
8639 if test "$GCC" = yes; then
8640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8641 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'
8642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644 allow_undefined_flag=' -expect_unresolved \*'
8645 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'
8646 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8647 $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'
8649 # Both c and cxx compiler support -rpath directly
8650 hardcode_libdir_flag_spec='-rpath $libdir'
8652 hardcode_libdir_separator=:
8656 no_undefined_flag=' -z text'
8657 if test "$GCC" = yes; then
8659 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8661 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8664 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8668 hardcode_libdir_flag_spec='-R$libdir'
8669 hardcode_shlibpath_var=no
8671 solaris2.[0-5] | solaris2.[0-5].*) ;;
8673 # The compiler driver will combine linker options so we
8674 # cannot just pass the convience library names through
8675 # without $wl, iff we do not link with $LD.
8676 # Luckily, gcc supports the same syntax we need for Sun Studio.
8677 # Supported since Solaris 2.6 (maybe 2.5.1?)
8680 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8682 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' ;;
8685 link_all_deplibs=yes
8689 if test "x$host_vendor" = xsequent; then
8690 # Use $CC to link under sequent, because it throws in some extra .o
8691 # files that make .init and .fini sections work.
8692 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8694 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_libdir_flag_spec='-L$libdir'
8698 hardcode_minus_L=yes
8699 hardcode_shlibpath_var=no
8703 case $host_vendor in
8705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8706 hardcode_direct=yes # is this really true???
8709 ## LD is ld it makes a PLAMLIB
8710 ## CC just makes a GrossModule.
8711 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8712 reload_cmds='$CC -r -o $output$reload_objs'
8716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8717 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8720 runpath_var='LD_RUN_PATH'
8721 hardcode_shlibpath_var=no
8725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8726 hardcode_shlibpath_var=no
8727 export_dynamic_flag_spec='-Bexport'
8731 if test -d /usr/nec; then
8732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733 hardcode_shlibpath_var=no
8734 runpath_var=LD_RUN_PATH
8735 hardcode_runpath_var=yes
8740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8741 no_undefined_flag='${wl}-z,text'
8742 archive_cmds_need_lc=no
8743 hardcode_shlibpath_var=no
8744 runpath_var='LD_RUN_PATH'
8746 if test "$GCC" = yes; then
8747 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8755 sysv5* | sco3.2v5* | sco5v6*)
8756 # Note: We can NOT use -z defs as we might desire, because we do not
8757 # link with -lc, and that would cause any symbols used from libc to
8758 # always be unresolved, which means just about no library would
8759 # ever link correctly. If we're not using GNU ld we use -z text
8760 # though, which does catch some bad symbols but isn't as heavy-handed
8762 no_undefined_flag='${wl}-z,text'
8763 allow_undefined_flag='${wl}-z,nodefs'
8764 archive_cmds_need_lc=no
8765 hardcode_shlibpath_var=no
8766 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8767 hardcode_libdir_separator=':'
8768 link_all_deplibs=yes
8769 export_dynamic_flag_spec='${wl}-Bexport'
8770 runpath_var='LD_RUN_PATH'
8772 if test "$GCC" = yes; then
8773 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783 hardcode_libdir_flag_spec='-L$libdir'
8784 hardcode_shlibpath_var=no
8793 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8794 echo "${ECHO_T}$ld_shlibs" >&6; }
8795 test "$ld_shlibs" = no && can_build_shared=no
8798 # Do we need to explicitly link libc?
8800 case "x$archive_cmds_need_lc" in
8802 # Assume -lc should be added
8803 archive_cmds_need_lc=yes
8805 if test "$enable_shared" = yes && test "$GCC" = yes; then
8806 case $archive_cmds in
8808 # FIXME: we may have to deal with multi-command sequences.
8811 # Test whether the compiler implicitly links with -lc since on some
8812 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8813 # to ld, don't add -lc before -lgcc.
8814 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820 (eval $ac_compile) 2>&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } 2>conftest.err; then
8826 libobjs=conftest.$ac_objext
8828 wl=$lt_prog_compiler_wl
8829 pic_flag=$lt_prog_compiler_pic
8835 lt_save_allow_undefined_flag=$allow_undefined_flag
8836 allow_undefined_flag=
8837 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8838 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }
8843 archive_cmds_need_lc=no
8845 archive_cmds_need_lc=yes
8847 allow_undefined_flag=$lt_save_allow_undefined_flag
8849 cat conftest.err 1>&5
8852 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8853 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8860 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8863 libname_spec='lib$name'
8871 shlibpath_overrides_runpath=unknown
8873 dynamic_linker="$host_os ld.so"
8874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8875 if test "$GCC" = yes; then
8876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8877 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8878 # if the path contains ";" then we assume it to be the separator
8879 # otherwise default to the standard path separator (i.e. ":") - it is
8880 # assumed that no part of a normal pathname contains ";" but that should
8881 # okay in the real world where ";" in dirpaths is itself problematic.
8882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8889 need_lib_prefix=unknown
8890 hardcode_into_libs=no
8892 # when you set need_version to no, make sure it does not cause -set_version
8893 # flags to be left without arguments
8894 need_version=unknown
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8900 shlibpath_var=LIBPATH
8902 # AIX 3 has no versioning support, so we append a major version to the name.
8903 soname_spec='${libname}${release}${shared_ext}$major'
8910 hardcode_into_libs=yes
8911 if test "$host_cpu" = ia64; then
8912 # AIX 5 supports IA64
8913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8914 shlibpath_var=LD_LIBRARY_PATH
8916 # With GCC up to 2.95.x, collect2 would create an import file
8917 # for dependence libraries. The import file would start with
8918 # the line `#! .'. This would cause the generated library to
8919 # depend on `.', always an invalid library. This was fixed in
8920 # development snapshots of GCC prior to 3.0.
8922 aix4 | aix4.[01] | aix4.[01].*)
8923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8925 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8933 # soname into executable. Probably we can add versioning support to
8934 # collect2, so additional links can be useful in future.
8935 if test "$aix_use_runtimelinking" = yes; then
8936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8937 # instead of lib<name>.a to let people know that these are not
8938 # typical AIX shared libraries.
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 # We preserve .a as extension for shared libraries through AIX4.2
8942 # and later when we are not doing run time linking.
8943 library_names_spec='${libname}${release}.a $libname.a'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LIBPATH
8951 library_names_spec='$libname.ixlibrary $libname.a'
8952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8953 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'
8957 library_names_spec='${libname}${shared_ext}'
8958 dynamic_linker="$host_os ld.so"
8959 shlibpath_var=LIBRARY_PATH
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8968 shlibpath_var=LD_LIBRARY_PATH
8969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8971 # the default ld.so.conf also contains /usr/contrib/lib and
8972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8973 # libtool to hard-code these into programs
8976 cygwin* | mingw* | pw32*)
8977 version_type=windows
8982 case $GCC,$host_os in
8983 yes,cygwin* | yes,mingw* | yes,pw32*)
8984 library_names_spec='$libname.dll.a'
8985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8986 postinstall_cmds='base_file=`basename \${file}`~
8987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8988 dldir=$destdir/`dirname \$dlpath`~
8989 test -d \$dldir || mkdir -p \$dldir~
8990 $install_prog $dir/$dlname \$dldir/$dlname~
8991 chmod a+x \$dldir/$dlname'
8992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8993 dlpath=$dir/\$dldll~
8995 shlibpath_overrides_runpath=yes
8999 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9000 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9001 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9004 # MinGW DLLs use traditional 'lib' prefix
9005 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9006 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9007 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9008 # It is most probably a Windows format PATH printed by
9009 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9010 # path with ; separators, and with drive letters. We can handle the
9011 # drive letters (cygwin fileutils understands them), so leave them,
9012 # especially as we might pass files found there to a mingw objdump,
9013 # which wouldn't understand a cygwinified path. Ahh.
9014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9020 # pw32 DLLs use 'pw' prefix rather than 'lib'
9021 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9027 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9030 dynamic_linker='Win32 ld.exe'
9031 # FIXME: first we should search . and the directory the executable is in
9035 darwin* | rhapsody*)
9036 dynamic_linker="$host_os dyld"
9040 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9041 soname_spec='${libname}${release}${major}$shared_ext'
9042 shlibpath_overrides_runpath=yes
9043 shlibpath_var=DYLD_LIBRARY_PATH
9044 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9045 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9046 if test "$GCC" = yes; then
9047 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"`
9049 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9051 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9067 freebsd* | dragonfly*)
9068 # DragonFly does not have aout. When/if they implement a new
9069 # versioning mechanism, adjust this.
9070 if test -x /usr/bin/objformat; then
9071 objformat=`/usr/bin/objformat`
9074 freebsd[123]*) objformat=aout ;;
9078 version_type=freebsd-$objformat
9079 case $version_type in
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9090 shlibpath_var=LD_LIBRARY_PATH
9093 shlibpath_overrides_runpath=yes
9095 freebsd3.[01]* | freebsdelf3.[01]*)
9096 shlibpath_overrides_runpath=yes
9097 hardcode_into_libs=yes
9099 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9100 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9101 shlibpath_overrides_runpath=no
9102 hardcode_into_libs=yes
9104 freebsd*) # from 4.6 on
9105 shlibpath_overrides_runpath=yes
9106 hardcode_into_libs=yes
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 hardcode_into_libs=yes
9121 hpux9* | hpux10* | hpux11*)
9122 # Give a soname corresponding to the major version so that dld.sl refuses to
9123 # link against other versions.
9130 hardcode_into_libs=yes
9131 dynamic_linker="$host_os dld.so"
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 if test "X$HPUX_IA64_MODE" = X32; then
9137 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9139 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9145 hardcode_into_libs=yes
9146 dynamic_linker="$host_os dld.sl"
9147 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9156 dynamic_linker="$host_os dld.sl"
9157 shlibpath_var=SHLIB_PATH
9158 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9163 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9164 postinstall_cmds='chmod 555 $lib'
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 shlibpath_overrides_runpath=no
9176 hardcode_into_libs=yes
9179 irix5* | irix6* | nonstopux*)
9181 nonstopux*) version_type=nonstopux ;;
9183 if test "$lt_cv_prog_gnu_ld" = yes; then
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9194 irix5* | nonstopux*)
9198 case $LD in # libtool.m4 will add one of these switches to LD
9199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9200 libsuff= shlibsuff= libmagic=32-bit;;
9201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9202 libsuff=32 shlibsuff=N32 libmagic=N32;;
9203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9205 *) libsuff= shlibsuff= libmagic=never-match;;
9209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9210 shlibpath_overrides_runpath=no
9211 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9212 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9213 hardcode_into_libs=yes
9216 # No shared lib support for Linux oldld, aout, or coff.
9217 linux*oldld* | linux*aout* | linux*coff*)
9221 # This must be Linux ELF.
9222 linux* | k*bsd*-gnu)
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 shlibpath_overrides_runpath=no
9231 # This implies no fast_install, which is unacceptable.
9232 # Some rework will be needed to allow for fast_install
9233 # before this can be enabled.
9234 hardcode_into_libs=yes
9236 # Append ld.so.conf contents to the search path
9237 if test -f /etc/ld.so.conf; then
9238 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' ' '`
9239 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9242 # We used to test for /lib/ld.so.1 and disable shared libraries on
9243 # powerpc, because MkLinux only supported shared libraries with the
9244 # GNU dynamic linker. Since this was broken with cross compilers,
9245 # most powerpc-linux boxes support dynamic linking these days and
9246 # people can always --disable-shared, the test was removed, and we
9247 # assume the GNU/Linux dynamic linker is in use.
9248 dynamic_linker='GNU/Linux ld.so'
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9256 soname_spec='${libname}${release}${shared_ext}$major'
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=no
9259 hardcode_into_libs=yes
9260 dynamic_linker='NetBSD ld.elf_so'
9267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9270 dynamic_linker='NetBSD (a.out) ld.so'
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 dynamic_linker='NetBSD ld.elf_so'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9278 hardcode_into_libs=yes
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=yes
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 shlibpath_overrides_runpath=yes
9300 sys_lib_dlsearch_path_spec="/usr/lib"
9302 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9304 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9305 *) need_version=no ;;
9307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9312 openbsd2.[89] | openbsd2.[89].*)
9313 shlibpath_overrides_runpath=no
9316 shlibpath_overrides_runpath=yes
9320 shlibpath_overrides_runpath=yes
9325 libname_spec='$name'
9328 library_names_spec='$libname${shared_ext} $libname.a'
9329 dynamic_linker='OS/2 ld.exe'
9330 shlibpath_var=LIBPATH
9333 osf3* | osf4* | osf5*)
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9341 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 shlibpath_var=LD_LIBRARY_PATH
9351 shlibpath_overrides_runpath=yes
9352 hardcode_into_libs=yes
9353 # ldd complains unless libraries are executable
9354 postinstall_cmds='chmod +x $lib'
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9361 shlibpath_var=LD_LIBRARY_PATH
9362 shlibpath_overrides_runpath=yes
9363 if test "$with_gnu_ld" = yes; then
9371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372 soname_spec='${libname}${release}${shared_ext}$major'
9373 shlibpath_var=LD_LIBRARY_PATH
9374 case $host_vendor in
9376 shlibpath_overrides_runpath=no
9378 export_dynamic_flag_spec='${wl}-Blargedynsym'
9379 runpath_var=LD_RUN_PATH
9387 shlibpath_overrides_runpath=no
9388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9394 if test -d /usr/nec ;then
9396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9397 soname_spec='$libname${shared_ext}.$major'
9398 shlibpath_var=LD_LIBRARY_PATH
9402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9403 version_type=freebsd-elf
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9407 soname_spec='${libname}${release}${shared_ext}$major'
9408 shlibpath_var=LD_LIBRARY_PATH
9409 hardcode_into_libs=yes
9410 if test "$with_gnu_ld" = yes; then
9411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9412 shlibpath_overrides_runpath=no
9414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9415 shlibpath_overrides_runpath=yes
9418 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9422 sys_lib_dlsearch_path_spec='/usr/lib'
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 shlibpath_var=LD_LIBRARY_PATH
9436 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9437 echo "${ECHO_T}$dynamic_linker" >&6; }
9438 test "$dynamic_linker" = no && can_build_shared=no
9440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9441 if test "$GCC" = yes; then
9442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9445 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9448 if test -n "$hardcode_libdir_flag_spec" || \
9449 test -n "$runpath_var" || \
9450 test "X$hardcode_automatic" = "Xyes" ; then
9452 # We can hardcode non-existant directories.
9453 if test "$hardcode_direct" != no &&
9454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9455 # have to relink, otherwise we might link with an installed library
9456 # when we should be linking with a yet-to-be-installed one
9457 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9458 test "$hardcode_minus_L" != no; then
9459 # Linking always hardcodes the temporary library directory.
9460 hardcode_action=relink
9462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9463 hardcode_action=immediate
9466 # We cannot hardcode anything, or else we can only hardcode existing
9468 hardcode_action=unsupported
9470 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9471 echo "${ECHO_T}$hardcode_action" >&6; }
9473 if test "$hardcode_action" = relink; then
9474 # Fast installation is not supported
9475 enable_fast_install=no
9476 elif test "$shlibpath_overrides_runpath" = yes ||
9477 test "$enable_shared" = no; then
9478 # Fast installation is not necessary
9479 enable_fast_install=needless
9484 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9485 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9486 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9487 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9488 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9489 { echo "$as_me:$LINENO: result: yes" >&5
9490 echo "${ECHO_T}yes" >&6; }
9492 # FIXME - insert some real tests, host_os isn't really good enough
9495 if test -n "$STRIP" ; then
9496 striplib="$STRIP -x"
9497 { echo "$as_me:$LINENO: result: yes" >&5
9498 echo "${ECHO_T}yes" >&6; }
9500 { echo "$as_me:$LINENO: result: no" >&5
9501 echo "${ECHO_T}no" >&6; }
9505 { echo "$as_me:$LINENO: result: no" >&5
9506 echo "${ECHO_T}no" >&6; }
9511 if test "x$enable_dlopen" != xyes; then
9512 enable_dlopen=unknown
9513 enable_dlopen_self=unknown
9514 enable_dlopen_self_static=unknown
9521 lt_cv_dlopen="load_add_on"
9523 lt_cv_dlopen_self=yes
9527 lt_cv_dlopen="LoadLibrary"
9532 lt_cv_dlopen="dlopen"
9537 # if libdl is installed we need to link against it
9538 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9539 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9540 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 ac_check_lib_save_LIBS=$LIBS
9545 cat >conftest.$ac_ext <<_ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (ac_try="$ac_link"
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_link") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest$ac_exeext &&
9584 $as_test_x conftest$ac_exeext; then
9585 ac_cv_lib_dl_dlopen=yes
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9590 ac_cv_lib_dl_dlopen=no
9593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9594 conftest$ac_exeext conftest.$ac_ext
9595 LIBS=$ac_check_lib_save_LIBS
9597 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9599 if test $ac_cv_lib_dl_dlopen = yes; then
9600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9605 lt_cv_dlopen_self=yes
9612 { echo "$as_me:$LINENO: checking for shl_load" >&5
9613 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9614 if test "${ac_cv_func_shl_load+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 cat >conftest.$ac_ext <<_ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9625 #define shl_load innocuous_shl_load
9627 /* System header to define __stub macros and hopefully few prototypes,
9628 which can conflict with char shl_load (); below.
9629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9630 <limits.h> exists even on freestanding compilers. */
9633 # include <limits.h>
9635 # include <assert.h>
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9647 /* The GNU C library defines this for functions which it implements
9648 to always fail with ENOSYS. Some functions are actually named
9649 something starting with __ and the normal name is an alias. */
9650 #if defined __stub_shl_load || defined __stub___shl_load
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && {
9676 test -z "$ac_c_werror_flag" ||
9677 test ! -s conftest.err
9678 } && test -s conftest$ac_exeext &&
9679 $as_test_x conftest$ac_exeext; then
9680 ac_cv_func_shl_load=yes
9682 echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ac_cv_func_shl_load=no
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689 conftest$ac_exeext conftest.$ac_ext
9691 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9692 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9693 if test $ac_cv_func_shl_load = yes; then
9694 lt_cv_dlopen="shl_load"
9696 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9697 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9698 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 ac_check_lib_save_LIBS=$LIBS
9703 cat >conftest.$ac_ext <<_ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9710 /* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply. */
9725 rm -f conftest.$ac_objext conftest$ac_exeext
9726 if { (ac_try="$ac_link"
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_link") 2>conftest.er1
9734 grep -v '^ *+' conftest.er1 >conftest.err
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } && {
9739 test -z "$ac_c_werror_flag" ||
9740 test ! -s conftest.err
9741 } && test -s conftest$ac_exeext &&
9742 $as_test_x conftest$ac_exeext; then
9743 ac_cv_lib_dld_shl_load=yes
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.$ac_ext >&5
9748 ac_cv_lib_dld_shl_load=no
9751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9755 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9756 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9757 if test $ac_cv_lib_dld_shl_load = yes; then
9758 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9760 { echo "$as_me:$LINENO: checking for dlopen" >&5
9761 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9762 if test "${ac_cv_func_dlopen+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 cat >conftest.$ac_ext <<_ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9771 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9773 #define dlopen innocuous_dlopen
9775 /* System header to define __stub macros and hopefully few prototypes,
9776 which can conflict with char dlopen (); below.
9777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778 <limits.h> exists even on freestanding compilers. */
9781 # include <limits.h>
9783 # include <assert.h>
9788 /* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
9795 /* The GNU C library defines this for functions which it implements
9796 to always fail with ENOSYS. Some functions are actually named
9797 something starting with __ and the normal name is an alias. */
9798 #if defined __stub_dlopen || defined __stub___dlopen
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9819 grep -v '^ *+' conftest.er1 >conftest.err
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest$ac_exeext &&
9827 $as_test_x conftest$ac_exeext; then
9828 ac_cv_func_dlopen=yes
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_cv_func_dlopen=no
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837 conftest$ac_exeext conftest.$ac_ext
9839 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9840 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9841 if test $ac_cv_func_dlopen = yes; then
9842 lt_cv_dlopen="dlopen"
9844 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9845 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 ac_check_lib_save_LIBS=$LIBS
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_link") 2>conftest.er1
9882 grep -v '^ *+' conftest.er1 >conftest.err
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && {
9887 test -z "$ac_c_werror_flag" ||
9888 test ! -s conftest.err
9889 } && test -s conftest$ac_exeext &&
9890 $as_test_x conftest$ac_exeext; then
9891 ac_cv_lib_dl_dlopen=yes
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_cv_lib_dl_dlopen=no
9899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9900 conftest$ac_exeext conftest.$ac_ext
9901 LIBS=$ac_check_lib_save_LIBS
9903 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9904 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9905 if test $ac_cv_lib_dl_dlopen = yes; then
9906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9908 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9909 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9910 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 ac_check_lib_save_LIBS=$LIBS
9915 cat >conftest.$ac_ext <<_ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9922 /* Override any GCC internal prototype to avoid an error.
9923 Use char because int might match the return type of a GCC
9924 builtin and then its argument prototype would still apply. */
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_link") 2>conftest.er1
9946 grep -v '^ *+' conftest.er1 >conftest.err
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } && {
9951 test -z "$ac_c_werror_flag" ||
9952 test ! -s conftest.err
9953 } && test -s conftest$ac_exeext &&
9954 $as_test_x conftest$ac_exeext; then
9955 ac_cv_lib_svld_dlopen=yes
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_cv_lib_svld_dlopen=no
9963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9964 conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_lib_save_LIBS
9967 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9968 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9969 if test $ac_cv_lib_svld_dlopen = yes; then
9970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9972 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9973 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9974 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 ac_check_lib_save_LIBS=$LIBS
9979 cat >conftest.$ac_ext <<_ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (ac_try="$ac_link"
10003 case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_link") 2>conftest.er1
10010 grep -v '^ *+' conftest.er1 >conftest.err
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest$ac_exeext &&
10018 $as_test_x conftest$ac_exeext; then
10019 ac_cv_lib_dld_dld_link=yes
10021 echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 ac_cv_lib_dld_dld_link=no
10027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10031 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10032 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10033 if test $ac_cv_lib_dld_dld_link = yes; then
10034 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10055 if test "x$lt_cv_dlopen" != xno; then
10061 case $lt_cv_dlopen in
10063 save_CPPFLAGS="$CPPFLAGS"
10064 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10066 save_LDFLAGS="$LDFLAGS"
10067 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10070 LIBS="$lt_cv_dlopen_libs $LIBS"
10072 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10073 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10074 if test "${lt_cv_dlopen_self+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 if test "$cross_compiling" = yes; then :
10078 lt_cv_dlopen_self=cross
10080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10081 lt_status=$lt_dlunknown
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10083 "configure"
10084 #include "confdefs.h"
10093 # define LT_DLGLOBAL RTLD_GLOBAL
10096 # define LT_DLGLOBAL DL_GLOBAL
10098 # define LT_DLGLOBAL 0
10102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10103 find out it does not work in some platform. */
10104 #ifndef LT_DLLAZY_OR_NOW
10106 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10109 # define LT_DLLAZY_OR_NOW DL_LAZY
10112 # define LT_DLLAZY_OR_NOW RTLD_NOW
10115 # define LT_DLLAZY_OR_NOW DL_NOW
10117 # define LT_DLLAZY_OR_NOW 0
10125 extern "C" void exit (int);
10128 void fnord() { int i=42;}
10131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10132 int status = $lt_dlunknown;
10136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10138 /* dlclose (self); */
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10151 (./conftest; exit; ) >&5 2>/dev/null
10153 case x$lt_status in
10154 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10155 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10156 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10159 # compilation failed
10160 lt_cv_dlopen_self=no
10167 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10168 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10170 if test "x$lt_cv_dlopen_self" = xyes; then
10171 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10172 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10173 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10174 if test "${lt_cv_dlopen_self_static+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 if test "$cross_compiling" = yes; then :
10178 lt_cv_dlopen_self_static=cross
10180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10181 lt_status=$lt_dlunknown
10182 cat > conftest.$ac_ext <<EOF
10183 #line 10183 "configure"
10184 #include "confdefs.h"
10193 # define LT_DLGLOBAL RTLD_GLOBAL
10196 # define LT_DLGLOBAL DL_GLOBAL
10198 # define LT_DLGLOBAL 0
10202 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10203 find out it does not work in some platform. */
10204 #ifndef LT_DLLAZY_OR_NOW
10206 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10209 # define LT_DLLAZY_OR_NOW DL_LAZY
10212 # define LT_DLLAZY_OR_NOW RTLD_NOW
10215 # define LT_DLLAZY_OR_NOW DL_NOW
10217 # define LT_DLLAZY_OR_NOW 0
10225 extern "C" void exit (int);
10228 void fnord() { int i=42;}
10231 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10232 int status = $lt_dlunknown;
10236 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10237 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10238 /* dlclose (self); */
10246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247 (eval $ac_link) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10251 (./conftest; exit; ) >&5 2>/dev/null
10253 case x$lt_status in
10254 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10255 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10256 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10259 # compilation failed
10260 lt_cv_dlopen_self_static=no
10267 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10268 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10271 CPPFLAGS="$save_CPPFLAGS"
10272 LDFLAGS="$save_LDFLAGS"
10277 case $lt_cv_dlopen_self in
10278 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10279 *) enable_dlopen_self=unknown ;;
10282 case $lt_cv_dlopen_self_static in
10283 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10284 *) enable_dlopen_self_static=unknown ;;
10289 # Report which library types will actually be built
10290 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10291 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10292 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10293 echo "${ECHO_T}$can_build_shared" >&6; }
10295 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10296 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10297 test "$can_build_shared" = "no" && enable_shared=no
10299 # On AIX, shared libraries and static libraries use the same namespace, and
10300 # are all built from PIC.
10303 test "$enable_shared" = yes && enable_static=no
10304 if test -n "$RANLIB"; then
10305 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10306 postinstall_cmds='$RANLIB $lib'
10311 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10312 test "$enable_shared" = yes && enable_static=no
10316 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10317 echo "${ECHO_T}$enable_shared" >&6; }
10319 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10320 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10321 # Make sure either enable_shared or enable_static is yes.
10322 test "$enable_shared" = yes || enable_static=yes
10323 { echo "$as_me:$LINENO: result: $enable_static" >&5
10324 echo "${ECHO_T}$enable_static" >&6; }
10326 # The else clause should only fire when bootstrapping the
10327 # libtool distribution, otherwise you forgot to ship ltmain.sh
10328 # with your package, and you will get complaints that there are
10329 # no rules to generate ltmain.sh.
10330 if test -f "$ltmain"; then
10331 # See if we are running on zsh, and set the options which allow our commands through
10332 # without removal of \ escapes.
10333 if test -n "${ZSH_VERSION+set}" ; then
10334 setopt NO_GLOB_SUBST
10336 # Now quote all the things that may contain metacharacters while being
10337 # careful not to overquote the AC_SUBSTed values. We take copies of the
10338 # variables and quote the copies for generation of the libtool script.
10339 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10341 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10342 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10343 deplibs_check_method reload_flag reload_cmds need_locks \
10344 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10345 lt_cv_sys_global_symbol_to_c_name_address \
10346 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10347 old_postinstall_cmds old_postuninstall_cmds \
10351 lt_prog_compiler_wl \
10352 lt_prog_compiler_pic \
10353 lt_prog_compiler_static \
10354 lt_prog_compiler_no_builtin_flag \
10355 export_dynamic_flag_spec \
10356 thread_safe_flag_spec \
10357 whole_archive_flag_spec \
10358 enable_shared_with_static_runtimes \
10360 old_archive_from_new_cmds \
10365 compiler_lib_search_path \
10367 archive_expsym_cmds \
10369 postuninstall_cmds \
10370 old_archive_from_expsyms_cmds \
10371 allow_undefined_flag \
10372 no_undefined_flag \
10373 export_symbols_cmds \
10374 hardcode_libdir_flag_spec \
10375 hardcode_libdir_flag_spec_ld \
10376 hardcode_libdir_separator \
10377 hardcode_automatic \
10379 module_expsym_cmds \
10380 lt_cv_prog_compiler_c_o \
10382 include_expsyms; do
10385 old_archive_cmds | \
10386 old_archive_from_new_cmds | \
10388 archive_expsym_cmds | \
10390 module_expsym_cmds | \
10391 old_archive_from_expsyms_cmds | \
10392 export_symbols_cmds | \
10393 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10394 postinstall_cmds | postuninstall_cmds | \
10395 old_postinstall_cmds | old_postuninstall_cmds | \
10396 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10397 # Double-quote double-evaled strings.
10398 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10407 *'\$0 --fallback-echo"')
10408 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10412 cfgfile="${ofile}T"
10413 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10415 { echo "$as_me:$LINENO: creating $ofile" >&5
10416 echo "$as_me: creating $ofile" >&6;}
10418 cat <<__EOF__ >> "$cfgfile"
10421 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10422 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10423 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10425 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10426 # Free Software Foundation, Inc.
10428 # This file is part of GNU Libtool:
10429 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10431 # This program is free software; you can redistribute it and/or modify
10432 # it under the terms of the GNU General Public License as published by
10433 # the Free Software Foundation; either version 2 of the License, or
10434 # (at your option) any later version.
10436 # This program is distributed in the hope that it will be useful, but
10437 # WITHOUT ANY WARRANTY; without even the implied warranty of
10438 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10439 # General Public License for more details.
10441 # You should have received a copy of the GNU General Public License
10442 # along with this program; if not, write to the Free Software
10443 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10445 # As a special exception to the GNU General Public License, if you
10446 # distribute this file as part of a program that contains a
10447 # configuration script generated by Autoconf, you may include it under
10448 # the same distribution terms that you use for the rest of that program.
10450 # A sed program that does not truncate output.
10453 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10454 Xsed="$SED -e 1s/^X//"
10456 # The HP-UX ksh and POSIX shell print the target directory to stdout
10457 # if CDPATH is set.
10458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10460 # The names of the tagged configurations supported by this script.
10463 # ### BEGIN LIBTOOL CONFIG
10465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10467 # Shell to use when invoking shell scripts.
10470 # Whether or not to build shared libraries.
10471 build_libtool_libs=$enable_shared
10473 # Whether or not to build static libraries.
10474 build_old_libs=$enable_static
10476 # Whether or not to add -lc for building shared libraries.
10477 build_libtool_need_lc=$archive_cmds_need_lc
10479 # Whether or not to disallow shared libs when runtime libs are static
10480 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10482 # Whether or not to optimize for fast installation.
10483 fast_install=$enable_fast_install
10486 host_alias=$host_alias
10490 # The build system.
10491 build_alias=$build_alias
10495 # An echo program that does not interpret backslashes.
10500 AR_FLAGS=$lt_AR_FLAGS
10505 # LTCC compiler flags.
10506 LTCFLAGS=$lt_LTCFLAGS
10508 # A language-specific compiler.
10511 # Is the compiler the GNU C compiler?
10517 # The linker used to build libraries.
10520 # Whether we need hard or soft links.
10523 # A BSD-compatible nm program.
10526 # A symbol stripping program
10529 # Used to examine libraries when file_magic_cmd begins "file"
10530 MAGIC_CMD=$MAGIC_CMD
10532 # Used on cygwin: DLL creation program.
10535 # Used on cygwin: object dumper.
10538 # Used on cygwin: assembler.
10541 # The name of the directory that contains temporary libtool files.
10544 # How to create reloadable object files.
10545 reload_flag=$lt_reload_flag
10546 reload_cmds=$lt_reload_cmds
10548 # How to pass a linker flag through the compiler.
10549 wl=$lt_lt_prog_compiler_wl
10551 # Object file suffix (normally "o").
10552 objext="$ac_objext"
10554 # Old archive suffix (normally "a").
10557 # Shared library suffix (normally ".so").
10558 shrext_cmds='$shrext_cmds'
10560 # Executable file suffix (normally "").
10563 # Additional compiler flags for building library objects.
10564 pic_flag=$lt_lt_prog_compiler_pic
10567 # What is the maximum length of a command?
10568 max_cmd_len=$lt_cv_sys_max_cmd_len
10570 # Does compiler simultaneously support -c and -o options?
10571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10573 # Must we lock files when doing compilation?
10574 need_locks=$lt_need_locks
10576 # Do we need the lib prefix for modules?
10577 need_lib_prefix=$need_lib_prefix
10579 # Do we need a version for libraries?
10580 need_version=$need_version
10582 # Whether dlopen is supported.
10583 dlopen_support=$enable_dlopen
10585 # Whether dlopen of programs is supported.
10586 dlopen_self=$enable_dlopen_self
10588 # Whether dlopen of statically linked programs is supported.
10589 dlopen_self_static=$enable_dlopen_self_static
10591 # Compiler flag to prevent dynamic linking.
10592 link_static_flag=$lt_lt_prog_compiler_static
10594 # Compiler flag to turn off builtin functions.
10595 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10597 # Compiler flag to allow reflexive dlopens.
10598 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10600 # Compiler flag to generate shared objects directly from archives.
10601 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10603 # Compiler flag to generate thread-safe objects.
10604 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10606 # Library versioning type.
10607 version_type=$version_type
10609 # Format of library name prefix.
10610 libname_spec=$lt_libname_spec
10612 # List of archive names. First name is the real one, the rest are links.
10613 # The last name is the one that the linker finds with -lNAME.
10614 library_names_spec=$lt_library_names_spec
10616 # The coded name of the library, if different from the real name.
10617 soname_spec=$lt_soname_spec
10619 # Commands used to build and install an old-style archive.
10621 old_archive_cmds=$lt_old_archive_cmds
10622 old_postinstall_cmds=$lt_old_postinstall_cmds
10623 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10625 # Create an old-style archive from a shared archive.
10626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10628 # Create a temporary old-style archive to link instead of a shared archive.
10629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10631 # Commands used to build and install a shared archive.
10632 archive_cmds=$lt_archive_cmds
10633 archive_expsym_cmds=$lt_archive_expsym_cmds
10634 postinstall_cmds=$lt_postinstall_cmds
10635 postuninstall_cmds=$lt_postuninstall_cmds
10637 # Commands used to build a loadable module (assumed same as above if empty)
10638 module_cmds=$lt_module_cmds
10639 module_expsym_cmds=$lt_module_expsym_cmds
10641 # Commands to strip libraries.
10642 old_striplib=$lt_old_striplib
10643 striplib=$lt_striplib
10645 # Dependencies to place before the objects being linked to create a
10647 predep_objects=$lt_predep_objects
10649 # Dependencies to place after the objects being linked to create a
10651 postdep_objects=$lt_postdep_objects
10653 # Dependencies to place before the objects being linked to create a
10655 predeps=$lt_predeps
10657 # Dependencies to place after the objects being linked to create a
10659 postdeps=$lt_postdeps
10661 # The library search path used internally by the compiler when linking
10662 # a shared library.
10663 compiler_lib_search_path=$lt_compiler_lib_search_path
10665 # Method to check whether dependent libraries are shared objects.
10666 deplibs_check_method=$lt_deplibs_check_method
10668 # Command to use when deplibs_check_method == file_magic.
10669 file_magic_cmd=$lt_file_magic_cmd
10671 # Flag that allows shared libraries with undefined symbols to be built.
10672 allow_undefined_flag=$lt_allow_undefined_flag
10674 # Flag that forces no undefined symbols.
10675 no_undefined_flag=$lt_no_undefined_flag
10677 # Commands used to finish a libtool library installation in a directory.
10678 finish_cmds=$lt_finish_cmds
10680 # Same as above, but a single script fragment to be evaled but not shown.
10681 finish_eval=$lt_finish_eval
10683 # Take the output of nm and produce a listing of raw symbols and C names.
10684 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10686 # Transform the output of nm in a proper C declaration
10687 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10689 # Transform the output of nm in a C name address pair
10690 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10692 # This is the shared library runtime path variable.
10693 runpath_var=$runpath_var
10695 # This is the shared library path variable.
10696 shlibpath_var=$shlibpath_var
10698 # Is shlibpath searched before the hard-coded library search path?
10699 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10701 # How to hardcode a shared library path into an executable.
10702 hardcode_action=$hardcode_action
10704 # Whether we should hardcode library paths into libraries.
10705 hardcode_into_libs=$hardcode_into_libs
10707 # Flag to hardcode \$libdir into a binary during linking.
10708 # This must work even if \$libdir does not exist.
10709 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10711 # If ld is used when linking, flag to hardcode \$libdir into
10712 # a binary during linking. This must work even if \$libdir does
10714 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10716 # Whether we need a single -rpath flag with a separated argument.
10717 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10719 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10720 # resulting binary.
10721 hardcode_direct=$hardcode_direct
10723 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10724 # resulting binary.
10725 hardcode_minus_L=$hardcode_minus_L
10727 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10728 # the resulting binary.
10729 hardcode_shlibpath_var=$hardcode_shlibpath_var
10731 # Set to yes if building a shared library automatically hardcodes DIR into the library
10732 # and all subsequent libraries and executables linked against it.
10733 hardcode_automatic=$hardcode_automatic
10735 # Variables whose values should be saved in libtool wrapper scripts and
10736 # restored at relink time.
10737 variables_saved_for_relink="$variables_saved_for_relink"
10739 # Whether libtool must link a program against all its dependency libraries.
10740 link_all_deplibs=$link_all_deplibs
10742 # Compile-time system search path for libraries
10743 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10745 # Run-time system search path for libraries
10746 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10748 # Fix the shell variable \$srcfile for the compiler.
10749 fix_srcfile_path="$fix_srcfile_path"
10751 # Set to yes if exported symbols are required.
10752 always_export_symbols=$always_export_symbols
10754 # The commands to list exported symbols.
10755 export_symbols_cmds=$lt_export_symbols_cmds
10757 # The commands to extract the exported symbol list from a shared archive.
10758 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10760 # Symbols that should not be listed in the preloaded symbols.
10761 exclude_expsyms=$lt_exclude_expsyms
10763 # Symbols that must always be exported.
10764 include_expsyms=$lt_include_expsyms
10766 # ### END LIBTOOL CONFIG
10773 cat <<\EOF >> "$cfgfile"
10775 # AIX sometimes has problems with the GCC collect2 program. For some
10776 # reason, if we set the COLLECT_NAMES environment variable, the problems
10777 # vanish in a puff of smoke.
10778 if test "X${COLLECT_NAMES+set}" != Xset; then
10780 export COLLECT_NAMES
10786 # We use sed instead of cat because bash on DJGPP gets confused if
10787 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10788 # text mode, it properly converts lines to CR/LF. This bash problem
10789 # is reportedly fixed, but why not run on old versions too?
10790 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10792 mv -f "$cfgfile" "$ofile" || \
10793 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10797 # If there is no Makefile yet, we rely on a make rule to execute
10798 # `config.status --recheck' to rerun these tests and create the
10799 # libtool script then.
10800 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10801 if test -f "$ltmain_in"; then
10802 test -f Makefile && make "$ltmain"
10808 ac_cpp='$CPP $CPPFLAGS'
10809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10816 # Check whether --with-tags was given.
10817 if test "${with_tags+set}" = set; then
10818 withval=$with_tags; tagnames="$withval"
10822 if test -f "$ltmain" && test -n "$tagnames"; then
10823 if test ! -f "${ofile}"; then
10824 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10825 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10828 if test -z "$LTCC"; then
10829 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10830 if test -z "$LTCC"; then
10831 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10832 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10834 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10835 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10838 if test -z "$LTCFLAGS"; then
10839 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10842 # Extract list of available tagged configurations in $ofile.
10843 # Note that this assumes the entire list is on one line.
10844 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10846 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10847 for tagname in $tagnames; do
10849 # Check whether tagname contains only valid characters
10850 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10852 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10853 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10854 { (exit 1); exit 1; }; }
10858 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10860 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10861 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10862 { (exit 1); exit 1; }; }
10865 # Update the list of available tags.
10866 if test -n "$tagname"; then
10867 echo appending configuration tag \"$tagname\" to $ofile
10871 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10872 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10873 (test "X$CXX" != "Xg++"))) ; then
10875 ac_cpp='$CXXCPP $CPPFLAGS'
10876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10883 archive_cmds_need_lc_CXX=no
10884 allow_undefined_flag_CXX=
10885 always_export_symbols_CXX=no
10886 archive_expsym_cmds_CXX=
10887 export_dynamic_flag_spec_CXX=
10888 hardcode_direct_CXX=no
10889 hardcode_libdir_flag_spec_CXX=
10890 hardcode_libdir_flag_spec_ld_CXX=
10891 hardcode_libdir_separator_CXX=
10892 hardcode_minus_L_CXX=no
10893 hardcode_shlibpath_var_CXX=unsupported
10894 hardcode_automatic_CXX=no
10896 module_expsym_cmds_CXX=
10897 link_all_deplibs_CXX=unknown
10898 old_archive_cmds_CXX=$old_archive_cmds
10899 no_undefined_flag_CXX=
10900 whole_archive_flag_spec_CXX=
10901 enable_shared_with_static_runtimes_CXX=no
10903 # Dependencies to place before and after the object being linked:
10904 predep_objects_CXX=
10905 postdep_objects_CXX=
10908 compiler_lib_search_path_CXX=
10910 # Source file extension for C++ test sources.
10913 # Object file extension for compiled C++ test sources.
10917 # Code to be used in simple compile tests
10918 lt_simple_compile_test_code="int some_variable = 0;\n"
10920 # Code to be used in simple link tests
10921 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10925 # If no C compiler was specified, use CC.
10928 # If no C compiler flags were specified, use CFLAGS.
10929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10931 # Allow CC to be a program name with arguments.
10935 # save warnings/boilerplate of simple test code
10936 ac_outfile=conftest.$ac_objext
10937 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10939 _lt_compiler_boilerplate=`cat conftest.err`
10942 ac_outfile=conftest.$ac_objext
10943 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10945 _lt_linker_boilerplate=`cat conftest.err`
10949 # Allow CC to be a program name with arguments.
10954 lt_save_with_gnu_ld=$with_gnu_ld
10955 lt_save_path_LD=$lt_cv_path_LD
10956 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10957 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10959 $as_unset lt_cv_prog_gnu_ld
10961 if test -n "${lt_cv_path_LDCXX+set}"; then
10962 lt_cv_path_LD=$lt_cv_path_LDCXX
10964 $as_unset lt_cv_path_LD
10966 test -z "${LDCXX+set}" || LD=$LDCXX
10970 for cc_temp in $compiler""; do
10972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10978 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10981 # We don't want -fno-exception wen compiling C++ code, so set the
10982 # no_builtin_flag separately
10983 if test "$GXX" = yes; then
10984 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10986 lt_prog_compiler_no_builtin_flag_CXX=
10989 if test "$GXX" = yes; then
10990 # Set up default GNU C++ configuration
10993 # Check whether --with-gnu-ld was given.
10994 if test "${with_gnu_ld+set}" = set; then
10995 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11001 if test "$GCC" = yes; then
11002 # Check if gcc -print-prog-name=ld gives a path.
11003 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11004 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11007 # gcc leaves a trailing carriage return which upsets mingw
11008 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11010 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11013 # Accept absolute paths.
11015 re_direlt='/[^/][^/]*/\.\./'
11016 # Canonicalize the pathname of ld
11017 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11018 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11019 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11021 test -z "$LD" && LD="$ac_prog"
11024 # If it fails, then pretend we aren't using GCC.
11028 # If it is relative, then search for the first ld in PATH.
11029 with_gnu_ld=unknown
11032 elif test "$with_gnu_ld" = yes; then
11033 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11034 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11036 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11037 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11039 if test "${lt_cv_path_LD+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 if test -z "$LD"; then
11043 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11044 for ac_dir in $PATH; do
11046 test -z "$ac_dir" && ac_dir=.
11047 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11048 lt_cv_path_LD="$ac_dir/$ac_prog"
11049 # Check to see if the program is GNU ld. I'd rather use --version,
11050 # but apparently some variants of GNU ld only accept -v.
11051 # Break only if it was the GNU/non-GNU ld that we prefer.
11052 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11053 *GNU* | *'with BFD'*)
11054 test "$with_gnu_ld" != no && break
11057 test "$with_gnu_ld" != yes && break
11064 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11068 LD="$lt_cv_path_LD"
11069 if test -n "$LD"; then
11070 { echo "$as_me:$LINENO: result: $LD" >&5
11071 echo "${ECHO_T}$LD" >&6; }
11073 { echo "$as_me:$LINENO: result: no" >&5
11074 echo "${ECHO_T}no" >&6; }
11076 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11077 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11078 { (exit 1); exit 1; }; }
11079 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11080 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11081 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11085 case `$LD -v 2>&1 </dev/null` in
11086 *GNU* | *'with BFD'*)
11087 lt_cv_prog_gnu_ld=yes
11090 lt_cv_prog_gnu_ld=no
11094 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11095 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11096 with_gnu_ld=$lt_cv_prog_gnu_ld
11100 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11101 # archiving commands below assume that GNU ld is being used.
11102 if test "$with_gnu_ld" = yes; then
11103 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11104 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'
11106 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11107 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11109 # If archive_cmds runs LD, not CC, wlarc should be empty
11110 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11111 # investigate it a little bit more. (MM)
11114 # ancient GNU ld didn't support --whole-archive et. al.
11115 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11116 grep 'no-whole-archive' > /dev/null; then
11117 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11119 whole_archive_flag_spec_CXX=
11125 # A generic and very simple default shared library creation
11126 # command for GNU C++ for the case where it uses the native
11127 # linker, instead of GNU ld. If possible, this setting should
11128 # overridden to take advantage of the native linker features on
11129 # the platform it is being used on.
11130 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11133 # Commands to make compiler produce verbose output that lists
11134 # what "hidden" libraries, object files and flags are used when
11135 # linking a shared library.
11136 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11144 # PORTME: fill in a description of your system's C++ link characteristics
11145 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11146 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11150 # FIXME: insert proper C++ library support
11154 if test "$host_cpu" = ia64; then
11155 # On IA64, the linker does run time linking by default, so we don't
11156 # have to do anything special.
11157 aix_use_runtimelinking=no
11158 exp_sym_flag='-Bexport'
11161 aix_use_runtimelinking=no
11163 # Test if we are trying to use run time linking or normal
11164 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11165 # need to do runtime linking.
11166 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11167 for ld_flag in $LDFLAGS; do
11170 aix_use_runtimelinking=yes
11178 exp_sym_flag='-bexport'
11179 no_entry_flag='-bnoentry'
11182 # When large executables or shared objects are built, AIX ld can
11183 # have problems creating the table of contents. If linking a library
11184 # or program results in "error TOC overflow" add -mminimal-toc to
11185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11188 archive_cmds_CXX=''
11189 hardcode_direct_CXX=yes
11190 hardcode_libdir_separator_CXX=':'
11191 link_all_deplibs_CXX=yes
11193 if test "$GXX" = yes; then
11194 case $host_os in aix4.[012]|aix4.[012].*)
11195 # We only want to do this on AIX 4.2 and lower, the check
11196 # below for broken collect2 doesn't work under 4.3+
11197 collect2name=`${CC} -print-prog-name=collect2`
11198 if test -f "$collect2name" && \
11199 strings "$collect2name" | grep resolve_lib_name >/dev/null
11201 # We have reworked collect2
11202 hardcode_direct_CXX=yes
11204 # We have old collect2
11205 hardcode_direct_CXX=unsupported
11206 # It fails to find uninstalled libraries when the uninstalled
11207 # path is not listed in the libpath. Setting hardcode_minus_L
11208 # to unsupported forces relinking
11209 hardcode_minus_L_CXX=yes
11210 hardcode_libdir_flag_spec_CXX='-L$libdir'
11211 hardcode_libdir_separator_CXX=
11215 shared_flag='-shared'
11216 if test "$aix_use_runtimelinking" = yes; then
11217 shared_flag="$shared_flag "'${wl}-G'
11221 if test "$host_cpu" = ia64; then
11222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11223 # chokes on -Wl,-G. The following line is correct:
11226 if test "$aix_use_runtimelinking" = yes; then
11227 shared_flag='${wl}-G'
11229 shared_flag='${wl}-bM:SRE'
11234 # It seems that -bexpall does not export symbols beginning with
11235 # underscore (_), so it is better to generate a list of symbols to export.
11236 always_export_symbols_CXX=yes
11237 if test "$aix_use_runtimelinking" = yes; then
11238 # Warning - without using the other runtime loading flags (-brtl),
11239 # -berok will link without error, but may produce a broken library.
11240 allow_undefined_flag_CXX='-berok'
11241 # Determine the default libpath from the value encoded in an empty executable.
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (ac_try="$ac_link"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_link") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1 >conftest.err
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_cxx_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest$ac_exeext &&
11274 $as_test_x conftest$ac_exeext; then
11276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11278 # Check for a 64-bit object if we didn't find anything.
11279 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; }
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11289 conftest$ac_exeext conftest.$ac_ext
11290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11292 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11294 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"
11296 if test "$host_cpu" = ia64; then
11297 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11298 allow_undefined_flag_CXX="-z nodefs"
11299 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"
11301 # Determine the default libpath from the value encoded in an empty executable.
11302 cat >conftest.$ac_ext <<_ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_link") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_cxx_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest$ac_exeext &&
11334 $as_test_x conftest$ac_exeext; then
11336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11338 # Check for a 64-bit object if we didn't find anything.
11339 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; }
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11349 conftest$ac_exeext conftest.$ac_ext
11350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11352 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11353 # Warning - without using the other run time loading flags,
11354 # -berok will link without error, but may produce a broken library.
11355 no_undefined_flag_CXX=' ${wl}-bernotok'
11356 allow_undefined_flag_CXX=' ${wl}-berok'
11357 # Exported symbols can be pulled into shared objects from archives
11358 whole_archive_flag_spec_CXX='$convenience'
11359 archive_cmds_need_lc_CXX=yes
11360 # This is similar to how AIX traditionally builds its shared libraries.
11361 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'
11367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11368 allow_undefined_flag_CXX=unsupported
11369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11370 # support --undefined. This deserves some investigation. FIXME
11371 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11378 case $cc_basename in
11380 # FIXME: insert proper C++ library support
11386 cygwin* | mingw* | pw32*)
11387 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11388 # as there is no search path for DLLs.
11389 hardcode_libdir_flag_spec_CXX='-L$libdir'
11390 allow_undefined_flag_CXX=unsupported
11391 always_export_symbols_CXX=no
11392 enable_shared_with_static_runtimes_CXX=yes
11394 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11395 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'
11396 # If the export-symbols file already is a .def file (1st line
11397 # is EXPORTS), use it as is; otherwise, prepend...
11398 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11399 cp $export_symbols $output_objdir/$soname.def;
11401 echo EXPORTS > $output_objdir/$soname.def;
11402 cat $export_symbols >> $output_objdir/$soname.def;
11404 $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'
11409 darwin* | rhapsody*)
11411 rhapsody* | darwin1.[012])
11412 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11415 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11416 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11418 case ${MACOSX_DEPLOYMENT_TARGET} in
11420 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11423 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11429 archive_cmds_need_lc_CXX=no
11430 hardcode_direct_CXX=no
11431 hardcode_automatic_CXX=yes
11432 hardcode_shlibpath_var_CXX=unsupported
11433 whole_archive_flag_spec_CXX=''
11434 link_all_deplibs_CXX=yes
11436 if test "$GXX" = yes ; then
11437 lt_int_apple_cc_single_mod=no
11438 output_verbose_link_cmd='echo'
11439 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11440 lt_int_apple_cc_single_mod=yes
11442 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11443 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11445 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'
11447 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11448 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11449 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11450 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}'
11452 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}'
11454 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}'
11456 case $cc_basename in
11458 output_verbose_link_cmd='echo'
11459 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'
11460 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11462 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}'
11463 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}'
11473 case $cc_basename in
11475 # FIXME: insert proper C++ library support
11479 # Green Hills C++ Compiler
11480 # FIXME: insert proper C++ library support
11484 # FIXME: insert proper C++ library support
11490 # C++ shared libraries reported to be fairly broken before switch to ELF
11494 archive_cmds_need_lc_CXX=no
11496 freebsd* | dragonfly*)
11497 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11505 hardcode_libdir_separator_CXX=:
11506 export_dynamic_flag_spec_CXX='${wl}-E'
11507 hardcode_direct_CXX=yes
11508 hardcode_minus_L_CXX=yes # Not in the search PATH,
11509 # but as the default
11510 # location of the library.
11512 case $cc_basename in
11514 # FIXME: insert proper C++ library support
11518 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'
11519 # Commands to make compiler produce verbose output that lists
11520 # what "hidden" libraries, object files and flags are used when
11521 # linking a shared library.
11523 # There doesn't appear to be a way to prevent this compiler from
11524 # explicitly linking system object files so we need to strip them
11525 # from the output so that they don't get included in the library
11527 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'
11530 if test "$GXX" = yes; then
11531 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'
11533 # FIXME: insert proper C++ library support
11540 if test $with_gnu_ld = no; then
11541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11542 hardcode_libdir_separator_CXX=:
11546 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11549 export_dynamic_flag_spec_CXX='${wl}-E'
11555 hardcode_direct_CXX=no
11556 hardcode_shlibpath_var_CXX=no
11559 hardcode_direct_CXX=yes
11560 hardcode_minus_L_CXX=yes # Not in the search PATH,
11561 # but as the default
11562 # location of the library.
11566 case $cc_basename in
11568 # FIXME: insert proper C++ library support
11574 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11577 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11580 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11583 # Commands to make compiler produce verbose output that lists
11584 # what "hidden" libraries, object files and flags are used when
11585 # linking a shared library.
11587 # There doesn't appear to be a way to prevent this compiler from
11588 # explicitly linking system object files so we need to strip them
11589 # from the output so that they don't get included in the library
11591 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'
11594 if test "$GXX" = yes; then
11595 if test $with_gnu_ld = no; then
11598 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11601 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11604 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'
11609 # FIXME: insert proper C++ library support
11616 hardcode_direct_CXX=no
11617 hardcode_shlibpath_var_CXX=no
11618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11619 export_dynamic_flag_spec_CXX='${wl}-E'
11620 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11621 # Instead, shared libraries are loaded at an image base (0x10000000 by
11622 # default) and relocated if they conflict, which is a slow very memory
11623 # consuming and fragmenting process. To avoid this, we pick a random,
11624 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11625 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11626 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'
11627 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'
11630 case $cc_basename in
11633 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'
11635 # Archives containing C++ object files must be created using
11636 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11637 # necessary to make sure instantiated templates are included
11639 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11642 if test "$GXX" = yes; then
11643 if test "$with_gnu_ld" = no; then
11644 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'
11646 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'
11649 link_all_deplibs_CXX=yes
11652 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11653 hardcode_libdir_separator_CXX=:
11655 linux* | k*bsd*-gnu)
11656 case $cc_basename in
11658 # Kuck and Associates, Inc. (KAI) C++ Compiler
11660 # KCC will only create a shared library if the output file
11661 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11662 # to its proper name (with version) after linking.
11663 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'
11664 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'
11665 # Commands to make compiler produce verbose output that lists
11666 # what "hidden" libraries, object files and flags are used when
11667 # linking a shared library.
11669 # There doesn't appear to be a way to prevent this compiler from
11670 # explicitly linking system object files so we need to strip them
11671 # from the output so that they don't get included in the library
11673 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'
11675 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11678 # Archives containing C++ object files must be created using
11679 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11680 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11685 # version 8.0 and above of icpc choke on multiply defined symbols
11686 # if we add $predep_objects and $postdep_objects, however 7.1 and
11687 # earlier do not add the objects themselves.
11688 case `$CC -V 2>&1` in
11690 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11691 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'
11693 *) # Version 8.0 or newer
11696 ia64*) tmp_idyn=' -i_dynamic';;
11698 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11699 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'
11702 archive_cmds_need_lc_CXX=no
11703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11705 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11708 # Portland Group C++ compiler
11709 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11710 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'
11712 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11713 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11714 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'
11718 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11719 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'
11721 runpath_var=LD_RUN_PATH
11722 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11723 hardcode_libdir_separator_CXX=:
11725 # Commands to make compiler produce verbose output that lists
11726 # what "hidden" libraries, object files and flags are used when
11727 # linking a shared library.
11729 # There doesn't appear to be a way to prevent this compiler from
11730 # explicitly linking system object files so we need to strip them
11731 # from the output so that they don't get included in the library
11733 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'
11738 # FIXME: insert proper C++ library support
11742 # FIXME: insert proper C++ library support
11746 case $cc_basename in
11748 # FIXME: insert proper C++ library support
11752 # FIXME: insert proper C++ library support
11757 netbsd* | netbsdelf*-gnu)
11758 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11759 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11761 hardcode_libdir_flag_spec_CXX='-R$libdir'
11762 hardcode_direct_CXX=yes
11763 hardcode_shlibpath_var_CXX=no
11765 # Workaround some broken pre-1.5 toolchains
11766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11769 # C++ shared libraries are fairly broken
11773 hardcode_direct_CXX=yes
11774 hardcode_shlibpath_var_CXX=no
11775 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11776 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11778 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11779 export_dynamic_flag_spec_CXX='${wl}-E'
11780 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11782 output_verbose_link_cmd='echo'
11785 case $cc_basename in
11787 # Kuck and Associates, Inc. (KAI) C++ Compiler
11789 # KCC will only create a shared library if the output file
11790 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11791 # to its proper name (with version) after linking.
11792 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'
11794 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11795 hardcode_libdir_separator_CXX=:
11797 # Archives containing C++ object files must be created using
11798 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11799 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11803 # Rational C++ 2.4.1
11804 # FIXME: insert proper C++ library support
11808 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11809 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'
11811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11812 hardcode_libdir_separator_CXX=:
11814 # Commands to make compiler produce verbose output that lists
11815 # what "hidden" libraries, object files and flags are used when
11816 # linking a shared library.
11818 # There doesn't appear to be a way to prevent this compiler from
11819 # explicitly linking system object files so we need to strip them
11820 # from the output so that they don't get included in the library
11822 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'
11825 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11826 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11827 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'
11829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11830 hardcode_libdir_separator_CXX=:
11832 # Commands to make compiler produce verbose output that lists
11833 # what "hidden" libraries, object files and flags are used when
11834 # linking a shared library.
11835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11838 # FIXME: insert proper C++ library support
11845 case $cc_basename in
11847 # Kuck and Associates, Inc. (KAI) C++ Compiler
11849 # KCC will only create a shared library if the output file
11850 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11851 # to its proper name (with version) after linking.
11852 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'
11854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11855 hardcode_libdir_separator_CXX=:
11857 # Archives containing C++ object files must be created using
11858 # the KAI C++ compiler.
11859 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11862 # Rational C++ 2.4.1
11863 # FIXME: insert proper C++ library support
11867 allow_undefined_flag_CXX=' -expect_unresolved \*'
11868 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'
11869 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11870 echo "-hidden">> $lib.exp~
11871 $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~
11874 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11875 hardcode_libdir_separator_CXX=:
11877 # Commands to make compiler produce verbose output that lists
11878 # what "hidden" libraries, object files and flags are used when
11879 # linking a shared library.
11881 # There doesn't appear to be a way to prevent this compiler from
11882 # explicitly linking system object files so we need to strip them
11883 # from the output so that they don't get included in the library
11885 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'
11888 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11889 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11890 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'
11892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11893 hardcode_libdir_separator_CXX=:
11895 # Commands to make compiler produce verbose output that lists
11896 # what "hidden" libraries, object files and flags are used when
11897 # linking a shared library.
11898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11901 # FIXME: insert proper C++ library support
11908 # FIXME: insert proper C++ library support
11912 case $cc_basename in
11915 # FIXME: insert proper C++ library support
11920 # FIXME: insert proper C++ library support
11924 # FIXME: insert proper C++ library support
11930 case $cc_basename in
11932 # Sun C++ 4.2, 5.x and Centerline C++
11933 archive_cmds_need_lc_CXX=yes
11934 no_undefined_flag_CXX=' -zdefs'
11935 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11936 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11937 $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'
11939 hardcode_libdir_flag_spec_CXX='-R$libdir'
11940 hardcode_shlibpath_var_CXX=no
11942 solaris2.[0-5] | solaris2.[0-5].*) ;;
11944 # The C++ compiler is used as linker so we must use $wl
11945 # flag to pass the commands to the underlying system
11946 # linker. We must also pass each convience library through
11947 # to the system linker between allextract/defaultextract.
11948 # The C++ compiler will combine linker options so we
11949 # cannot just pass the convience library names through
11951 # Supported since Solaris 2.6 (maybe 2.5.1?)
11952 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'
11955 link_all_deplibs_CXX=yes
11957 output_verbose_link_cmd='echo'
11959 # Archives containing C++ object files must be created using
11960 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11961 # necessary to make sure instantiated templates are included
11963 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11966 # Green Hills C++ Compiler
11967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11969 # The C++ compiler must be used to create the archive.
11970 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11973 # GNU C++ compiler with Solaris linker
11974 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11975 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11976 if $CC --version | grep -v '^2\.7' > /dev/null; then
11977 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11978 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11979 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11981 # Commands to make compiler produce verbose output that lists
11982 # what "hidden" libraries, object files and flags are used when
11983 # linking a shared library.
11984 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11986 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11988 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11989 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11990 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11992 # Commands to make compiler produce verbose output that lists
11993 # what "hidden" libraries, object files and flags are used when
11994 # linking a shared library.
11995 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11998 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12004 no_undefined_flag_CXX='${wl}-z,text'
12005 archive_cmds_need_lc_CXX=no
12006 hardcode_shlibpath_var_CXX=no
12007 runpath_var='LD_RUN_PATH'
12009 case $cc_basename in
12011 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12012 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12015 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12016 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12020 sysv5* | sco3.2v5* | sco5v6*)
12021 # Note: We can NOT use -z defs as we might desire, because we do not
12022 # link with -lc, and that would cause any symbols used from libc to
12023 # always be unresolved, which means just about no library would
12024 # ever link correctly. If we're not using GNU ld we use -z text
12025 # though, which does catch some bad symbols but isn't as heavy-handed
12027 # For security reasons, it is highly recommended that you always
12028 # use absolute paths for naming shared libraries, and exclude the
12029 # DT_RUNPATH tag from executables and libraries. But doing so
12030 # requires that you compile everything twice, which is a pain.
12031 # So that behaviour is only enabled if SCOABSPATH is set to a
12032 # non-empty value in the environment. Most likely only useful for
12033 # creating official distributions of packages.
12034 # This is a hack until libtool officially supports absolute path
12035 # names for shared libraries.
12036 no_undefined_flag_CXX='${wl}-z,text'
12037 allow_undefined_flag_CXX='${wl}-z,nodefs'
12038 archive_cmds_need_lc_CXX=no
12039 hardcode_shlibpath_var_CXX=no
12040 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12041 hardcode_libdir_separator_CXX=':'
12042 link_all_deplibs_CXX=yes
12043 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12044 runpath_var='LD_RUN_PATH'
12046 case $cc_basename in
12048 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12049 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12052 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12053 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12058 case $cc_basename in
12060 # NonStop-UX NCC 3.20
12061 # FIXME: insert proper C++ library support
12065 # FIXME: insert proper C++ library support
12071 # FIXME: insert proper C++ library support
12075 # FIXME: insert proper C++ library support
12079 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12080 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12081 test "$ld_shlibs_CXX" = no && can_build_shared=no
12087 cat > conftest.$ac_ext <<EOF
12091 Foo (void) { a = 0; }
12097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098 (eval $ac_compile) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; then
12102 # Parse the compiler output and extract the necessary
12103 # objects, libraries and library flags.
12105 # Sentinel used to keep track of whether or not we are before
12106 # the conftest object file.
12107 pre_test_object_deps_done=no
12109 # The `*' in the case matches for architectures that use `case' in
12110 # $output_verbose_cmd can trigger glob expansion during the loop
12111 # eval without this substitution.
12112 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12114 for p in `eval $output_verbose_link_cmd`; do
12118 # Some compilers place space between "-{L,R}" and the path.
12119 # Remove the space.
12120 if test $p = "-L" \
12121 || test $p = "-R"; then
12128 if test "$pre_test_object_deps_done" = no; then
12131 # Internal compiler library paths should come after those
12132 # provided the user. The postdeps already come after the
12133 # user supplied libs so there is no need to process them.
12134 if test -z "$compiler_lib_search_path_CXX"; then
12135 compiler_lib_search_path_CXX="${prev}${p}"
12137 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12140 # The "-l" case would never come before the object being
12141 # linked, so don't bother handling this case.
12144 if test -z "$postdeps_CXX"; then
12145 postdeps_CXX="${prev}${p}"
12147 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12153 # This assumes that the test object file only shows up
12154 # once in the compiler output.
12155 if test "$p" = "conftest.$objext"; then
12156 pre_test_object_deps_done=yes
12160 if test "$pre_test_object_deps_done" = no; then
12161 if test -z "$predep_objects_CXX"; then
12162 predep_objects_CXX="$p"
12164 predep_objects_CXX="$predep_objects_CXX $p"
12167 if test -z "$postdep_objects_CXX"; then
12168 postdep_objects_CXX="$p"
12170 postdep_objects_CXX="$postdep_objects_CXX $p"
12175 *) ;; # Ignore the rest.
12183 echo "libtool.m4: error: problem compiling CXX test program"
12186 $rm -f confest.$objext
12188 # PORTME: override above test on systems where it is broken
12191 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12192 # hack all around it, let's just trust "g++" to DTRT.
12193 predep_objects_CXX=
12194 postdep_objects_CXX=
12199 case $cc_basename in
12201 # Adding this requires a known-good setup of shared libraries for
12202 # Sun compiler versions before 5.6, else PIC objects from an old
12203 # archive will be linked into the output, leading to subtle bugs.
12204 postdeps_CXX='-lCstd -lCrun'
12211 case " $postdeps_CXX " in
12212 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12215 lt_prog_compiler_wl_CXX=
12216 lt_prog_compiler_pic_CXX=
12217 lt_prog_compiler_static_CXX=
12219 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12220 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12222 # C++ specific cases for pic, static, wl, etc.
12223 if test "$GXX" = yes; then
12224 lt_prog_compiler_wl_CXX='-Wl,'
12225 lt_prog_compiler_static_CXX='-static'
12229 # All AIX code is PIC.
12230 if test "$host_cpu" = ia64; then
12231 # AIX 5 now supports IA64 processor
12232 lt_prog_compiler_static_CXX='-Bstatic'
12236 # FIXME: we need at least 68020 code to build shared libraries, but
12237 # adding the `-m68020' flag to GCC prevents building anything better,
12239 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12241 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12242 # PIC is the default for these OSes.
12244 mingw* | os2* | pw32*)
12245 # This hack is so that the source file can tell whether it is being
12246 # built for inclusion in a dll (and should export symbols for example).
12247 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12249 darwin* | rhapsody*)
12250 # PIC is the default on this platform
12251 # Common symbols not allowed in MH_DYLIB files
12252 lt_prog_compiler_pic_CXX='-fno-common'
12255 # DJGPP does not support shared libraries at all
12256 lt_prog_compiler_pic_CXX=
12259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12260 # Instead, we relocate shared libraries at runtime.
12263 if test -d /usr/nec; then
12264 lt_prog_compiler_pic_CXX=-Kconform_pic
12268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12269 # not for PA HP-UX.
12274 lt_prog_compiler_pic_CXX='-fPIC'
12279 lt_prog_compiler_pic_CXX='-fPIC'
12285 # All AIX code is PIC.
12286 if test "$host_cpu" = ia64; then
12287 # AIX 5 now supports IA64 processor
12288 lt_prog_compiler_static_CXX='-Bstatic'
12290 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12294 case $cc_basename in
12296 # Green Hills C++ Compiler
12297 # _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"
12302 # PIC is the default on this platform
12303 # Common symbols not allowed in MH_DYLIB files
12304 case $cc_basename in
12306 lt_prog_compiler_pic_CXX='-qnocommon'
12307 lt_prog_compiler_wl_CXX='-Wl,'
12312 case $cc_basename in
12314 lt_prog_compiler_pic_CXX='-KPIC'
12317 # Green Hills C++ Compiler
12318 lt_prog_compiler_pic_CXX='-pic'
12324 freebsd* | dragonfly*)
12325 # FreeBSD uses GNU C++
12327 hpux9* | hpux10* | hpux11*)
12328 case $cc_basename in
12330 lt_prog_compiler_wl_CXX='-Wl,'
12331 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12332 if test "$host_cpu" != ia64; then
12333 lt_prog_compiler_pic_CXX='+Z'
12337 lt_prog_compiler_wl_CXX='-Wl,'
12338 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12344 lt_prog_compiler_pic_CXX='+Z'
12353 # This is c89, which is MS Visual C++ (no shared libs)
12354 # Anyone wants to do a port?
12356 irix5* | irix6* | nonstopux*)
12357 case $cc_basename in
12359 lt_prog_compiler_wl_CXX='-Wl,'
12360 lt_prog_compiler_static_CXX='-non_shared'
12361 # CC pic flag -KPIC is the default.
12367 linux* | k*bsd*-gnu)
12368 case $cc_basename in
12371 lt_prog_compiler_wl_CXX='--backend -Wl,'
12372 lt_prog_compiler_pic_CXX='-fPIC'
12376 lt_prog_compiler_wl_CXX='-Wl,'
12377 lt_prog_compiler_pic_CXX='-KPIC'
12378 lt_prog_compiler_static_CXX='-static'
12381 # Portland Group C++ compiler.
12382 lt_prog_compiler_wl_CXX='-Wl,'
12383 lt_prog_compiler_pic_CXX='-fpic'
12384 lt_prog_compiler_static_CXX='-Bstatic'
12388 # Make sure the PIC flag is empty. It appears that all Alpha
12389 # Linux and Compaq Tru64 Unix objects are PIC.
12390 lt_prog_compiler_pic_CXX=
12391 lt_prog_compiler_static_CXX='-non_shared'
12402 case $cc_basename in
12404 lt_prog_compiler_pic_CXX='-W c,exportall'
12410 netbsd* | netbsdelf*-gnu)
12412 osf3* | osf4* | osf5*)
12413 case $cc_basename in
12415 lt_prog_compiler_wl_CXX='--backend -Wl,'
12418 # Rational C++ 2.4.1
12419 lt_prog_compiler_pic_CXX='-pic'
12422 # Digital/Compaq C++
12423 lt_prog_compiler_wl_CXX='-Wl,'
12424 # Make sure the PIC flag is empty. It appears that all Alpha
12425 # Linux and Compaq Tru64 Unix objects are PIC.
12426 lt_prog_compiler_pic_CXX=
12427 lt_prog_compiler_static_CXX='-non_shared'
12436 case $cc_basename in
12438 # Sun C++ 4.2, 5.x and Centerline C++
12439 lt_prog_compiler_pic_CXX='-KPIC'
12440 lt_prog_compiler_static_CXX='-Bstatic'
12441 lt_prog_compiler_wl_CXX='-Qoption ld '
12444 # Green Hills C++ Compiler
12445 lt_prog_compiler_pic_CXX='-PIC'
12452 case $cc_basename in
12455 lt_prog_compiler_pic_CXX='-pic'
12456 lt_prog_compiler_static_CXX='-Bstatic'
12460 lt_prog_compiler_pic_CXX='-pic'
12467 case $cc_basename in
12469 # NonStop-UX NCC 3.20
12470 lt_prog_compiler_pic_CXX='-KPIC'
12476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12477 case $cc_basename in
12479 lt_prog_compiler_wl_CXX='-Wl,'
12480 lt_prog_compiler_pic_CXX='-KPIC'
12481 lt_prog_compiler_static_CXX='-Bstatic'
12488 lt_prog_compiler_can_build_shared_CXX=no
12493 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12494 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12497 # Check to make sure the PIC flag actually works.
12499 if test -n "$lt_prog_compiler_pic_CXX"; then
12501 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12502 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12503 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 lt_prog_compiler_pic_works_CXX=no
12507 ac_outfile=conftest.$ac_objext
12508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12509 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12510 # Insert the option either (1) after the last *FLAGS variable, or
12511 # (2) before a word containing "conftest.", or (3) at the end.
12512 # Note that $ac_compile itself does not contain backslashes and begins
12513 # with a dollar sign (not a hyphen), so the echo should work correctly.
12514 # The option is referenced via a variable to avoid confusing sed.
12515 lt_compile=`echo "$ac_compile" | $SED \
12516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12518 -e 's:$: $lt_compiler_flag:'`
12519 (eval echo "\"\$as_me:12519: $lt_compile\"" >&5)
12520 (eval "$lt_compile" 2>conftest.err)
12522 cat conftest.err >&5
12523 echo "$as_me:12523: \$? = $ac_status" >&5
12524 if (exit $ac_status) && test -s "$ac_outfile"; then
12525 # The compiler can only warn and ignore the option if not recognized
12526 # So say no if there are warnings other than the usual output.
12527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12529 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12530 lt_prog_compiler_pic_works_CXX=yes
12536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12537 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12539 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12540 case $lt_prog_compiler_pic_CXX in
12542 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12545 lt_prog_compiler_pic_CXX=
12546 lt_prog_compiler_can_build_shared_CXX=no
12551 # For platforms which do not support PIC, -DPIC is meaningless:
12553 lt_prog_compiler_pic_CXX=
12556 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12561 # Check to make sure the static flag actually works.
12563 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12564 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12565 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12566 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 lt_prog_compiler_static_works_CXX=no
12570 save_LDFLAGS="$LDFLAGS"
12571 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12572 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12573 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12574 # The linker can only warn and ignore the option if not recognized
12575 # So say no if there are warnings
12576 if test -s conftest.err; then
12577 # Append any errors to the config.log.
12578 cat conftest.err 1>&5
12579 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12581 if diff conftest.exp conftest.er2 >/dev/null; then
12582 lt_prog_compiler_static_works_CXX=yes
12585 lt_prog_compiler_static_works_CXX=yes
12589 LDFLAGS="$save_LDFLAGS"
12592 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12593 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12595 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12598 lt_prog_compiler_static_CXX=
12602 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12603 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12604 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 lt_cv_prog_compiler_c_o_CXX=no
12608 $rm -r conftest 2>/dev/null
12612 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12614 lt_compiler_flag="-o out/conftest2.$ac_objext"
12615 # Insert the option either (1) after the last *FLAGS variable, or
12616 # (2) before a word containing "conftest.", or (3) at the end.
12617 # Note that $ac_compile itself does not contain backslashes and begins
12618 # with a dollar sign (not a hyphen), so the echo should work correctly.
12619 lt_compile=`echo "$ac_compile" | $SED \
12620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12622 -e 's:$: $lt_compiler_flag:'`
12623 (eval echo "\"\$as_me:12623: $lt_compile\"" >&5)
12624 (eval "$lt_compile" 2>out/conftest.err)
12626 cat out/conftest.err >&5
12627 echo "$as_me:12627: \$? = $ac_status" >&5
12628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12630 # The compiler can only warn and ignore the option if not recognized
12631 # So say no if there are warnings
12632 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12635 lt_cv_prog_compiler_c_o_CXX=yes
12640 # SGI C++ compiler will create directory out/ii_files/ for
12641 # template instantiation
12642 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12643 $rm out/* && rmdir out
12649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12650 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12653 hard_links="nottested"
12654 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12655 # do not overwrite the value of need_locks provided by the user
12656 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12657 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12662 ln conftest.a conftest.b 2>&5 || hard_links=no
12663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12664 { echo "$as_me:$LINENO: result: $hard_links" >&5
12665 echo "${ECHO_T}$hard_links" >&6; }
12666 if test "$hard_links" = no; then
12667 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12668 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12675 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12676 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12681 # If we're using GNU nm, then we don't want the "-C" option.
12682 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12683 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12684 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'
12686 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'
12690 export_symbols_cmds_CXX="$ltdll_cmds"
12693 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'
12695 linux* | k*bsd*-gnu)
12696 link_all_deplibs_CXX=no
12699 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12703 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12704 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12705 test "$ld_shlibs_CXX" = no && can_build_shared=no
12708 # Do we need to explicitly link libc?
12710 case "x$archive_cmds_need_lc_CXX" in
12712 # Assume -lc should be added
12713 archive_cmds_need_lc_CXX=yes
12715 if test "$enable_shared" = yes && test "$GCC" = yes; then
12716 case $archive_cmds_CXX in
12718 # FIXME: we may have to deal with multi-command sequences.
12721 # Test whether the compiler implicitly links with -lc since on some
12722 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12723 # to ld, don't add -lc before -lgcc.
12724 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12725 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12727 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } 2>conftest.err; then
12736 libobjs=conftest.$ac_objext
12738 wl=$lt_prog_compiler_wl_CXX
12739 pic_flag=$lt_prog_compiler_pic_CXX
12745 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12746 allow_undefined_flag_CXX=
12747 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12748 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }
12753 archive_cmds_need_lc_CXX=no
12755 archive_cmds_need_lc_CXX=yes
12757 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12759 cat conftest.err 1>&5
12762 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12763 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12770 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12771 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12772 library_names_spec=
12773 libname_spec='lib$name'
12777 postuninstall_cmds=
12781 shlibpath_overrides_runpath=unknown
12783 dynamic_linker="$host_os ld.so"
12784 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12785 if test "$GCC" = yes; then
12786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12787 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12788 # if the path contains ";" then we assume it to be the separator
12789 # otherwise default to the standard path separator (i.e. ":") - it is
12790 # assumed that no part of a normal pathname contains ";" but that should
12791 # okay in the real world where ";" in dirpaths is itself problematic.
12792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12797 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12799 need_lib_prefix=unknown
12800 hardcode_into_libs=no
12802 # when you set need_version to no, make sure it does not cause -set_version
12803 # flags to be left without arguments
12804 need_version=unknown
12809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12810 shlibpath_var=LIBPATH
12812 # AIX 3 has no versioning support, so we append a major version to the name.
12813 soname_spec='${libname}${release}${shared_ext}$major'
12820 hardcode_into_libs=yes
12821 if test "$host_cpu" = ia64; then
12822 # AIX 5 supports IA64
12823 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12824 shlibpath_var=LD_LIBRARY_PATH
12826 # With GCC up to 2.95.x, collect2 would create an import file
12827 # for dependence libraries. The import file would start with
12828 # the line `#! .'. This would cause the generated library to
12829 # depend on `.', always an invalid library. This was fixed in
12830 # development snapshots of GCC prior to 3.0.
12832 aix4 | aix4.[01] | aix4.[01].*)
12833 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12835 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12838 can_build_shared=no
12842 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12843 # soname into executable. Probably we can add versioning support to
12844 # collect2, so additional links can be useful in future.
12845 if test "$aix_use_runtimelinking" = yes; then
12846 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12847 # instead of lib<name>.a to let people know that these are not
12848 # typical AIX shared libraries.
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851 # We preserve .a as extension for shared libraries through AIX4.2
12852 # and later when we are not doing run time linking.
12853 library_names_spec='${libname}${release}.a $libname.a'
12854 soname_spec='${libname}${release}${shared_ext}$major'
12856 shlibpath_var=LIBPATH
12861 library_names_spec='$libname.ixlibrary $libname.a'
12862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12863 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'
12867 library_names_spec='${libname}${shared_ext}'
12868 dynamic_linker="$host_os ld.so"
12869 shlibpath_var=LIBRARY_PATH
12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876 soname_spec='${libname}${release}${shared_ext}$major'
12877 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12878 shlibpath_var=LD_LIBRARY_PATH
12879 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12880 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12881 # the default ld.so.conf also contains /usr/contrib/lib and
12882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12883 # libtool to hard-code these into programs
12886 cygwin* | mingw* | pw32*)
12887 version_type=windows
12892 case $GCC,$host_os in
12893 yes,cygwin* | yes,mingw* | yes,pw32*)
12894 library_names_spec='$libname.dll.a'
12895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12896 postinstall_cmds='base_file=`basename \${file}`~
12897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12898 dldir=$destdir/`dirname \$dlpath`~
12899 test -d \$dldir || mkdir -p \$dldir~
12900 $install_prog $dir/$dlname \$dldir/$dlname~
12901 chmod a+x \$dldir/$dlname'
12902 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12903 dlpath=$dir/\$dldll~
12905 shlibpath_overrides_runpath=yes
12909 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12910 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12911 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12914 # MinGW DLLs use traditional 'lib' prefix
12915 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12916 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12917 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12918 # It is most probably a Windows format PATH printed by
12919 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12920 # path with ; separators, and with drive letters. We can handle the
12921 # drive letters (cygwin fileutils understands them), so leave them,
12922 # especially as we might pass files found there to a mingw objdump,
12923 # which wouldn't understand a cygwinified path. Ahh.
12924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12930 # pw32 DLLs use 'pw' prefix rather than 'lib'
12931 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12937 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12940 dynamic_linker='Win32 ld.exe'
12941 # FIXME: first we should search . and the directory the executable is in
12945 darwin* | rhapsody*)
12946 dynamic_linker="$host_os dyld"
12947 version_type=darwin
12950 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12951 soname_spec='${libname}${release}${major}$shared_ext'
12952 shlibpath_overrides_runpath=yes
12953 shlibpath_var=DYLD_LIBRARY_PATH
12954 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12955 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12956 if test "$GCC" = yes; then
12957 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"`
12959 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12961 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 shlibpath_var=LD_LIBRARY_PATH
12977 freebsd* | dragonfly*)
12978 # DragonFly does not have aout. When/if they implement a new
12979 # versioning mechanism, adjust this.
12980 if test -x /usr/bin/objformat; then
12981 objformat=`/usr/bin/objformat`
12984 freebsd[123]*) objformat=aout ;;
12985 *) objformat=elf ;;
12988 version_type=freebsd-$objformat
12989 case $version_type in
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13000 shlibpath_var=LD_LIBRARY_PATH
13003 shlibpath_overrides_runpath=yes
13005 freebsd3.[01]* | freebsdelf3.[01]*)
13006 shlibpath_overrides_runpath=yes
13007 hardcode_into_libs=yes
13009 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13010 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13011 shlibpath_overrides_runpath=no
13012 hardcode_into_libs=yes
13014 freebsd*) # from 4.6 on
13015 shlibpath_overrides_runpath=yes
13016 hardcode_into_libs=yes
13025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13026 soname_spec='${libname}${release}${shared_ext}$major'
13027 shlibpath_var=LD_LIBRARY_PATH
13028 hardcode_into_libs=yes
13031 hpux9* | hpux10* | hpux11*)
13032 # Give a soname corresponding to the major version so that dld.sl refuses to
13033 # link against other versions.
13040 hardcode_into_libs=yes
13041 dynamic_linker="$host_os dld.so"
13042 shlibpath_var=LD_LIBRARY_PATH
13043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 if test "X$HPUX_IA64_MODE" = X32; then
13047 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13049 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13055 hardcode_into_libs=yes
13056 dynamic_linker="$host_os dld.sl"
13057 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13060 soname_spec='${libname}${release}${shared_ext}$major'
13061 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13066 dynamic_linker="$host_os dld.sl"
13067 shlibpath_var=SHLIB_PATH
13068 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070 soname_spec='${libname}${release}${shared_ext}$major'
13073 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13074 postinstall_cmds='chmod 555 $lib'
13081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13082 soname_spec='${libname}${release}${shared_ext}$major'
13083 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13084 shlibpath_var=LD_LIBRARY_PATH
13085 shlibpath_overrides_runpath=no
13086 hardcode_into_libs=yes
13089 irix5* | irix6* | nonstopux*)
13091 nonstopux*) version_type=nonstopux ;;
13093 if test "$lt_cv_prog_gnu_ld" = yes; then
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13104 irix5* | nonstopux*)
13105 libsuff= shlibsuff=
13108 case $LD in # libtool.m4 will add one of these switches to LD
13109 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13110 libsuff= shlibsuff= libmagic=32-bit;;
13111 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13112 libsuff=32 shlibsuff=N32 libmagic=N32;;
13113 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13114 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13115 *) libsuff= shlibsuff= libmagic=never-match;;
13119 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13120 shlibpath_overrides_runpath=no
13121 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13122 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13123 hardcode_into_libs=yes
13126 # No shared lib support for Linux oldld, aout, or coff.
13127 linux*oldld* | linux*aout* | linux*coff*)
13131 # This must be Linux ELF.
13132 linux* | k*bsd*-gnu)
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137 soname_spec='${libname}${release}${shared_ext}$major'
13138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=no
13141 # This implies no fast_install, which is unacceptable.
13142 # Some rework will be needed to allow for fast_install
13143 # before this can be enabled.
13144 hardcode_into_libs=yes
13146 # Append ld.so.conf contents to the search path
13147 if test -f /etc/ld.so.conf; then
13148 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' ' '`
13149 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13152 # We used to test for /lib/ld.so.1 and disable shared libraries on
13153 # powerpc, because MkLinux only supported shared libraries with the
13154 # GNU dynamic linker. Since this was broken with cross compilers,
13155 # most powerpc-linux boxes support dynamic linking these days and
13156 # people can always --disable-shared, the test was removed, and we
13157 # assume the GNU/Linux dynamic linker is in use.
13158 dynamic_linker='GNU/Linux ld.so'
13165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13166 soname_spec='${libname}${release}${shared_ext}$major'
13167 shlibpath_var=LD_LIBRARY_PATH
13168 shlibpath_overrides_runpath=no
13169 hardcode_into_libs=yes
13170 dynamic_linker='NetBSD ld.elf_so'
13177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13180 dynamic_linker='NetBSD (a.out) ld.so'
13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13183 soname_spec='${libname}${release}${shared_ext}$major'
13184 dynamic_linker='NetBSD ld.elf_so'
13186 shlibpath_var=LD_LIBRARY_PATH
13187 shlibpath_overrides_runpath=yes
13188 hardcode_into_libs=yes
13193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13194 shlibpath_var=LD_LIBRARY_PATH
13195 shlibpath_overrides_runpath=yes
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 shlibpath_var=LD_LIBRARY_PATH
13205 shlibpath_overrides_runpath=yes
13210 sys_lib_dlsearch_path_spec="/usr/lib"
13212 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13214 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13215 *) need_version=no ;;
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13219 shlibpath_var=LD_LIBRARY_PATH
13220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13222 openbsd2.[89] | openbsd2.[89].*)
13223 shlibpath_overrides_runpath=no
13226 shlibpath_overrides_runpath=yes
13230 shlibpath_overrides_runpath=yes
13235 libname_spec='$name'
13238 library_names_spec='$libname${shared_ext} $libname.a'
13239 dynamic_linker='OS/2 ld.exe'
13240 shlibpath_var=LIBPATH
13243 osf3* | osf4* | osf5*)
13247 soname_spec='${libname}${release}${shared_ext}$major'
13248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13249 shlibpath_var=LD_LIBRARY_PATH
13250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13259 soname_spec='${libname}${release}${shared_ext}$major'
13260 shlibpath_var=LD_LIBRARY_PATH
13261 shlibpath_overrides_runpath=yes
13262 hardcode_into_libs=yes
13263 # ldd complains unless libraries are executable
13264 postinstall_cmds='chmod +x $lib'
13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13270 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=yes
13273 if test "$with_gnu_ld" = yes; then
13281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282 soname_spec='${libname}${release}${shared_ext}$major'
13283 shlibpath_var=LD_LIBRARY_PATH
13284 case $host_vendor in
13286 shlibpath_overrides_runpath=no
13288 export_dynamic_flag_spec='${wl}-Blargedynsym'
13289 runpath_var=LD_RUN_PATH
13297 shlibpath_overrides_runpath=no
13298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13304 if test -d /usr/nec ;then
13306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13307 soname_spec='$libname${shared_ext}.$major'
13308 shlibpath_var=LD_LIBRARY_PATH
13312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13313 version_type=freebsd-elf
13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13317 soname_spec='${libname}${release}${shared_ext}$major'
13318 shlibpath_var=LD_LIBRARY_PATH
13319 hardcode_into_libs=yes
13320 if test "$with_gnu_ld" = yes; then
13321 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13322 shlibpath_overrides_runpath=no
13324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13325 shlibpath_overrides_runpath=yes
13328 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13332 sys_lib_dlsearch_path_spec='/usr/lib'
13337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13338 soname_spec='${libname}${release}${shared_ext}$major'
13339 shlibpath_var=LD_LIBRARY_PATH
13346 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13347 echo "${ECHO_T}$dynamic_linker" >&6; }
13348 test "$dynamic_linker" = no && can_build_shared=no
13350 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13351 if test "$GCC" = yes; then
13352 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13355 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13356 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13357 hardcode_action_CXX=
13358 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13359 test -n "$runpath_var_CXX" || \
13360 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13362 # We can hardcode non-existant directories.
13363 if test "$hardcode_direct_CXX" != no &&
13364 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13365 # have to relink, otherwise we might link with an installed library
13366 # when we should be linking with a yet-to-be-installed one
13367 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13368 test "$hardcode_minus_L_CXX" != no; then
13369 # Linking always hardcodes the temporary library directory.
13370 hardcode_action_CXX=relink
13372 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13373 hardcode_action_CXX=immediate
13376 # We cannot hardcode anything, or else we can only hardcode existing
13378 hardcode_action_CXX=unsupported
13380 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13381 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13383 if test "$hardcode_action_CXX" = relink; then
13384 # Fast installation is not supported
13385 enable_fast_install=no
13386 elif test "$shlibpath_overrides_runpath" = yes ||
13387 test "$enable_shared" = no; then
13388 # Fast installation is not necessary
13389 enable_fast_install=needless
13393 # The else clause should only fire when bootstrapping the
13394 # libtool distribution, otherwise you forgot to ship ltmain.sh
13395 # with your package, and you will get complaints that there are
13396 # no rules to generate ltmain.sh.
13397 if test -f "$ltmain"; then
13398 # See if we are running on zsh, and set the options which allow our commands through
13399 # without removal of \ escapes.
13400 if test -n "${ZSH_VERSION+set}" ; then
13401 setopt NO_GLOB_SUBST
13403 # Now quote all the things that may contain metacharacters while being
13404 # careful not to overquote the AC_SUBSTed values. We take copies of the
13405 # variables and quote the copies for generation of the libtool script.
13406 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13408 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13409 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13410 deplibs_check_method reload_flag reload_cmds need_locks \
13411 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13412 lt_cv_sys_global_symbol_to_c_name_address \
13413 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13414 old_postinstall_cmds old_postuninstall_cmds \
13418 lt_prog_compiler_wl_CXX \
13419 lt_prog_compiler_pic_CXX \
13420 lt_prog_compiler_static_CXX \
13421 lt_prog_compiler_no_builtin_flag_CXX \
13422 export_dynamic_flag_spec_CXX \
13423 thread_safe_flag_spec_CXX \
13424 whole_archive_flag_spec_CXX \
13425 enable_shared_with_static_runtimes_CXX \
13426 old_archive_cmds_CXX \
13427 old_archive_from_new_cmds_CXX \
13428 predep_objects_CXX \
13429 postdep_objects_CXX \
13432 compiler_lib_search_path_CXX \
13434 archive_expsym_cmds_CXX \
13435 postinstall_cmds_CXX \
13436 postuninstall_cmds_CXX \
13437 old_archive_from_expsyms_cmds_CXX \
13438 allow_undefined_flag_CXX \
13439 no_undefined_flag_CXX \
13440 export_symbols_cmds_CXX \
13441 hardcode_libdir_flag_spec_CXX \
13442 hardcode_libdir_flag_spec_ld_CXX \
13443 hardcode_libdir_separator_CXX \
13444 hardcode_automatic_CXX \
13446 module_expsym_cmds_CXX \
13447 lt_cv_prog_compiler_c_o_CXX \
13448 exclude_expsyms_CXX \
13449 include_expsyms_CXX; do
13452 old_archive_cmds_CXX | \
13453 old_archive_from_new_cmds_CXX | \
13454 archive_cmds_CXX | \
13455 archive_expsym_cmds_CXX | \
13456 module_cmds_CXX | \
13457 module_expsym_cmds_CXX | \
13458 old_archive_from_expsyms_cmds_CXX | \
13459 export_symbols_cmds_CXX | \
13460 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13461 postinstall_cmds | postuninstall_cmds | \
13462 old_postinstall_cmds | old_postuninstall_cmds | \
13463 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13464 # Double-quote double-evaled strings.
13465 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13474 *'\$0 --fallback-echo"')
13475 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13481 cat <<__EOF__ >> "$cfgfile"
13482 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13484 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13486 # Shell to use when invoking shell scripts.
13489 # Whether or not to build shared libraries.
13490 build_libtool_libs=$enable_shared
13492 # Whether or not to build static libraries.
13493 build_old_libs=$enable_static
13495 # Whether or not to add -lc for building shared libraries.
13496 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13498 # Whether or not to disallow shared libs when runtime libs are static
13499 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13501 # Whether or not to optimize for fast installation.
13502 fast_install=$enable_fast_install
13505 host_alias=$host_alias
13509 # The build system.
13510 build_alias=$build_alias
13514 # An echo program that does not interpret backslashes.
13519 AR_FLAGS=$lt_AR_FLAGS
13524 # LTCC compiler flags.
13525 LTCFLAGS=$lt_LTCFLAGS
13527 # A language-specific compiler.
13528 CC=$lt_compiler_CXX
13530 # Is the compiler the GNU C compiler?
13536 # The linker used to build libraries.
13539 # Whether we need hard or soft links.
13542 # A BSD-compatible nm program.
13545 # A symbol stripping program
13548 # Used to examine libraries when file_magic_cmd begins "file"
13549 MAGIC_CMD=$MAGIC_CMD
13551 # Used on cygwin: DLL creation program.
13554 # Used on cygwin: object dumper.
13557 # Used on cygwin: assembler.
13560 # The name of the directory that contains temporary libtool files.
13563 # How to create reloadable object files.
13564 reload_flag=$lt_reload_flag
13565 reload_cmds=$lt_reload_cmds
13567 # How to pass a linker flag through the compiler.
13568 wl=$lt_lt_prog_compiler_wl_CXX
13570 # Object file suffix (normally "o").
13571 objext="$ac_objext"
13573 # Old archive suffix (normally "a").
13576 # Shared library suffix (normally ".so").
13577 shrext_cmds='$shrext_cmds'
13579 # Executable file suffix (normally "").
13582 # Additional compiler flags for building library objects.
13583 pic_flag=$lt_lt_prog_compiler_pic_CXX
13586 # What is the maximum length of a command?
13587 max_cmd_len=$lt_cv_sys_max_cmd_len
13589 # Does compiler simultaneously support -c and -o options?
13590 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13592 # Must we lock files when doing compilation?
13593 need_locks=$lt_need_locks
13595 # Do we need the lib prefix for modules?
13596 need_lib_prefix=$need_lib_prefix
13598 # Do we need a version for libraries?
13599 need_version=$need_version
13601 # Whether dlopen is supported.
13602 dlopen_support=$enable_dlopen
13604 # Whether dlopen of programs is supported.
13605 dlopen_self=$enable_dlopen_self
13607 # Whether dlopen of statically linked programs is supported.
13608 dlopen_self_static=$enable_dlopen_self_static
13610 # Compiler flag to prevent dynamic linking.
13611 link_static_flag=$lt_lt_prog_compiler_static_CXX
13613 # Compiler flag to turn off builtin functions.
13614 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13616 # Compiler flag to allow reflexive dlopens.
13617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13619 # Compiler flag to generate shared objects directly from archives.
13620 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13622 # Compiler flag to generate thread-safe objects.
13623 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13625 # Library versioning type.
13626 version_type=$version_type
13628 # Format of library name prefix.
13629 libname_spec=$lt_libname_spec
13631 # List of archive names. First name is the real one, the rest are links.
13632 # The last name is the one that the linker finds with -lNAME.
13633 library_names_spec=$lt_library_names_spec
13635 # The coded name of the library, if different from the real name.
13636 soname_spec=$lt_soname_spec
13638 # Commands used to build and install an old-style archive.
13640 old_archive_cmds=$lt_old_archive_cmds_CXX
13641 old_postinstall_cmds=$lt_old_postinstall_cmds
13642 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13644 # Create an old-style archive from a shared archive.
13645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13647 # Create a temporary old-style archive to link instead of a shared archive.
13648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13650 # Commands used to build and install a shared archive.
13651 archive_cmds=$lt_archive_cmds_CXX
13652 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13653 postinstall_cmds=$lt_postinstall_cmds
13654 postuninstall_cmds=$lt_postuninstall_cmds
13656 # Commands used to build a loadable module (assumed same as above if empty)
13657 module_cmds=$lt_module_cmds_CXX
13658 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13660 # Commands to strip libraries.
13661 old_striplib=$lt_old_striplib
13662 striplib=$lt_striplib
13664 # Dependencies to place before the objects being linked to create a
13666 predep_objects=$lt_predep_objects_CXX
13668 # Dependencies to place after the objects being linked to create a
13670 postdep_objects=$lt_postdep_objects_CXX
13672 # Dependencies to place before the objects being linked to create a
13674 predeps=$lt_predeps_CXX
13676 # Dependencies to place after the objects being linked to create a
13678 postdeps=$lt_postdeps_CXX
13680 # The library search path used internally by the compiler when linking
13681 # a shared library.
13682 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13684 # Method to check whether dependent libraries are shared objects.
13685 deplibs_check_method=$lt_deplibs_check_method
13687 # Command to use when deplibs_check_method == file_magic.
13688 file_magic_cmd=$lt_file_magic_cmd
13690 # Flag that allows shared libraries with undefined symbols to be built.
13691 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13693 # Flag that forces no undefined symbols.
13694 no_undefined_flag=$lt_no_undefined_flag_CXX
13696 # Commands used to finish a libtool library installation in a directory.
13697 finish_cmds=$lt_finish_cmds
13699 # Same as above, but a single script fragment to be evaled but not shown.
13700 finish_eval=$lt_finish_eval
13702 # Take the output of nm and produce a listing of raw symbols and C names.
13703 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13705 # Transform the output of nm in a proper C declaration
13706 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13708 # Transform the output of nm in a C name address pair
13709 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13711 # This is the shared library runtime path variable.
13712 runpath_var=$runpath_var
13714 # This is the shared library path variable.
13715 shlibpath_var=$shlibpath_var
13717 # Is shlibpath searched before the hard-coded library search path?
13718 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13720 # How to hardcode a shared library path into an executable.
13721 hardcode_action=$hardcode_action_CXX
13723 # Whether we should hardcode library paths into libraries.
13724 hardcode_into_libs=$hardcode_into_libs
13726 # Flag to hardcode \$libdir into a binary during linking.
13727 # This must work even if \$libdir does not exist.
13728 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13730 # If ld is used when linking, flag to hardcode \$libdir into
13731 # a binary during linking. This must work even if \$libdir does
13733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13735 # Whether we need a single -rpath flag with a separated argument.
13736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13738 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13739 # resulting binary.
13740 hardcode_direct=$hardcode_direct_CXX
13742 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13743 # resulting binary.
13744 hardcode_minus_L=$hardcode_minus_L_CXX
13746 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13747 # the resulting binary.
13748 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13750 # Set to yes if building a shared library automatically hardcodes DIR into the library
13751 # and all subsequent libraries and executables linked against it.
13752 hardcode_automatic=$hardcode_automatic_CXX
13754 # Variables whose values should be saved in libtool wrapper scripts and
13755 # restored at relink time.
13756 variables_saved_for_relink="$variables_saved_for_relink"
13758 # Whether libtool must link a program against all its dependency libraries.
13759 link_all_deplibs=$link_all_deplibs_CXX
13761 # Compile-time system search path for libraries
13762 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13764 # Run-time system search path for libraries
13765 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13767 # Fix the shell variable \$srcfile for the compiler.
13768 fix_srcfile_path="$fix_srcfile_path_CXX"
13770 # Set to yes if exported symbols are required.
13771 always_export_symbols=$always_export_symbols_CXX
13773 # The commands to list exported symbols.
13774 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13776 # The commands to extract the exported symbol list from a shared archive.
13777 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13779 # Symbols that should not be listed in the preloaded symbols.
13780 exclude_expsyms=$lt_exclude_expsyms_CXX
13782 # Symbols that must always be exported.
13783 include_expsyms=$lt_include_expsyms_CXX
13785 # ### END LIBTOOL TAG CONFIG: $tagname
13791 # If there is no Makefile yet, we rely on a make rule to execute
13792 # `config.status --recheck' to rerun these tests and create the
13793 # libtool script then.
13794 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13795 if test -f "$ltmain_in"; then
13796 test -f Makefile && make "$ltmain"
13802 ac_cpp='$CPP $CPPFLAGS'
13803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811 with_gnu_ldcxx=$with_gnu_ld
13812 with_gnu_ld=$lt_save_with_gnu_ld
13813 lt_cv_path_LDCXX=$lt_cv_path_LD
13814 lt_cv_path_LD=$lt_save_path_LD
13815 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13816 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13824 if test -n "$F77" && test "X$F77" != "Xno"; then
13827 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13828 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13829 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13832 archive_cmds_need_lc_F77=no
13833 allow_undefined_flag_F77=
13834 always_export_symbols_F77=no
13835 archive_expsym_cmds_F77=
13836 export_dynamic_flag_spec_F77=
13837 hardcode_direct_F77=no
13838 hardcode_libdir_flag_spec_F77=
13839 hardcode_libdir_flag_spec_ld_F77=
13840 hardcode_libdir_separator_F77=
13841 hardcode_minus_L_F77=no
13842 hardcode_automatic_F77=no
13844 module_expsym_cmds_F77=
13845 link_all_deplibs_F77=unknown
13846 old_archive_cmds_F77=$old_archive_cmds
13847 no_undefined_flag_F77=
13848 whole_archive_flag_spec_F77=
13849 enable_shared_with_static_runtimes_F77=no
13851 # Source file extension for f77 test sources.
13854 # Object file extension for compiled f77 test sources.
13858 # Code to be used in simple compile tests
13859 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13861 # Code to be used in simple link tests
13862 lt_simple_link_test_code=" program t\n end\n"
13864 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13866 # If no C compiler was specified, use CC.
13869 # If no C compiler flags were specified, use CFLAGS.
13870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13872 # Allow CC to be a program name with arguments.
13876 # save warnings/boilerplate of simple test code
13877 ac_outfile=conftest.$ac_objext
13878 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13880 _lt_compiler_boilerplate=`cat conftest.err`
13883 ac_outfile=conftest.$ac_objext
13884 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13886 _lt_linker_boilerplate=`cat conftest.err`
13890 # Allow CC to be a program name with arguments.
13895 for cc_temp in $compiler""; do
13897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13906 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13907 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13908 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13909 echo "${ECHO_T}$can_build_shared" >&6; }
13911 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13912 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13913 test "$can_build_shared" = "no" && enable_shared=no
13915 # On AIX, shared libraries and static libraries use the same namespace, and
13916 # are all built from PIC.
13919 test "$enable_shared" = yes && enable_static=no
13920 if test -n "$RANLIB"; then
13921 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13922 postinstall_cmds='$RANLIB $lib'
13926 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13927 test "$enable_shared" = yes && enable_static=no
13931 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13932 echo "${ECHO_T}$enable_shared" >&6; }
13934 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13935 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13936 # Make sure either enable_shared or enable_static is yes.
13937 test "$enable_shared" = yes || enable_static=yes
13938 { echo "$as_me:$LINENO: result: $enable_static" >&5
13939 echo "${ECHO_T}$enable_static" >&6; }
13944 lt_prog_compiler_wl_F77=
13945 lt_prog_compiler_pic_F77=
13946 lt_prog_compiler_static_F77=
13948 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13949 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13951 if test "$GCC" = yes; then
13952 lt_prog_compiler_wl_F77='-Wl,'
13953 lt_prog_compiler_static_F77='-static'
13957 # All AIX code is PIC.
13958 if test "$host_cpu" = ia64; then
13959 # AIX 5 now supports IA64 processor
13960 lt_prog_compiler_static_F77='-Bstatic'
13965 # FIXME: we need at least 68020 code to build shared libraries, but
13966 # adding the `-m68020' flag to GCC prevents building anything better,
13968 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13971 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13972 # PIC is the default for these OSes.
13975 mingw* | pw32* | os2*)
13976 # This hack is so that the source file can tell whether it is being
13977 # built for inclusion in a dll (and should export symbols for example).
13978 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13981 darwin* | rhapsody*)
13982 # PIC is the default on this platform
13983 # Common symbols not allowed in MH_DYLIB files
13984 lt_prog_compiler_pic_F77='-fno-common'
13988 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13989 # Instead, we relocate shared libraries at runtime.
13993 # Just because we use GCC doesn't mean we suddenly get shared libraries
13994 # on systems that don't support them.
13995 lt_prog_compiler_can_build_shared_F77=no
14000 if test -d /usr/nec; then
14001 lt_prog_compiler_pic_F77=-Kconform_pic
14006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14007 # not for PA HP-UX.
14013 lt_prog_compiler_pic_F77='-fPIC'
14019 lt_prog_compiler_pic_F77='-fPIC'
14023 # PORTME Check for flag to pass linker flags through the system compiler.
14026 lt_prog_compiler_wl_F77='-Wl,'
14027 if test "$host_cpu" = ia64; then
14028 # AIX 5 now supports IA64 processor
14029 lt_prog_compiler_static_F77='-Bstatic'
14031 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14035 # PIC is the default on this platform
14036 # Common symbols not allowed in MH_DYLIB files
14037 case $cc_basename in
14039 lt_prog_compiler_pic_F77='-qnocommon'
14040 lt_prog_compiler_wl_F77='-Wl,'
14045 mingw* | pw32* | os2*)
14046 # This hack is so that the source file can tell whether it is being
14047 # built for inclusion in a dll (and should export symbols for example).
14048 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14051 hpux9* | hpux10* | hpux11*)
14052 lt_prog_compiler_wl_F77='-Wl,'
14053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14054 # not for PA HP-UX.
14060 lt_prog_compiler_pic_F77='+Z'
14063 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14064 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14067 irix5* | irix6* | nonstopux*)
14068 lt_prog_compiler_wl_F77='-Wl,'
14069 # PIC (with -KPIC) is the default.
14070 lt_prog_compiler_static_F77='-non_shared'
14074 lt_prog_compiler_pic_F77='-KPIC'
14075 lt_prog_compiler_static_F77='-Bstatic'
14078 linux* | k*bsd*-gnu)
14079 case $cc_basename in
14081 lt_prog_compiler_wl_F77='-Wl,'
14082 lt_prog_compiler_pic_F77='-KPIC'
14083 lt_prog_compiler_static_F77='-static'
14085 pgcc* | pgf77* | pgf90* | pgf95*)
14086 # Portland Group compilers (*not* the Pentium gcc compiler,
14087 # which looks to be a dead project)
14088 lt_prog_compiler_wl_F77='-Wl,'
14089 lt_prog_compiler_pic_F77='-fpic'
14090 lt_prog_compiler_static_F77='-Bstatic'
14093 lt_prog_compiler_wl_F77='-Wl,'
14094 # All Alpha code is PIC.
14095 lt_prog_compiler_static_F77='-non_shared'
14100 osf3* | osf4* | osf5*)
14101 lt_prog_compiler_wl_F77='-Wl,'
14102 # All OSF/1 code is PIC.
14103 lt_prog_compiler_static_F77='-non_shared'
14107 lt_prog_compiler_pic_F77='-KPIC'
14108 lt_prog_compiler_static_F77='-Bstatic'
14109 case $cc_basename in
14110 f77* | f90* | f95*)
14111 lt_prog_compiler_wl_F77='-Qoption ld ';;
14113 lt_prog_compiler_wl_F77='-Wl,';;
14118 lt_prog_compiler_wl_F77='-Qoption ld '
14119 lt_prog_compiler_pic_F77='-PIC'
14120 lt_prog_compiler_static_F77='-Bstatic'
14123 sysv4 | sysv4.2uw2* | sysv4.3*)
14124 lt_prog_compiler_wl_F77='-Wl,'
14125 lt_prog_compiler_pic_F77='-KPIC'
14126 lt_prog_compiler_static_F77='-Bstatic'
14130 if test -d /usr/nec ;then
14131 lt_prog_compiler_pic_F77='-Kconform_pic'
14132 lt_prog_compiler_static_F77='-Bstatic'
14136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14137 lt_prog_compiler_wl_F77='-Wl,'
14138 lt_prog_compiler_pic_F77='-KPIC'
14139 lt_prog_compiler_static_F77='-Bstatic'
14143 lt_prog_compiler_wl_F77='-Wl,'
14144 lt_prog_compiler_can_build_shared_F77=no
14148 lt_prog_compiler_pic_F77='-pic'
14149 lt_prog_compiler_static_F77='-Bstatic'
14153 lt_prog_compiler_can_build_shared_F77=no
14158 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14159 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14162 # Check to make sure the PIC flag actually works.
14164 if test -n "$lt_prog_compiler_pic_F77"; then
14166 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14167 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14168 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 lt_prog_compiler_pic_works_F77=no
14172 ac_outfile=conftest.$ac_objext
14173 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14174 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14175 # Insert the option either (1) after the last *FLAGS variable, or
14176 # (2) before a word containing "conftest.", or (3) at the end.
14177 # Note that $ac_compile itself does not contain backslashes and begins
14178 # with a dollar sign (not a hyphen), so the echo should work correctly.
14179 # The option is referenced via a variable to avoid confusing sed.
14180 lt_compile=`echo "$ac_compile" | $SED \
14181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14183 -e 's:$: $lt_compiler_flag:'`
14184 (eval echo "\"\$as_me:14184: $lt_compile\"" >&5)
14185 (eval "$lt_compile" 2>conftest.err)
14187 cat conftest.err >&5
14188 echo "$as_me:14188: \$? = $ac_status" >&5
14189 if (exit $ac_status) && test -s "$ac_outfile"; then
14190 # The compiler can only warn and ignore the option if not recognized
14191 # So say no if there are warnings other than the usual output.
14192 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14194 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14195 lt_prog_compiler_pic_works_F77=yes
14201 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14202 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14204 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14205 case $lt_prog_compiler_pic_F77 in
14207 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14210 lt_prog_compiler_pic_F77=
14211 lt_prog_compiler_can_build_shared_F77=no
14216 # For platforms which do not support PIC, -DPIC is meaningless:
14218 lt_prog_compiler_pic_F77=
14221 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14226 # Check to make sure the static flag actually works.
14228 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14229 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14230 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14231 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 lt_prog_compiler_static_works_F77=no
14235 save_LDFLAGS="$LDFLAGS"
14236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14237 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14239 # The linker can only warn and ignore the option if not recognized
14240 # So say no if there are warnings
14241 if test -s conftest.err; then
14242 # Append any errors to the config.log.
14243 cat conftest.err 1>&5
14244 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14246 if diff conftest.exp conftest.er2 >/dev/null; then
14247 lt_prog_compiler_static_works_F77=yes
14250 lt_prog_compiler_static_works_F77=yes
14254 LDFLAGS="$save_LDFLAGS"
14257 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14258 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14260 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14263 lt_prog_compiler_static_F77=
14267 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14268 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14269 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 lt_cv_prog_compiler_c_o_F77=no
14273 $rm -r conftest 2>/dev/null
14277 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14279 lt_compiler_flag="-o out/conftest2.$ac_objext"
14280 # Insert the option either (1) after the last *FLAGS variable, or
14281 # (2) before a word containing "conftest.", or (3) at the end.
14282 # Note that $ac_compile itself does not contain backslashes and begins
14283 # with a dollar sign (not a hyphen), so the echo should work correctly.
14284 lt_compile=`echo "$ac_compile" | $SED \
14285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14287 -e 's:$: $lt_compiler_flag:'`
14288 (eval echo "\"\$as_me:14288: $lt_compile\"" >&5)
14289 (eval "$lt_compile" 2>out/conftest.err)
14291 cat out/conftest.err >&5
14292 echo "$as_me:14292: \$? = $ac_status" >&5
14293 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14295 # The compiler can only warn and ignore the option if not recognized
14296 # So say no if there are warnings
14297 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14298 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14299 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14300 lt_cv_prog_compiler_c_o_F77=yes
14305 # SGI C++ compiler will create directory out/ii_files/ for
14306 # template instantiation
14307 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14308 $rm out/* && rmdir out
14314 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14315 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14318 hard_links="nottested"
14319 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14320 # do not overwrite the value of need_locks provided by the user
14321 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14322 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14327 ln conftest.a conftest.b 2>&5 || hard_links=no
14328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14329 { echo "$as_me:$LINENO: result: $hard_links" >&5
14330 echo "${ECHO_T}$hard_links" >&6; }
14331 if test "$hard_links" = no; then
14332 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14333 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14340 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14341 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14344 allow_undefined_flag_F77=
14345 enable_shared_with_static_runtimes_F77=no
14347 archive_expsym_cmds_F77=
14348 old_archive_From_new_cmds_F77=
14349 old_archive_from_expsyms_cmds_F77=
14350 export_dynamic_flag_spec_F77=
14351 whole_archive_flag_spec_F77=
14352 thread_safe_flag_spec_F77=
14353 hardcode_libdir_flag_spec_F77=
14354 hardcode_libdir_flag_spec_ld_F77=
14355 hardcode_libdir_separator_F77=
14356 hardcode_direct_F77=no
14357 hardcode_minus_L_F77=no
14358 hardcode_shlibpath_var_F77=unsupported
14359 link_all_deplibs_F77=unknown
14360 hardcode_automatic_F77=no
14362 module_expsym_cmds_F77=
14363 always_export_symbols_F77=no
14364 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14365 # include_expsyms should be a list of space-separated symbols to be *always*
14366 # included in the symbol list
14367 include_expsyms_F77=
14368 # exclude_expsyms can be an extended regexp of symbols to exclude
14369 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14370 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14371 # as well as any symbol that contains `d'.
14372 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14373 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14374 # platforms (ab)use it in PIC code, but their linkers get confused if
14375 # the symbol is explicitly referenced. Since portable code cannot
14376 # rely on this symbol name, it's probably fine to never include it in
14377 # preloaded symbol tables.
14378 extract_expsyms_cmds=
14379 # Just being paranoid about ensuring that cc_basename is set.
14380 for cc_temp in $compiler""; do
14382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14388 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14391 cygwin* | mingw* | pw32*)
14392 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14393 # When not using gcc, we currently assume that we are using
14394 # Microsoft Visual C++.
14395 if test "$GCC" != yes; then
14400 # we just hope/assume this is gcc and not c89 (= MSVC++)
14409 if test "$with_gnu_ld" = yes; then
14410 # If archive_cmds runs LD, not CC, wlarc should be empty
14413 # Set some defaults for GNU ld with shared library support. These
14414 # are reset later if shared libraries are not supported. Putting them
14415 # here allows them to be overridden if necessary.
14416 runpath_var=LD_RUN_PATH
14417 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14418 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14419 # ancient GNU ld didn't support --whole-archive et. al.
14420 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14421 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14423 whole_archive_flag_spec_F77=
14425 supports_anon_versioning=no
14426 case `$LD -v 2>/dev/null` in
14427 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14430 *\ 2.11.*) ;; # other 2.11 versions
14431 *) supports_anon_versioning=yes ;;
14434 # See if GNU ld supports shared libraries.
14436 aix3* | aix4* | aix5*)
14437 # On AIX/PPC, the GNU linker is very broken
14438 if test "$host_cpu" != ia64; then
14442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14443 *** to be unable to reliably create shared libraries on AIX.
14444 *** Therefore, libtool is disabling shared libraries support. If you
14445 *** really care for shared libraries, you may want to modify your PATH
14446 *** so that a non-GNU linker is found, and then restart.
14453 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)'
14454 hardcode_libdir_flag_spec_F77='-L$libdir'
14455 hardcode_minus_L_F77=yes
14457 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14458 # that the semantics of dynamic libraries on AmigaOS, at least up
14459 # to version 4, is to share data among multiple programs linked
14460 # with the same dynamic library. Since this doesn't match the
14461 # behavior of shared libraries on other platforms, we can't use
14467 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14468 allow_undefined_flag_F77=unsupported
14469 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14470 # support --undefined. This deserves some investigation. FIXME
14471 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14477 cygwin* | mingw* | pw32*)
14478 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14479 # as there is no search path for DLLs.
14480 hardcode_libdir_flag_spec_F77='-L$libdir'
14481 allow_undefined_flag_F77=unsupported
14482 always_export_symbols_F77=no
14483 enable_shared_with_static_runtimes_F77=yes
14484 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14486 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14488 # If the export-symbols file already is a .def file (1st line
14489 # is EXPORTS), use it as is; otherwise, prepend...
14490 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14491 cp $export_symbols $output_objdir/$soname.def;
14493 echo EXPORTS > $output_objdir/$soname.def;
14494 cat $export_symbols >> $output_objdir/$soname.def;
14496 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14503 hardcode_direct_F77=no
14504 hardcode_shlibpath_var_F77=no
14505 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14506 export_dynamic_flag_spec_F77='${wl}-E'
14507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14508 # Instead, shared libraries are loaded at an image base (0x10000000 by
14509 # default) and relocated if they conflict, which is a slow very memory
14510 # consuming and fragmenting process. To avoid this, we pick a random,
14511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14513 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'
14514 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'
14517 linux* | k*bsd*-gnu)
14518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14520 case $cc_basename,$host_cpu in
14521 pgcc*) # Portland Group C compiler
14522 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'
14523 tmp_addflag=' $pic_flag'
14525 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14526 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'
14527 tmp_addflag=' $pic_flag -Mnomain' ;;
14528 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14529 tmp_addflag=' -i_dynamic' ;;
14530 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14531 tmp_addflag=' -i_dynamic -nofor_main' ;;
14532 ifc* | ifort*) # Intel Fortran compiler
14533 tmp_addflag=' -nofor_main' ;;
14535 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14537 if test $supports_anon_versioning = yes; then
14538 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14540 $echo "local: *; };" >> $output_objdir/$libname.ver~
14541 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14543 link_all_deplibs_F77=no
14549 netbsd* | netbsdelf*-gnu)
14550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14551 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14554 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14555 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14560 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14565 *** create shared libraries on Solaris systems. Therefore, libtool
14566 *** is disabling shared libraries support. We urge you to upgrade GNU
14567 *** binutils to release 2.9.1 or newer. Another option is to modify
14568 *** your PATH or compiler configuration so that the native linker is
14569 *** used, and then restart.
14572 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14573 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14574 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14581 case `$LD -v 2>&1` in
14582 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14586 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14587 *** reliably create shared libraries on SCO systems. Therefore, libtool
14588 *** is disabling shared libraries support. We urge you to upgrade GNU
14589 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14590 *** your PATH or compiler configuration so that the native linker is
14591 *** used, and then restart.
14596 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14597 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14598 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14599 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14608 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14610 hardcode_direct_F77=yes
14611 hardcode_shlibpath_var_F77=no
14615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14616 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14617 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14624 if test "$ld_shlibs_F77" = no; then
14626 hardcode_libdir_flag_spec_F77=
14627 export_dynamic_flag_spec_F77=
14628 whole_archive_flag_spec_F77=
14631 # PORTME fill in a description of your system's linker (not GNU ld)
14634 allow_undefined_flag_F77=unsupported
14635 always_export_symbols_F77=yes
14636 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'
14637 # Note: this linker hardcodes the directories in LIBPATH if there
14638 # are no directories specified by -L.
14639 hardcode_minus_L_F77=yes
14640 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14641 # Neither direct hardcoding nor static linking is supported with a
14643 hardcode_direct_F77=unsupported
14648 if test "$host_cpu" = ia64; then
14649 # On IA64, the linker does run time linking by default, so we don't
14650 # have to do anything special.
14651 aix_use_runtimelinking=no
14652 exp_sym_flag='-Bexport'
14655 # If we're using GNU nm, then we don't want the "-C" option.
14656 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14657 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14658 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'
14660 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'
14662 aix_use_runtimelinking=no
14664 # Test if we are trying to use run time linking or normal
14665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14666 # need to do runtime linking.
14667 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14668 for ld_flag in $LDFLAGS; do
14669 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14670 aix_use_runtimelinking=yes
14677 exp_sym_flag='-bexport'
14678 no_entry_flag='-bnoentry'
14681 # When large executables or shared objects are built, AIX ld can
14682 # have problems creating the table of contents. If linking a library
14683 # or program results in "error TOC overflow" add -mminimal-toc to
14684 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14685 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14687 archive_cmds_F77=''
14688 hardcode_direct_F77=yes
14689 hardcode_libdir_separator_F77=':'
14690 link_all_deplibs_F77=yes
14692 if test "$GCC" = yes; then
14693 case $host_os in aix4.[012]|aix4.[012].*)
14694 # We only want to do this on AIX 4.2 and lower, the check
14695 # below for broken collect2 doesn't work under 4.3+
14696 collect2name=`${CC} -print-prog-name=collect2`
14697 if test -f "$collect2name" && \
14698 strings "$collect2name" | grep resolve_lib_name >/dev/null
14700 # We have reworked collect2
14701 hardcode_direct_F77=yes
14703 # We have old collect2
14704 hardcode_direct_F77=unsupported
14705 # It fails to find uninstalled libraries when the uninstalled
14706 # path is not listed in the libpath. Setting hardcode_minus_L
14707 # to unsupported forces relinking
14708 hardcode_minus_L_F77=yes
14709 hardcode_libdir_flag_spec_F77='-L$libdir'
14710 hardcode_libdir_separator_F77=
14714 shared_flag='-shared'
14715 if test "$aix_use_runtimelinking" = yes; then
14716 shared_flag="$shared_flag "'${wl}-G'
14720 if test "$host_cpu" = ia64; then
14721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14722 # chokes on -Wl,-G. The following line is correct:
14725 if test "$aix_use_runtimelinking" = yes; then
14726 shared_flag='${wl}-G'
14728 shared_flag='${wl}-bM:SRE'
14733 # It seems that -bexpall does not export symbols beginning with
14734 # underscore (_), so it is better to generate a list of symbols to export.
14735 always_export_symbols_F77=yes
14736 if test "$aix_use_runtimelinking" = yes; then
14737 # Warning - without using the other runtime loading flags (-brtl),
14738 # -berok will link without error, but may produce a broken library.
14739 allow_undefined_flag_F77='-berok'
14740 # Determine the default libpath from the value encoded in an empty executable.
14741 cat >conftest.$ac_ext <<_ACEOF
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (ac_try="$ac_link"
14748 case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_link") 2>conftest.er1
14755 grep -v '^ *+' conftest.er1 >conftest.err
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } && {
14760 test -z "$ac_f77_werror_flag" ||
14761 test ! -s conftest.err
14762 } && test -s conftest$ac_exeext &&
14763 $as_test_x conftest$ac_exeext; then
14765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14767 # Check for a 64-bit object if we didn't find anything.
14768 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; }
14771 echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14778 conftest$ac_exeext conftest.$ac_ext
14779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14781 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14782 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"
14784 if test "$host_cpu" = ia64; then
14785 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14786 allow_undefined_flag_F77="-z nodefs"
14787 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"
14789 # Determine the default libpath from the value encoded in an empty executable.
14790 cat >conftest.$ac_ext <<_ACEOF
14795 rm -f conftest.$ac_objext conftest$ac_exeext
14796 if { (ac_try="$ac_link"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_link") 2>conftest.er1
14804 grep -v '^ *+' conftest.er1 >conftest.err
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } && {
14809 test -z "$ac_f77_werror_flag" ||
14810 test ! -s conftest.err
14811 } && test -s conftest$ac_exeext &&
14812 $as_test_x conftest$ac_exeext; then
14814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14816 # Check for a 64-bit object if we didn't find anything.
14817 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; }
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14827 conftest$ac_exeext conftest.$ac_ext
14828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14830 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14831 # Warning - without using the other run time loading flags,
14832 # -berok will link without error, but may produce a broken library.
14833 no_undefined_flag_F77=' ${wl}-bernotok'
14834 allow_undefined_flag_F77=' ${wl}-berok'
14835 # Exported symbols can be pulled into shared objects from archives
14836 whole_archive_flag_spec_F77='$convenience'
14837 archive_cmds_need_lc_F77=yes
14838 # This is similar to how AIX traditionally builds its shared libraries.
14839 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'
14845 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)'
14846 hardcode_libdir_flag_spec_F77='-L$libdir'
14847 hardcode_minus_L_F77=yes
14848 # see comment about different semantics on the GNU ld section
14853 export_dynamic_flag_spec_F77=-rdynamic
14856 cygwin* | mingw* | pw32*)
14857 # When not using gcc, we currently assume that we are using
14858 # Microsoft Visual C++.
14859 # hardcode_libdir_flag_spec is actually meaningless, as there is
14860 # no search path for DLLs.
14861 hardcode_libdir_flag_spec_F77=' '
14862 allow_undefined_flag_F77=unsupported
14863 # Tell ltmain to make .lib files, not .a files.
14865 # Tell ltmain to make .dll files, not .so files.
14867 # FIXME: Setting linknames here is a bad hack.
14868 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14869 # The linker will automatically build a .lib file if we build a DLL.
14870 old_archive_From_new_cmds_F77='true'
14871 # FIXME: Should let the user specify the lib program.
14872 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14873 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14874 enable_shared_with_static_runtimes_F77=yes
14877 darwin* | rhapsody*)
14879 rhapsody* | darwin1.[012])
14880 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14883 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14884 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14886 case ${MACOSX_DEPLOYMENT_TARGET} in
14888 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14891 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14897 archive_cmds_need_lc_F77=no
14898 hardcode_direct_F77=no
14899 hardcode_automatic_F77=yes
14900 hardcode_shlibpath_var_F77=unsupported
14901 whole_archive_flag_spec_F77=''
14902 link_all_deplibs_F77=yes
14903 if test "$GCC" = yes ; then
14904 output_verbose_link_cmd='echo'
14905 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14906 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14907 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14908 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}'
14909 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}'
14911 case $cc_basename in
14913 output_verbose_link_cmd='echo'
14914 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14915 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14916 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14917 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}'
14918 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}'
14928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14929 hardcode_libdir_flag_spec_F77='-L$libdir'
14930 hardcode_shlibpath_var_F77=no
14937 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14938 # support. Future versions do this automatically, but an explicit c++rt0.o
14939 # does not break anything, and helps significantly (at the cost of a little
14942 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14943 hardcode_libdir_flag_spec_F77='-R$libdir'
14944 hardcode_direct_F77=yes
14945 hardcode_shlibpath_var_F77=no
14948 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14950 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14951 hardcode_direct_F77=yes
14952 hardcode_minus_L_F77=yes
14953 hardcode_shlibpath_var_F77=no
14956 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14957 freebsd* | dragonfly*)
14958 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14959 hardcode_libdir_flag_spec_F77='-R$libdir'
14960 hardcode_direct_F77=yes
14961 hardcode_shlibpath_var_F77=no
14965 if test "$GCC" = yes; then
14966 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'
14968 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'
14970 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14971 hardcode_libdir_separator_F77=:
14972 hardcode_direct_F77=yes
14974 # hardcode_minus_L: Not really in the search PATH,
14975 # but as the default location of the library.
14976 hardcode_minus_L_F77=yes
14977 export_dynamic_flag_spec_F77='${wl}-E'
14981 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14982 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14984 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14986 if test "$with_gnu_ld" = no; then
14987 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14988 hardcode_libdir_separator_F77=:
14990 hardcode_direct_F77=yes
14991 export_dynamic_flag_spec_F77='${wl}-E'
14993 # hardcode_minus_L: Not really in the search PATH,
14994 # but as the default location of the library.
14995 hardcode_minus_L_F77=yes
15000 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15003 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15015 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15018 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15025 if test "$with_gnu_ld" = no; then
15026 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15027 hardcode_libdir_separator_F77=:
15031 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15032 hardcode_direct_F77=no
15033 hardcode_shlibpath_var_F77=no
15036 hardcode_direct_F77=yes
15037 export_dynamic_flag_spec_F77='${wl}-E'
15039 # hardcode_minus_L: Not really in the search PATH,
15040 # but as the default location of the library.
15041 hardcode_minus_L_F77=yes
15047 irix5* | irix6* | nonstopux*)
15048 if test "$GCC" = yes; then
15049 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'
15051 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'
15052 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15054 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15055 hardcode_libdir_separator_F77=:
15056 link_all_deplibs_F77=yes
15059 netbsd* | netbsdelf*-gnu)
15060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15061 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15063 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15065 hardcode_libdir_flag_spec_F77='-R$libdir'
15066 hardcode_direct_F77=yes
15067 hardcode_shlibpath_var_F77=no
15071 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15072 hardcode_direct_F77=yes
15073 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15074 hardcode_libdir_separator_F77=:
15075 hardcode_shlibpath_var_F77=no
15079 hardcode_direct_F77=yes
15080 hardcode_shlibpath_var_F77=no
15081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15082 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15083 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15084 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15085 export_dynamic_flag_spec_F77='${wl}-E'
15088 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15089 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15090 hardcode_libdir_flag_spec_F77='-R$libdir'
15093 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15094 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15101 hardcode_libdir_flag_spec_F77='-L$libdir'
15102 hardcode_minus_L_F77=yes
15103 allow_undefined_flag_F77=unsupported
15104 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'
15105 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15109 if test "$GCC" = yes; then
15110 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15111 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'
15113 allow_undefined_flag_F77=' -expect_unresolved \*'
15114 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'
15116 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15117 hardcode_libdir_separator_F77=:
15120 osf4* | osf5*) # as osf3* with the addition of -msym flag
15121 if test "$GCC" = yes; then
15122 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15123 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'
15124 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15126 allow_undefined_flag_F77=' -expect_unresolved \*'
15127 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'
15128 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~
15129 $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'
15131 # Both c and cxx compiler support -rpath directly
15132 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15134 hardcode_libdir_separator_F77=:
15138 no_undefined_flag_F77=' -z text'
15139 if test "$GCC" = yes; then
15141 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15142 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15143 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15146 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15147 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15148 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15150 hardcode_libdir_flag_spec_F77='-R$libdir'
15151 hardcode_shlibpath_var_F77=no
15153 solaris2.[0-5] | solaris2.[0-5].*) ;;
15155 # The compiler driver will combine linker options so we
15156 # cannot just pass the convience library names through
15157 # without $wl, iff we do not link with $LD.
15158 # Luckily, gcc supports the same syntax we need for Sun Studio.
15159 # Supported since Solaris 2.6 (maybe 2.5.1?)
15162 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15164 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' ;;
15167 link_all_deplibs_F77=yes
15171 if test "x$host_vendor" = xsequent; then
15172 # Use $CC to link under sequent, because it throws in some extra .o
15173 # files that make .init and .fini sections work.
15174 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15176 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15178 hardcode_libdir_flag_spec_F77='-L$libdir'
15179 hardcode_direct_F77=yes
15180 hardcode_minus_L_F77=yes
15181 hardcode_shlibpath_var_F77=no
15185 case $host_vendor in
15187 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15188 hardcode_direct_F77=yes # is this really true???
15191 ## LD is ld it makes a PLAMLIB
15192 ## CC just makes a GrossModule.
15193 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15194 reload_cmds_F77='$CC -r -o $output$reload_objs'
15195 hardcode_direct_F77=no
15198 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15202 runpath_var='LD_RUN_PATH'
15203 hardcode_shlibpath_var_F77=no
15207 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15208 hardcode_shlibpath_var_F77=no
15209 export_dynamic_flag_spec_F77='-Bexport'
15213 if test -d /usr/nec; then
15214 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15215 hardcode_shlibpath_var_F77=no
15216 runpath_var=LD_RUN_PATH
15217 hardcode_runpath_var=yes
15222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15223 no_undefined_flag_F77='${wl}-z,text'
15224 archive_cmds_need_lc_F77=no
15225 hardcode_shlibpath_var_F77=no
15226 runpath_var='LD_RUN_PATH'
15228 if test "$GCC" = yes; then
15229 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15230 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15232 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15233 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15237 sysv5* | sco3.2v5* | sco5v6*)
15238 # Note: We can NOT use -z defs as we might desire, because we do not
15239 # link with -lc, and that would cause any symbols used from libc to
15240 # always be unresolved, which means just about no library would
15241 # ever link correctly. If we're not using GNU ld we use -z text
15242 # though, which does catch some bad symbols but isn't as heavy-handed
15244 no_undefined_flag_F77='${wl}-z,text'
15245 allow_undefined_flag_F77='${wl}-z,nodefs'
15246 archive_cmds_need_lc_F77=no
15247 hardcode_shlibpath_var_F77=no
15248 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15249 hardcode_libdir_separator_F77=':'
15250 link_all_deplibs_F77=yes
15251 export_dynamic_flag_spec_F77='${wl}-Bexport'
15252 runpath_var='LD_RUN_PATH'
15254 if test "$GCC" = yes; then
15255 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15256 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15258 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15259 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15264 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15265 hardcode_libdir_flag_spec_F77='-L$libdir'
15266 hardcode_shlibpath_var_F77=no
15275 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15276 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15277 test "$ld_shlibs_F77" = no && can_build_shared=no
15280 # Do we need to explicitly link libc?
15282 case "x$archive_cmds_need_lc_F77" in
15284 # Assume -lc should be added
15285 archive_cmds_need_lc_F77=yes
15287 if test "$enable_shared" = yes && test "$GCC" = yes; then
15288 case $archive_cmds_F77 in
15290 # FIXME: we may have to deal with multi-command sequences.
15293 # Test whether the compiler implicitly links with -lc since on some
15294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15295 # to ld, don't add -lc before -lgcc.
15296 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15297 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302 (eval $ac_compile) 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } 2>conftest.err; then
15308 libobjs=conftest.$ac_objext
15310 wl=$lt_prog_compiler_wl_F77
15311 pic_flag=$lt_prog_compiler_pic_F77
15317 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15318 allow_undefined_flag_F77=
15319 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15320 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }
15325 archive_cmds_need_lc_F77=no
15327 archive_cmds_need_lc_F77=yes
15329 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15331 cat conftest.err 1>&5
15334 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15335 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15342 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15343 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15344 library_names_spec=
15345 libname_spec='lib$name'
15349 postuninstall_cmds=
15353 shlibpath_overrides_runpath=unknown
15355 dynamic_linker="$host_os ld.so"
15356 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15357 if test "$GCC" = yes; then
15358 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15359 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15360 # if the path contains ";" then we assume it to be the separator
15361 # otherwise default to the standard path separator (i.e. ":") - it is
15362 # assumed that no part of a normal pathname contains ";" but that should
15363 # okay in the real world where ";" in dirpaths is itself problematic.
15364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15369 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15371 need_lib_prefix=unknown
15372 hardcode_into_libs=no
15374 # when you set need_version to no, make sure it does not cause -set_version
15375 # flags to be left without arguments
15376 need_version=unknown
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15382 shlibpath_var=LIBPATH
15384 # AIX 3 has no versioning support, so we append a major version to the name.
15385 soname_spec='${libname}${release}${shared_ext}$major'
15392 hardcode_into_libs=yes
15393 if test "$host_cpu" = ia64; then
15394 # AIX 5 supports IA64
15395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15396 shlibpath_var=LD_LIBRARY_PATH
15398 # With GCC up to 2.95.x, collect2 would create an import file
15399 # for dependence libraries. The import file would start with
15400 # the line `#! .'. This would cause the generated library to
15401 # depend on `.', always an invalid library. This was fixed in
15402 # development snapshots of GCC prior to 3.0.
15404 aix4 | aix4.[01] | aix4.[01].*)
15405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15407 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15410 can_build_shared=no
15414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15415 # soname into executable. Probably we can add versioning support to
15416 # collect2, so additional links can be useful in future.
15417 if test "$aix_use_runtimelinking" = yes; then
15418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15419 # instead of lib<name>.a to let people know that these are not
15420 # typical AIX shared libraries.
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15423 # We preserve .a as extension for shared libraries through AIX4.2
15424 # and later when we are not doing run time linking.
15425 library_names_spec='${libname}${release}.a $libname.a'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15428 shlibpath_var=LIBPATH
15433 library_names_spec='$libname.ixlibrary $libname.a'
15434 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15435 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'
15439 library_names_spec='${libname}${shared_ext}'
15440 dynamic_linker="$host_os ld.so"
15441 shlibpath_var=LIBRARY_PATH
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15453 # the default ld.so.conf also contains /usr/contrib/lib and
15454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15455 # libtool to hard-code these into programs
15458 cygwin* | mingw* | pw32*)
15459 version_type=windows
15464 case $GCC,$host_os in
15465 yes,cygwin* | yes,mingw* | yes,pw32*)
15466 library_names_spec='$libname.dll.a'
15467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15468 postinstall_cmds='base_file=`basename \${file}`~
15469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15470 dldir=$destdir/`dirname \$dlpath`~
15471 test -d \$dldir || mkdir -p \$dldir~
15472 $install_prog $dir/$dlname \$dldir/$dlname~
15473 chmod a+x \$dldir/$dlname'
15474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15475 dlpath=$dir/\$dldll~
15477 shlibpath_overrides_runpath=yes
15481 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15482 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15483 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15486 # MinGW DLLs use traditional 'lib' prefix
15487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15488 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15489 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15490 # It is most probably a Windows format PATH printed by
15491 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15492 # path with ; separators, and with drive letters. We can handle the
15493 # drive letters (cygwin fileutils understands them), so leave them,
15494 # especially as we might pass files found there to a mingw objdump,
15495 # which wouldn't understand a cygwinified path. Ahh.
15496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15502 # pw32 DLLs use 'pw' prefix rather than 'lib'
15503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15509 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15512 dynamic_linker='Win32 ld.exe'
15513 # FIXME: first we should search . and the directory the executable is in
15517 darwin* | rhapsody*)
15518 dynamic_linker="$host_os dyld"
15519 version_type=darwin
15522 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15523 soname_spec='${libname}${release}${major}$shared_ext'
15524 shlibpath_overrides_runpath=yes
15525 shlibpath_var=DYLD_LIBRARY_PATH
15526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15527 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15528 if test "$GCC" = yes; then
15529 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"`
15531 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 shlibpath_var=LD_LIBRARY_PATH
15549 freebsd* | dragonfly*)
15550 # DragonFly does not have aout. When/if they implement a new
15551 # versioning mechanism, adjust this.
15552 if test -x /usr/bin/objformat; then
15553 objformat=`/usr/bin/objformat`
15556 freebsd[123]*) objformat=aout ;;
15557 *) objformat=elf ;;
15560 version_type=freebsd-$objformat
15561 case $version_type in
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15572 shlibpath_var=LD_LIBRARY_PATH
15575 shlibpath_overrides_runpath=yes
15577 freebsd3.[01]* | freebsdelf3.[01]*)
15578 shlibpath_overrides_runpath=yes
15579 hardcode_into_libs=yes
15581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15583 shlibpath_overrides_runpath=no
15584 hardcode_into_libs=yes
15586 freebsd*) # from 4.6 on
15587 shlibpath_overrides_runpath=yes
15588 hardcode_into_libs=yes
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15598 soname_spec='${libname}${release}${shared_ext}$major'
15599 shlibpath_var=LD_LIBRARY_PATH
15600 hardcode_into_libs=yes
15603 hpux9* | hpux10* | hpux11*)
15604 # Give a soname corresponding to the major version so that dld.sl refuses to
15605 # link against other versions.
15612 hardcode_into_libs=yes
15613 dynamic_linker="$host_os dld.so"
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617 soname_spec='${libname}${release}${shared_ext}$major'
15618 if test "X$HPUX_IA64_MODE" = X32; then
15619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15627 hardcode_into_libs=yes
15628 dynamic_linker="$host_os dld.sl"
15629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15638 dynamic_linker="$host_os dld.sl"
15639 shlibpath_var=SHLIB_PATH
15640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15645 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15646 postinstall_cmds='chmod 555 $lib'
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 shlibpath_overrides_runpath=no
15658 hardcode_into_libs=yes
15661 irix5* | irix6* | nonstopux*)
15663 nonstopux*) version_type=nonstopux ;;
15665 if test "$lt_cv_prog_gnu_ld" = yes; then
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15676 irix5* | nonstopux*)
15677 libsuff= shlibsuff=
15680 case $LD in # libtool.m4 will add one of these switches to LD
15681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15682 libsuff= shlibsuff= libmagic=32-bit;;
15683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15684 libsuff=32 shlibsuff=N32 libmagic=N32;;
15685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15687 *) libsuff= shlibsuff= libmagic=never-match;;
15691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15692 shlibpath_overrides_runpath=no
15693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15695 hardcode_into_libs=yes
15698 # No shared lib support for Linux oldld, aout, or coff.
15699 linux*oldld* | linux*aout* | linux*coff*)
15703 # This must be Linux ELF.
15704 linux* | k*bsd*-gnu)
15708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709 soname_spec='${libname}${release}${shared_ext}$major'
15710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=no
15713 # This implies no fast_install, which is unacceptable.
15714 # Some rework will be needed to allow for fast_install
15715 # before this can be enabled.
15716 hardcode_into_libs=yes
15718 # Append ld.so.conf contents to the search path
15719 if test -f /etc/ld.so.conf; then
15720 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' ' '`
15721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15724 # We used to test for /lib/ld.so.1 and disable shared libraries on
15725 # powerpc, because MkLinux only supported shared libraries with the
15726 # GNU dynamic linker. Since this was broken with cross compilers,
15727 # most powerpc-linux boxes support dynamic linking these days and
15728 # people can always --disable-shared, the test was removed, and we
15729 # assume the GNU/Linux dynamic linker is in use.
15730 dynamic_linker='GNU/Linux ld.so'
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 shlibpath_overrides_runpath=no
15741 hardcode_into_libs=yes
15742 dynamic_linker='NetBSD ld.elf_so'
15749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15752 dynamic_linker='NetBSD (a.out) ld.so'
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15755 soname_spec='${libname}${release}${shared_ext}$major'
15756 dynamic_linker='NetBSD ld.elf_so'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 shlibpath_overrides_runpath=yes
15760 hardcode_into_libs=yes
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 shlibpath_overrides_runpath=yes
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 soname_spec='${libname}${release}${shared_ext}$major'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 shlibpath_overrides_runpath=yes
15782 sys_lib_dlsearch_path_spec="/usr/lib"
15784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15786 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15787 *) need_version=no ;;
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15794 openbsd2.[89] | openbsd2.[89].*)
15795 shlibpath_overrides_runpath=no
15798 shlibpath_overrides_runpath=yes
15802 shlibpath_overrides_runpath=yes
15807 libname_spec='$name'
15810 library_names_spec='$libname${shared_ext} $libname.a'
15811 dynamic_linker='OS/2 ld.exe'
15812 shlibpath_var=LIBPATH
15815 osf3* | osf4* | osf5*)
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821 shlibpath_var=LD_LIBRARY_PATH
15822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15831 soname_spec='${libname}${release}${shared_ext}$major'
15832 shlibpath_var=LD_LIBRARY_PATH
15833 shlibpath_overrides_runpath=yes
15834 hardcode_into_libs=yes
15835 # ldd complains unless libraries are executable
15836 postinstall_cmds='chmod +x $lib'
15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15842 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=yes
15845 if test "$with_gnu_ld" = yes; then
15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15854 soname_spec='${libname}${release}${shared_ext}$major'
15855 shlibpath_var=LD_LIBRARY_PATH
15856 case $host_vendor in
15858 shlibpath_overrides_runpath=no
15860 export_dynamic_flag_spec='${wl}-Blargedynsym'
15861 runpath_var=LD_RUN_PATH
15869 shlibpath_overrides_runpath=no
15870 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15876 if test -d /usr/nec ;then
15878 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15879 soname_spec='$libname${shared_ext}.$major'
15880 shlibpath_var=LD_LIBRARY_PATH
15884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15885 version_type=freebsd-elf
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 shlibpath_var=LD_LIBRARY_PATH
15891 hardcode_into_libs=yes
15892 if test "$with_gnu_ld" = yes; then
15893 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15894 shlibpath_overrides_runpath=no
15896 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15897 shlibpath_overrides_runpath=yes
15900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15904 sys_lib_dlsearch_path_spec='/usr/lib'
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 shlibpath_var=LD_LIBRARY_PATH
15918 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15919 echo "${ECHO_T}$dynamic_linker" >&6; }
15920 test "$dynamic_linker" = no && can_build_shared=no
15922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15923 if test "$GCC" = yes; then
15924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15927 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15928 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15929 hardcode_action_F77=
15930 if test -n "$hardcode_libdir_flag_spec_F77" || \
15931 test -n "$runpath_var_F77" || \
15932 test "X$hardcode_automatic_F77" = "Xyes" ; then
15934 # We can hardcode non-existant directories.
15935 if test "$hardcode_direct_F77" != no &&
15936 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15937 # have to relink, otherwise we might link with an installed library
15938 # when we should be linking with a yet-to-be-installed one
15939 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15940 test "$hardcode_minus_L_F77" != no; then
15941 # Linking always hardcodes the temporary library directory.
15942 hardcode_action_F77=relink
15944 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15945 hardcode_action_F77=immediate
15948 # We cannot hardcode anything, or else we can only hardcode existing
15950 hardcode_action_F77=unsupported
15952 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15953 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15955 if test "$hardcode_action_F77" = relink; then
15956 # Fast installation is not supported
15957 enable_fast_install=no
15958 elif test "$shlibpath_overrides_runpath" = yes ||
15959 test "$enable_shared" = no; then
15960 # Fast installation is not necessary
15961 enable_fast_install=needless
15965 # The else clause should only fire when bootstrapping the
15966 # libtool distribution, otherwise you forgot to ship ltmain.sh
15967 # with your package, and you will get complaints that there are
15968 # no rules to generate ltmain.sh.
15969 if test -f "$ltmain"; then
15970 # See if we are running on zsh, and set the options which allow our commands through
15971 # without removal of \ escapes.
15972 if test -n "${ZSH_VERSION+set}" ; then
15973 setopt NO_GLOB_SUBST
15975 # Now quote all the things that may contain metacharacters while being
15976 # careful not to overquote the AC_SUBSTed values. We take copies of the
15977 # variables and quote the copies for generation of the libtool script.
15978 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15980 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15981 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15982 deplibs_check_method reload_flag reload_cmds need_locks \
15983 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15984 lt_cv_sys_global_symbol_to_c_name_address \
15985 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15986 old_postinstall_cmds old_postuninstall_cmds \
15990 lt_prog_compiler_wl_F77 \
15991 lt_prog_compiler_pic_F77 \
15992 lt_prog_compiler_static_F77 \
15993 lt_prog_compiler_no_builtin_flag_F77 \
15994 export_dynamic_flag_spec_F77 \
15995 thread_safe_flag_spec_F77 \
15996 whole_archive_flag_spec_F77 \
15997 enable_shared_with_static_runtimes_F77 \
15998 old_archive_cmds_F77 \
15999 old_archive_from_new_cmds_F77 \
16000 predep_objects_F77 \
16001 postdep_objects_F77 \
16004 compiler_lib_search_path_F77 \
16006 archive_expsym_cmds_F77 \
16007 postinstall_cmds_F77 \
16008 postuninstall_cmds_F77 \
16009 old_archive_from_expsyms_cmds_F77 \
16010 allow_undefined_flag_F77 \
16011 no_undefined_flag_F77 \
16012 export_symbols_cmds_F77 \
16013 hardcode_libdir_flag_spec_F77 \
16014 hardcode_libdir_flag_spec_ld_F77 \
16015 hardcode_libdir_separator_F77 \
16016 hardcode_automatic_F77 \
16018 module_expsym_cmds_F77 \
16019 lt_cv_prog_compiler_c_o_F77 \
16020 exclude_expsyms_F77 \
16021 include_expsyms_F77; do
16024 old_archive_cmds_F77 | \
16025 old_archive_from_new_cmds_F77 | \
16026 archive_cmds_F77 | \
16027 archive_expsym_cmds_F77 | \
16028 module_cmds_F77 | \
16029 module_expsym_cmds_F77 | \
16030 old_archive_from_expsyms_cmds_F77 | \
16031 export_symbols_cmds_F77 | \
16032 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16033 postinstall_cmds | postuninstall_cmds | \
16034 old_postinstall_cmds | old_postuninstall_cmds | \
16035 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16036 # Double-quote double-evaled strings.
16037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16040 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16046 *'\$0 --fallback-echo"')
16047 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16053 cat <<__EOF__ >> "$cfgfile"
16054 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16056 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16058 # Shell to use when invoking shell scripts.
16061 # Whether or not to build shared libraries.
16062 build_libtool_libs=$enable_shared
16064 # Whether or not to build static libraries.
16065 build_old_libs=$enable_static
16067 # Whether or not to add -lc for building shared libraries.
16068 build_libtool_need_lc=$archive_cmds_need_lc_F77
16070 # Whether or not to disallow shared libs when runtime libs are static
16071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16073 # Whether or not to optimize for fast installation.
16074 fast_install=$enable_fast_install
16077 host_alias=$host_alias
16081 # The build system.
16082 build_alias=$build_alias
16086 # An echo program that does not interpret backslashes.
16091 AR_FLAGS=$lt_AR_FLAGS
16096 # LTCC compiler flags.
16097 LTCFLAGS=$lt_LTCFLAGS
16099 # A language-specific compiler.
16100 CC=$lt_compiler_F77
16102 # Is the compiler the GNU C compiler?
16108 # The linker used to build libraries.
16111 # Whether we need hard or soft links.
16114 # A BSD-compatible nm program.
16117 # A symbol stripping program
16120 # Used to examine libraries when file_magic_cmd begins "file"
16121 MAGIC_CMD=$MAGIC_CMD
16123 # Used on cygwin: DLL creation program.
16126 # Used on cygwin: object dumper.
16129 # Used on cygwin: assembler.
16132 # The name of the directory that contains temporary libtool files.
16135 # How to create reloadable object files.
16136 reload_flag=$lt_reload_flag
16137 reload_cmds=$lt_reload_cmds
16139 # How to pass a linker flag through the compiler.
16140 wl=$lt_lt_prog_compiler_wl_F77
16142 # Object file suffix (normally "o").
16143 objext="$ac_objext"
16145 # Old archive suffix (normally "a").
16148 # Shared library suffix (normally ".so").
16149 shrext_cmds='$shrext_cmds'
16151 # Executable file suffix (normally "").
16154 # Additional compiler flags for building library objects.
16155 pic_flag=$lt_lt_prog_compiler_pic_F77
16158 # What is the maximum length of a command?
16159 max_cmd_len=$lt_cv_sys_max_cmd_len
16161 # Does compiler simultaneously support -c and -o options?
16162 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16164 # Must we lock files when doing compilation?
16165 need_locks=$lt_need_locks
16167 # Do we need the lib prefix for modules?
16168 need_lib_prefix=$need_lib_prefix
16170 # Do we need a version for libraries?
16171 need_version=$need_version
16173 # Whether dlopen is supported.
16174 dlopen_support=$enable_dlopen
16176 # Whether dlopen of programs is supported.
16177 dlopen_self=$enable_dlopen_self
16179 # Whether dlopen of statically linked programs is supported.
16180 dlopen_self_static=$enable_dlopen_self_static
16182 # Compiler flag to prevent dynamic linking.
16183 link_static_flag=$lt_lt_prog_compiler_static_F77
16185 # Compiler flag to turn off builtin functions.
16186 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16188 # Compiler flag to allow reflexive dlopens.
16189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16191 # Compiler flag to generate shared objects directly from archives.
16192 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16194 # Compiler flag to generate thread-safe objects.
16195 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16197 # Library versioning type.
16198 version_type=$version_type
16200 # Format of library name prefix.
16201 libname_spec=$lt_libname_spec
16203 # List of archive names. First name is the real one, the rest are links.
16204 # The last name is the one that the linker finds with -lNAME.
16205 library_names_spec=$lt_library_names_spec
16207 # The coded name of the library, if different from the real name.
16208 soname_spec=$lt_soname_spec
16210 # Commands used to build and install an old-style archive.
16212 old_archive_cmds=$lt_old_archive_cmds_F77
16213 old_postinstall_cmds=$lt_old_postinstall_cmds
16214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16216 # Create an old-style archive from a shared archive.
16217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16219 # Create a temporary old-style archive to link instead of a shared archive.
16220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16222 # Commands used to build and install a shared archive.
16223 archive_cmds=$lt_archive_cmds_F77
16224 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16225 postinstall_cmds=$lt_postinstall_cmds
16226 postuninstall_cmds=$lt_postuninstall_cmds
16228 # Commands used to build a loadable module (assumed same as above if empty)
16229 module_cmds=$lt_module_cmds_F77
16230 module_expsym_cmds=$lt_module_expsym_cmds_F77
16232 # Commands to strip libraries.
16233 old_striplib=$lt_old_striplib
16234 striplib=$lt_striplib
16236 # Dependencies to place before the objects being linked to create a
16238 predep_objects=$lt_predep_objects_F77
16240 # Dependencies to place after the objects being linked to create a
16242 postdep_objects=$lt_postdep_objects_F77
16244 # Dependencies to place before the objects being linked to create a
16246 predeps=$lt_predeps_F77
16248 # Dependencies to place after the objects being linked to create a
16250 postdeps=$lt_postdeps_F77
16252 # The library search path used internally by the compiler when linking
16253 # a shared library.
16254 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16256 # Method to check whether dependent libraries are shared objects.
16257 deplibs_check_method=$lt_deplibs_check_method
16259 # Command to use when deplibs_check_method == file_magic.
16260 file_magic_cmd=$lt_file_magic_cmd
16262 # Flag that allows shared libraries with undefined symbols to be built.
16263 allow_undefined_flag=$lt_allow_undefined_flag_F77
16265 # Flag that forces no undefined symbols.
16266 no_undefined_flag=$lt_no_undefined_flag_F77
16268 # Commands used to finish a libtool library installation in a directory.
16269 finish_cmds=$lt_finish_cmds
16271 # Same as above, but a single script fragment to be evaled but not shown.
16272 finish_eval=$lt_finish_eval
16274 # Take the output of nm and produce a listing of raw symbols and C names.
16275 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16277 # Transform the output of nm in a proper C declaration
16278 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16280 # Transform the output of nm in a C name address pair
16281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16283 # This is the shared library runtime path variable.
16284 runpath_var=$runpath_var
16286 # This is the shared library path variable.
16287 shlibpath_var=$shlibpath_var
16289 # Is shlibpath searched before the hard-coded library search path?
16290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16292 # How to hardcode a shared library path into an executable.
16293 hardcode_action=$hardcode_action_F77
16295 # Whether we should hardcode library paths into libraries.
16296 hardcode_into_libs=$hardcode_into_libs
16298 # Flag to hardcode \$libdir into a binary during linking.
16299 # This must work even if \$libdir does not exist.
16300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16302 # If ld is used when linking, flag to hardcode \$libdir into
16303 # a binary during linking. This must work even if \$libdir does
16305 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16307 # Whether we need a single -rpath flag with a separated argument.
16308 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16310 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16311 # resulting binary.
16312 hardcode_direct=$hardcode_direct_F77
16314 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16315 # resulting binary.
16316 hardcode_minus_L=$hardcode_minus_L_F77
16318 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16319 # the resulting binary.
16320 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16322 # Set to yes if building a shared library automatically hardcodes DIR into the library
16323 # and all subsequent libraries and executables linked against it.
16324 hardcode_automatic=$hardcode_automatic_F77
16326 # Variables whose values should be saved in libtool wrapper scripts and
16327 # restored at relink time.
16328 variables_saved_for_relink="$variables_saved_for_relink"
16330 # Whether libtool must link a program against all its dependency libraries.
16331 link_all_deplibs=$link_all_deplibs_F77
16333 # Compile-time system search path for libraries
16334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16336 # Run-time system search path for libraries
16337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16339 # Fix the shell variable \$srcfile for the compiler.
16340 fix_srcfile_path="$fix_srcfile_path_F77"
16342 # Set to yes if exported symbols are required.
16343 always_export_symbols=$always_export_symbols_F77
16345 # The commands to list exported symbols.
16346 export_symbols_cmds=$lt_export_symbols_cmds_F77
16348 # The commands to extract the exported symbol list from a shared archive.
16349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16351 # Symbols that should not be listed in the preloaded symbols.
16352 exclude_expsyms=$lt_exclude_expsyms_F77
16354 # Symbols that must always be exported.
16355 include_expsyms=$lt_include_expsyms_F77
16357 # ### END LIBTOOL TAG CONFIG: $tagname
16363 # If there is no Makefile yet, we rely on a make rule to execute
16364 # `config.status --recheck' to rerun these tests and create the
16365 # libtool script then.
16366 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16367 if test -f "$ltmain_in"; then
16368 test -f Makefile && make "$ltmain"
16374 ac_cpp='$CPP $CPPFLAGS'
16375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16387 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16390 # Source file extension for Java test sources.
16393 # Object file extension for compiled Java test sources.
16397 # Code to be used in simple compile tests
16398 lt_simple_compile_test_code="class foo {}\n"
16400 # Code to be used in simple link tests
16401 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16403 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16405 # If no C compiler was specified, use CC.
16408 # If no C compiler flags were specified, use CFLAGS.
16409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16411 # Allow CC to be a program name with arguments.
16415 # save warnings/boilerplate of simple test code
16416 ac_outfile=conftest.$ac_objext
16417 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16418 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16419 _lt_compiler_boilerplate=`cat conftest.err`
16422 ac_outfile=conftest.$ac_objext
16423 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16424 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16425 _lt_linker_boilerplate=`cat conftest.err`
16429 # Allow CC to be a program name with arguments.
16434 for cc_temp in $compiler""; do
16436 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16437 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16442 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16445 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16446 archive_cmds_need_lc_GCJ=no
16448 old_archive_cmds_GCJ=$old_archive_cmds
16451 lt_prog_compiler_no_builtin_flag_GCJ=
16453 if test "$GCC" = yes; then
16454 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16457 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16458 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16459 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 lt_cv_prog_compiler_rtti_exceptions=no
16463 ac_outfile=conftest.$ac_objext
16464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16465 lt_compiler_flag="-fno-rtti -fno-exceptions"
16466 # Insert the option either (1) after the last *FLAGS variable, or
16467 # (2) before a word containing "conftest.", or (3) at the end.
16468 # Note that $ac_compile itself does not contain backslashes and begins
16469 # with a dollar sign (not a hyphen), so the echo should work correctly.
16470 # The option is referenced via a variable to avoid confusing sed.
16471 lt_compile=`echo "$ac_compile" | $SED \
16472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16474 -e 's:$: $lt_compiler_flag:'`
16475 (eval echo "\"\$as_me:16475: $lt_compile\"" >&5)
16476 (eval "$lt_compile" 2>conftest.err)
16478 cat conftest.err >&5
16479 echo "$as_me:16479: \$? = $ac_status" >&5
16480 if (exit $ac_status) && test -s "$ac_outfile"; then
16481 # The compiler can only warn and ignore the option if not recognized
16482 # So say no if there are warnings other than the usual output.
16483 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16485 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16486 lt_cv_prog_compiler_rtti_exceptions=yes
16492 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16493 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16495 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16496 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16503 lt_prog_compiler_wl_GCJ=
16504 lt_prog_compiler_pic_GCJ=
16505 lt_prog_compiler_static_GCJ=
16507 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16510 if test "$GCC" = yes; then
16511 lt_prog_compiler_wl_GCJ='-Wl,'
16512 lt_prog_compiler_static_GCJ='-static'
16516 # All AIX code is PIC.
16517 if test "$host_cpu" = ia64; then
16518 # AIX 5 now supports IA64 processor
16519 lt_prog_compiler_static_GCJ='-Bstatic'
16524 # FIXME: we need at least 68020 code to build shared libraries, but
16525 # adding the `-m68020' flag to GCC prevents building anything better,
16527 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16530 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16531 # PIC is the default for these OSes.
16534 mingw* | pw32* | os2*)
16535 # This hack is so that the source file can tell whether it is being
16536 # built for inclusion in a dll (and should export symbols for example).
16537 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16540 darwin* | rhapsody*)
16541 # PIC is the default on this platform
16542 # Common symbols not allowed in MH_DYLIB files
16543 lt_prog_compiler_pic_GCJ='-fno-common'
16547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16548 # Instead, we relocate shared libraries at runtime.
16552 # Just because we use GCC doesn't mean we suddenly get shared libraries
16553 # on systems that don't support them.
16554 lt_prog_compiler_can_build_shared_GCJ=no
16559 if test -d /usr/nec; then
16560 lt_prog_compiler_pic_GCJ=-Kconform_pic
16565 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16566 # not for PA HP-UX.
16572 lt_prog_compiler_pic_GCJ='-fPIC'
16578 lt_prog_compiler_pic_GCJ='-fPIC'
16582 # PORTME Check for flag to pass linker flags through the system compiler.
16585 lt_prog_compiler_wl_GCJ='-Wl,'
16586 if test "$host_cpu" = ia64; then
16587 # AIX 5 now supports IA64 processor
16588 lt_prog_compiler_static_GCJ='-Bstatic'
16590 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16594 # PIC is the default on this platform
16595 # Common symbols not allowed in MH_DYLIB files
16596 case $cc_basename in
16598 lt_prog_compiler_pic_GCJ='-qnocommon'
16599 lt_prog_compiler_wl_GCJ='-Wl,'
16604 mingw* | pw32* | os2*)
16605 # This hack is so that the source file can tell whether it is being
16606 # built for inclusion in a dll (and should export symbols for example).
16607 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16610 hpux9* | hpux10* | hpux11*)
16611 lt_prog_compiler_wl_GCJ='-Wl,'
16612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16613 # not for PA HP-UX.
16619 lt_prog_compiler_pic_GCJ='+Z'
16622 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16623 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16626 irix5* | irix6* | nonstopux*)
16627 lt_prog_compiler_wl_GCJ='-Wl,'
16628 # PIC (with -KPIC) is the default.
16629 lt_prog_compiler_static_GCJ='-non_shared'
16633 lt_prog_compiler_pic_GCJ='-KPIC'
16634 lt_prog_compiler_static_GCJ='-Bstatic'
16637 linux* | k*bsd*-gnu)
16638 case $cc_basename in
16640 lt_prog_compiler_wl_GCJ='-Wl,'
16641 lt_prog_compiler_pic_GCJ='-KPIC'
16642 lt_prog_compiler_static_GCJ='-static'
16644 pgcc* | pgf77* | pgf90* | pgf95*)
16645 # Portland Group compilers (*not* the Pentium gcc compiler,
16646 # which looks to be a dead project)
16647 lt_prog_compiler_wl_GCJ='-Wl,'
16648 lt_prog_compiler_pic_GCJ='-fpic'
16649 lt_prog_compiler_static_GCJ='-Bstatic'
16652 lt_prog_compiler_wl_GCJ='-Wl,'
16653 # All Alpha code is PIC.
16654 lt_prog_compiler_static_GCJ='-non_shared'
16659 osf3* | osf4* | osf5*)
16660 lt_prog_compiler_wl_GCJ='-Wl,'
16661 # All OSF/1 code is PIC.
16662 lt_prog_compiler_static_GCJ='-non_shared'
16666 lt_prog_compiler_pic_GCJ='-KPIC'
16667 lt_prog_compiler_static_GCJ='-Bstatic'
16668 case $cc_basename in
16669 f77* | f90* | f95*)
16670 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16672 lt_prog_compiler_wl_GCJ='-Wl,';;
16677 lt_prog_compiler_wl_GCJ='-Qoption ld '
16678 lt_prog_compiler_pic_GCJ='-PIC'
16679 lt_prog_compiler_static_GCJ='-Bstatic'
16682 sysv4 | sysv4.2uw2* | sysv4.3*)
16683 lt_prog_compiler_wl_GCJ='-Wl,'
16684 lt_prog_compiler_pic_GCJ='-KPIC'
16685 lt_prog_compiler_static_GCJ='-Bstatic'
16689 if test -d /usr/nec ;then
16690 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16691 lt_prog_compiler_static_GCJ='-Bstatic'
16695 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16696 lt_prog_compiler_wl_GCJ='-Wl,'
16697 lt_prog_compiler_pic_GCJ='-KPIC'
16698 lt_prog_compiler_static_GCJ='-Bstatic'
16702 lt_prog_compiler_wl_GCJ='-Wl,'
16703 lt_prog_compiler_can_build_shared_GCJ=no
16707 lt_prog_compiler_pic_GCJ='-pic'
16708 lt_prog_compiler_static_GCJ='-Bstatic'
16712 lt_prog_compiler_can_build_shared_GCJ=no
16717 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16718 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16721 # Check to make sure the PIC flag actually works.
16723 if test -n "$lt_prog_compiler_pic_GCJ"; then
16725 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16726 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16727 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16730 lt_prog_compiler_pic_works_GCJ=no
16731 ac_outfile=conftest.$ac_objext
16732 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16733 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16734 # Insert the option either (1) after the last *FLAGS variable, or
16735 # (2) before a word containing "conftest.", or (3) at the end.
16736 # Note that $ac_compile itself does not contain backslashes and begins
16737 # with a dollar sign (not a hyphen), so the echo should work correctly.
16738 # The option is referenced via a variable to avoid confusing sed.
16739 lt_compile=`echo "$ac_compile" | $SED \
16740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16742 -e 's:$: $lt_compiler_flag:'`
16743 (eval echo "\"\$as_me:16743: $lt_compile\"" >&5)
16744 (eval "$lt_compile" 2>conftest.err)
16746 cat conftest.err >&5
16747 echo "$as_me:16747: \$? = $ac_status" >&5
16748 if (exit $ac_status) && test -s "$ac_outfile"; then
16749 # The compiler can only warn and ignore the option if not recognized
16750 # So say no if there are warnings other than the usual output.
16751 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16754 lt_prog_compiler_pic_works_GCJ=yes
16760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16761 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16763 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16764 case $lt_prog_compiler_pic_GCJ in
16766 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16769 lt_prog_compiler_pic_GCJ=
16770 lt_prog_compiler_can_build_shared_GCJ=no
16775 # For platforms which do not support PIC, -DPIC is meaningless:
16777 lt_prog_compiler_pic_GCJ=
16780 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16785 # Check to make sure the static flag actually works.
16787 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16788 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16789 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16790 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 lt_prog_compiler_static_works_GCJ=no
16794 save_LDFLAGS="$LDFLAGS"
16795 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16796 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16798 # The linker can only warn and ignore the option if not recognized
16799 # So say no if there are warnings
16800 if test -s conftest.err; then
16801 # Append any errors to the config.log.
16802 cat conftest.err 1>&5
16803 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16805 if diff conftest.exp conftest.er2 >/dev/null; then
16806 lt_prog_compiler_static_works_GCJ=yes
16809 lt_prog_compiler_static_works_GCJ=yes
16813 LDFLAGS="$save_LDFLAGS"
16816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16817 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16819 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16822 lt_prog_compiler_static_GCJ=
16826 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16827 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16828 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 lt_cv_prog_compiler_c_o_GCJ=no
16832 $rm -r conftest 2>/dev/null
16836 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16838 lt_compiler_flag="-o out/conftest2.$ac_objext"
16839 # Insert the option either (1) after the last *FLAGS variable, or
16840 # (2) before a word containing "conftest.", or (3) at the end.
16841 # Note that $ac_compile itself does not contain backslashes and begins
16842 # with a dollar sign (not a hyphen), so the echo should work correctly.
16843 lt_compile=`echo "$ac_compile" | $SED \
16844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16846 -e 's:$: $lt_compiler_flag:'`
16847 (eval echo "\"\$as_me:16847: $lt_compile\"" >&5)
16848 (eval "$lt_compile" 2>out/conftest.err)
16850 cat out/conftest.err >&5
16851 echo "$as_me:16851: \$? = $ac_status" >&5
16852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16854 # The compiler can only warn and ignore the option if not recognized
16855 # So say no if there are warnings
16856 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16857 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16858 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16859 lt_cv_prog_compiler_c_o_GCJ=yes
16864 # SGI C++ compiler will create directory out/ii_files/ for
16865 # template instantiation
16866 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16867 $rm out/* && rmdir out
16873 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16874 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16877 hard_links="nottested"
16878 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16879 # do not overwrite the value of need_locks provided by the user
16880 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16881 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16886 ln conftest.a conftest.b 2>&5 || hard_links=no
16887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16888 { echo "$as_me:$LINENO: result: $hard_links" >&5
16889 echo "${ECHO_T}$hard_links" >&6; }
16890 if test "$hard_links" = no; then
16891 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16892 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16899 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16900 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16903 allow_undefined_flag_GCJ=
16904 enable_shared_with_static_runtimes_GCJ=no
16906 archive_expsym_cmds_GCJ=
16907 old_archive_From_new_cmds_GCJ=
16908 old_archive_from_expsyms_cmds_GCJ=
16909 export_dynamic_flag_spec_GCJ=
16910 whole_archive_flag_spec_GCJ=
16911 thread_safe_flag_spec_GCJ=
16912 hardcode_libdir_flag_spec_GCJ=
16913 hardcode_libdir_flag_spec_ld_GCJ=
16914 hardcode_libdir_separator_GCJ=
16915 hardcode_direct_GCJ=no
16916 hardcode_minus_L_GCJ=no
16917 hardcode_shlibpath_var_GCJ=unsupported
16918 link_all_deplibs_GCJ=unknown
16919 hardcode_automatic_GCJ=no
16921 module_expsym_cmds_GCJ=
16922 always_export_symbols_GCJ=no
16923 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16924 # include_expsyms should be a list of space-separated symbols to be *always*
16925 # included in the symbol list
16926 include_expsyms_GCJ=
16927 # exclude_expsyms can be an extended regexp of symbols to exclude
16928 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16929 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16930 # as well as any symbol that contains `d'.
16931 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16932 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16933 # platforms (ab)use it in PIC code, but their linkers get confused if
16934 # the symbol is explicitly referenced. Since portable code cannot
16935 # rely on this symbol name, it's probably fine to never include it in
16936 # preloaded symbol tables.
16937 extract_expsyms_cmds=
16938 # Just being paranoid about ensuring that cc_basename is set.
16939 for cc_temp in $compiler""; do
16941 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16942 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16947 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16950 cygwin* | mingw* | pw32*)
16951 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16952 # When not using gcc, we currently assume that we are using
16953 # Microsoft Visual C++.
16954 if test "$GCC" != yes; then
16959 # we just hope/assume this is gcc and not c89 (= MSVC++)
16968 if test "$with_gnu_ld" = yes; then
16969 # If archive_cmds runs LD, not CC, wlarc should be empty
16972 # Set some defaults for GNU ld with shared library support. These
16973 # are reset later if shared libraries are not supported. Putting them
16974 # here allows them to be overridden if necessary.
16975 runpath_var=LD_RUN_PATH
16976 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16977 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16978 # ancient GNU ld didn't support --whole-archive et. al.
16979 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16980 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16982 whole_archive_flag_spec_GCJ=
16984 supports_anon_versioning=no
16985 case `$LD -v 2>/dev/null` in
16986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16989 *\ 2.11.*) ;; # other 2.11 versions
16990 *) supports_anon_versioning=yes ;;
16993 # See if GNU ld supports shared libraries.
16995 aix3* | aix4* | aix5*)
16996 # On AIX/PPC, the GNU linker is very broken
16997 if test "$host_cpu" != ia64; then
17001 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17002 *** to be unable to reliably create shared libraries on AIX.
17003 *** Therefore, libtool is disabling shared libraries support. If you
17004 *** really care for shared libraries, you may want to modify your PATH
17005 *** so that a non-GNU linker is found, and then restart.
17012 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)'
17013 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17014 hardcode_minus_L_GCJ=yes
17016 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17017 # that the semantics of dynamic libraries on AmigaOS, at least up
17018 # to version 4, is to share data among multiple programs linked
17019 # with the same dynamic library. Since this doesn't match the
17020 # behavior of shared libraries on other platforms, we can't use
17026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17027 allow_undefined_flag_GCJ=unsupported
17028 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17029 # support --undefined. This deserves some investigation. FIXME
17030 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17036 cygwin* | mingw* | pw32*)
17037 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17038 # as there is no search path for DLLs.
17039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17040 allow_undefined_flag_GCJ=unsupported
17041 always_export_symbols_GCJ=no
17042 enable_shared_with_static_runtimes_GCJ=yes
17043 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17045 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17046 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17047 # If the export-symbols file already is a .def file (1st line
17048 # is EXPORTS), use it as is; otherwise, prepend...
17049 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17050 cp $export_symbols $output_objdir/$soname.def;
17052 echo EXPORTS > $output_objdir/$soname.def;
17053 cat $export_symbols >> $output_objdir/$soname.def;
17055 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17062 hardcode_direct_GCJ=no
17063 hardcode_shlibpath_var_GCJ=no
17064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17065 export_dynamic_flag_spec_GCJ='${wl}-E'
17066 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17067 # Instead, shared libraries are loaded at an image base (0x10000000 by
17068 # default) and relocated if they conflict, which is a slow very memory
17069 # consuming and fragmenting process. To avoid this, we pick a random,
17070 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17071 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17072 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'
17073 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'
17076 linux* | k*bsd*-gnu)
17077 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17079 case $cc_basename,$host_cpu in
17080 pgcc*) # Portland Group C compiler
17081 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'
17082 tmp_addflag=' $pic_flag'
17084 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17085 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'
17086 tmp_addflag=' $pic_flag -Mnomain' ;;
17087 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17088 tmp_addflag=' -i_dynamic' ;;
17089 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17090 tmp_addflag=' -i_dynamic -nofor_main' ;;
17091 ifc* | ifort*) # Intel Fortran compiler
17092 tmp_addflag=' -nofor_main' ;;
17094 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17096 if test $supports_anon_versioning = yes; then
17097 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17099 $echo "local: *; };" >> $output_objdir/$libname.ver~
17100 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17102 link_all_deplibs_GCJ=no
17108 netbsd* | netbsdelf*-gnu)
17109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17110 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17113 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17114 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17119 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17123 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17124 *** create shared libraries on Solaris systems. Therefore, libtool
17125 *** is disabling shared libraries support. We urge you to upgrade GNU
17126 *** binutils to release 2.9.1 or newer. Another option is to modify
17127 *** your PATH or compiler configuration so that the native linker is
17128 *** used, and then restart.
17131 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17132 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17133 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17140 case `$LD -v 2>&1` in
17141 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17145 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17146 *** reliably create shared libraries on SCO systems. Therefore, libtool
17147 *** is disabling shared libraries support. We urge you to upgrade GNU
17148 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17149 *** your PATH or compiler configuration so that the native linker is
17150 *** used, and then restart.
17155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17156 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17157 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17158 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17167 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_direct_GCJ=yes
17170 hardcode_shlibpath_var_GCJ=no
17174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17175 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17176 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17183 if test "$ld_shlibs_GCJ" = no; then
17185 hardcode_libdir_flag_spec_GCJ=
17186 export_dynamic_flag_spec_GCJ=
17187 whole_archive_flag_spec_GCJ=
17190 # PORTME fill in a description of your system's linker (not GNU ld)
17193 allow_undefined_flag_GCJ=unsupported
17194 always_export_symbols_GCJ=yes
17195 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'
17196 # Note: this linker hardcodes the directories in LIBPATH if there
17197 # are no directories specified by -L.
17198 hardcode_minus_L_GCJ=yes
17199 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17200 # Neither direct hardcoding nor static linking is supported with a
17202 hardcode_direct_GCJ=unsupported
17207 if test "$host_cpu" = ia64; then
17208 # On IA64, the linker does run time linking by default, so we don't
17209 # have to do anything special.
17210 aix_use_runtimelinking=no
17211 exp_sym_flag='-Bexport'
17214 # If we're using GNU nm, then we don't want the "-C" option.
17215 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17216 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17217 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'
17219 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'
17221 aix_use_runtimelinking=no
17223 # Test if we are trying to use run time linking or normal
17224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17225 # need to do runtime linking.
17226 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17227 for ld_flag in $LDFLAGS; do
17228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17229 aix_use_runtimelinking=yes
17236 exp_sym_flag='-bexport'
17237 no_entry_flag='-bnoentry'
17240 # When large executables or shared objects are built, AIX ld can
17241 # have problems creating the table of contents. If linking a library
17242 # or program results in "error TOC overflow" add -mminimal-toc to
17243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17246 archive_cmds_GCJ=''
17247 hardcode_direct_GCJ=yes
17248 hardcode_libdir_separator_GCJ=':'
17249 link_all_deplibs_GCJ=yes
17251 if test "$GCC" = yes; then
17252 case $host_os in aix4.[012]|aix4.[012].*)
17253 # We only want to do this on AIX 4.2 and lower, the check
17254 # below for broken collect2 doesn't work under 4.3+
17255 collect2name=`${CC} -print-prog-name=collect2`
17256 if test -f "$collect2name" && \
17257 strings "$collect2name" | grep resolve_lib_name >/dev/null
17259 # We have reworked collect2
17260 hardcode_direct_GCJ=yes
17262 # We have old collect2
17263 hardcode_direct_GCJ=unsupported
17264 # It fails to find uninstalled libraries when the uninstalled
17265 # path is not listed in the libpath. Setting hardcode_minus_L
17266 # to unsupported forces relinking
17267 hardcode_minus_L_GCJ=yes
17268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17269 hardcode_libdir_separator_GCJ=
17273 shared_flag='-shared'
17274 if test "$aix_use_runtimelinking" = yes; then
17275 shared_flag="$shared_flag "'${wl}-G'
17279 if test "$host_cpu" = ia64; then
17280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17281 # chokes on -Wl,-G. The following line is correct:
17284 if test "$aix_use_runtimelinking" = yes; then
17285 shared_flag='${wl}-G'
17287 shared_flag='${wl}-bM:SRE'
17292 # It seems that -bexpall does not export symbols beginning with
17293 # underscore (_), so it is better to generate a list of symbols to export.
17294 always_export_symbols_GCJ=yes
17295 if test "$aix_use_runtimelinking" = yes; then
17296 # Warning - without using the other runtime loading flags (-brtl),
17297 # -berok will link without error, but may produce a broken library.
17298 allow_undefined_flag_GCJ='-berok'
17299 # Determine the default libpath from the value encoded in an empty executable.
17300 cat >conftest.$ac_ext <<_ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_link") 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest$ac_exeext &&
17332 $as_test_x conftest$ac_exeext; then
17334 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17336 # Check for a 64-bit object if we didn't find anything.
17337 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17350 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17351 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"
17353 if test "$host_cpu" = ia64; then
17354 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17355 allow_undefined_flag_GCJ="-z nodefs"
17356 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"
17358 # Determine the default libpath from the value encoded in an empty executable.
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (ac_try="$ac_link"
17376 case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_link") 2>conftest.er1
17383 grep -v '^ *+' conftest.er1 >conftest.err
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } && {
17388 test -z "$ac_c_werror_flag" ||
17389 test ! -s conftest.err
17390 } && test -s conftest$ac_exeext &&
17391 $as_test_x conftest$ac_exeext; then
17393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17395 # Check for a 64-bit object if we didn't find anything.
17396 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; }
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17406 conftest$ac_exeext conftest.$ac_ext
17407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17409 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17410 # Warning - without using the other run time loading flags,
17411 # -berok will link without error, but may produce a broken library.
17412 no_undefined_flag_GCJ=' ${wl}-bernotok'
17413 allow_undefined_flag_GCJ=' ${wl}-berok'
17414 # Exported symbols can be pulled into shared objects from archives
17415 whole_archive_flag_spec_GCJ='$convenience'
17416 archive_cmds_need_lc_GCJ=yes
17417 # This is similar to how AIX traditionally builds its shared libraries.
17418 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'
17424 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)'
17425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17426 hardcode_minus_L_GCJ=yes
17427 # see comment about different semantics on the GNU ld section
17432 export_dynamic_flag_spec_GCJ=-rdynamic
17435 cygwin* | mingw* | pw32*)
17436 # When not using gcc, we currently assume that we are using
17437 # Microsoft Visual C++.
17438 # hardcode_libdir_flag_spec is actually meaningless, as there is
17439 # no search path for DLLs.
17440 hardcode_libdir_flag_spec_GCJ=' '
17441 allow_undefined_flag_GCJ=unsupported
17442 # Tell ltmain to make .lib files, not .a files.
17444 # Tell ltmain to make .dll files, not .so files.
17446 # FIXME: Setting linknames here is a bad hack.
17447 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17448 # The linker will automatically build a .lib file if we build a DLL.
17449 old_archive_From_new_cmds_GCJ='true'
17450 # FIXME: Should let the user specify the lib program.
17451 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17452 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17453 enable_shared_with_static_runtimes_GCJ=yes
17456 darwin* | rhapsody*)
17458 rhapsody* | darwin1.[012])
17459 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17462 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17463 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17465 case ${MACOSX_DEPLOYMENT_TARGET} in
17467 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17470 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17476 archive_cmds_need_lc_GCJ=no
17477 hardcode_direct_GCJ=no
17478 hardcode_automatic_GCJ=yes
17479 hardcode_shlibpath_var_GCJ=unsupported
17480 whole_archive_flag_spec_GCJ=''
17481 link_all_deplibs_GCJ=yes
17482 if test "$GCC" = yes ; then
17483 output_verbose_link_cmd='echo'
17484 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17485 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17486 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17487 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}'
17488 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}'
17490 case $cc_basename in
17492 output_verbose_link_cmd='echo'
17493 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17494 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17495 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17496 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}'
17497 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}'
17507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17508 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17509 hardcode_shlibpath_var_GCJ=no
17516 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17517 # support. Future versions do this automatically, but an explicit c++rt0.o
17518 # does not break anything, and helps significantly (at the cost of a little
17521 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17522 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17523 hardcode_direct_GCJ=yes
17524 hardcode_shlibpath_var_GCJ=no
17527 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17529 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17530 hardcode_direct_GCJ=yes
17531 hardcode_minus_L_GCJ=yes
17532 hardcode_shlibpath_var_GCJ=no
17535 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17536 freebsd* | dragonfly*)
17537 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17538 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17539 hardcode_direct_GCJ=yes
17540 hardcode_shlibpath_var_GCJ=no
17544 if test "$GCC" = yes; then
17545 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'
17547 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'
17549 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17550 hardcode_libdir_separator_GCJ=:
17551 hardcode_direct_GCJ=yes
17553 # hardcode_minus_L: Not really in the search PATH,
17554 # but as the default location of the library.
17555 hardcode_minus_L_GCJ=yes
17556 export_dynamic_flag_spec_GCJ='${wl}-E'
17560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17561 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17563 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17565 if test "$with_gnu_ld" = no; then
17566 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17567 hardcode_libdir_separator_GCJ=:
17569 hardcode_direct_GCJ=yes
17570 export_dynamic_flag_spec_GCJ='${wl}-E'
17572 # hardcode_minus_L: Not really in the search PATH,
17573 # but as the default location of the library.
17574 hardcode_minus_L_GCJ=yes
17579 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17582 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17588 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17594 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17597 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17600 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17604 if test "$with_gnu_ld" = no; then
17605 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17606 hardcode_libdir_separator_GCJ=:
17610 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17611 hardcode_direct_GCJ=no
17612 hardcode_shlibpath_var_GCJ=no
17615 hardcode_direct_GCJ=yes
17616 export_dynamic_flag_spec_GCJ='${wl}-E'
17618 # hardcode_minus_L: Not really in the search PATH,
17619 # but as the default location of the library.
17620 hardcode_minus_L_GCJ=yes
17626 irix5* | irix6* | nonstopux*)
17627 if test "$GCC" = yes; then
17628 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'
17630 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'
17631 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17634 hardcode_libdir_separator_GCJ=:
17635 link_all_deplibs_GCJ=yes
17638 netbsd* | netbsdelf*-gnu)
17639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17640 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17642 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17644 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17645 hardcode_direct_GCJ=yes
17646 hardcode_shlibpath_var_GCJ=no
17650 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17651 hardcode_direct_GCJ=yes
17652 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17653 hardcode_libdir_separator_GCJ=:
17654 hardcode_shlibpath_var_GCJ=no
17658 hardcode_direct_GCJ=yes
17659 hardcode_shlibpath_var_GCJ=no
17660 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17661 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17662 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17664 export_dynamic_flag_spec_GCJ='${wl}-E'
17667 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17668 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17669 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17672 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17680 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17681 hardcode_minus_L_GCJ=yes
17682 allow_undefined_flag_GCJ=unsupported
17683 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'
17684 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17688 if test "$GCC" = yes; then
17689 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17690 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'
17692 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17693 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'
17695 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17696 hardcode_libdir_separator_GCJ=:
17699 osf4* | osf5*) # as osf3* with the addition of -msym flag
17700 if test "$GCC" = yes; then
17701 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17702 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'
17703 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17705 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17706 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'
17707 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~
17708 $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'
17710 # Both c and cxx compiler support -rpath directly
17711 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17713 hardcode_libdir_separator_GCJ=:
17717 no_undefined_flag_GCJ=' -z text'
17718 if test "$GCC" = yes; then
17720 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17721 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17722 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17725 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17727 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17729 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17730 hardcode_shlibpath_var_GCJ=no
17732 solaris2.[0-5] | solaris2.[0-5].*) ;;
17734 # The compiler driver will combine linker options so we
17735 # cannot just pass the convience library names through
17736 # without $wl, iff we do not link with $LD.
17737 # Luckily, gcc supports the same syntax we need for Sun Studio.
17738 # Supported since Solaris 2.6 (maybe 2.5.1?)
17741 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17743 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' ;;
17746 link_all_deplibs_GCJ=yes
17750 if test "x$host_vendor" = xsequent; then
17751 # Use $CC to link under sequent, because it throws in some extra .o
17752 # files that make .init and .fini sections work.
17753 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17755 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17757 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17758 hardcode_direct_GCJ=yes
17759 hardcode_minus_L_GCJ=yes
17760 hardcode_shlibpath_var_GCJ=no
17764 case $host_vendor in
17766 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17767 hardcode_direct_GCJ=yes # is this really true???
17770 ## LD is ld it makes a PLAMLIB
17771 ## CC just makes a GrossModule.
17772 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17773 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17774 hardcode_direct_GCJ=no
17777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17778 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17781 runpath_var='LD_RUN_PATH'
17782 hardcode_shlibpath_var_GCJ=no
17786 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17787 hardcode_shlibpath_var_GCJ=no
17788 export_dynamic_flag_spec_GCJ='-Bexport'
17792 if test -d /usr/nec; then
17793 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17794 hardcode_shlibpath_var_GCJ=no
17795 runpath_var=LD_RUN_PATH
17796 hardcode_runpath_var=yes
17801 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17802 no_undefined_flag_GCJ='${wl}-z,text'
17803 archive_cmds_need_lc_GCJ=no
17804 hardcode_shlibpath_var_GCJ=no
17805 runpath_var='LD_RUN_PATH'
17807 if test "$GCC" = yes; then
17808 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17809 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17811 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17812 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17816 sysv5* | sco3.2v5* | sco5v6*)
17817 # Note: We can NOT use -z defs as we might desire, because we do not
17818 # link with -lc, and that would cause any symbols used from libc to
17819 # always be unresolved, which means just about no library would
17820 # ever link correctly. If we're not using GNU ld we use -z text
17821 # though, which does catch some bad symbols but isn't as heavy-handed
17823 no_undefined_flag_GCJ='${wl}-z,text'
17824 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17825 archive_cmds_need_lc_GCJ=no
17826 hardcode_shlibpath_var_GCJ=no
17827 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17828 hardcode_libdir_separator_GCJ=':'
17829 link_all_deplibs_GCJ=yes
17830 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17831 runpath_var='LD_RUN_PATH'
17833 if test "$GCC" = yes; then
17834 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17835 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17837 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17838 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17845 hardcode_shlibpath_var_GCJ=no
17854 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17855 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17856 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17859 # Do we need to explicitly link libc?
17861 case "x$archive_cmds_need_lc_GCJ" in
17863 # Assume -lc should be added
17864 archive_cmds_need_lc_GCJ=yes
17866 if test "$enable_shared" = yes && test "$GCC" = yes; then
17867 case $archive_cmds_GCJ in
17869 # FIXME: we may have to deal with multi-command sequences.
17872 # Test whether the compiler implicitly links with -lc since on some
17873 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17874 # to ld, don't add -lc before -lgcc.
17875 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17876 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17881 (eval $ac_compile) 2>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } 2>conftest.err; then
17887 libobjs=conftest.$ac_objext
17889 wl=$lt_prog_compiler_wl_GCJ
17890 pic_flag=$lt_prog_compiler_pic_GCJ
17896 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17897 allow_undefined_flag_GCJ=
17898 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17899 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }
17904 archive_cmds_need_lc_GCJ=no
17906 archive_cmds_need_lc_GCJ=yes
17908 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17910 cat conftest.err 1>&5
17913 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17914 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17921 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17922 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17923 library_names_spec=
17924 libname_spec='lib$name'
17928 postuninstall_cmds=
17932 shlibpath_overrides_runpath=unknown
17934 dynamic_linker="$host_os ld.so"
17935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17936 if test "$GCC" = yes; then
17937 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17938 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17939 # if the path contains ";" then we assume it to be the separator
17940 # otherwise default to the standard path separator (i.e. ":") - it is
17941 # assumed that no part of a normal pathname contains ";" but that should
17942 # okay in the real world where ";" in dirpaths is itself problematic.
17943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17948 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17950 need_lib_prefix=unknown
17951 hardcode_into_libs=no
17953 # when you set need_version to no, make sure it does not cause -set_version
17954 # flags to be left without arguments
17955 need_version=unknown
17960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17961 shlibpath_var=LIBPATH
17963 # AIX 3 has no versioning support, so we append a major version to the name.
17964 soname_spec='${libname}${release}${shared_ext}$major'
17971 hardcode_into_libs=yes
17972 if test "$host_cpu" = ia64; then
17973 # AIX 5 supports IA64
17974 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17975 shlibpath_var=LD_LIBRARY_PATH
17977 # With GCC up to 2.95.x, collect2 would create an import file
17978 # for dependence libraries. The import file would start with
17979 # the line `#! .'. This would cause the generated library to
17980 # depend on `.', always an invalid library. This was fixed in
17981 # development snapshots of GCC prior to 3.0.
17983 aix4 | aix4.[01] | aix4.[01].*)
17984 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17986 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17989 can_build_shared=no
17993 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17994 # soname into executable. Probably we can add versioning support to
17995 # collect2, so additional links can be useful in future.
17996 if test "$aix_use_runtimelinking" = yes; then
17997 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17998 # instead of lib<name>.a to let people know that these are not
17999 # typical AIX shared libraries.
18000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002 # We preserve .a as extension for shared libraries through AIX4.2
18003 # and later when we are not doing run time linking.
18004 library_names_spec='${libname}${release}.a $libname.a'
18005 soname_spec='${libname}${release}${shared_ext}$major'
18007 shlibpath_var=LIBPATH
18012 library_names_spec='$libname.ixlibrary $libname.a'
18013 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18014 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'
18018 library_names_spec='${libname}${shared_ext}'
18019 dynamic_linker="$host_os ld.so"
18020 shlibpath_var=LIBRARY_PATH
18026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18027 soname_spec='${libname}${release}${shared_ext}$major'
18028 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18029 shlibpath_var=LD_LIBRARY_PATH
18030 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18031 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18032 # the default ld.so.conf also contains /usr/contrib/lib and
18033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18034 # libtool to hard-code these into programs
18037 cygwin* | mingw* | pw32*)
18038 version_type=windows
18043 case $GCC,$host_os in
18044 yes,cygwin* | yes,mingw* | yes,pw32*)
18045 library_names_spec='$libname.dll.a'
18046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18047 postinstall_cmds='base_file=`basename \${file}`~
18048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18049 dldir=$destdir/`dirname \$dlpath`~
18050 test -d \$dldir || mkdir -p \$dldir~
18051 $install_prog $dir/$dlname \$dldir/$dlname~
18052 chmod a+x \$dldir/$dlname'
18053 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18054 dlpath=$dir/\$dldll~
18056 shlibpath_overrides_runpath=yes
18060 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18061 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18062 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18065 # MinGW DLLs use traditional 'lib' prefix
18066 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18068 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18069 # It is most probably a Windows format PATH printed by
18070 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18071 # path with ; separators, and with drive letters. We can handle the
18072 # drive letters (cygwin fileutils understands them), so leave them,
18073 # especially as we might pass files found there to a mingw objdump,
18074 # which wouldn't understand a cygwinified path. Ahh.
18075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18081 # pw32 DLLs use 'pw' prefix rather than 'lib'
18082 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18088 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18091 dynamic_linker='Win32 ld.exe'
18092 # FIXME: first we should search . and the directory the executable is in
18096 darwin* | rhapsody*)
18097 dynamic_linker="$host_os dyld"
18098 version_type=darwin
18101 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18102 soname_spec='${libname}${release}${major}$shared_ext'
18103 shlibpath_overrides_runpath=yes
18104 shlibpath_var=DYLD_LIBRARY_PATH
18105 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18106 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18107 if test "$GCC" = yes; then
18108 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"`
18110 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18112 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18120 soname_spec='${libname}${release}${shared_ext}$major'
18121 shlibpath_var=LD_LIBRARY_PATH
18128 freebsd* | dragonfly*)
18129 # DragonFly does not have aout. When/if they implement a new
18130 # versioning mechanism, adjust this.
18131 if test -x /usr/bin/objformat; then
18132 objformat=`/usr/bin/objformat`
18135 freebsd[123]*) objformat=aout ;;
18136 *) objformat=elf ;;
18139 version_type=freebsd-$objformat
18140 case $version_type in
18142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18151 shlibpath_var=LD_LIBRARY_PATH
18154 shlibpath_overrides_runpath=yes
18156 freebsd3.[01]* | freebsdelf3.[01]*)
18157 shlibpath_overrides_runpath=yes
18158 hardcode_into_libs=yes
18160 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18161 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18162 shlibpath_overrides_runpath=no
18163 hardcode_into_libs=yes
18165 freebsd*) # from 4.6 on
18166 shlibpath_overrides_runpath=yes
18167 hardcode_into_libs=yes
18176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18177 soname_spec='${libname}${release}${shared_ext}$major'
18178 shlibpath_var=LD_LIBRARY_PATH
18179 hardcode_into_libs=yes
18182 hpux9* | hpux10* | hpux11*)
18183 # Give a soname corresponding to the major version so that dld.sl refuses to
18184 # link against other versions.
18191 hardcode_into_libs=yes
18192 dynamic_linker="$host_os dld.so"
18193 shlibpath_var=LD_LIBRARY_PATH
18194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 if test "X$HPUX_IA64_MODE" = X32; then
18198 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18200 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18206 hardcode_into_libs=yes
18207 dynamic_linker="$host_os dld.sl"
18208 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18211 soname_spec='${libname}${release}${shared_ext}$major'
18212 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18217 dynamic_linker="$host_os dld.sl"
18218 shlibpath_var=SHLIB_PATH
18219 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221 soname_spec='${libname}${release}${shared_ext}$major'
18224 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18225 postinstall_cmds='chmod 555 $lib'
18232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18233 soname_spec='${libname}${release}${shared_ext}$major'
18234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18235 shlibpath_var=LD_LIBRARY_PATH
18236 shlibpath_overrides_runpath=no
18237 hardcode_into_libs=yes
18240 irix5* | irix6* | nonstopux*)
18242 nonstopux*) version_type=nonstopux ;;
18244 if test "$lt_cv_prog_gnu_ld" = yes; then
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18255 irix5* | nonstopux*)
18256 libsuff= shlibsuff=
18259 case $LD in # libtool.m4 will add one of these switches to LD
18260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18261 libsuff= shlibsuff= libmagic=32-bit;;
18262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18263 libsuff=32 shlibsuff=N32 libmagic=N32;;
18264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18265 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18266 *) libsuff= shlibsuff= libmagic=never-match;;
18270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18271 shlibpath_overrides_runpath=no
18272 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18273 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18274 hardcode_into_libs=yes
18277 # No shared lib support for Linux oldld, aout, or coff.
18278 linux*oldld* | linux*aout* | linux*coff*)
18282 # This must be Linux ELF.
18283 linux* | k*bsd*-gnu)
18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18288 soname_spec='${libname}${release}${shared_ext}$major'
18289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18290 shlibpath_var=LD_LIBRARY_PATH
18291 shlibpath_overrides_runpath=no
18292 # This implies no fast_install, which is unacceptable.
18293 # Some rework will be needed to allow for fast_install
18294 # before this can be enabled.
18295 hardcode_into_libs=yes
18297 # Append ld.so.conf contents to the search path
18298 if test -f /etc/ld.so.conf; then
18299 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' ' '`
18300 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18303 # We used to test for /lib/ld.so.1 and disable shared libraries on
18304 # powerpc, because MkLinux only supported shared libraries with the
18305 # GNU dynamic linker. Since this was broken with cross compilers,
18306 # most powerpc-linux boxes support dynamic linking these days and
18307 # people can always --disable-shared, the test was removed, and we
18308 # assume the GNU/Linux dynamic linker is in use.
18309 dynamic_linker='GNU/Linux ld.so'
18316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18317 soname_spec='${libname}${release}${shared_ext}$major'
18318 shlibpath_var=LD_LIBRARY_PATH
18319 shlibpath_overrides_runpath=no
18320 hardcode_into_libs=yes
18321 dynamic_linker='NetBSD ld.elf_so'
18328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18331 dynamic_linker='NetBSD (a.out) ld.so'
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18334 soname_spec='${libname}${release}${shared_ext}$major'
18335 dynamic_linker='NetBSD ld.elf_so'
18337 shlibpath_var=LD_LIBRARY_PATH
18338 shlibpath_overrides_runpath=yes
18339 hardcode_into_libs=yes
18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18345 shlibpath_var=LD_LIBRARY_PATH
18346 shlibpath_overrides_runpath=yes
18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18354 soname_spec='${libname}${release}${shared_ext}$major'
18355 shlibpath_var=LD_LIBRARY_PATH
18356 shlibpath_overrides_runpath=yes
18361 sys_lib_dlsearch_path_spec="/usr/lib"
18363 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18365 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18366 *) need_version=no ;;
18368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18370 shlibpath_var=LD_LIBRARY_PATH
18371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18373 openbsd2.[89] | openbsd2.[89].*)
18374 shlibpath_overrides_runpath=no
18377 shlibpath_overrides_runpath=yes
18381 shlibpath_overrides_runpath=yes
18386 libname_spec='$name'
18389 library_names_spec='$libname${shared_ext} $libname.a'
18390 dynamic_linker='OS/2 ld.exe'
18391 shlibpath_var=LIBPATH
18394 osf3* | osf4* | osf5*)
18398 soname_spec='${libname}${release}${shared_ext}$major'
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18402 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18410 soname_spec='${libname}${release}${shared_ext}$major'
18411 shlibpath_var=LD_LIBRARY_PATH
18412 shlibpath_overrides_runpath=yes
18413 hardcode_into_libs=yes
18414 # ldd complains unless libraries are executable
18415 postinstall_cmds='chmod +x $lib'
18420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18421 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18422 shlibpath_var=LD_LIBRARY_PATH
18423 shlibpath_overrides_runpath=yes
18424 if test "$with_gnu_ld" = yes; then
18432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18433 soname_spec='${libname}${release}${shared_ext}$major'
18434 shlibpath_var=LD_LIBRARY_PATH
18435 case $host_vendor in
18437 shlibpath_overrides_runpath=no
18439 export_dynamic_flag_spec='${wl}-Blargedynsym'
18440 runpath_var=LD_RUN_PATH
18448 shlibpath_overrides_runpath=no
18449 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18455 if test -d /usr/nec ;then
18457 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18458 soname_spec='$libname${shared_ext}.$major'
18459 shlibpath_var=LD_LIBRARY_PATH
18463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18464 version_type=freebsd-elf
18467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18468 soname_spec='${libname}${release}${shared_ext}$major'
18469 shlibpath_var=LD_LIBRARY_PATH
18470 hardcode_into_libs=yes
18471 if test "$with_gnu_ld" = yes; then
18472 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18473 shlibpath_overrides_runpath=no
18475 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18476 shlibpath_overrides_runpath=yes
18479 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18483 sys_lib_dlsearch_path_spec='/usr/lib'
18488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18489 soname_spec='${libname}${release}${shared_ext}$major'
18490 shlibpath_var=LD_LIBRARY_PATH
18497 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18498 echo "${ECHO_T}$dynamic_linker" >&6; }
18499 test "$dynamic_linker" = no && can_build_shared=no
18501 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18502 if test "$GCC" = yes; then
18503 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18506 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18507 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18508 hardcode_action_GCJ=
18509 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18510 test -n "$runpath_var_GCJ" || \
18511 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18513 # We can hardcode non-existant directories.
18514 if test "$hardcode_direct_GCJ" != no &&
18515 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18516 # have to relink, otherwise we might link with an installed library
18517 # when we should be linking with a yet-to-be-installed one
18518 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18519 test "$hardcode_minus_L_GCJ" != no; then
18520 # Linking always hardcodes the temporary library directory.
18521 hardcode_action_GCJ=relink
18523 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18524 hardcode_action_GCJ=immediate
18527 # We cannot hardcode anything, or else we can only hardcode existing
18529 hardcode_action_GCJ=unsupported
18531 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18532 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18534 if test "$hardcode_action_GCJ" = relink; then
18535 # Fast installation is not supported
18536 enable_fast_install=no
18537 elif test "$shlibpath_overrides_runpath" = yes ||
18538 test "$enable_shared" = no; then
18539 # Fast installation is not necessary
18540 enable_fast_install=needless
18544 # The else clause should only fire when bootstrapping the
18545 # libtool distribution, otherwise you forgot to ship ltmain.sh
18546 # with your package, and you will get complaints that there are
18547 # no rules to generate ltmain.sh.
18548 if test -f "$ltmain"; then
18549 # See if we are running on zsh, and set the options which allow our commands through
18550 # without removal of \ escapes.
18551 if test -n "${ZSH_VERSION+set}" ; then
18552 setopt NO_GLOB_SUBST
18554 # Now quote all the things that may contain metacharacters while being
18555 # careful not to overquote the AC_SUBSTed values. We take copies of the
18556 # variables and quote the copies for generation of the libtool script.
18557 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18559 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18560 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18561 deplibs_check_method reload_flag reload_cmds need_locks \
18562 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18563 lt_cv_sys_global_symbol_to_c_name_address \
18564 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18565 old_postinstall_cmds old_postuninstall_cmds \
18569 lt_prog_compiler_wl_GCJ \
18570 lt_prog_compiler_pic_GCJ \
18571 lt_prog_compiler_static_GCJ \
18572 lt_prog_compiler_no_builtin_flag_GCJ \
18573 export_dynamic_flag_spec_GCJ \
18574 thread_safe_flag_spec_GCJ \
18575 whole_archive_flag_spec_GCJ \
18576 enable_shared_with_static_runtimes_GCJ \
18577 old_archive_cmds_GCJ \
18578 old_archive_from_new_cmds_GCJ \
18579 predep_objects_GCJ \
18580 postdep_objects_GCJ \
18583 compiler_lib_search_path_GCJ \
18585 archive_expsym_cmds_GCJ \
18586 postinstall_cmds_GCJ \
18587 postuninstall_cmds_GCJ \
18588 old_archive_from_expsyms_cmds_GCJ \
18589 allow_undefined_flag_GCJ \
18590 no_undefined_flag_GCJ \
18591 export_symbols_cmds_GCJ \
18592 hardcode_libdir_flag_spec_GCJ \
18593 hardcode_libdir_flag_spec_ld_GCJ \
18594 hardcode_libdir_separator_GCJ \
18595 hardcode_automatic_GCJ \
18597 module_expsym_cmds_GCJ \
18598 lt_cv_prog_compiler_c_o_GCJ \
18599 exclude_expsyms_GCJ \
18600 include_expsyms_GCJ; do
18603 old_archive_cmds_GCJ | \
18604 old_archive_from_new_cmds_GCJ | \
18605 archive_cmds_GCJ | \
18606 archive_expsym_cmds_GCJ | \
18607 module_cmds_GCJ | \
18608 module_expsym_cmds_GCJ | \
18609 old_archive_from_expsyms_cmds_GCJ | \
18610 export_symbols_cmds_GCJ | \
18611 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18612 postinstall_cmds | postuninstall_cmds | \
18613 old_postinstall_cmds | old_postuninstall_cmds | \
18614 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18615 # Double-quote double-evaled strings.
18616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18625 *'\$0 --fallback-echo"')
18626 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18632 cat <<__EOF__ >> "$cfgfile"
18633 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18637 # Shell to use when invoking shell scripts.
18640 # Whether or not to build shared libraries.
18641 build_libtool_libs=$enable_shared
18643 # Whether or not to build static libraries.
18644 build_old_libs=$enable_static
18646 # Whether or not to add -lc for building shared libraries.
18647 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18649 # Whether or not to disallow shared libs when runtime libs are static
18650 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18652 # Whether or not to optimize for fast installation.
18653 fast_install=$enable_fast_install
18656 host_alias=$host_alias
18660 # The build system.
18661 build_alias=$build_alias
18665 # An echo program that does not interpret backslashes.
18670 AR_FLAGS=$lt_AR_FLAGS
18675 # LTCC compiler flags.
18676 LTCFLAGS=$lt_LTCFLAGS
18678 # A language-specific compiler.
18679 CC=$lt_compiler_GCJ
18681 # Is the compiler the GNU C compiler?
18687 # The linker used to build libraries.
18690 # Whether we need hard or soft links.
18693 # A BSD-compatible nm program.
18696 # A symbol stripping program
18699 # Used to examine libraries when file_magic_cmd begins "file"
18700 MAGIC_CMD=$MAGIC_CMD
18702 # Used on cygwin: DLL creation program.
18705 # Used on cygwin: object dumper.
18708 # Used on cygwin: assembler.
18711 # The name of the directory that contains temporary libtool files.
18714 # How to create reloadable object files.
18715 reload_flag=$lt_reload_flag
18716 reload_cmds=$lt_reload_cmds
18718 # How to pass a linker flag through the compiler.
18719 wl=$lt_lt_prog_compiler_wl_GCJ
18721 # Object file suffix (normally "o").
18722 objext="$ac_objext"
18724 # Old archive suffix (normally "a").
18727 # Shared library suffix (normally ".so").
18728 shrext_cmds='$shrext_cmds'
18730 # Executable file suffix (normally "").
18733 # Additional compiler flags for building library objects.
18734 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18737 # What is the maximum length of a command?
18738 max_cmd_len=$lt_cv_sys_max_cmd_len
18740 # Does compiler simultaneously support -c and -o options?
18741 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18743 # Must we lock files when doing compilation?
18744 need_locks=$lt_need_locks
18746 # Do we need the lib prefix for modules?
18747 need_lib_prefix=$need_lib_prefix
18749 # Do we need a version for libraries?
18750 need_version=$need_version
18752 # Whether dlopen is supported.
18753 dlopen_support=$enable_dlopen
18755 # Whether dlopen of programs is supported.
18756 dlopen_self=$enable_dlopen_self
18758 # Whether dlopen of statically linked programs is supported.
18759 dlopen_self_static=$enable_dlopen_self_static
18761 # Compiler flag to prevent dynamic linking.
18762 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18764 # Compiler flag to turn off builtin functions.
18765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18767 # Compiler flag to allow reflexive dlopens.
18768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18770 # Compiler flag to generate shared objects directly from archives.
18771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18773 # Compiler flag to generate thread-safe objects.
18774 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18776 # Library versioning type.
18777 version_type=$version_type
18779 # Format of library name prefix.
18780 libname_spec=$lt_libname_spec
18782 # List of archive names. First name is the real one, the rest are links.
18783 # The last name is the one that the linker finds with -lNAME.
18784 library_names_spec=$lt_library_names_spec
18786 # The coded name of the library, if different from the real name.
18787 soname_spec=$lt_soname_spec
18789 # Commands used to build and install an old-style archive.
18791 old_archive_cmds=$lt_old_archive_cmds_GCJ
18792 old_postinstall_cmds=$lt_old_postinstall_cmds
18793 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18795 # Create an old-style archive from a shared archive.
18796 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18798 # Create a temporary old-style archive to link instead of a shared archive.
18799 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18801 # Commands used to build and install a shared archive.
18802 archive_cmds=$lt_archive_cmds_GCJ
18803 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18804 postinstall_cmds=$lt_postinstall_cmds
18805 postuninstall_cmds=$lt_postuninstall_cmds
18807 # Commands used to build a loadable module (assumed same as above if empty)
18808 module_cmds=$lt_module_cmds_GCJ
18809 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18811 # Commands to strip libraries.
18812 old_striplib=$lt_old_striplib
18813 striplib=$lt_striplib
18815 # Dependencies to place before the objects being linked to create a
18817 predep_objects=$lt_predep_objects_GCJ
18819 # Dependencies to place after the objects being linked to create a
18821 postdep_objects=$lt_postdep_objects_GCJ
18823 # Dependencies to place before the objects being linked to create a
18825 predeps=$lt_predeps_GCJ
18827 # Dependencies to place after the objects being linked to create a
18829 postdeps=$lt_postdeps_GCJ
18831 # The library search path used internally by the compiler when linking
18832 # a shared library.
18833 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18835 # Method to check whether dependent libraries are shared objects.
18836 deplibs_check_method=$lt_deplibs_check_method
18838 # Command to use when deplibs_check_method == file_magic.
18839 file_magic_cmd=$lt_file_magic_cmd
18841 # Flag that allows shared libraries with undefined symbols to be built.
18842 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18844 # Flag that forces no undefined symbols.
18845 no_undefined_flag=$lt_no_undefined_flag_GCJ
18847 # Commands used to finish a libtool library installation in a directory.
18848 finish_cmds=$lt_finish_cmds
18850 # Same as above, but a single script fragment to be evaled but not shown.
18851 finish_eval=$lt_finish_eval
18853 # Take the output of nm and produce a listing of raw symbols and C names.
18854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18856 # Transform the output of nm in a proper C declaration
18857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18859 # Transform the output of nm in a C name address pair
18860 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18862 # This is the shared library runtime path variable.
18863 runpath_var=$runpath_var
18865 # This is the shared library path variable.
18866 shlibpath_var=$shlibpath_var
18868 # Is shlibpath searched before the hard-coded library search path?
18869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18871 # How to hardcode a shared library path into an executable.
18872 hardcode_action=$hardcode_action_GCJ
18874 # Whether we should hardcode library paths into libraries.
18875 hardcode_into_libs=$hardcode_into_libs
18877 # Flag to hardcode \$libdir into a binary during linking.
18878 # This must work even if \$libdir does not exist.
18879 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18881 # If ld is used when linking, flag to hardcode \$libdir into
18882 # a binary during linking. This must work even if \$libdir does
18884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18886 # Whether we need a single -rpath flag with a separated argument.
18887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18889 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18890 # resulting binary.
18891 hardcode_direct=$hardcode_direct_GCJ
18893 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18894 # resulting binary.
18895 hardcode_minus_L=$hardcode_minus_L_GCJ
18897 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18898 # the resulting binary.
18899 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18901 # Set to yes if building a shared library automatically hardcodes DIR into the library
18902 # and all subsequent libraries and executables linked against it.
18903 hardcode_automatic=$hardcode_automatic_GCJ
18905 # Variables whose values should be saved in libtool wrapper scripts and
18906 # restored at relink time.
18907 variables_saved_for_relink="$variables_saved_for_relink"
18909 # Whether libtool must link a program against all its dependency libraries.
18910 link_all_deplibs=$link_all_deplibs_GCJ
18912 # Compile-time system search path for libraries
18913 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18915 # Run-time system search path for libraries
18916 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18918 # Fix the shell variable \$srcfile for the compiler.
18919 fix_srcfile_path="$fix_srcfile_path_GCJ"
18921 # Set to yes if exported symbols are required.
18922 always_export_symbols=$always_export_symbols_GCJ
18924 # The commands to list exported symbols.
18925 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18927 # The commands to extract the exported symbol list from a shared archive.
18928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18930 # Symbols that should not be listed in the preloaded symbols.
18931 exclude_expsyms=$lt_exclude_expsyms_GCJ
18933 # Symbols that must always be exported.
18934 include_expsyms=$lt_include_expsyms_GCJ
18936 # ### END LIBTOOL TAG CONFIG: $tagname
18942 # If there is no Makefile yet, we rely on a make rule to execute
18943 # `config.status --recheck' to rerun these tests and create the
18944 # libtool script then.
18945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18946 if test -f "$ltmain_in"; then
18947 test -f Makefile && make "$ltmain"
18953 ac_cpp='$CPP $CPPFLAGS'
18954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18968 # Source file extension for RC test sources.
18971 # Object file extension for compiled RC test sources.
18975 # Code to be used in simple compile tests
18976 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18978 # Code to be used in simple link tests
18979 lt_simple_link_test_code="$lt_simple_compile_test_code"
18981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18983 # If no C compiler was specified, use CC.
18986 # If no C compiler flags were specified, use CFLAGS.
18987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18989 # Allow CC to be a program name with arguments.
18993 # save warnings/boilerplate of simple test code
18994 ac_outfile=conftest.$ac_objext
18995 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18997 _lt_compiler_boilerplate=`cat conftest.err`
19000 ac_outfile=conftest.$ac_objext
19001 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19003 _lt_linker_boilerplate=`cat conftest.err`
19007 # Allow CC to be a program name with arguments.
19012 for cc_temp in $compiler""; do
19014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19022 lt_cv_prog_compiler_c_o_RC=yes
19024 # The else clause should only fire when bootstrapping the
19025 # libtool distribution, otherwise you forgot to ship ltmain.sh
19026 # with your package, and you will get complaints that there are
19027 # no rules to generate ltmain.sh.
19028 if test -f "$ltmain"; then
19029 # See if we are running on zsh, and set the options which allow our commands through
19030 # without removal of \ escapes.
19031 if test -n "${ZSH_VERSION+set}" ; then
19032 setopt NO_GLOB_SUBST
19034 # Now quote all the things that may contain metacharacters while being
19035 # careful not to overquote the AC_SUBSTed values. We take copies of the
19036 # variables and quote the copies for generation of the libtool script.
19037 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19039 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19040 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19041 deplibs_check_method reload_flag reload_cmds need_locks \
19042 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19043 lt_cv_sys_global_symbol_to_c_name_address \
19044 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19045 old_postinstall_cmds old_postuninstall_cmds \
19049 lt_prog_compiler_wl_RC \
19050 lt_prog_compiler_pic_RC \
19051 lt_prog_compiler_static_RC \
19052 lt_prog_compiler_no_builtin_flag_RC \
19053 export_dynamic_flag_spec_RC \
19054 thread_safe_flag_spec_RC \
19055 whole_archive_flag_spec_RC \
19056 enable_shared_with_static_runtimes_RC \
19057 old_archive_cmds_RC \
19058 old_archive_from_new_cmds_RC \
19059 predep_objects_RC \
19060 postdep_objects_RC \
19063 compiler_lib_search_path_RC \
19065 archive_expsym_cmds_RC \
19066 postinstall_cmds_RC \
19067 postuninstall_cmds_RC \
19068 old_archive_from_expsyms_cmds_RC \
19069 allow_undefined_flag_RC \
19070 no_undefined_flag_RC \
19071 export_symbols_cmds_RC \
19072 hardcode_libdir_flag_spec_RC \
19073 hardcode_libdir_flag_spec_ld_RC \
19074 hardcode_libdir_separator_RC \
19075 hardcode_automatic_RC \
19077 module_expsym_cmds_RC \
19078 lt_cv_prog_compiler_c_o_RC \
19079 exclude_expsyms_RC \
19080 include_expsyms_RC; do
19083 old_archive_cmds_RC | \
19084 old_archive_from_new_cmds_RC | \
19085 archive_cmds_RC | \
19086 archive_expsym_cmds_RC | \
19088 module_expsym_cmds_RC | \
19089 old_archive_from_expsyms_cmds_RC | \
19090 export_symbols_cmds_RC | \
19091 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19092 postinstall_cmds | postuninstall_cmds | \
19093 old_postinstall_cmds | old_postuninstall_cmds | \
19094 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19095 # Double-quote double-evaled strings.
19096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19105 *'\$0 --fallback-echo"')
19106 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19112 cat <<__EOF__ >> "$cfgfile"
19113 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19115 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19117 # Shell to use when invoking shell scripts.
19120 # Whether or not to build shared libraries.
19121 build_libtool_libs=$enable_shared
19123 # Whether or not to build static libraries.
19124 build_old_libs=$enable_static
19126 # Whether or not to add -lc for building shared libraries.
19127 build_libtool_need_lc=$archive_cmds_need_lc_RC
19129 # Whether or not to disallow shared libs when runtime libs are static
19130 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19132 # Whether or not to optimize for fast installation.
19133 fast_install=$enable_fast_install
19136 host_alias=$host_alias
19140 # The build system.
19141 build_alias=$build_alias
19145 # An echo program that does not interpret backslashes.
19150 AR_FLAGS=$lt_AR_FLAGS
19155 # LTCC compiler flags.
19156 LTCFLAGS=$lt_LTCFLAGS
19158 # A language-specific compiler.
19161 # Is the compiler the GNU C compiler?
19167 # The linker used to build libraries.
19170 # Whether we need hard or soft links.
19173 # A BSD-compatible nm program.
19176 # A symbol stripping program
19179 # Used to examine libraries when file_magic_cmd begins "file"
19180 MAGIC_CMD=$MAGIC_CMD
19182 # Used on cygwin: DLL creation program.
19185 # Used on cygwin: object dumper.
19188 # Used on cygwin: assembler.
19191 # The name of the directory that contains temporary libtool files.
19194 # How to create reloadable object files.
19195 reload_flag=$lt_reload_flag
19196 reload_cmds=$lt_reload_cmds
19198 # How to pass a linker flag through the compiler.
19199 wl=$lt_lt_prog_compiler_wl_RC
19201 # Object file suffix (normally "o").
19202 objext="$ac_objext"
19204 # Old archive suffix (normally "a").
19207 # Shared library suffix (normally ".so").
19208 shrext_cmds='$shrext_cmds'
19210 # Executable file suffix (normally "").
19213 # Additional compiler flags for building library objects.
19214 pic_flag=$lt_lt_prog_compiler_pic_RC
19217 # What is the maximum length of a command?
19218 max_cmd_len=$lt_cv_sys_max_cmd_len
19220 # Does compiler simultaneously support -c and -o options?
19221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19223 # Must we lock files when doing compilation?
19224 need_locks=$lt_need_locks
19226 # Do we need the lib prefix for modules?
19227 need_lib_prefix=$need_lib_prefix
19229 # Do we need a version for libraries?
19230 need_version=$need_version
19232 # Whether dlopen is supported.
19233 dlopen_support=$enable_dlopen
19235 # Whether dlopen of programs is supported.
19236 dlopen_self=$enable_dlopen_self
19238 # Whether dlopen of statically linked programs is supported.
19239 dlopen_self_static=$enable_dlopen_self_static
19241 # Compiler flag to prevent dynamic linking.
19242 link_static_flag=$lt_lt_prog_compiler_static_RC
19244 # Compiler flag to turn off builtin functions.
19245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19247 # Compiler flag to allow reflexive dlopens.
19248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19250 # Compiler flag to generate shared objects directly from archives.
19251 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19253 # Compiler flag to generate thread-safe objects.
19254 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19256 # Library versioning type.
19257 version_type=$version_type
19259 # Format of library name prefix.
19260 libname_spec=$lt_libname_spec
19262 # List of archive names. First name is the real one, the rest are links.
19263 # The last name is the one that the linker finds with -lNAME.
19264 library_names_spec=$lt_library_names_spec
19266 # The coded name of the library, if different from the real name.
19267 soname_spec=$lt_soname_spec
19269 # Commands used to build and install an old-style archive.
19271 old_archive_cmds=$lt_old_archive_cmds_RC
19272 old_postinstall_cmds=$lt_old_postinstall_cmds
19273 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19275 # Create an old-style archive from a shared archive.
19276 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19278 # Create a temporary old-style archive to link instead of a shared archive.
19279 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19281 # Commands used to build and install a shared archive.
19282 archive_cmds=$lt_archive_cmds_RC
19283 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19284 postinstall_cmds=$lt_postinstall_cmds
19285 postuninstall_cmds=$lt_postuninstall_cmds
19287 # Commands used to build a loadable module (assumed same as above if empty)
19288 module_cmds=$lt_module_cmds_RC
19289 module_expsym_cmds=$lt_module_expsym_cmds_RC
19291 # Commands to strip libraries.
19292 old_striplib=$lt_old_striplib
19293 striplib=$lt_striplib
19295 # Dependencies to place before the objects being linked to create a
19297 predep_objects=$lt_predep_objects_RC
19299 # Dependencies to place after the objects being linked to create a
19301 postdep_objects=$lt_postdep_objects_RC
19303 # Dependencies to place before the objects being linked to create a
19305 predeps=$lt_predeps_RC
19307 # Dependencies to place after the objects being linked to create a
19309 postdeps=$lt_postdeps_RC
19311 # The library search path used internally by the compiler when linking
19312 # a shared library.
19313 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19315 # Method to check whether dependent libraries are shared objects.
19316 deplibs_check_method=$lt_deplibs_check_method
19318 # Command to use when deplibs_check_method == file_magic.
19319 file_magic_cmd=$lt_file_magic_cmd
19321 # Flag that allows shared libraries with undefined symbols to be built.
19322 allow_undefined_flag=$lt_allow_undefined_flag_RC
19324 # Flag that forces no undefined symbols.
19325 no_undefined_flag=$lt_no_undefined_flag_RC
19327 # Commands used to finish a libtool library installation in a directory.
19328 finish_cmds=$lt_finish_cmds
19330 # Same as above, but a single script fragment to be evaled but not shown.
19331 finish_eval=$lt_finish_eval
19333 # Take the output of nm and produce a listing of raw symbols and C names.
19334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19336 # Transform the output of nm in a proper C declaration
19337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19339 # Transform the output of nm in a C name address pair
19340 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19342 # This is the shared library runtime path variable.
19343 runpath_var=$runpath_var
19345 # This is the shared library path variable.
19346 shlibpath_var=$shlibpath_var
19348 # Is shlibpath searched before the hard-coded library search path?
19349 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19351 # How to hardcode a shared library path into an executable.
19352 hardcode_action=$hardcode_action_RC
19354 # Whether we should hardcode library paths into libraries.
19355 hardcode_into_libs=$hardcode_into_libs
19357 # Flag to hardcode \$libdir into a binary during linking.
19358 # This must work even if \$libdir does not exist.
19359 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19361 # If ld is used when linking, flag to hardcode \$libdir into
19362 # a binary during linking. This must work even if \$libdir does
19364 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19366 # Whether we need a single -rpath flag with a separated argument.
19367 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19369 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19370 # resulting binary.
19371 hardcode_direct=$hardcode_direct_RC
19373 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19374 # resulting binary.
19375 hardcode_minus_L=$hardcode_minus_L_RC
19377 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19378 # the resulting binary.
19379 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19381 # Set to yes if building a shared library automatically hardcodes DIR into the library
19382 # and all subsequent libraries and executables linked against it.
19383 hardcode_automatic=$hardcode_automatic_RC
19385 # Variables whose values should be saved in libtool wrapper scripts and
19386 # restored at relink time.
19387 variables_saved_for_relink="$variables_saved_for_relink"
19389 # Whether libtool must link a program against all its dependency libraries.
19390 link_all_deplibs=$link_all_deplibs_RC
19392 # Compile-time system search path for libraries
19393 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19395 # Run-time system search path for libraries
19396 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19398 # Fix the shell variable \$srcfile for the compiler.
19399 fix_srcfile_path="$fix_srcfile_path_RC"
19401 # Set to yes if exported symbols are required.
19402 always_export_symbols=$always_export_symbols_RC
19404 # The commands to list exported symbols.
19405 export_symbols_cmds=$lt_export_symbols_cmds_RC
19407 # The commands to extract the exported symbol list from a shared archive.
19408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19410 # Symbols that should not be listed in the preloaded symbols.
19411 exclude_expsyms=$lt_exclude_expsyms_RC
19413 # Symbols that must always be exported.
19414 include_expsyms=$lt_include_expsyms_RC
19416 # ### END LIBTOOL TAG CONFIG: $tagname
19422 # If there is no Makefile yet, we rely on a make rule to execute
19423 # `config.status --recheck' to rerun these tests and create the
19424 # libtool script then.
19425 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19426 if test -f "$ltmain_in"; then
19427 test -f Makefile && make "$ltmain"
19433 ac_cpp='$CPP $CPPFLAGS'
19434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19443 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19444 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19445 { (exit 1); exit 1; }; }
19449 # Append the new tag name to the list of available tags.
19450 if test -n "$tagname" ; then
19451 available_tags="$available_tags $tagname"
19457 # Now substitute the updated list of available tags.
19458 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19459 mv "${ofile}T" "$ofile"
19463 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19464 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19465 { (exit 1); exit 1; }; }
19471 # This can be used to rebuild libtool when needed
19472 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19474 # Always use our own libtool.
19475 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19477 # Prevent multiple expansion
19503 { echo "$as_me:$LINENO: result: " >&5
19504 echo "${ECHO_T}" >&6; }
19505 { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19506 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19509 ac_cpp='$CPP $CPPFLAGS'
19510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19513 if test -n "$ac_tool_prefix"; then
19514 for ac_prog in xlC gcc cc
19516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19520 if test "${ac_cv_prog_CC+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 if test -n "$CC"; then
19524 ac_cv_prog_CC="$CC" # Let the user override the test.
19526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19527 for as_dir in $PATH
19530 test -z "$as_dir" && as_dir=.
19531 for ac_exec_ext in '' $ac_executable_extensions; do
19532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19544 if test -n "$CC"; then
19545 { echo "$as_me:$LINENO: result: $CC" >&5
19546 echo "${ECHO_T}$CC" >&6; }
19548 { echo "$as_me:$LINENO: result: no" >&5
19549 echo "${ECHO_T}no" >&6; }
19553 test -n "$CC" && break
19556 if test -z "$CC"; then
19558 for ac_prog in xlC gcc cc
19560 # Extract the first word of "$ac_prog", so it can be a program name with args.
19561 set dummy $ac_prog; ac_word=$2
19562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 if test -n "$ac_ct_CC"; then
19568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19571 for as_dir in $PATH
19574 test -z "$as_dir" && as_dir=.
19575 for ac_exec_ext in '' $ac_executable_extensions; do
19576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19577 ac_cv_prog_ac_ct_CC="$ac_prog"
19578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19588 if test -n "$ac_ct_CC"; then
19589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19590 echo "${ECHO_T}$ac_ct_CC" >&6; }
19592 { echo "$as_me:$LINENO: result: no" >&5
19593 echo "${ECHO_T}no" >&6; }
19597 test -n "$ac_ct_CC" && break
19600 if test "x$ac_ct_CC" = x; then
19603 case $cross_compiling:$ac_tool_warned in
19605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19606 whose name does not start with the host triplet. If you think this
19607 configuration is useful to you, please write to autoconf@gnu.org." >&5
19608 echo "$as_me: 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." >&2;}
19611 ac_tool_warned=yes ;;
19618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19619 See \`config.log' for more details." >&5
19620 echo "$as_me: error: no acceptable C compiler found in \$PATH
19621 See \`config.log' for more details." >&2;}
19622 { (exit 1); exit 1; }; }
19624 # Provide some information about the compiler.
19625 echo "$as_me:$LINENO: checking for C compiler version" >&5
19626 ac_compiler=`set X $ac_compile; echo $2`
19627 { (ac_try="$ac_compiler --version >&5"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_compiler --version >&5") 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }
19637 { (ac_try="$ac_compiler -v >&5"
19638 case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_compiler -v >&5") 2>&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }
19647 { (ac_try="$ac_compiler -V >&5"
19648 case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_compiler -V >&5") 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }
19658 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19659 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19660 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 cat >conftest.$ac_ext <<_ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_compile") 2>conftest.er1
19690 grep -v '^ *+' conftest.er1 >conftest.err
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest.$ac_objext; then
19698 ac_compiler_gnu=yes
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19710 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19711 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19712 GCC=`test $ac_compiler_gnu = yes && echo yes`
19713 ac_test_CFLAGS=${CFLAGS+set}
19714 ac_save_CFLAGS=$CFLAGS
19715 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19716 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19717 if test "${ac_cv_prog_cc_g+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 ac_save_c_werror_flag=$ac_c_werror_flag
19721 ac_c_werror_flag=yes
19724 cat >conftest.$ac_ext <<_ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19739 rm -f conftest.$ac_objext
19740 if { (ac_try="$ac_compile"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_compile") 2>conftest.er1
19748 grep -v '^ *+' conftest.er1 >conftest.err
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest.$ac_objext; then
19756 ac_cv_prog_cc_g=yes
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19777 rm -f conftest.$ac_objext
19778 if { (ac_try="$ac_compile"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_compile") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); } && {
19791 test -z "$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 } && test -s conftest.$ac_objext; then
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_c_werror_flag=$ac_save_c_werror_flag
19801 cat >conftest.$ac_ext <<_ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_compile") 2>conftest.er1
19825 grep -v '^ *+' conftest.er1 >conftest.err
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest.$ac_objext; then
19833 ac_cv_prog_cc_g=yes
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19848 ac_c_werror_flag=$ac_save_c_werror_flag
19850 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19851 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19852 if test "$ac_test_CFLAGS" = set; then
19853 CFLAGS=$ac_save_CFLAGS
19854 elif test $ac_cv_prog_cc_g = yes; then
19855 if test "$GCC" = yes; then
19861 if test "$GCC" = yes; then
19867 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19868 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19869 if test "${ac_cv_prog_cc_c89+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 ac_cv_prog_cc_c89=no
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19880 #include <stdarg.h>
19882 #include <sys/types.h>
19883 #include <sys/stat.h>
19884 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19885 struct buf { int x; };
19886 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19887 static char *e (p, i)
19893 static char *f (char * (*g) (char **, int), char **p, ...)
19898 s = g (p, va_arg (v,int));
19903 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19904 function prototypes and stuff, but not '\xHH' hex character constants.
19905 These don't provoke an error unfortunately, instead are silently treated
19906 as 'x'. The following induces an error, until -std is added to get
19907 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19908 array size at least. It's necessary to write '\x00'==0 to get something
19909 that's true only with -std. */
19910 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19912 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19913 inside strings and character constants. */
19915 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19917 int test (int i, double x);
19918 struct s1 {int (*f) (int a);};
19919 struct s2 {int (*f) (double a);};
19920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19931 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19932 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19934 CC="$ac_save_CC $ac_arg"
19935 rm -f conftest.$ac_objext
19936 if { (ac_try="$ac_compile"
19937 case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_compile") 2>conftest.er1
19944 grep -v '^ *+' conftest.er1 >conftest.err
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } && {
19949 test -z "$ac_c_werror_flag" ||
19950 test ! -s conftest.err
19951 } && test -s conftest.$ac_objext; then
19952 ac_cv_prog_cc_c89=$ac_arg
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19960 rm -f core conftest.err conftest.$ac_objext
19961 test "x$ac_cv_prog_cc_c89" != "xno" && break
19963 rm -f conftest.$ac_ext
19968 case "x$ac_cv_prog_cc_c89" in
19970 { echo "$as_me:$LINENO: result: none needed" >&5
19971 echo "${ECHO_T}none needed" >&6; } ;;
19973 { echo "$as_me:$LINENO: result: unsupported" >&5
19974 echo "${ECHO_T}unsupported" >&6; } ;;
19976 CC="$CC $ac_cv_prog_cc_c89"
19977 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19978 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19983 ac_cpp='$CPP $CPPFLAGS'
19984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19988 depcc="$CC" am_compiler_list=
19990 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19991 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19992 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19996 # We make a subdir and do the tests there. Otherwise we can end up
19997 # making bogus files that we don't know about and never remove. For
19998 # instance it was reported that on HP-UX the gcc test will end up
19999 # making a dummy file named `D' -- because `-MD' means `put the output
20002 # Copy depcomp to subdir because otherwise we won't find it if we're
20003 # using a relative directory.
20004 cp "$am_depcomp" conftest.dir
20006 # We will build objects and dependencies in a subdirectory because
20007 # it helps to detect inapplicable dependency modes. For instance
20008 # both Tru64's cc and ICC support -MD to output dependencies as a
20009 # side effect of compilation, but ICC will put the dependencies in
20010 # the current directory while Tru64 will put them in the object
20014 am_cv_CC_dependencies_compiler_type=none
20015 if test "$am_compiler_list" = ""; then
20016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20018 for depmode in $am_compiler_list; do
20019 # Setup a source with many dependencies, because some compilers
20020 # like to wrap large dependency lists on column 80 (with \), and
20021 # we should not choose a depcomp mode which is confused by this.
20023 # We need to recreate these files for each test, as the compiler may
20024 # overwrite some of them when testing with obscure command lines.
20025 # This happens at least with the AIX C compiler.
20027 for i in 1 2 3 4 5 6; do
20028 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20029 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20030 # Solaris 8's {/usr,}/bin/sh.
20031 touch sub/conftst$i.h
20033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20037 # after this tag, mechanisms are not by side-effect, so they'll
20038 # only be used when explicitly requested
20039 if test "x$enable_dependency_tracking" = xyes; then
20047 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20048 # mode. It turns out that the SunPro C++ compiler does not properly
20049 # handle `-M -o', and we need to detect this.
20050 if depmode=$depmode \
20051 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20053 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20054 >/dev/null 2>conftest.err &&
20055 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20056 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20057 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20058 # icc doesn't choke on unknown options, it will just issue warnings
20059 # or remarks (even with -Werror). So we grep stderr for any message
20060 # that says an option was ignored or not supported.
20061 # When given -MP, icc 7.0 and 7.1 complain thusly:
20062 # icc: Command line warning: ignoring option '-M'; no argument required
20063 # The diagnosis changed in icc 8.0:
20064 # icc: Command line remark: option '-MP' not supported
20065 if (grep 'ignoring option' conftest.err ||
20066 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20067 am_cv_CC_dependencies_compiler_type=$depmode
20074 rm -rf conftest.dir
20076 am_cv_CC_dependencies_compiler_type=none
20080 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20081 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20087 test "x$enable_dependency_tracking" != xno \
20088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20089 am__fastdepCC_TRUE=
20090 am__fastdepCC_FALSE='#'
20092 am__fastdepCC_TRUE='#'
20093 am__fastdepCC_FALSE=
20097 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20098 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20101 echo timestamp > conftest.file
20102 # Do `set' in a subshell so we don't clobber the current shell's
20103 # arguments. Must try -L first in case configure is actually a
20104 # symlink; some systems play weird games with the mod time of symlinks
20105 # (eg FreeBSD returns the mod time of the symlink's containing
20108 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20109 if test "$*" = "X"; then
20111 set X `ls -t $srcdir/configure conftest.file`
20113 rm -f conftest.file
20114 if test "$*" != "X $srcdir/configure conftest.file" \
20115 && test "$*" != "X conftest.file $srcdir/configure"; then
20117 # If neither matched, then we have a broken ls. This can happen
20118 # if, for instance, CONFIG_SHELL is bash and it inherits a
20119 # broken ls alias from the environment. This has actually
20120 # happened. Such a system could not be considered "sane".
20121 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20122 alias in your environment" >&5
20123 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20124 alias in your environment" >&2;}
20125 { (exit 1); exit 1; }; }
20128 test "$2" = conftest.file
20134 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20135 Check your system clock" >&5
20136 echo "$as_me: error: newly created file is older than distributed files!
20137 Check your system clock" >&2;}
20138 { (exit 1); exit 1; }; }
20140 { echo "$as_me:$LINENO: result: yes" >&5
20141 echo "${ECHO_T}yes" >&6; }
20142 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20143 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20144 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20145 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 cat >conftest.make <<\_ACEOF
20151 @echo '@@@%%%=$(MAKE)=@@@%%%'
20153 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20154 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20155 *@@@%%%=?*=@@@%%%*)
20156 eval ac_cv_prog_make_${ac_make}_set=yes;;
20158 eval ac_cv_prog_make_${ac_make}_set=no;;
20160 rm -f conftest.make
20162 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20163 { echo "$as_me:$LINENO: result: yes" >&5
20164 echo "${ECHO_T}yes" >&6; }
20167 { echo "$as_me:$LINENO: result: no" >&5
20168 echo "${ECHO_T}no" >&6; }
20169 SET_MAKE="MAKE=${MAKE-make}"
20173 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20174 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20175 if test "$cross_compiling" = yes; then
20176 { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20177 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20179 cat >conftest.$ac_ext <<_ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20194 rm -f conftest$ac_exeext
20195 if { (ac_try="$ac_link"
20196 case "(($ac_try" in
20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20198 *) ac_try_echo=$ac_try;;
20200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20201 (eval "$ac_link") 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20205 { (case "(($ac_try" in
20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210 (eval "$ac_try") 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; }; then
20215 cat >>confdefs.h <<\_ACEOF
20216 #define PRINTF_NULL_WORKING 1
20219 { echo "$as_me:$LINENO: result: yes" >&5
20220 echo "${ECHO_T}yes" >&6; }
20222 echo "$as_me: program exited with status $ac_status" >&5
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 ( exit $ac_status )
20227 { echo "$as_me:$LINENO: result: no" >&5
20228 echo "${ECHO_T}no" >&6; }
20230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20236 { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20237 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20238 if test "${ac_cv_va_copy+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 if test ".$ac_cv_va_copy" = .; then
20247 if test "$cross_compiling" = yes; then
20248 ac_cv_va_copy="C99"
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20257 #include <stdlib.h>
20258 #include <stdarg.h>
20259 #include <string.h>
20260 #define DO_VA_COPY(d, s) va_copy((d), (s))
20261 void test(char *str, ...)
20266 DO_VA_COPY(ap2, ap);
20267 for (i = 1; i <= 9; i++) {
20268 int k = (int)va_arg(ap, int);
20272 DO_VA_COPY(ap, ap2);
20273 for (i = 1; i <= 9; i++) {
20274 int k = (int)va_arg(ap, int);
20280 int main(int argc, char *argv[])
20282 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20287 rm -f conftest$ac_exeext
20288 if { (ac_try="$ac_link"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_link") 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20298 { (case "(($ac_try" in
20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20300 *) ac_try_echo=$ac_try;;
20302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20303 (eval "$ac_try") 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_cv_va_copy="C99"
20309 echo "$as_me: program exited with status $ac_status" >&5
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20323 if test ".$ac_cv_va_copy" = .; then
20324 if test "$cross_compiling" = yes; then
20325 ac_cv_va_copy="GCM"
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20334 #include <stdlib.h>
20335 #include <stdarg.h>
20336 #include <string.h>
20337 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20338 void test(char *str, ...)
20343 DO_VA_COPY(ap2, ap);
20344 for (i = 1; i <= 9; i++) {
20345 int k = (int)va_arg(ap, int);
20349 DO_VA_COPY(ap, ap2);
20350 for (i = 1; i <= 9; i++) {
20351 int k = (int)va_arg(ap, int);
20357 int main(int argc, char *argv[])
20359 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20364 rm -f conftest$ac_exeext
20365 if { (ac_try="$ac_link"
20366 case "(($ac_try" in
20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368 *) ac_try_echo=$ac_try;;
20370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371 (eval "$ac_link") 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20375 { (case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_try") 2>&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
20384 ac_cv_va_copy="GCM"
20386 echo "$as_me: program exited with status $ac_status" >&5
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20400 if test ".$ac_cv_va_copy" = .; then
20401 if test "$cross_compiling" = yes; then
20402 ac_cv_va_copy="GCH"
20404 cat >conftest.$ac_ext <<_ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20411 #include <stdlib.h>
20412 #include <stdarg.h>
20413 #include <string.h>
20414 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20415 void test(char *str, ...)
20420 DO_VA_COPY(ap2, ap);
20421 for (i = 1; i <= 9; i++) {
20422 int k = (int)va_arg(ap, int);
20426 DO_VA_COPY(ap, ap2);
20427 for (i = 1; i <= 9; i++) {
20428 int k = (int)va_arg(ap, int);
20434 int main(int argc, char *argv[])
20436 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20441 rm -f conftest$ac_exeext
20442 if { (ac_try="$ac_link"
20443 case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_link") 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20452 { (case "(($ac_try" in
20453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454 *) ac_try_echo=$ac_try;;
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457 (eval "$ac_try") 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20461 ac_cv_va_copy="GCH"
20463 echo "$as_me: program exited with status $ac_status" >&5
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20477 if test ".$ac_cv_va_copy" = .; then
20478 if test "$cross_compiling" = yes; then
20479 ac_cv_va_copy="GCB"
20481 cat >conftest.$ac_ext <<_ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20488 #include <stdlib.h>
20489 #include <stdarg.h>
20490 #include <string.h>
20491 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20492 void test(char *str, ...)
20497 DO_VA_COPY(ap2, ap);
20498 for (i = 1; i <= 9; i++) {
20499 int k = (int)va_arg(ap, int);
20503 DO_VA_COPY(ap, ap2);
20504 for (i = 1; i <= 9; i++) {
20505 int k = (int)va_arg(ap, int);
20511 int main(int argc, char *argv[])
20513 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20518 rm -f conftest$ac_exeext
20519 if { (ac_try="$ac_link"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_link") 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20529 { (case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_try") 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538 ac_cv_va_copy="GCB"
20540 echo "$as_me: program exited with status $ac_status" >&5
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20554 if test ".$ac_cv_va_copy" = .; then
20555 if test "$cross_compiling" = yes; then
20556 ac_cv_va_copy="ASS"
20558 cat >conftest.$ac_ext <<_ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20565 #include <stdlib.h>
20566 #include <stdarg.h>
20567 #include <string.h>
20568 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20569 void test(char *str, ...)
20574 DO_VA_COPY(ap2, ap);
20575 for (i = 1; i <= 9; i++) {
20576 int k = (int)va_arg(ap, int);
20580 DO_VA_COPY(ap, ap2);
20581 for (i = 1; i <= 9; i++) {
20582 int k = (int)va_arg(ap, int);
20588 int main(int argc, char *argv[])
20590 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20595 rm -f conftest$ac_exeext
20596 if { (ac_try="$ac_link"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_link") 2>&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20606 { (case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_try") 2>&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 ac_cv_va_copy="ASS"
20617 echo "$as_me: program exited with status $ac_status" >&5
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20631 if test ".$ac_cv_va_copy" = .; then
20632 if test "$cross_compiling" = yes; then
20633 ac_cv_va_copy="ASP"
20635 cat >conftest.$ac_ext <<_ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20642 #include <stdlib.h>
20643 #include <stdarg.h>
20644 #include <string.h>
20645 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20646 void test(char *str, ...)
20651 DO_VA_COPY(ap2, ap);
20652 for (i = 1; i <= 9; i++) {
20653 int k = (int)va_arg(ap, int);
20657 DO_VA_COPY(ap, ap2);
20658 for (i = 1; i <= 9; i++) {
20659 int k = (int)va_arg(ap, int);
20665 int main(int argc, char *argv[])
20667 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20672 rm -f conftest$ac_exeext
20673 if { (ac_try="$ac_link"
20674 case "(($ac_try" in
20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20676 *) ac_try_echo=$ac_try;;
20678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20679 (eval "$ac_link") 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20683 { (case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_try") 2>&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
20692 ac_cv_va_copy="ASP"
20694 echo "$as_me: program exited with status $ac_status" >&5
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20708 if test ".$ac_cv_va_copy" = .; then
20709 if test "$cross_compiling" = yes; then
20710 ac_cv_va_copy="CPS"
20712 cat >conftest.$ac_ext <<_ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20719 #include <stdlib.h>
20720 #include <stdarg.h>
20721 #include <string.h>
20722 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20723 void test(char *str, ...)
20728 DO_VA_COPY(ap2, ap);
20729 for (i = 1; i <= 9; i++) {
20730 int k = (int)va_arg(ap, int);
20734 DO_VA_COPY(ap, ap2);
20735 for (i = 1; i <= 9; i++) {
20736 int k = (int)va_arg(ap, int);
20742 int main(int argc, char *argv[])
20744 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20749 rm -f conftest$ac_exeext
20750 if { (ac_try="$ac_link"
20751 case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_link") 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20760 { (case "(($ac_try" in
20761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20762 *) ac_try_echo=$ac_try;;
20764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20765 (eval "$ac_try") 2>&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); }; }; then
20769 ac_cv_va_copy="CPS"
20771 echo "$as_me: program exited with status $ac_status" >&5
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20785 if test ".$ac_cv_va_copy" = .; then
20786 if test "$cross_compiling" = yes; then
20787 ac_cv_va_copy="CPP"
20789 cat >conftest.$ac_ext <<_ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20796 #include <stdlib.h>
20797 #include <stdarg.h>
20798 #include <string.h>
20799 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20800 void test(char *str, ...)
20805 DO_VA_COPY(ap2, ap);
20806 for (i = 1; i <= 9; i++) {
20807 int k = (int)va_arg(ap, int);
20811 DO_VA_COPY(ap, ap2);
20812 for (i = 1; i <= 9; i++) {
20813 int k = (int)va_arg(ap, int);
20819 int main(int argc, char *argv[])
20821 test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20826 rm -f conftest$ac_exeext
20827 if { (ac_try="$ac_link"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_link") 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20837 { (case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_try") 2>&5
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; }; then
20846 ac_cv_va_copy="CPP"
20848 echo "$as_me: program exited with status $ac_status" >&5
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20859 if test ".$ac_cv_va_copy" = .; then
20860 { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20861 echo "$as_me: error: no working implementation found" >&2;}
20862 { (exit 1); exit 1; }; }
20867 if test ".$ac_cv_va_copy" = ".C99"; then
20869 cat >>confdefs.h <<\_ACEOF
20870 #define HAVE_VA_COPY 1
20875 cat >>confdefs.h <<_ACEOF
20876 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20881 if test ".$ac_cv_va_copy" = ".C99"; then
20882 { echo "$as_me:$LINENO: result: yes" >&5
20883 echo "${ECHO_T}yes" >&6; }
20885 { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20886 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20890 # Checks for header files.
20891 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20892 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20893 if test "${ac_cv_header_stdc+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20896 cat >conftest.$ac_ext <<_ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 #include <stdlib.h>
20903 #include <stdarg.h>
20904 #include <string.h>
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_compile") 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest.$ac_objext; then
20932 ac_cv_header_stdc=yes
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_cv_header_stdc=no
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 if test $ac_cv_header_stdc = yes; then
20943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20944 cat >conftest.$ac_ext <<_ACEOF
20947 cat confdefs.h >>conftest.$ac_ext
20948 cat >>conftest.$ac_ext <<_ACEOF
20949 /* end confdefs.h. */
20950 #include <string.h>
20953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20954 $EGREP "memchr" >/dev/null 2>&1; then
20957 ac_cv_header_stdc=no
20963 if test $ac_cv_header_stdc = yes; then
20964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20971 #include <stdlib.h>
20974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20975 $EGREP "free" >/dev/null 2>&1; then
20978 ac_cv_header_stdc=no
20984 if test $ac_cv_header_stdc = yes; then
20985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20986 if test "$cross_compiling" = yes; then
20989 cat >conftest.$ac_ext <<_ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20996 #include <stdlib.h>
20997 #if ((' ' & 0x0FF) == 0x020)
20998 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20999 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21001 # define ISLOWER(c) \
21002 (('a' <= (c) && (c) <= 'i') \
21003 || ('j' <= (c) && (c) <= 'r') \
21004 || ('s' <= (c) && (c) <= 'z'))
21005 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21008 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21013 for (i = 0; i < 256; i++)
21014 if (XOR (islower (i), ISLOWER (i))
21015 || toupper (i) != TOUPPER (i))
21020 rm -f conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_link") 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21031 { (case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036 (eval "$ac_try") 2>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; }; then
21042 echo "$as_me: program exited with status $ac_status" >&5
21043 echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21046 ( exit $ac_status )
21047 ac_cv_header_stdc=no
21049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21055 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21056 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21057 if test $ac_cv_header_stdc = yes; then
21059 cat >>confdefs.h <<\_ACEOF
21060 #define STDC_HEADERS 1
21065 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21066 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21067 if test "${ac_cv_header_time+set}" = set; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <sys/types.h>
21077 #include <sys/time.h>
21083 if ((struct tm *) 0)
21089 rm -f conftest.$ac_objext
21090 if { (ac_try="$ac_compile"
21091 case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_compile") 2>conftest.er1
21098 grep -v '^ *+' conftest.er1 >conftest.err
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } && {
21103 test -z "$ac_c_werror_flag" ||
21104 test ! -s conftest.err
21105 } && test -s conftest.$ac_objext; then
21106 ac_cv_header_time=yes
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21111 ac_cv_header_time=no
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21117 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21118 if test $ac_cv_header_time = yes; then
21120 cat >>confdefs.h <<\_ACEOF
21121 #define TIME_WITH_SYS_TIME 1
21136 for ac_header in sys/socket.h \
21138 windows.h winsock.h winsock2.h \
21144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21151 ac_res=`eval echo '${'$as_ac_Header'}'`
21152 { echo "$as_me:$LINENO: result: $ac_res" >&5
21153 echo "${ECHO_T}$ac_res" >&6; }
21155 # Is the header compilable?
21156 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21158 cat >conftest.$ac_ext <<_ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h. */
21164 $ac_includes_default
21165 #include <$ac_header>
21167 rm -f conftest.$ac_objext
21168 if { (ac_try="$ac_compile"
21169 case "(($ac_try" in
21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171 *) ac_try_echo=$ac_try;;
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174 (eval "$ac_compile") 2>conftest.er1
21176 grep -v '^ *+' conftest.er1 >conftest.err
21178 cat conftest.err >&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } && {
21181 test -z "$ac_c_werror_flag" ||
21182 test ! -s conftest.err
21183 } && test -s conftest.$ac_objext; then
21184 ac_header_compiler=yes
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 ac_header_compiler=no
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21194 echo "${ECHO_T}$ac_header_compiler" >&6; }
21196 # Is the header present?
21197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21199 cat >conftest.$ac_ext <<_ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21205 #include <$ac_header>
21207 if { (ac_try="$ac_cpp conftest.$ac_ext"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21215 grep -v '^ *+' conftest.er1 >conftest.err
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } >/dev/null && {
21220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21221 test ! -s conftest.err
21223 ac_header_preproc=yes
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_header_preproc=no
21231 rm -f conftest.err conftest.$ac_ext
21232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21233 echo "${ECHO_T}$ac_header_preproc" >&6; }
21235 # So? What about this header?
21236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21242 ac_header_preproc=yes
21245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21258 ## -------------------------------------------------- ##
21259 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21260 ## -------------------------------------------------- ##
21262 ) | sed "s/^/$as_me: WARNING: /" >&2
21265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 eval "$as_ac_Header=\$ac_header_preproc"
21272 ac_res=`eval echo '${'$as_ac_Header'}'`
21273 { echo "$as_me:$LINENO: result: $ac_res" >&5
21274 echo "${ECHO_T}$ac_res" >&6; }
21277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21278 cat >>confdefs.h <<_ACEOF
21279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21293 for ac_func in gettimeofday usleep \
21300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 cat >conftest.$ac_ext <<_ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21314 #define $ac_func innocuous_$ac_func
21316 /* System header to define __stub macros and hopefully few prototypes,
21317 which can conflict with char $ac_func (); below.
21318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21319 <limits.h> exists even on freestanding compilers. */
21322 # include <limits.h>
21324 # include <assert.h>
21329 /* Override any GCC internal prototype to avoid an error.
21330 Use char because int might match the return type of a GCC
21331 builtin and then its argument prototype would still apply. */
21336 /* The GNU C library defines this for functions which it implements
21337 to always fail with ENOSYS. Some functions are actually named
21338 something starting with __ and the normal name is an alias. */
21339 #if defined __stub_$ac_func || defined __stub___$ac_func
21346 return $ac_func ();
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_link") 2>conftest.er1
21360 grep -v '^ *+' conftest.er1 >conftest.err
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } && {
21365 test -z "$ac_c_werror_flag" ||
21366 test ! -s conftest.err
21367 } && test -s conftest$ac_exeext &&
21368 $as_test_x conftest$ac_exeext; then
21369 eval "$as_ac_var=yes"
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 eval "$as_ac_var=no"
21377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21378 conftest$ac_exeext conftest.$ac_ext
21380 ac_res=`eval echo '${'$as_ac_var'}'`
21381 { echo "$as_me:$LINENO: result: $ac_res" >&5
21382 echo "${ECHO_T}$ac_res" >&6; }
21383 if test `eval echo '${'$as_ac_var'}'` = yes; then
21384 cat >>confdefs.h <<_ACEOF
21385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21392 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21395 for ac_func in snprintf vsnprintf
21397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21411 #define $ac_func innocuous_$ac_func
21413 /* System header to define __stub macros and hopefully few prototypes,
21414 which can conflict with char $ac_func (); below.
21415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21416 <limits.h> exists even on freestanding compilers. */
21419 # include <limits.h>
21421 # include <assert.h>
21426 /* Override any GCC internal prototype to avoid an error.
21427 Use char because int might match the return type of a GCC
21428 builtin and then its argument prototype would still apply. */
21433 /* The GNU C library defines this for functions which it implements
21434 to always fail with ENOSYS. Some functions are actually named
21435 something starting with __ and the normal name is an alias. */
21436 #if defined __stub_$ac_func || defined __stub___$ac_func
21443 return $ac_func ();
21448 rm -f conftest.$ac_objext conftest$ac_exeext
21449 if { (ac_try="$ac_link"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_link") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest$ac_exeext &&
21465 $as_test_x conftest$ac_exeext; then
21466 eval "$as_ac_var=yes"
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 eval "$as_ac_var=no"
21474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21475 conftest$ac_exeext conftest.$ac_ext
21477 ac_res=`eval echo '${'$as_ac_var'}'`
21478 { echo "$as_me:$LINENO: result: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21480 if test `eval echo '${'$as_ac_var'}'` = yes; then
21481 cat >>confdefs.h <<_ACEOF
21482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21488 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21489 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21490 if test "${ac_cv_have_working_snprintf+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 if test "$cross_compiling" = yes; then
21494 ac_cv_have_working_snprintf=cross
21496 cat >conftest.$ac_ext <<_ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21506 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21507 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21509 i = snprintf (bufs, 2, "%s", "111");
21510 if (strcmp (bufs, "1")) exit (1);
21511 if (i != 3) exit (1);
21512 i = snprintf (bufd, 2, "%d", 111);
21513 if (strcmp (bufd, "1")) exit (1);
21514 if (i != 3) exit (1);
21518 rm -f conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21525 (eval "$ac_link") 2>&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21529 { (case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_try") 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 ac_cv_have_working_snprintf=yes
21540 echo "$as_me: program exited with status $ac_status" >&5
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ( exit $ac_status )
21545 ac_cv_have_working_snprintf=no
21547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21553 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21554 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21555 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21556 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21557 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21558 echo $ECHO_N "(cached) $ECHO_C" >&6
21560 if test "$cross_compiling" = yes; then
21561 ac_cv_have_working_vsnprintf=cross
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21570 #include <stdarg.h>
21572 int my_vsnprintf (char *buf, const char *tmpl, ...)
21576 va_start (args, tmpl);
21577 i = vsnprintf (buf, 2, tmpl, args);
21584 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21585 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21587 i = my_vsnprintf (bufs, "%s", "111");
21588 if (strcmp (bufs, "1")) exit (1);
21589 if (i != 3) exit (1);
21590 i = my_vsnprintf (bufd, "%d", 111);
21591 if (strcmp (bufd, "1")) exit (1);
21592 if (i != 3) exit (1);
21596 rm -f conftest$ac_exeext
21597 if { (ac_try="$ac_link"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_link") 2>&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21607 { (case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_try") 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21616 ac_cv_have_working_vsnprintf=yes
21618 echo "$as_me: program exited with status $ac_status" >&5
21619 echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21622 ( exit $ac_status )
21623 ac_cv_have_working_vsnprintf=no
21625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21631 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21632 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21633 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21634 case " $LIBOBJS " in
21635 *" snprintf.$ac_objext "* ) ;;
21636 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21640 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21641 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21643 cat >>confdefs.h <<\_ACEOF
21644 #define PREFER_PORTABLE_SNPRINTF 1
21648 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21649 { echo "$as_me:$LINENO: checking for asprintf" >&5
21650 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21651 if test "${ac_cv_func_asprintf+set}" = set; then
21652 echo $ECHO_N "(cached) $ECHO_C" >&6
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21662 #define asprintf innocuous_asprintf
21664 /* System header to define __stub macros and hopefully few prototypes,
21665 which can conflict with char asprintf (); below.
21666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21667 <limits.h> exists even on freestanding compilers. */
21670 # include <limits.h>
21672 # include <assert.h>
21677 /* Override any GCC internal prototype to avoid an error.
21678 Use char because int might match the return type of a GCC
21679 builtin and then its argument prototype would still apply. */
21684 /* The GNU C library defines this for functions which it implements
21685 to always fail with ENOSYS. Some functions are actually named
21686 something starting with __ and the normal name is an alias. */
21687 #if defined __stub_asprintf || defined __stub___asprintf
21694 return asprintf ();
21699 rm -f conftest.$ac_objext conftest$ac_exeext
21700 if { (ac_try="$ac_link"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_link") 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } && {
21713 test -z "$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 } && test -s conftest$ac_exeext &&
21716 $as_test_x conftest$ac_exeext; then
21717 ac_cv_func_asprintf=yes
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_cv_func_asprintf=no
21725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21726 conftest$ac_exeext conftest.$ac_ext
21728 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21729 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21730 if test $ac_cv_func_asprintf = yes; then
21734 cat >>confdefs.h <<\_ACEOF
21735 #define NEED_ASPRINTF 1
21740 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21741 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21742 if test "${ac_cv_func_vasprintf+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 cat >conftest.$ac_ext <<_ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21751 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21753 #define vasprintf innocuous_vasprintf
21755 /* System header to define __stub macros and hopefully few prototypes,
21756 which can conflict with char vasprintf (); below.
21757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21758 <limits.h> exists even on freestanding compilers. */
21761 # include <limits.h>
21763 # include <assert.h>
21768 /* Override any GCC internal prototype to avoid an error.
21769 Use char because int might match the return type of a GCC
21770 builtin and then its argument prototype would still apply. */
21775 /* The GNU C library defines this for functions which it implements
21776 to always fail with ENOSYS. Some functions are actually named
21777 something starting with __ and the normal name is an alias. */
21778 #if defined __stub_vasprintf || defined __stub___vasprintf
21785 return vasprintf ();
21790 rm -f conftest.$ac_objext conftest$ac_exeext
21791 if { (ac_try="$ac_link"
21792 case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797 (eval "$ac_link") 2>conftest.er1
21799 grep -v '^ *+' conftest.er1 >conftest.err
21801 cat conftest.err >&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); } && {
21804 test -z "$ac_c_werror_flag" ||
21805 test ! -s conftest.err
21806 } && test -s conftest$ac_exeext &&
21807 $as_test_x conftest$ac_exeext; then
21808 ac_cv_func_vasprintf=yes
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_cv_func_vasprintf=no
21816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21817 conftest$ac_exeext conftest.$ac_ext
21819 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21820 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21821 if test $ac_cv_func_vasprintf = yes; then
21825 cat >>confdefs.h <<\_ACEOF
21826 #define NEED_VASPRINTF 1
21831 # we don't use those:
21832 # A C_CHECK_FUNC( asnprintf, :, A C_DEFINE(NEED_ASNPRINTF, 1, enable the asnprintf replacement))
21833 # A C_CHECK_FUNC(vasnprintf, :, A C_DEFINE(NEED_VASNPRINTF, 1, enable the vansprintf replacement))
21836 # Checks for typedefs, structures, and compiler characteristics.
21837 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21838 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21839 if test "${ac_cv_c_const+set}" = set; then
21840 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 cat >conftest.$ac_ext <<_ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h. */
21852 /* FIXME: Include the comments suggested by Paul. */
21853 #ifndef __cplusplus
21854 /* Ultrix mips cc rejects this. */
21855 typedef int charset[2];
21857 /* SunOS 4.1.1 cc rejects this. */
21858 char const *const *pcpcc;
21860 /* NEC SVR4.0.2 mips cc rejects this. */
21861 struct point {int x, y;};
21862 static struct point const zero = {0,0};
21863 /* AIX XL C 1.02.0.0 rejects this.
21864 It does not let you subtract one const X* pointer from another in
21865 an arm of an if-expression whose if-part is not a constant
21867 const char *g = "string";
21868 pcpcc = &g + (g ? g-g : 0);
21869 /* HPUX 7.0 cc rejects these. */
21871 ppc = (char**) pcpcc;
21872 pcpcc = (char const *const *) ppc;
21873 { /* SCO 3.2v4 cc rejects this. */
21875 char const *s = 0 ? (char *) 0 : (char const *) 0;
21880 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21881 int x[] = {25, 17};
21882 const int *foo = &x[0];
21885 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21886 typedef const int *iptr;
21890 { /* AIX XL C 1.02.0.0 rejects this saying
21891 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21892 struct s { int j; const int *ap[3]; };
21893 struct s *b; b->j = 5;
21895 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21896 const int foo = 10;
21897 if (!foo) return 0;
21899 return !cs[0] && !zero.x;
21906 rm -f conftest.$ac_objext
21907 if { (ac_try="$ac_compile"
21908 case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_compile") 2>conftest.er1
21915 grep -v '^ *+' conftest.er1 >conftest.err
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } && {
21920 test -z "$ac_c_werror_flag" ||
21921 test ! -s conftest.err
21922 } && test -s conftest.$ac_objext; then
21925 echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21934 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21935 if test $ac_cv_c_const = no; then
21937 cat >>confdefs.h <<\_ACEOF
21943 { echo "$as_me:$LINENO: checking for inline" >&5
21944 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21945 if test "${ac_cv_c_inline+set}" = set; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 for ac_kw in inline __inline__ __inline; do
21950 cat >conftest.$ac_ext <<_ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h. */
21956 #ifndef __cplusplus
21958 static $ac_kw foo_t static_foo () {return 0; }
21959 $ac_kw foo_t foo () {return 0; }
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_compile") 2>conftest.er1
21972 grep -v '^ *+' conftest.er1 >conftest.err
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest.$ac_objext; then
21980 ac_cv_c_inline=$ac_kw
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 test "$ac_cv_c_inline" != no && break
21993 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21994 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21997 case $ac_cv_c_inline in
22000 case $ac_cv_c_inline in
22002 *) ac_val=$ac_cv_c_inline;;
22004 cat >>confdefs.h <<_ACEOF
22005 #ifndef __cplusplus
22006 #define inline $ac_val
22012 { echo "$as_me:$LINENO: checking for size_t" >&5
22013 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22014 if test "${ac_cv_type_size_t+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22023 $ac_includes_default
22024 typedef size_t ac__type_new_;
22028 if ((ac__type_new_ *) 0)
22030 if (sizeof (ac__type_new_))
22036 rm -f conftest.$ac_objext
22037 if { (ac_try="$ac_compile"
22038 case "(($ac_try" in
22039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22040 *) ac_try_echo=$ac_try;;
22042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22043 (eval "$ac_compile") 2>conftest.er1
22045 grep -v '^ *+' conftest.er1 >conftest.err
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && {
22050 test -z "$ac_c_werror_flag" ||
22051 test ! -s conftest.err
22052 } && test -s conftest.$ac_objext; then
22053 ac_cv_type_size_t=yes
22055 echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22058 ac_cv_type_size_t=no
22061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22064 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22065 if test $ac_cv_type_size_t = yes; then
22069 cat >>confdefs.h <<_ACEOF
22070 #define size_t unsigned int
22076 ###################################
22077 ## SimGrid and GRAS specific checks
22081 { echo "$as_me:$LINENO: result: " >&5
22082 echo "${ECHO_T}" >&6; }
22083 { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22084 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22086 # Check architecture signature begin
22088 # Check for the architecture
22089 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22090 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22091 if test "${ac_cv_c_bigendian+set}" = set; then
22092 echo $ECHO_N "(cached) $ECHO_C" >&6
22094 # See if sys/param.h defines the BYTE_ORDER macro.
22095 cat >conftest.$ac_ext <<_ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22101 #include <sys/types.h>
22102 #include <sys/param.h>
22107 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22108 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22109 bogus endian macros
22116 rm -f conftest.$ac_objext
22117 if { (ac_try="$ac_compile"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_compile") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest.$ac_objext; then
22133 # It does; now see whether it defined to BIG_ENDIAN or not.
22134 cat >conftest.$ac_ext <<_ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 #include <sys/types.h>
22141 #include <sys/param.h>
22146 #if BYTE_ORDER != BIG_ENDIAN
22154 rm -f conftest.$ac_objext
22155 if { (ac_try="$ac_compile"
22156 case "(($ac_try" in
22157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158 *) ac_try_echo=$ac_try;;
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161 (eval "$ac_compile") 2>conftest.er1
22163 grep -v '^ *+' conftest.er1 >conftest.err
22165 cat conftest.err >&5
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && {
22168 test -z "$ac_c_werror_flag" ||
22169 test ! -s conftest.err
22170 } && test -s conftest.$ac_objext; then
22171 ac_cv_c_bigendian=yes
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22176 ac_cv_c_bigendian=no
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 # It does not; compile a test program.
22185 if test "$cross_compiling" = yes; then
22186 # try to guess the endianness by grepping values into an object file
22187 ac_cv_c_bigendian=unknown
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22195 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22196 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22197 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22198 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22199 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22203 _ascii (); _ebcdic ();
22208 rm -f conftest.$ac_objext
22209 if { (ac_try="$ac_compile"
22210 case "(($ac_try" in
22211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212 *) ac_try_echo=$ac_try;;
22214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215 (eval "$ac_compile") 2>conftest.er1
22217 grep -v '^ *+' conftest.er1 >conftest.err
22219 cat conftest.err >&5
22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221 (exit $ac_status); } && {
22222 test -z "$ac_c_werror_flag" ||
22223 test ! -s conftest.err
22224 } && test -s conftest.$ac_objext; then
22225 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22226 ac_cv_c_bigendian=yes
22228 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22229 if test "$ac_cv_c_bigendian" = unknown; then
22230 ac_cv_c_bigendian=no
22232 # finding both strings is unlikely to happen, but who knows?
22233 ac_cv_c_bigendian=unknown
22237 echo "$as_me: failed program was:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22251 $ac_includes_default
22256 /* Are we little or big endian? From Harbison&Steele. */
22260 char c[sizeof (long int)];
22263 return u.c[sizeof (long int) - 1] == 1;
22269 rm -f conftest$ac_exeext
22270 if { (ac_try="$ac_link"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_link") 2>&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22280 { (case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285 (eval "$ac_try") 2>&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; }; then
22289 ac_cv_c_bigendian=no
22291 echo "$as_me: program exited with status $ac_status" >&5
22292 echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.$ac_ext >&5
22295 ( exit $ac_status )
22296 ac_cv_c_bigendian=yes
22298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22307 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22308 case $ac_cv_c_bigendian in
22314 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22315 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22316 { (exit 1); exit 1; }; } ;;
22320 cat >>confdefs.h <<_ACEOF
22321 #define GRAS_BIGENDIAN $endian
22325 { echo "$as_me:$LINENO: checking size of char" >&5
22326 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22327 if test "${ac_cv_sizeof_char+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22331 cat >conftest.$ac_ext <<_ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337 #include "confdefs.h"
22338 #include <sys/types.h>
22344 switch (0) case 0: case (sizeof (char) == $ac_size):;
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_compile") 2>conftest.er1
22358 grep -v '^ *+' conftest.er1 >conftest.err
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest.$ac_objext; then
22366 ac_cv_sizeof_char=$ac_size
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 if test x$ac_cv_sizeof_char != x ; then break; fi
22381 unspecif=$ac_cv_sizeof_char
22382 if test x$unspecif = x ; then
22383 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22384 echo "$as_me: error: cannot determine a size for char" >&2;}
22385 { (exit 1); exit 1; }; }
22388 if test "${ac_cv_sizeof_signed_char+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22392 cat >conftest.$ac_ext <<_ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22398 #include "confdefs.h"
22399 #include <sys/types.h>
22405 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22410 rm -f conftest.$ac_objext
22411 if { (ac_try="$ac_compile"
22412 case "(($ac_try" in
22413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414 *) ac_try_echo=$ac_try;;
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417 (eval "$ac_compile") 2>conftest.er1
22419 grep -v '^ *+' conftest.er1 >conftest.err
22421 cat conftest.err >&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); } && {
22424 test -z "$ac_c_werror_flag" ||
22425 test ! -s conftest.err
22426 } && test -s conftest.$ac_objext; then
22427 ac_cv_sizeof_signed_char=$ac_size
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22442 signed=$ac_cv_sizeof_signed_char
22443 if test x$signed = x ; then
22444 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22445 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22446 { (exit 1); exit 1; }; }
22448 if test x$unspecif != x$signed ; then
22449 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22450 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22451 { (exit 1); exit 1; }; }
22454 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 #include "confdefs.h"
22465 #include <sys/types.h>
22471 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480 *) ac_try_echo=$ac_try;;
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483 (eval "$ac_compile") 2>conftest.er1
22485 grep -v '^ *+' conftest.er1 >conftest.err
22487 cat conftest.err >&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } && {
22490 test -z "$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22492 } && test -s conftest.$ac_objext; then
22493 ac_cv_sizeof_unsigned_char=$ac_size
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22508 unsigned=$ac_cv_sizeof_unsigned_char
22509 if test x$unsigned = x ; then
22510 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22511 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22512 { (exit 1); exit 1; }; }
22514 if test x$unsigned != x$signed ; then
22515 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22516 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22517 { (exit 1); exit 1; }; }
22520 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22521 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22522 { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22523 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22525 if test "${ac_cv_struct_boundary_char+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 #include "confdefs.h"
22536 #include <sys/types.h>
22537 struct s { char c; char i; };
22542 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554 (eval "$ac_compile") 2>conftest.er1
22556 grep -v '^ *+' conftest.er1 >conftest.err
22558 cat conftest.err >&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } && {
22561 test -z "$ac_c_werror_flag" ||
22562 test ! -s conftest.err
22563 } && test -s conftest.$ac_objext; then
22564 ac_cv_struct_boundary_char=$ac_size
22566 echo "$as_me: failed program was:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573 if test x$ac_cv_struct_boundary_char != x ; then break; fi
22578 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22579 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22580 if test x$ac_cv_struct_boundary_char = x ; then
22581 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22582 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22583 { (exit 1); exit 1; }; }
22586 { echo "$as_me:$LINENO: checking size of short int" >&5
22587 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22588 if test "${ac_cv_sizeof_short_int+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22591 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 #include "confdefs.h"
22599 #include <sys/types.h>
22605 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_compile") 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest.$ac_objext; then
22627 ac_cv_sizeof_short_int=$ac_size
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 if test x$ac_cv_sizeof_short_int != x ; then break; fi
22642 unspecif=$ac_cv_sizeof_short_int
22643 if test x$unspecif = x ; then
22644 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22645 echo "$as_me: error: cannot determine a size for short int" >&2;}
22646 { (exit 1); exit 1; }; }
22649 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22653 cat >conftest.$ac_ext <<_ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22659 #include "confdefs.h"
22660 #include <sys/types.h>
22666 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678 (eval "$ac_compile") 2>conftest.er1
22680 grep -v '^ *+' conftest.er1 >conftest.err
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } && {
22685 test -z "$ac_c_werror_flag" ||
22686 test ! -s conftest.err
22687 } && test -s conftest.$ac_objext; then
22688 ac_cv_sizeof_signed_short_int=$ac_size
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22703 signed=$ac_cv_sizeof_signed_short_int
22704 if test x$signed = x ; then
22705 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22706 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22707 { (exit 1); exit 1; }; }
22709 if test x$unspecif != x$signed ; then
22710 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22711 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22712 { (exit 1); exit 1; }; }
22715 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22719 cat >conftest.$ac_ext <<_ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22725 #include "confdefs.h"
22726 #include <sys/types.h>
22732 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_cv_sizeof_unsigned_short_int=$ac_size
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22769 unsigned=$ac_cv_sizeof_unsigned_short_int
22770 if test x$unsigned = x ; then
22771 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22772 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22773 { (exit 1); exit 1; }; }
22775 if test x$unsigned != x$signed ; then
22776 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22777 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22778 { (exit 1); exit 1; }; }
22781 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22782 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22783 { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22784 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22786 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22790 cat >conftest.$ac_ext <<_ACEOF
22793 cat confdefs.h >>conftest.$ac_ext
22794 cat >>conftest.$ac_ext <<_ACEOF
22795 /* end confdefs.h. */
22796 #include "confdefs.h"
22797 #include <sys/types.h>
22798 struct s { char c; short int i; };
22803 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22808 rm -f conftest.$ac_objext
22809 if { (ac_try="$ac_compile"
22810 case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22815 (eval "$ac_compile") 2>conftest.er1
22817 grep -v '^ *+' conftest.er1 >conftest.err
22819 cat conftest.err >&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest.$ac_objext; then
22825 ac_cv_struct_boundary_short_int=$ac_size
22827 echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22834 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22839 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22840 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22841 if test x$ac_cv_struct_boundary_short_int = x ; then
22842 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22843 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22844 { (exit 1); exit 1; }; }
22847 { echo "$as_me:$LINENO: checking size of int" >&5
22848 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22849 if test "${ac_cv_sizeof_int+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22852 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22853 cat >conftest.$ac_ext <<_ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h. */
22859 #include "confdefs.h"
22860 #include <sys/types.h>
22866 switch (0) case 0: case (sizeof (int) == $ac_size):;
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_compile") 2>conftest.er1
22880 grep -v '^ *+' conftest.er1 >conftest.err
22882 cat conftest.err >&5
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); } && {
22885 test -z "$ac_c_werror_flag" ||
22886 test ! -s conftest.err
22887 } && test -s conftest.$ac_objext; then
22888 ac_cv_sizeof_int=$ac_size
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 if test x$ac_cv_sizeof_int != x ; then break; fi
22903 unspecif=$ac_cv_sizeof_int
22904 if test x$unspecif = x ; then
22905 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22906 echo "$as_me: error: cannot determine a size for int" >&2;}
22907 { (exit 1); exit 1; }; }
22910 if test "${ac_cv_sizeof_signed_int+set}" = set; then
22911 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 #include "confdefs.h"
22921 #include <sys/types.h>
22927 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22932 rm -f conftest.$ac_objext
22933 if { (ac_try="$ac_compile"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_compile") 2>conftest.er1
22941 grep -v '^ *+' conftest.er1 >conftest.err
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } && {
22946 test -z "$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22948 } && test -s conftest.$ac_objext; then
22949 ac_cv_sizeof_signed_int=$ac_size
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22964 signed=$ac_cv_sizeof_signed_int
22965 if test x$signed = x ; then
22966 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22967 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22968 { (exit 1); exit 1; }; }
22970 if test x$unspecif != x$signed ; then
22971 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22972 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22973 { (exit 1); exit 1; }; }
22976 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22980 cat >conftest.$ac_ext <<_ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22986 #include "confdefs.h"
22987 #include <sys/types.h>
22993 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23007 grep -v '^ *+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23015 ac_cv_sizeof_unsigned_int=$ac_size
23017 echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23024 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23030 unsigned=$ac_cv_sizeof_unsigned_int
23031 if test x$unsigned = x ; then
23032 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23033 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23034 { (exit 1); exit 1; }; }
23036 if test x$unsigned != x$signed ; then
23037 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23038 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23039 { (exit 1); exit 1; }; }
23042 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23043 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23044 { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23045 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23047 if test "${ac_cv_struct_boundary_int+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23051 cat >conftest.$ac_ext <<_ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23057 #include "confdefs.h"
23058 #include <sys/types.h>
23059 struct s { char c; int i; };
23064 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23069 rm -f conftest.$ac_objext
23070 if { (ac_try="$ac_compile"
23071 case "(($ac_try" in
23072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073 *) ac_try_echo=$ac_try;;
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076 (eval "$ac_compile") 2>conftest.er1
23078 grep -v '^ *+' conftest.er1 >conftest.err
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } && {
23083 test -z "$ac_c_werror_flag" ||
23084 test ! -s conftest.err
23085 } && test -s conftest.$ac_objext; then
23086 ac_cv_struct_boundary_int=$ac_size
23088 echo "$as_me: failed program was:" >&5
23089 sed 's/^/| /' conftest.$ac_ext >&5
23094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095 if test x$ac_cv_struct_boundary_int != x ; then break; fi
23100 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23101 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23102 if test x$ac_cv_struct_boundary_int = x ; then
23103 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23104 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23105 { (exit 1); exit 1; }; }
23108 { echo "$as_me:$LINENO: checking size of long int" >&5
23109 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23110 if test "${ac_cv_sizeof_long_int+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 #include "confdefs.h"
23121 #include <sys/types.h>
23127 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest.$ac_objext; then
23149 ac_cv_sizeof_long_int=$ac_size
23151 echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158 if test x$ac_cv_sizeof_long_int != x ; then break; fi
23164 unspecif=$ac_cv_sizeof_long_int
23165 if test x$unspecif = x ; then
23166 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23167 echo "$as_me: error: cannot determine a size for long int" >&2;}
23168 { (exit 1); exit 1; }; }
23171 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23175 cat >conftest.$ac_ext <<_ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23181 #include "confdefs.h"
23182 #include <sys/types.h>
23188 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_compile") 2>conftest.er1
23202 grep -v '^ *+' conftest.er1 >conftest.err
23204 cat conftest.err >&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } && {
23207 test -z "$ac_c_werror_flag" ||
23208 test ! -s conftest.err
23209 } && test -s conftest.$ac_objext; then
23210 ac_cv_sizeof_signed_long_int=$ac_size
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23225 signed=$ac_cv_sizeof_signed_long_int
23226 if test x$signed = x ; then
23227 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23228 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23229 { (exit 1); exit 1; }; }
23231 if test x$unspecif != x$signed ; then
23232 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23233 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23234 { (exit 1); exit 1; }; }
23237 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23241 cat >conftest.$ac_ext <<_ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h. */
23247 #include "confdefs.h"
23248 #include <sys/types.h>
23254 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23259 rm -f conftest.$ac_objext
23260 if { (ac_try="$ac_compile"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_compile") 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } && {
23273 test -z "$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23275 } && test -s conftest.$ac_objext; then
23276 ac_cv_sizeof_unsigned_long_int=$ac_size
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23291 unsigned=$ac_cv_sizeof_unsigned_long_int
23292 if test x$unsigned = x ; then
23293 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23294 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23295 { (exit 1); exit 1; }; }
23297 if test x$unsigned != x$signed ; then
23298 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23299 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23300 { (exit 1); exit 1; }; }
23303 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23304 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23305 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23306 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23308 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23312 cat >conftest.$ac_ext <<_ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 #include "confdefs.h"
23319 #include <sys/types.h>
23320 struct s { char c; long int i; };
23325 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334 *) ac_try_echo=$ac_try;;
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337 (eval "$ac_compile") 2>conftest.er1
23339 grep -v '^ *+' conftest.er1 >conftest.err
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } && {
23344 test -z "$ac_c_werror_flag" ||
23345 test ! -s conftest.err
23346 } && test -s conftest.$ac_objext; then
23347 ac_cv_struct_boundary_long_int=$ac_size
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23356 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23361 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23362 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23363 if test x$ac_cv_struct_boundary_long_int = x ; then
23364 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23365 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23366 { (exit 1); exit 1; }; }
23369 { echo "$as_me:$LINENO: checking size of long long int" >&5
23370 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23371 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23372 echo $ECHO_N "(cached) $ECHO_C" >&6
23374 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23375 cat >conftest.$ac_ext <<_ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23381 #include "confdefs.h"
23382 #include <sys/types.h>
23388 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_compile") 2>conftest.er1
23402 grep -v '^ *+' conftest.er1 >conftest.err
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); } && {
23407 test -z "$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 } && test -s conftest.$ac_objext; then
23410 ac_cv_sizeof_long_long_int=$ac_size
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23425 unspecif=$ac_cv_sizeof_long_long_int
23426 if test x$unspecif = x ; then
23427 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23428 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23429 { (exit 1); exit 1; }; }
23432 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23433 echo $ECHO_N "(cached) $ECHO_C" >&6
23435 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 #include "confdefs.h"
23443 #include <sys/types.h>
23449 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461 (eval "$ac_compile") 2>conftest.er1
23463 grep -v '^ *+' conftest.er1 >conftest.err
23465 cat conftest.err >&5
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); } && {
23468 test -z "$ac_c_werror_flag" ||
23469 test ! -s conftest.err
23470 } && test -s conftest.$ac_objext; then
23471 ac_cv_sizeof_signed_long_long_int=$ac_size
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23486 signed=$ac_cv_sizeof_signed_long_long_int
23487 if test x$signed = x ; then
23488 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23489 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23490 { (exit 1); exit 1; }; }
23492 if test x$unspecif != x$signed ; then
23493 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23494 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23495 { (exit 1); exit 1; }; }
23498 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23499 echo $ECHO_N "(cached) $ECHO_C" >&6
23501 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23502 cat >conftest.$ac_ext <<_ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 #include "confdefs.h"
23509 #include <sys/types.h>
23515 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527 (eval "$ac_compile") 2>conftest.er1
23529 grep -v '^ *+' conftest.er1 >conftest.err
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } && {
23534 test -z "$ac_c_werror_flag" ||
23535 test ! -s conftest.err
23536 } && test -s conftest.$ac_objext; then
23537 ac_cv_sizeof_unsigned_long_long_int=$ac_size
23539 echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23546 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23552 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23553 if test x$unsigned = x ; then
23554 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23555 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23556 { (exit 1); exit 1; }; }
23558 if test x$unsigned != x$signed ; then
23559 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23560 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23561 { (exit 1); exit 1; }; }
23564 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23565 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23566 { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23567 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23569 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23572 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23573 cat >conftest.$ac_ext <<_ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23579 #include "confdefs.h"
23580 #include <sys/types.h>
23581 struct s { char c; long long int i; };
23586 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23591 rm -f conftest.$ac_objext
23592 if { (ac_try="$ac_compile"
23593 case "(($ac_try" in
23594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23595 *) ac_try_echo=$ac_try;;
23597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23598 (eval "$ac_compile") 2>conftest.er1
23600 grep -v '^ *+' conftest.er1 >conftest.err
23602 cat conftest.err >&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } && {
23605 test -z "$ac_c_werror_flag" ||
23606 test ! -s conftest.err
23607 } && test -s conftest.$ac_objext; then
23608 ac_cv_struct_boundary_long_long_int=$ac_size
23610 echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23622 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23623 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23624 if test x$ac_cv_struct_boundary_long_long_int = x ; then
23625 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23626 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23627 { (exit 1); exit 1; }; }
23631 { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23632 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23634 if test "${ac_cv_struct_boundary_float+set}" = set; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23638 cat >conftest.$ac_ext <<_ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h. */
23644 #include "confdefs.h"
23645 #include <sys/types.h>
23646 struct s { char c; float i; };
23651 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23656 rm -f conftest.$ac_objext
23657 if { (ac_try="$ac_compile"
23658 case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663 (eval "$ac_compile") 2>conftest.er1
23665 grep -v '^ *+' conftest.er1 >conftest.err
23667 cat conftest.err >&5
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } && {
23670 test -z "$ac_c_werror_flag" ||
23671 test ! -s conftest.err
23672 } && test -s conftest.$ac_objext; then
23673 ac_cv_struct_boundary_float=$ac_size
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682 if test x$ac_cv_struct_boundary_float != x ; then break; fi
23687 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23688 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23689 if test x$ac_cv_struct_boundary_float = x ; then
23690 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23691 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23692 { (exit 1); exit 1; }; }
23694 { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23695 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23697 if test "${ac_cv_struct_boundary_double+set}" = set; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23700 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23701 cat >conftest.$ac_ext <<_ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h. */
23707 #include "confdefs.h"
23708 #include <sys/types.h>
23709 struct s { char c; double i; };
23714 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23719 rm -f conftest.$ac_objext
23720 if { (ac_try="$ac_compile"
23721 case "(($ac_try" in
23722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23723 *) ac_try_echo=$ac_try;;
23725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23726 (eval "$ac_compile") 2>conftest.er1
23728 grep -v '^ *+' conftest.er1 >conftest.err
23730 cat conftest.err >&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); } && {
23733 test -z "$ac_c_werror_flag" ||
23734 test ! -s conftest.err
23735 } && test -s conftest.$ac_objext; then
23736 ac_cv_struct_boundary_double=$ac_size
23738 echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745 if test x$ac_cv_struct_boundary_double != x ; then break; fi
23750 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23751 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23752 if test x$ac_cv_struct_boundary_double = x ; then
23753 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23754 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23755 { (exit 1); exit 1; }; }
23759 { echo "$as_me:$LINENO: checking size of void *" >&5
23760 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23761 if test "${ac_cv_sizeof_void_p+set}" = set; then
23762 echo $ECHO_N "(cached) $ECHO_C" >&6
23764 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23765 cat >conftest.$ac_ext <<_ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23771 #include "confdefs.h"
23772 #include <sys/types.h>
23778 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23783 rm -f conftest.$ac_objext
23784 if { (ac_try="$ac_compile"
23785 case "(($ac_try" in
23786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23787 *) ac_try_echo=$ac_try;;
23789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23790 (eval "$ac_compile") 2>conftest.er1
23792 grep -v '^ *+' conftest.er1 >conftest.err
23794 cat conftest.err >&5
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); } && {
23797 test -z "$ac_c_werror_flag" ||
23798 test ! -s conftest.err
23799 } && test -s conftest.$ac_objext; then
23800 ac_cv_sizeof_void_p=$ac_size
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23809 if test x$ac_cv_sizeof_void_p != x ; then break; fi
23815 if test x$ac_cv_sizeof_void_p = x ; then
23816 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23817 echo "$as_me: error: cannot determine a size for void *" >&2;}
23818 { (exit 1); exit 1; }; }
23820 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23821 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23822 { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23823 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23825 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23828 for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23829 cat >conftest.$ac_ext <<_ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 #include "confdefs.h"
23836 #include <sys/types.h>
23837 struct s { char c; void * i; };
23842 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23847 rm -f conftest.$ac_objext
23848 if { (ac_try="$ac_compile"
23849 case "(($ac_try" in
23850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23851 *) ac_try_echo=$ac_try;;
23853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23854 (eval "$ac_compile") 2>conftest.er1
23856 grep -v '^ *+' conftest.er1 >conftest.err
23858 cat conftest.err >&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } && {
23861 test -z "$ac_c_werror_flag" ||
23862 test ! -s conftest.err
23863 } && test -s conftest.$ac_objext; then
23864 ac_cv_struct_boundary_void_p=$ac_size
23866 echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23873 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23878 { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23879 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23880 if test x$ac_cv_struct_boundary_void_p = x ; then
23881 { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23882 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23883 { (exit 1); exit 1; }; }
23886 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23887 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23888 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23889 echo $ECHO_N "(cached) $ECHO_C" >&6
23891 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23892 cat >conftest.$ac_ext <<_ACEOF
23895 cat confdefs.h >>conftest.$ac_ext
23896 cat >>conftest.$ac_ext <<_ACEOF
23897 /* end confdefs.h. */
23898 #include "confdefs.h"
23899 #include <sys/types.h>
23905 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23910 rm -f conftest.$ac_objext
23911 if { (ac_try="$ac_compile"
23912 case "(($ac_try" in
23913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914 *) ac_try_echo=$ac_try;;
23916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23917 (eval "$ac_compile") 2>conftest.er1
23919 grep -v '^ *+' conftest.er1 >conftest.err
23921 cat conftest.err >&5
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); } && {
23924 test -z "$ac_c_werror_flag" ||
23925 test ! -s conftest.err
23926 } && test -s conftest.$ac_objext; then
23927 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23936 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23942 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23943 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23944 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23945 { (exit 1); exit 1; }; }
23947 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23948 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23952 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23953 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23954 if test x$endian = x1 ; then
23960 trace="$trace_endian"
23962 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23964 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23965 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23966 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23967 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23969 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23970 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23972 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23974 # sizeof float/double are not tested since IEEE 754 is assumed.
23975 # Check README.IEEE for rational.
23977 # The numbers after the _ in the arch name are the maximal packing boundary.
23978 # big32_2 means that all data are aligned on a 2 bytes boundary. (ARM)
23979 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23981 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;;
23982 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;;
23983 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;;
23984 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;;
23986 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;;
23988 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;;
23989 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;;
23990 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;;
23991 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;;
23993 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;;
23994 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;;
23996 if test x$gras_arch = xunknown ; then
23997 { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23998 echo "${ECHO_T}damnit ($trace)" >&6; }
23999 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24000 Please report this architecture trace ($trace) and what it corresponds to." >&5
24001 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24002 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24003 { (exit 1); exit 1; }; }
24005 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24007 cat >>confdefs.h <<_ACEOF
24008 #define GRAS_THISARCH $gras_arch
24011 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24012 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24014 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24015 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24017 for s in $ac_cv_sizeof_char \
24018 $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24019 $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24022 if test $ac_cv_sizeof_max -lt $s ; then
24023 ac_cv_sizeof_max=$s
24026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24027 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24029 cat >>confdefs.h <<_ACEOF
24030 #define SIZEOF_MAX $ac_cv_sizeof_max
24035 # Check architecture signature end
24036 { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24037 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24038 cat >conftest.$ac_ext <<_ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044 #include "confdefs.h"
24045 #include <sys/types.h>
24046 #include <stddef.h> /* offsetof() */
24047 struct s {char c; double d;};
24054 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24060 rm -f conftest.$ac_objext
24061 if { (ac_try="$ac_compile"
24062 case "(($ac_try" in
24063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064 *) ac_try_echo=$ac_try;;
24066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24067 (eval "$ac_compile") 2>conftest.er1
24069 grep -v '^ *+' conftest.er1 >conftest.err
24071 cat conftest.err >&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); } && {
24074 test -z "$ac_c_werror_flag" ||
24075 test ! -s conftest.err
24076 } && test -s conftest.$ac_objext; then
24077 gras_struct_packed=yes
24079 echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24082 gras_struct_packed=no
24085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24087 { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24088 echo "${ECHO_T}$gras_struct_packed" >&6; }
24089 if test x$gras_struct_packed = "xyes" ; then
24090 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24091 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24092 { (exit 1); exit 1; }; }
24095 { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24096 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 #include "confdefs.h"
24104 #include <sys/types.h>
24105 #include <stddef.h> /* offsetof() */
24106 struct s {double d; int i; char c;};
24113 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24119 rm -f conftest.$ac_objext
24120 if { (ac_try="$ac_compile"
24121 case "(($ac_try" in
24122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123 *) ac_try_echo=$ac_try;;
24125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126 (eval "$ac_compile") 2>conftest.er1
24128 grep -v '^ *+' conftest.er1 >conftest.err
24130 cat conftest.err >&5
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); } && {
24133 test -z "$ac_c_werror_flag" ||
24134 test ! -s conftest.err
24135 } && test -s conftest.$ac_objext; then
24136 gras_struct_compact=yes
24138 echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24141 gras_struct_compact=no
24144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24146 { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24147 echo "${ECHO_T}$gras_struct_compact" >&6; }
24149 if test x$gras_struct_compact != xyes ; then
24150 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24151 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24152 { (exit 1); exit 1; }; }
24155 cat >>confdefs.h <<_ACEOF
24156 #define GRAS_STRUCT_COMPACT 1
24159 { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24160 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24162 cat >conftest.$ac_ext <<_ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24168 #include "confdefs.h"
24169 #include <sys/types.h>
24170 #include <stddef.h> /* offsetof() */
24171 struct s { double d; int i; char c[6]; };
24178 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24184 rm -f conftest.$ac_objext
24185 if { (ac_try="$ac_compile"
24186 case "(($ac_try" in
24187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188 *) ac_try_echo=$ac_try;;
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191 (eval "$ac_compile") 2>conftest.er1
24193 grep -v '^ *+' conftest.er1 >conftest.err
24195 cat conftest.err >&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); } && {
24198 test -z "$ac_c_werror_flag" ||
24199 test ! -s conftest.err
24200 } && test -s conftest.$ac_objext; then
24201 gras_array_straddle_struct=yes
24203 echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24206 gras_array_straddle_struct=no
24209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24211 { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24212 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24214 if test x$gras_array_straddle_struct = xyes ; then
24216 cat >>confdefs.h <<_ACEOF
24217 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24221 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24222 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24223 { (exit 1); exit 1; }; }
24230 { echo "$as_me:$LINENO: result: " >&5
24231 echo "${ECHO_T}" >&6; }
24232 { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24233 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24238 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24239 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24240 if test "${ac_cv_check_mcsc+set}" = set; then
24241 echo $ECHO_N "(cached) $ECHO_C" >&6
24244 if test "$cross_compiling" = yes; then
24245 ac_cv_check_mcsc=no
24248 cat >conftest.$ac_ext <<_ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24257 #include <stdlib.h>
24258 #include <ucontext.h>
24260 ucontext_t uc_child;
24261 ucontext_t uc_main;
24263 void child(void *arg)
24265 if (arg != (void *)2147483648)
24267 if (swapcontext(&uc_child, &uc_main) != 0)
24271 int main(int argc, char *argv[])
24276 /* the default is that it fails */
24277 if ((fp = fopen("conftestval", "w")) == NULL)
24279 fprintf(fp, "no\n");
24282 /* configure a child user-space context */
24283 if ((stack = malloc(64*1024)) == NULL)
24285 if (getcontext(&uc_child) != 0)
24287 uc_child.uc_link = NULL;
24288 uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24289 uc_child.uc_stack.ss_size = 32*1024;
24290 uc_child.uc_stack.ss_flags = 0;
24291 makecontext(&uc_child, child, 2, (void *)2147483648);
24293 /* switch into the user context */
24294 if (swapcontext(&uc_main, &uc_child) != 0)
24297 /* Fine, child came home */
24298 if ((fp = fopen("conftestval", "w")) == NULL)
24300 fprintf(fp, "yes\n");
24303 /* die successfully */
24308 rm -f conftest$ac_exeext
24309 if { (ac_try="$ac_link"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_link") 2>&5
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24319 { (case "(($ac_try" in
24320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321 *) ac_try_echo=$ac_try;;
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324 (eval "$ac_try") 2>&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328 ac_cv_check_mcsc=`cat conftestval`
24330 echo "$as_me: program exited with status $ac_status" >&5
24331 echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24334 ( exit $ac_status )
24335 ac_cv_check_mcsc=no
24337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24342 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24343 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24344 if test ".$ac_cv_check_mcsc" = .yes; then
24352 for ac_header in pthread.h
24354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24359 echo $ECHO_N "(cached) $ECHO_C" >&6
24361 ac_res=`eval echo '${'$as_ac_Header'}'`
24362 { echo "$as_me:$LINENO: result: $ac_res" >&5
24363 echo "${ECHO_T}$ac_res" >&6; }
24365 # Is the header compilable?
24366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24368 cat >conftest.$ac_ext <<_ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24374 $ac_includes_default
24375 #include <$ac_header>
24377 rm -f conftest.$ac_objext
24378 if { (ac_try="$ac_compile"
24379 case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24384 (eval "$ac_compile") 2>conftest.er1
24386 grep -v '^ *+' conftest.er1 >conftest.err
24388 cat conftest.err >&5
24389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390 (exit $ac_status); } && {
24391 test -z "$ac_c_werror_flag" ||
24392 test ! -s conftest.err
24393 } && test -s conftest.$ac_objext; then
24394 ac_header_compiler=yes
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24399 ac_header_compiler=no
24402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24404 echo "${ECHO_T}$ac_header_compiler" >&6; }
24406 # Is the header present?
24407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24409 cat >conftest.$ac_ext <<_ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h. */
24415 #include <$ac_header>
24417 if { (ac_try="$ac_cpp conftest.$ac_ext"
24418 case "(($ac_try" in
24419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420 *) ac_try_echo=$ac_try;;
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24425 grep -v '^ *+' conftest.er1 >conftest.err
24427 cat conftest.err >&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } >/dev/null && {
24430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24431 test ! -s conftest.err
24433 ac_header_preproc=yes
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24438 ac_header_preproc=no
24441 rm -f conftest.err conftest.$ac_ext
24442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24443 echo "${ECHO_T}$ac_header_preproc" >&6; }
24445 # So? What about this header?
24446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24452 ac_header_preproc=yes
24455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24468 ## -------------------------------------------------- ##
24469 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24470 ## -------------------------------------------------- ##
24472 ) | sed "s/^/$as_me: WARNING: /" >&2
24475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24478 echo $ECHO_N "(cached) $ECHO_C" >&6
24480 eval "$as_ac_Header=\$ac_header_preproc"
24482 ac_res=`eval echo '${'$as_ac_Header'}'`
24483 { echo "$as_me:$LINENO: result: $ac_res" >&5
24484 echo "${ECHO_T}$ac_res" >&6; }
24487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24488 cat >>confdefs.h <<_ACEOF
24489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24496 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24497 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24498 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24499 echo $ECHO_N "(cached) $ECHO_C" >&6
24501 ac_check_lib_save_LIBS=$LIBS
24502 LIBS="-lpthread $LIBS"
24503 cat >conftest.$ac_ext <<_ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24510 /* Override any GCC internal prototype to avoid an error.
24511 Use char because int might match the return type of a GCC
24512 builtin and then its argument prototype would still apply. */
24516 char pthread_create ();
24520 return pthread_create ();
24525 rm -f conftest.$ac_objext conftest$ac_exeext
24526 if { (ac_try="$ac_link"
24527 case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532 (eval "$ac_link") 2>conftest.er1
24534 grep -v '^ *+' conftest.er1 >conftest.err
24536 cat conftest.err >&5
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } && {
24539 test -z "$ac_c_werror_flag" ||
24540 test ! -s conftest.err
24541 } && test -s conftest$ac_exeext &&
24542 $as_test_x conftest$ac_exeext; then
24543 ac_cv_lib_pthread_pthread_create=yes
24545 echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.$ac_ext >&5
24548 ac_cv_lib_pthread_pthread_create=no
24551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24552 conftest$ac_exeext conftest.$ac_ext
24553 LIBS=$ac_check_lib_save_LIBS
24555 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24556 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24557 if test $ac_cv_lib_pthread_pthread_create = yes; then
24565 if test ".$mcsc" = .yes; then
24567 elif test ".$pthread" = .yes; then
24570 ac_header=windows.h
24571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24573 windows_context=yes
24575 { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24576 echo "$as_me: error: no appropriate backend found" >&2;}
24577 { (exit 1); exit 1; }; }
24582 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24583 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24586 # Check whether --with-pthread was given.
24587 if test "${with_pthread+set}" = set; then
24588 withval=$with_pthread; with_context=pthread
24593 # Check whether --with-context was given.
24594 if test "${with_context+set}" = set; then
24595 withval=$with_context;
24601 if test "x$with_context$mcsc" = "xucontextno" ; then
24602 { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24603 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24604 { (exit 77); exit 77; }; }
24607 case $with_context in
24611 auto) with_context=ucontext;;
24612 *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24613 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24614 { (exit 1); exit 1; }; } ;;
24617 if test "x$with_context" = "xucontext" ; then
24618 if test ".$mcsc" = .yes; then
24619 { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24620 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24622 cat >>confdefs.h <<\_ACEOF
24623 #define USE_UCONTEXT 1
24627 if test ".$windows_context" = .yes ; then
24628 { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24629 echo "${ECHO_T}use windows context portability layer." >&6; }
24630 with_context=windows
24632 { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24633 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24634 with_context=pthread
24639 if test "x$with_context" = "xpthread"; then
24641 for ac_header in pthread.h
24643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24648 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 ac_res=`eval echo '${'$as_ac_Header'}'`
24651 { echo "$as_me:$LINENO: result: $ac_res" >&5
24652 echo "${ECHO_T}$ac_res" >&6; }
24654 # Is the header compilable?
24655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24657 cat >conftest.$ac_ext <<_ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24663 $ac_includes_default
24664 #include <$ac_header>
24666 rm -f conftest.$ac_objext
24667 if { (ac_try="$ac_compile"
24668 case "(($ac_try" in
24669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670 *) ac_try_echo=$ac_try;;
24672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24673 (eval "$ac_compile") 2>conftest.er1
24675 grep -v '^ *+' conftest.er1 >conftest.err
24677 cat conftest.err >&5
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } && {
24680 test -z "$ac_c_werror_flag" ||
24681 test ! -s conftest.err
24682 } && test -s conftest.$ac_objext; then
24683 ac_header_compiler=yes
24685 echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24688 ac_header_compiler=no
24691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24693 echo "${ECHO_T}$ac_header_compiler" >&6; }
24695 # Is the header present?
24696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24698 cat >conftest.$ac_ext <<_ACEOF
24701 cat confdefs.h >>conftest.$ac_ext
24702 cat >>conftest.$ac_ext <<_ACEOF
24703 /* end confdefs.h. */
24704 #include <$ac_header>
24706 if { (ac_try="$ac_cpp conftest.$ac_ext"
24707 case "(($ac_try" in
24708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24709 *) ac_try_echo=$ac_try;;
24711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24714 grep -v '^ *+' conftest.er1 >conftest.err
24716 cat conftest.err >&5
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); } >/dev/null && {
24719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24720 test ! -s conftest.err
24722 ac_header_preproc=yes
24724 echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24727 ac_header_preproc=no
24730 rm -f conftest.err conftest.$ac_ext
24731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24732 echo "${ECHO_T}$ac_header_preproc" >&6; }
24734 # So? What about this header?
24735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24741 ac_header_preproc=yes
24744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24757 ## -------------------------------------------------- ##
24758 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24759 ## -------------------------------------------------- ##
24761 ) | sed "s/^/$as_me: WARNING: /" >&2
24764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24767 echo $ECHO_N "(cached) $ECHO_C" >&6
24769 eval "$as_ac_Header=\$ac_header_preproc"
24771 ac_res=`eval echo '${'$as_ac_Header'}'`
24772 { echo "$as_me:$LINENO: result: $ac_res" >&5
24773 echo "${ECHO_T}$ac_res" >&6; }
24776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24777 cat >>confdefs.h <<_ACEOF
24778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24786 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24787 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24788 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24789 echo $ECHO_N "(cached) $ECHO_C" >&6
24791 ac_check_lib_save_LIBS=$LIBS
24792 LIBS="-lpthread $LIBS"
24793 cat >conftest.$ac_ext <<_ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h. */
24800 /* Override any GCC internal prototype to avoid an error.
24801 Use char because int might match the return type of a GCC
24802 builtin and then its argument prototype would still apply. */
24806 char pthread_create ();
24810 return pthread_create ();
24815 rm -f conftest.$ac_objext conftest$ac_exeext
24816 if { (ac_try="$ac_link"
24817 case "(($ac_try" in
24818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24819 *) ac_try_echo=$ac_try;;
24821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24822 (eval "$ac_link") 2>conftest.er1
24824 grep -v '^ *+' conftest.er1 >conftest.err
24826 cat conftest.err >&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); } && {
24829 test -z "$ac_c_werror_flag" ||
24830 test ! -s conftest.err
24831 } && test -s conftest$ac_exeext &&
24832 $as_test_x conftest$ac_exeext; then
24833 ac_cv_lib_pthread_pthread_create=yes
24835 echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24838 ac_cv_lib_pthread_pthread_create=no
24841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24842 conftest$ac_exeext conftest.$ac_ext
24843 LIBS=$ac_check_lib_save_LIBS
24845 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24846 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24847 if test $ac_cv_lib_pthread_pthread_create = yes; then
24848 cat >>confdefs.h <<_ACEOF
24849 #define HAVE_LIBPTHREAD 1
24852 LIBS="-lpthread $LIBS"
24855 { { echo "$as_me:$LINENO: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&5
24856 echo "$as_me: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&2;}
24857 { (exit 1); exit 1; }; }
24861 cat >>confdefs.h <<\_ACEOF
24862 #define USE_PTHREADS 1
24865 { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24866 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24870 if test "x$with_context" = "xucontext" ; then
24871 { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24872 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24873 if test "${ac_cv_check_stackgrowth+set}" = set; then
24874 echo $ECHO_N "(cached) $ECHO_C" >&6
24878 if test "$cross_compiling" = yes; then
24879 ac_cv_check_stackgrowth=down
24882 cat >conftest.$ac_ext <<_ACEOF
24885 cat confdefs.h >>conftest.$ac_ext
24886 cat >>conftest.$ac_ext <<_ACEOF
24887 /* end confdefs.h. */
24890 #include <stdlib.h>
24891 static int iterate = 10;
24892 static int growsdown(int *x)
24902 int main(int argc, char *argv[])
24906 if ((f = fopen("conftestval", "w")) == NULL)
24908 fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24915 rm -f conftest$ac_exeext
24916 if { (ac_try="$ac_link"
24917 case "(($ac_try" in
24918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24919 *) ac_try_echo=$ac_try;;
24921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24922 (eval "$ac_link") 2>&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24926 { (case "(($ac_try" in
24927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931 (eval "$ac_try") 2>&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; }; then
24935 ac_cv_check_stackgrowth=`cat conftestval`
24937 echo "$as_me: program exited with status $ac_status" >&5
24938 echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24941 ( exit $ac_status )
24942 ac_cv_check_stackgrowth=down
24944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24949 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24950 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24951 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24957 cat >>confdefs.h <<_ACEOF
24958 #define PTH_STACKGROWTH $val
24962 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24963 PTH_STACK_GROWTH="down"
24965 PTH_STACK_GROWTH="up"
24973 for ac_func in makecontext
24975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24979 echo $ECHO_N "(cached) $ECHO_C" >&6
24981 cat >conftest.$ac_ext <<_ACEOF
24984 cat confdefs.h >>conftest.$ac_ext
24985 cat >>conftest.$ac_ext <<_ACEOF
24986 /* end confdefs.h. */
24987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24989 #define $ac_func innocuous_$ac_func
24991 /* System header to define __stub macros and hopefully few prototypes,
24992 which can conflict with char $ac_func (); below.
24993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24994 <limits.h> exists even on freestanding compilers. */
24997 # include <limits.h>
24999 # include <assert.h>
25004 /* Override any GCC internal prototype to avoid an error.
25005 Use char because int might match the return type of a GCC
25006 builtin and then its argument prototype would still apply. */
25011 /* The GNU C library defines this for functions which it implements
25012 to always fail with ENOSYS. Some functions are actually named
25013 something starting with __ and the normal name is an alias. */
25014 #if defined __stub_$ac_func || defined __stub___$ac_func
25021 return $ac_func ();
25026 rm -f conftest.$ac_objext conftest$ac_exeext
25027 if { (ac_try="$ac_link"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_link") 2>conftest.er1
25035 grep -v '^ *+' conftest.er1 >conftest.err
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest$ac_exeext &&
25043 $as_test_x conftest$ac_exeext; then
25044 eval "$as_ac_var=yes"
25046 echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25049 eval "$as_ac_var=no"
25052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25053 conftest$ac_exeext conftest.$ac_ext
25055 ac_res=`eval echo '${'$as_ac_var'}'`
25056 { echo "$as_me:$LINENO: result: $ac_res" >&5
25057 echo "${ECHO_T}$ac_res" >&6; }
25058 if test `eval echo '${'$as_ac_var'}'` = yes; then
25059 cat >>confdefs.h <<_ACEOF
25060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25067 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25068 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25069 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25070 echo $ECHO_N "(cached) $ECHO_C" >&6
25073 if test ".$ac_cv_func_makecontext" = .no; then
25074 ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25077 CFLAGS="$CFLAGS -DTEST_makecontext"
25079 if test "$cross_compiling" = yes; then
25081 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25084 cat >conftest.$ac_ext <<_ACEOF
25087 cat confdefs.h >>conftest.$ac_ext
25088 cat >>conftest.$ac_ext <<_ACEOF
25089 /* end confdefs.h. */
25092 #include <stdlib.h>
25093 #include <string.h>
25094 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25095 #include <sys/types.h>
25096 #include <signal.h>
25097 #include <unistd.h>
25099 #if defined(TEST_makecontext)
25100 #include <ucontext.h>
25109 static volatile char *handler_addr = (char *)0xDEAD;
25110 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25111 static volatile int handler_done = 0;
25112 void handler(int sig)
25114 char garbage[1024];
25117 for (i = 0; i < 1024; i++)
25119 handler_addr = (char *)&dummy;
25124 #if defined(TEST_makecontext)
25125 static ucontext_t uc_handler;
25126 static ucontext_t uc_main;
25129 char garbage[1024];
25132 for (i = 0; i < 1024; i++)
25134 handler_addr = (char *)&dummy;
25135 swapcontext(&uc_handler, &uc_main);
25139 int main(int argc, char *argv[])
25148 skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25151 for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25153 skaddr = skbuf+sizeof(union alltypes);
25154 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25156 struct sigaction sa;
25157 #if defined(TEST_sigstack)
25158 struct sigstack ss;
25159 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25162 struct sigaltstack ss;
25164 #if defined(TEST_sigstack)
25165 ss.ss_sp = (void *)(skaddr + sksize);
25167 if (sigstack(&ss, NULL) < 0)
25169 #elif defined(TEST_sigaltstack)
25170 ss.ss_sp = (void *)(skaddr + sksize);
25171 ss.ss_size = sksize;
25173 if (sigaltstack(&ss, NULL) < 0)
25176 memset((void *)&sa, 0, sizeof(struct sigaction));
25177 sa.sa_handler = handler;
25178 sa.sa_flags = SA_ONSTACK;
25179 sigemptyset(&sa.sa_mask);
25180 sigaction(SIGUSR1, &sa, NULL);
25181 kill(getpid(), SIGUSR1);
25182 while (!handler_done)
25186 #if defined(TEST_makecontext)
25188 if (getcontext(&uc_handler) != 0)
25190 uc_handler.uc_link = NULL;
25191 uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize);
25192 uc_handler.uc_stack.ss_size = sksize;
25193 uc_handler.uc_stack.ss_flags = 0;
25194 makecontext(&uc_handler, handler, 1);
25195 swapcontext(&uc_main, &uc_handler);
25198 if (handler_addr == (char *)0xDEAD)
25200 if (handler_addr < skaddr+sksize) {
25201 /* stack was placed into lower area */
25202 if (*(skaddr+sksize) != 'A')
25203 sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25204 sizeof(union alltypes), sizeof(union alltypes));
25206 strcpy(result, "(skaddr)+(sksize),(sksize)");
25209 /* stack was placed into higher area */
25210 if (*(skaddr+sksize*2) != 'A')
25211 sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25213 strcpy(result, "(skaddr),(sksize)");
25215 if ((f = fopen("conftestval", "w")) == NULL)
25217 fprintf(f, "%s\n", result);
25223 rm -f conftest$ac_exeext
25224 if { (ac_try="$ac_link"
25225 case "(($ac_try" in
25226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227 *) ac_try_echo=$ac_try;;
25229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25230 (eval "$ac_link") 2>&5
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25234 { (case "(($ac_try" in
25235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236 *) ac_try_echo=$ac_try;;
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239 (eval "$ac_try") 2>&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; }; then
25244 ac_cv_stacksetup_makecontext=`cat conftestval`
25245 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25248 echo "$as_me: program exited with status $ac_status" >&5
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25252 ( exit $ac_status )
25254 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25265 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25266 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25267 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25268 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25269 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25270 { echo "$as_me:$LINENO: result: $type" >&5
25271 echo "${ECHO_T}$type" >&6; }
25272 if test ".$verbose" = .yes; then
25273 { echo "$as_me:$LINENO: result: $pth_skaddr_makecontext" >&5
25274 echo "${ECHO_T} $pth_skaddr_makecontext" >&6; }
25277 if test ".$verbose" = .yes; then
25278 { echo "$as_me:$LINENO: result: $pth_sksize_makecontext" >&5
25279 echo "${ECHO_T} $pth_sksize_makecontext" >&6; }
25285 #########################################
25286 ## Check for libraries extra-dependencies
25290 { echo "$as_me:$LINENO: result: " >&5
25291 echo "${ECHO_T}" >&6; }
25292 { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25293 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25296 { echo "$as_me:$LINENO: checking for csdp" >&5
25297 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25300 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25301 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25302 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25303 echo $ECHO_N "(cached) $ECHO_C" >&6
25305 ac_check_lib_save_LIBS=$LIBS
25306 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25307 cat >conftest.$ac_ext <<_ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h. */
25314 /* Override any GCC internal prototype to avoid an error.
25315 Use char because int might match the return type of a GCC
25316 builtin and then its argument prototype would still apply. */
25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (ac_try="$ac_link"
25331 case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336 (eval "$ac_link") 2>conftest.er1
25338 grep -v '^ *+' conftest.er1 >conftest.err
25340 cat conftest.err >&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } && {
25343 test -z "$ac_c_werror_flag" ||
25344 test ! -s conftest.err
25345 } && test -s conftest$ac_exeext &&
25346 $as_test_x conftest$ac_exeext; then
25347 ac_cv_lib_sdp_sdp=yes
25349 echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25352 ac_cv_lib_sdp_sdp=no
25355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25356 conftest$ac_exeext conftest.$ac_ext
25357 LIBS=$ac_check_lib_save_LIBS
25359 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25360 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25361 if test $ac_cv_lib_sdp_sdp = yes; then
25367 if test "x$csdp" = xyes; then
25368 SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25369 { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25370 echo "${ECHO_T}Found working sdp library." >&6; }
25372 cat >>confdefs.h <<\_ACEOF
25377 { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25378 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25382 if test x$csdp != xno; then
25394 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25395 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25396 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25397 echo $ECHO_N "(cached) $ECHO_C" >&6
25399 ac_check_lib_save_LIBS=$LIBS
25401 cat >conftest.$ac_ext <<_ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h. */
25408 /* Override any GCC internal prototype to avoid an error.
25409 Use char because int might match the return type of a GCC
25410 builtin and then its argument prototype would still apply. */
25414 char gethostbyname ();
25418 return gethostbyname ();
25423 rm -f conftest.$ac_objext conftest$ac_exeext
25424 if { (ac_try="$ac_link"
25425 case "(($ac_try" in
25426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25427 *) ac_try_echo=$ac_try;;
25429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25430 (eval "$ac_link") 2>conftest.er1
25432 grep -v '^ *+' conftest.er1 >conftest.err
25434 cat conftest.err >&5
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest$ac_exeext &&
25440 $as_test_x conftest$ac_exeext; then
25441 ac_cv_lib_nsl_gethostbyname=yes
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25446 ac_cv_lib_nsl_gethostbyname=no
25449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25450 conftest$ac_exeext conftest.$ac_ext
25451 LIBS=$ac_check_lib_save_LIBS
25453 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25454 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25455 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25456 GRAS_DEP="$GRAS_DEP -lnsl"
25459 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25460 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25461 if test "${ac_cv_lib_socket_connect+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
25464 ac_check_lib_save_LIBS=$LIBS
25465 LIBS="-lsocket $LIBS"
25466 cat >conftest.$ac_ext <<_ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h. */
25473 /* Override any GCC internal prototype to avoid an error.
25474 Use char because int might match the return type of a GCC
25475 builtin and then its argument prototype would still apply. */
25488 rm -f conftest.$ac_objext conftest$ac_exeext
25489 if { (ac_try="$ac_link"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495 (eval "$ac_link") 2>conftest.er1
25497 grep -v '^ *+' conftest.er1 >conftest.err
25499 cat conftest.err >&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } && {
25502 test -z "$ac_c_werror_flag" ||
25503 test ! -s conftest.err
25504 } && test -s conftest$ac_exeext &&
25505 $as_test_x conftest$ac_exeext; then
25506 ac_cv_lib_socket_connect=yes
25508 echo "$as_me: failed program was:" >&5
25509 sed 's/^/| /' conftest.$ac_ext >&5
25511 ac_cv_lib_socket_connect=no
25514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25515 conftest$ac_exeext conftest.$ac_ext
25516 LIBS=$ac_check_lib_save_LIBS
25518 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25519 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25520 if test $ac_cv_lib_socket_connect = yes; then
25521 GRAS_DEP="$GRAS_DEP -lsocket"
25525 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25526 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25528 *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32" ;;
25531 if test "x$GRAS_DEP" = x; then
25532 { echo "$as_me:$LINENO: result: none" >&5
25533 echo "${ECHO_T}none" >&6; }
25535 { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25536 echo "${ECHO_T}$GRAS_DEP" >&6; }
25540 ##############################################
25541 ## Enhance maintainer mode and SUBST variables
25542 ## (must be placed after any compilation tests since our overprotective flags
25543 ## let some tests fail)
25545 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25546 # Next line is modified by sed when building gramine source tree
25548 if test x$gramine_mode = xyes
25550 USE_MAINTAINER_MODE=no
25554 if test x$gramine_mode != xno; then
25556 GRAMINE_MODE_FALSE='#'
25558 GRAMINE_MODE_TRUE='#'
25559 GRAMINE_MODE_FALSE=
25564 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25565 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25566 # Check whether --enable-maintainer-mode was given.
25567 if test "${enable_maintainer_mode+set}" = set; then
25568 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25570 USE_MAINTAINER_MODE=no
25573 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25574 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25577 if test $USE_MAINTAINER_MODE = yes; then
25578 MAINTAINER_MODE_TRUE=
25579 MAINTAINER_MODE_FALSE='#'
25581 MAINTAINER_MODE_TRUE='#'
25582 MAINTAINER_MODE_FALSE=
25585 MAINT=$MAINTAINER_MODE_TRUE
25588 if test x$USE_MAINTAINER_MODE = xyes
25590 # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25591 enable_compile_warnings=yes
25594 # Check whether --enable-compile-warnings was given.
25595 if test "${enable_compile_warnings+set}" = set; then
25596 enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25598 enable_compile_warnings=no
25602 # Check whether --enable-compile-optimizations was given.
25603 if test "${enable_compile_optimizations+set}" = set; then
25604 enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25606 enable_compile_optimizations=auto
25610 if test "x$cflags_set" != "xyes" ; then
25611 # if user didn't specify CFLAGS explicitely
25613 # AC PROG CC tests whether -g is accepted.
25614 # Cool, but it also tries to set -O2. I don't want it with gcc
25615 saveCFLAGS="$CFLAGS"
25617 case " $saveCFLAGS " in
25618 *-g*) CFLAGS="-g" ;;
25620 case " $saveCFLAGS " in
25621 *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25624 # damn AC PROG CC, why did you set -O??
25628 if test "x$enable_compile_warnings" = "xyes" ; then
25629 { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25630 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25632 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25633 case " $CFLAGS " in
25635 *) warnCFLAGS="-Wall -Wunused" ;;
25638 ## -W is not all that useful. And it cannot be controlled
25639 ## with individual -Wno-xxx flags, unlike -Wall
25641 ##Â -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25642 ## -Wshadow chokes on try{ try{} } constructs
25643 if test "x$enable_compile_warnings" = "xyes"; then
25644 warnCFLAGS=`echo $warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
25645 -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25646 -Wno-unused-function \
25649 # -Wno-unused-variable -Wno-unused-label
25652 { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25653 echo "${ECHO_T}$warnCFLAGS" >&6; }
25654 # placed before since gcc remembers the last one on conflict
25655 CFLAGS="$warnCFLAGS $CFLAGS"
25658 if test "x$enable_compile_optimizations" = "xyes" ||
25659 test "x$enable_compile_optimizations" = "xauto" ; then
25660 { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25661 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25663 if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25664 case " $CFLAGS " in
25666 *) optCFLAGS="$optCFLAGS -O3" ;;
25668 optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25670 GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25671 GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25672 if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25673 # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25674 # isn't propagated enough to desserve an extra check
25676 # Note that the flag didn't exist before gcc 3.0
25677 optCFLAGS="$optCFLAGS -fno-loop-optimize"
25680 { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25681 echo "${ECHO_T}$optCFLAGS" >&6; }
25682 # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25683 if test "x$cflags_set" != "xyes" ; then
25684 CFLAGS="$optCFLAGS $CFLAGS"
25688 if test x$lt_cv_prog_gnu_ld = xyes ; then
25689 LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25705 #####################
25706 ## Check for programs
25710 { echo "$as_me:$LINENO: result: " >&5
25711 echo "${ECHO_T}" >&6; }
25712 { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25713 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25715 # Extract the first word of "bash", so it can be a program name with args.
25716 set dummy bash; ac_word=$2
25717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25719 if test "${ac_cv_prog_BASH+set}" = set; then
25720 echo $ECHO_N "(cached) $ECHO_C" >&6
25722 if test -n "$BASH"; then
25723 ac_cv_prog_BASH="$BASH" # Let the user override the test.
25725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25726 for as_dir in $PATH
25729 test -z "$as_dir" && as_dir=.
25730 for ac_exec_ext in '' $ac_executable_extensions; do
25731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25732 ac_cv_prog_BASH="`which bash`"
25733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25740 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25743 BASH=$ac_cv_prog_BASH
25744 if test -n "$BASH"; then
25745 { echo "$as_me:$LINENO: result: $BASH" >&5
25746 echo "${ECHO_T}$BASH" >&6; }
25748 { echo "$as_me:$LINENO: result: no" >&5
25749 echo "${ECHO_T}no" >&6; }
25753 WARNING="This file is generated, do not edit"
25757 # Can we rebuild the parsers?
25758 # We really want flex and refuse other lex. So, the parser is portable and
25759 # does not induce extra lib dependency
25760 for ac_prog in flex lex
25762 # Extract the first word of "$ac_prog", so it can be a program name with args.
25763 set dummy $ac_prog; ac_word=$2
25764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25766 if test "${ac_cv_prog_LEX+set}" = set; then
25767 echo $ECHO_N "(cached) $ECHO_C" >&6
25769 if test -n "$LEX"; then
25770 ac_cv_prog_LEX="$LEX" # Let the user override the test.
25772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25773 for as_dir in $PATH
25776 test -z "$as_dir" && as_dir=.
25777 for ac_exec_ext in '' $ac_executable_extensions; do
25778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25779 ac_cv_prog_LEX="$ac_prog"
25780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25789 LEX=$ac_cv_prog_LEX
25790 if test -n "$LEX"; then
25791 { echo "$as_me:$LINENO: result: $LEX" >&5
25792 echo "${ECHO_T}$LEX" >&6; }
25794 { echo "$as_me:$LINENO: result: no" >&5
25795 echo "${ECHO_T}no" >&6; }
25799 test -n "$LEX" && break
25801 test -n "$LEX" || LEX=":"
25803 if test "x$LEX" != "x:"; then
25804 cat >conftest.l <<_ACEOF
25810 e { yyless (input () != 0); }
25811 f { unput (yytext[0]); }
25812 . { BEGIN INITIAL; }
25814 #ifdef YYTEXT_POINTER
25815 extern char *yytext;
25820 return ! yylex () + ! yywrap ();
25823 { (ac_try="$LEX conftest.l"
25824 case "(($ac_try" in
25825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25826 *) ac_try_echo=$ac_try;;
25828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25829 (eval "$LEX conftest.l") 2>&5
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); }
25833 { echo "$as_me:$LINENO: checking lex output file root" >&5
25834 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25835 if test "${ac_cv_prog_lex_root+set}" = set; then
25836 echo $ECHO_N "(cached) $ECHO_C" >&6
25839 if test -f lex.yy.c; then
25840 ac_cv_prog_lex_root=lex.yy
25841 elif test -f lexyy.c; then
25842 ac_cv_prog_lex_root=lexyy
25844 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25845 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25846 { (exit 1); exit 1; }; }
25849 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25850 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25851 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25853 if test -z "${LEXLIB+set}"; then
25854 { echo "$as_me:$LINENO: checking lex library" >&5
25855 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25856 if test "${ac_cv_lib_lex+set}" = set; then
25857 echo $ECHO_N "(cached) $ECHO_C" >&6
25861 ac_cv_lib_lex='none needed'
25862 for ac_lib in '' -lfl -ll; do
25863 LIBS="$ac_lib $ac_save_LIBS"
25864 cat >conftest.$ac_ext <<_ACEOF
25865 `cat $LEX_OUTPUT_ROOT.c`
25867 rm -f conftest.$ac_objext conftest$ac_exeext
25868 if { (ac_try="$ac_link"
25869 case "(($ac_try" in
25870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25871 *) ac_try_echo=$ac_try;;
25873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25874 (eval "$ac_link") 2>conftest.er1
25876 grep -v '^ *+' conftest.er1 >conftest.err
25878 cat conftest.err >&5
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); } && {
25881 test -z "$ac_c_werror_flag" ||
25882 test ! -s conftest.err
25883 } && test -s conftest$ac_exeext &&
25884 $as_test_x conftest$ac_exeext; then
25885 ac_cv_lib_lex=$ac_lib
25887 echo "$as_me: failed program was:" >&5
25888 sed 's/^/| /' conftest.$ac_ext >&5
25893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25894 conftest$ac_exeext conftest.$ac_ext
25895 test "$ac_cv_lib_lex" != 'none needed' && break
25900 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
25901 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
25902 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
25906 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25907 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
25908 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25909 echo $ECHO_N "(cached) $ECHO_C" >&6
25911 # POSIX says lex can declare yytext either as a pointer or an array; the
25912 # default is implementation-dependent. Figure out which it is, since
25913 # not all implementations provide the %pointer and %array declarations.
25914 ac_cv_prog_lex_yytext_pointer=no
25916 LIBS="$LEXLIB $ac_save_LIBS"
25917 cat >conftest.$ac_ext <<_ACEOF
25918 #define YYTEXT_POINTER 1
25919 `cat $LEX_OUTPUT_ROOT.c`
25921 rm -f conftest.$ac_objext conftest$ac_exeext
25922 if { (ac_try="$ac_link"
25923 case "(($ac_try" in
25924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25925 *) ac_try_echo=$ac_try;;
25927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25928 (eval "$ac_link") 2>conftest.er1
25930 grep -v '^ *+' conftest.er1 >conftest.err
25932 cat conftest.err >&5
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } && {
25935 test -z "$ac_c_werror_flag" ||
25936 test ! -s conftest.err
25937 } && test -s conftest$ac_exeext &&
25938 $as_test_x conftest$ac_exeext; then
25939 ac_cv_prog_lex_yytext_pointer=yes
25941 echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25948 conftest$ac_exeext conftest.$ac_ext
25952 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25953 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
25954 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25956 cat >>confdefs.h <<\_ACEOF
25957 #define YYTEXT_POINTER 1
25961 rm -f conftest.l $LEX_OUTPUT_ROOT.c
25965 if test "$LEX" != flex; then
25966 { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25967 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25968 LEX=${am_missing_run}flex
25972 if test "x2.5.30" != "x" ; then
25973 FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25975 FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25976 FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25977 FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25979 WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25980 WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25981 WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25983 if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25984 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED" ||
25985 test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25987 { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25988 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25989 LEX=${am_missing_run}flex
25993 { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25994 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26000 # Can we rebuild the xml-lexers from the XML specification?
26001 # if not, simply touch the flex source files (which are distributed in
26002 # tarballs even if generated by flexml) and hope for the best.
26003 # Extract the first word of "flexml", so it can be a program name with args.
26004 set dummy flexml; ac_word=$2
26005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26007 if test "${ac_cv_prog_FLEXML+set}" = set; then
26008 echo $ECHO_N "(cached) $ECHO_C" >&6
26010 if test -n "$FLEXML"; then
26011 ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26014 for as_dir in $PATH
26017 test -z "$as_dir" && as_dir=.
26018 for ac_exec_ext in '' $ac_executable_extensions; do
26019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26020 ac_cv_prog_FLEXML="`which flexml`"
26021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26028 test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26031 FLEXML=$ac_cv_prog_FLEXML
26032 if test -n "$FLEXML"; then
26033 { echo "$as_me:$LINENO: result: $FLEXML" >&5
26034 echo "${ECHO_T}$FLEXML" >&6; }
26036 { echo "$as_me:$LINENO: result: no" >&5
26037 echo "${ECHO_T}no" >&6; }
26043 if test x$FLEXML != xNOTFOUND; then
26045 HAVE_FLEXML_FALSE='#'
26047 HAVE_FLEXML_TRUE='#'
26052 if test x$USE_MAINTAINER_MODE = xyes
26054 # Check for doxygen when in maintainer mode since dist* targets fail
26056 # Extract the first word of "doxygen", so it can be a program name with args.
26057 set dummy doxygen; ac_word=$2
26058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26060 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26061 echo $ECHO_N "(cached) $ECHO_C" >&6
26065 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26069 for as_dir in $PATH
26072 test -z "$as_dir" && as_dir=.
26073 for ac_exec_ext in '' $ac_executable_extensions; do
26074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26075 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26083 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26087 DOXYGEN=$ac_cv_path_DOXYGEN
26088 if test -n "$DOXYGEN"; then
26089 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26090 echo "${ECHO_T}$DOXYGEN" >&6; }
26092 { echo "$as_me:$LINENO: result: no" >&5
26093 echo "${ECHO_T}no" >&6; }
26097 if test x$DOXYGEN = x ; then
26098 { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26099 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26100 { (exit 1); exit 1; }; }
26104 # Can we extract really usable backtraces? (also need the popen function)
26105 # Extract the first word of "addr2line", so it can be a program name with args.
26106 set dummy addr2line; ac_word=$2
26107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26109 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26110 echo $ECHO_N "(cached) $ECHO_C" >&6
26114 ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26118 for as_dir in $PATH
26121 test -z "$as_dir" && as_dir=.
26122 for ac_exec_ext in '' $ac_executable_extensions; do
26123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26124 ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26135 ADDR2LINE=$ac_cv_path_ADDR2LINE
26136 if test -n "$ADDR2LINE"; then
26137 { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26138 echo "${ECHO_T}$ADDR2LINE" >&6; }
26140 { echo "$as_me:$LINENO: result: no" >&5
26141 echo "${ECHO_T}no" >&6; }
26145 if test x$ADDR2LINE != x ; then
26147 cat >>confdefs.h <<_ACEOF
26148 #define ADDR2LINE "$ADDR2LINE"
26154 # Can we make status line about the compilation result?
26155 # Extract the first word of "md5sum", so it can be a program name with args.
26156 set dummy md5sum; ac_word=$2
26157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26159 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26160 echo $ECHO_N "(cached) $ECHO_C" >&6
26162 if test -n "$MD5SUM"; then
26163 ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26166 for as_dir in $PATH
26169 test -z "$as_dir" && as_dir=.
26170 for ac_exec_ext in '' $ac_executable_extensions; do
26171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26172 ac_cv_prog_MD5SUM="`which md5sum`"
26173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26182 MD5SUM=$ac_cv_prog_MD5SUM
26183 if test -n "$MD5SUM"; then
26184 { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26185 echo "${ECHO_T}$MD5SUM" >&6; }
26187 { echo "$as_me:$LINENO: result: no" >&5
26188 echo "${ECHO_T}no" >&6; }
26192 if test x$MD5SUM != xno ; then
26193 build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26194 xargs cat| $MD5SUM | sed 's/ .*$//'`
26196 build_version="no_md5sum_binary"
26198 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26201 ###################
26202 ## Makes the output
26207 # examples/gras/chord/Makefile examples/gras/chord/test_sg examples/gras/chord/test_rl
26208 # src/amok/Makefile
26211 { echo "$as_me:$LINENO: result: " >&5
26212 echo "${ECHO_T}" >&6; }
26213 { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26214 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26217 # Core of the libraries
26219 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26222 # Tools being embeeded in gramine (stub generator)
26223 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
26226 # GRAMINE_CUT_BEGIN
26228 # Tools NOT being embeeded in gramine
26229 ac_config_files="$ac_config_files tools/graspe-slave"
26234 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26238 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26243 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"
26246 # examples/gras/chord/test_sg examples/gras/chord/test_rl \
26247 # examples/gras/pastry/test_sg
26251 # examples/gras/saturate/Makefile examples/gras/saturate/test_sg
26252 # examples/gras/alnem/Makefile examples/gras/alnem/test_sg
26257 cat >confcache <<\_ACEOF
26258 # This file is a shell script that caches the results of configure
26259 # tests run on this system so they can be shared between configure
26260 # scripts and configure runs, see configure's option --config-cache.
26261 # It is not useful on other systems. If it contains results you don't
26262 # want to keep, you may remove or edit it.
26264 # config.status only pays attention to the cache file if you give it
26265 # the --recheck option to rerun configure.
26267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26269 # following values.
26273 # The following way of writing the cache mishandles newlines in values,
26274 # but we know of no workaround that is simple, portable, and efficient.
26275 # So, we kill variables containing newlines.
26276 # Ultrix sh set writes to stderr and can't be redirected directly,
26277 # and sets the high bit in the cache file unless we assign to the vars.
26279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26280 eval ac_val=\$$ac_var
26284 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26285 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26288 _ | IFS | as_nl) ;; #(
26289 *) $as_unset $ac_var ;;
26295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26296 *${as_nl}ac_space=\ *)
26297 # `set' does not quote correctly, so add quotes (double-quote
26298 # substitution turns \\\\ into \\, and sed turns \\ into \).
26301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26304 # `set' quotes correctly as required by POSIX, so do not add quotes.
26305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26319 if test -w "$cache_file"; then
26320 test "x$cache_file" != "x/dev/null" &&
26321 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26322 echo "$as_me: updating cache $cache_file" >&6;}
26323 cat confcache >$cache_file
26325 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26332 # Let make expand exec_prefix.
26333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26335 DEFS=-DHAVE_CONFIG_H
26339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26340 # 1. Remove the extension, and $U if already installed.
26341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26342 ac_i=`echo "$ac_i" | sed "$ac_script"`
26343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26344 # will be set to the directory where LIBOBJS objects are built.
26345 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26346 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26348 LIBOBJS=$ac_libobjs
26350 LTLIBOBJS=$ac_ltlibobjs
26353 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26354 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26355 Usually this means the macro was only invoked conditionally." >&5
26356 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26357 Usually this means the macro was only invoked conditionally." >&2;}
26358 { (exit 1); exit 1; }; }
26360 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26361 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26362 Usually this means the macro was only invoked conditionally." >&5
26363 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26364 Usually this means the macro was only invoked conditionally." >&2;}
26365 { (exit 1); exit 1; }; }
26367 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26368 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26369 Usually this means the macro was only invoked conditionally." >&5
26370 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26371 Usually this means the macro was only invoked conditionally." >&2;}
26372 { (exit 1); exit 1; }; }
26374 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26375 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26376 Usually this means the macro was only invoked conditionally." >&5
26377 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26378 Usually this means the macro was only invoked conditionally." >&2;}
26379 { (exit 1); exit 1; }; }
26381 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26382 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26383 Usually this means the macro was only invoked conditionally." >&5
26384 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26385 Usually this means the macro was only invoked conditionally." >&2;}
26386 { (exit 1); exit 1; }; }
26388 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26389 { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26390 Usually this means the macro was only invoked conditionally." >&5
26391 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26392 Usually this means the macro was only invoked conditionally." >&2;}
26393 { (exit 1); exit 1; }; }
26395 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26396 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26397 Usually this means the macro was only invoked conditionally." >&5
26398 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26399 Usually this means the macro was only invoked conditionally." >&2;}
26400 { (exit 1); exit 1; }; }
26402 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26403 { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26404 Usually this means the macro was only invoked conditionally." >&5
26405 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26406 Usually this means the macro was only invoked conditionally." >&2;}
26407 { (exit 1); exit 1; }; }
26410 : ${CONFIG_STATUS=./config.status}
26411 ac_clean_files_save=$ac_clean_files
26412 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26413 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26414 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26415 cat >$CONFIG_STATUS <<_ACEOF
26417 # Generated by $as_me.
26418 # Run this file to recreate the current configuration.
26419 # Compiler output produced by configure, useful for debugging
26420 # configure, is in config.log if it exists.
26423 ac_cs_recheck=false
26425 SHELL=\${CONFIG_SHELL-$SHELL}
26428 cat >>$CONFIG_STATUS <<\_ACEOF
26429 ## --------------------- ##
26430 ## M4sh Initialization. ##
26431 ## --------------------- ##
26433 # Be more Bourne compatible
26434 DUALCASE=1; export DUALCASE # for MKS sh
26435 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26438 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26439 # is contrary to our usage. Disable this feature.
26440 alias -g '${1+"$@"}'='"$@"'
26441 setopt NO_GLOB_SUBST
26443 case `(set -o) 2>/dev/null` in
26444 *posix*) set -o posix ;;
26453 # Avoid depending upon Character Ranges.
26454 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26455 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26456 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26457 as_cr_digits='0123456789'
26458 as_cr_alnum=$as_cr_Letters$as_cr_digits
26460 # The user is always right.
26461 if test "${PATH_SEPARATOR+set}" != set; then
26462 echo "#! /bin/sh" >conf$$.sh
26463 echo "exit 0" >>conf$$.sh
26465 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26473 # Support unset when possible.
26474 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26482 # We need space, tab and new line, in precisely that order. Quoting is
26483 # there to prevent editors from complaining about space-tab.
26484 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26485 # splitting by setting IFS to empty value.)
26490 # Find who we are. Look in the path if we contain no directory separator.
26492 *[\\/]* ) as_myself=$0 ;;
26493 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26494 for as_dir in $PATH
26497 test -z "$as_dir" && as_dir=.
26498 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26504 # We did not find ourselves, most probably we were run as `sh COMMAND'
26505 # in which case we are not to be found in the path.
26506 if test "x$as_myself" = x; then
26509 if test ! -f "$as_myself"; then
26510 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26511 { (exit 1); exit 1; }
26514 # Work around bugs in pre-3.0 UWIN ksh.
26515 for as_var in ENV MAIL MAILPATH
26516 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26524 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26525 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26526 LC_TELEPHONE LC_TIME
26528 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26529 eval $as_var=C; export $as_var
26531 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26535 # Required to use basename.
26536 if expr a : '\(a\)' >/dev/null 2>&1 &&
26537 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26543 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26544 as_basename=basename
26550 # Name of the executable.
26551 as_me=`$as_basename -- "$0" ||
26552 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26553 X"$0" : 'X\(//\)$' \| \
26554 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26556 sed '/^.*\/\([^/][^/]*\)\/*$/{
26575 as_lineno_1=$LINENO
26576 as_lineno_2=$LINENO
26577 test "x$as_lineno_1" != "x$as_lineno_2" &&
26578 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26580 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26581 # uniformly replaced by the line number. The first 'sed' inserts a
26582 # line-number line after each line using $LINENO; the second 'sed'
26583 # does the real work. The second script uses 'N' to pair each
26584 # line-number line with the line containing $LINENO, and appends
26585 # trailing '-' during substitution so that $LINENO is not a special
26586 # case at line end.
26587 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26588 # scripts with optimization help from Paolo Bonzini. Blame Lee
26589 # E. McMahon (1931-1989) for sed's syntax. :-)
26601 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26604 ' >$as_me.lineno &&
26605 chmod +x "$as_me.lineno" ||
26606 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26607 { (exit 1); exit 1; }; }
26609 # Don't try to exec as it changes $[0], causing all sort of problems
26610 # (the dirname of $[0] is not the place where we might find the
26611 # original and so on. Autoconf is especially sensitive to this).
26612 . "./$as_me.lineno"
26613 # Exit status is that of the last command.
26618 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26624 ECHO_C= ECHO_N= ECHO_T=
26625 case `echo -n x` in
26627 case `echo 'x\c'` in
26628 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26635 if expr a : '\(a\)' >/dev/null 2>&1 &&
26636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26642 rm -f conf$$ conf$$.exe conf$$.file
26643 if test -d conf$$.dir; then
26644 rm -f conf$$.dir/conf$$.file
26650 if ln -s conf$$.file conf$$ 2>/dev/null; then
26652 # ... but there are two gotchas:
26653 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26654 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26655 # In both cases, we have to default to `cp -p'.
26656 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26658 elif ln conf$$.file conf$$ 2>/dev/null; then
26663 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26664 rmdir conf$$.dir 2>/dev/null
26666 if mkdir -p . 2>/dev/null; then
26669 test -d ./-p && rmdir ./-p
26673 if test -x / >/dev/null 2>&1; then
26674 as_test_x='test -x'
26676 if ls -dL / >/dev/null 2>&1; then
26683 if test -d "$1"; then
26689 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26690 ???[sx]*):;;*)false;;esac;fi
26694 as_executable_p=$as_test_x
26696 # Sed expression to map a string onto a valid CPP name.
26697 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26699 # Sed expression to map a string onto a valid variable name.
26700 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26705 # Save the log message, to keep $[0] and so on meaningful, and to
26706 # report actual input values of CONFIG_FILES etc. instead of their
26707 # values after options handling.
26709 This file was extended by simgrid $as_me 3.1.1-cvs, which was
26710 generated by GNU Autoconf 2.61. Invocation command line was
26712 CONFIG_FILES = $CONFIG_FILES
26713 CONFIG_HEADERS = $CONFIG_HEADERS
26714 CONFIG_LINKS = $CONFIG_LINKS
26715 CONFIG_COMMANDS = $CONFIG_COMMANDS
26718 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26723 cat >>$CONFIG_STATUS <<_ACEOF
26724 # Files that config.status was made for.
26725 config_files="$ac_config_files"
26726 config_headers="$ac_config_headers"
26727 config_commands="$ac_config_commands"
26731 cat >>$CONFIG_STATUS <<\_ACEOF
26733 \`$as_me' instantiates files from templates according to the
26734 current configuration.
26736 Usage: $0 [OPTIONS] [FILE]...
26738 -h, --help print this help, then exit
26739 -V, --version print version number and configuration settings, then exit
26740 -q, --quiet do not print progress messages
26741 -d, --debug don't remove temporary files
26742 --recheck update $as_me by reconfiguring in the same conditions
26743 --file=FILE[:TEMPLATE]
26744 instantiate the configuration file FILE
26745 --header=FILE[:TEMPLATE]
26746 instantiate the configuration header FILE
26748 Configuration files:
26751 Configuration headers:
26754 Configuration commands:
26757 Report bugs to <bug-autoconf@gnu.org>."
26760 cat >>$CONFIG_STATUS <<_ACEOF
26762 simgrid config.status 3.1.1-cvs
26763 configured by $0, generated by GNU Autoconf 2.61,
26764 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26766 Copyright (C) 2006 Free Software Foundation, Inc.
26767 This config.status script is free software; the Free Software Foundation
26768 gives unlimited permission to copy, distribute and modify it."
26775 cat >>$CONFIG_STATUS <<\_ACEOF
26776 # If no file are specified by the user, then we need to provide default
26777 # value. By we need to know if files were specified by the user.
26783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26784 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26795 # Handling of the options.
26796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26798 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26799 echo "$ac_cs_version"; exit ;;
26800 --debug | --debu | --deb | --de | --d | -d )
26802 --file | --fil | --fi | --f )
26804 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26805 ac_need_defaults=false;;
26806 --header | --heade | --head | --hea )
26808 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26809 ac_need_defaults=false;;
26811 # Conflict between --help and --header
26812 { echo "$as_me: error: ambiguous option: $1
26813 Try \`$0 --help' for more information." >&2
26814 { (exit 1); exit 1; }; };;
26815 --help | --hel | -h )
26816 echo "$ac_cs_usage"; exit ;;
26817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26818 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26821 # This is an error.
26822 -*) { echo "$as_me: error: unrecognized option: $1
26823 Try \`$0 --help' for more information." >&2
26824 { (exit 1); exit 1; }; } ;;
26826 *) ac_config_targets="$ac_config_targets $1"
26827 ac_need_defaults=false ;;
26833 ac_configure_extra_args=
26835 if $ac_cs_silent; then
26837 ac_configure_extra_args="$ac_configure_extra_args --silent"
26841 cat >>$CONFIG_STATUS <<_ACEOF
26842 if \$ac_cs_recheck; then
26843 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26844 CONFIG_SHELL=$SHELL
26845 export CONFIG_SHELL
26846 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26850 cat >>$CONFIG_STATUS <<\_ACEOF
26854 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26855 ## Running $as_me. ##
26861 cat >>$CONFIG_STATUS <<_ACEOF
26865 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26869 cat >>$CONFIG_STATUS <<\_ACEOF
26871 # Handling of arguments.
26872 for ac_config_target in $ac_config_targets
26874 case $ac_config_target in
26875 "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26876 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26877 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26878 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26879 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26880 "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26881 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26882 "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26883 "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26884 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26885 "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26886 "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26887 "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26888 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26889 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26890 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26891 "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26892 "examples/msg/run_msg_test") CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26893 "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26894 "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26895 "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26896 "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26897 "examples/gras/ping/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26898 "examples/gras/ping/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26899 "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26900 "examples/gras/rpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26901 "examples/gras/rpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26902 "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26903 "examples/gras/timer/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26904 "examples/gras/timer/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26905 "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26906 "examples/gras/chrono/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26907 "examples/gras/chrono/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26908 "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26909 "examples/gras/mutual_exclusion/simple_token/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26910 "examples/gras/mutual_exclusion/simple_token/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26911 "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26912 "examples/gras/mmrpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26913 "examples/gras/mmrpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26914 "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26915 "examples/gras/pmm/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26916 "examples/gras/pmm/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26917 "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26918 "examples/gras/all2all/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26919 "examples/gras/all2all/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26920 "examples/gras/p2p/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26921 "examples/gras/p2p/chord/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26922 "examples/gras/p2p/chord/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26923 "examples/gras/p2p/chord/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26924 "examples/gras/p2p/can/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26925 "examples/gras/p2p/can/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26926 "examples/gras/p2p/can/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26927 "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26928 "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26929 "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26930 "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26931 "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26932 "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26933 "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26935 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26936 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26937 { (exit 1); exit 1; }; };;
26942 # If the user did not use the arguments to specify the items to instantiate,
26943 # then the envvar interface is used. Set only those that are not.
26944 # We use the long form for the default assignment because of an extremely
26945 # bizarre bug on SunOS 4.1.3.
26946 if $ac_need_defaults; then
26947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26952 # Have a temporary directory for convenience. Make it in the build tree
26953 # simply because there is no reason against having it here, and in addition,
26954 # creating and moving files from /tmp can sometimes cause problems.
26955 # Hook for its removal unless debugging.
26956 # Note that there is a small window in which the directory will not be cleaned:
26957 # after its creation but before its name has been assigned to `$tmp'.
26961 trap 'exit_status=$?
26962 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26964 trap '{ (exit 1); exit 1; }' 1 2 13 15
26966 # Create a (secure) tmp directory for tmp files.
26969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26970 test -n "$tmp" && test -d "$tmp"
26973 tmp=./conf$$-$RANDOM
26974 (umask 077 && mkdir "$tmp")
26977 echo "$me: cannot create a temporary directory in ." >&2
26978 { (exit 1); exit 1; }
26982 # Set up the sed scripts for CONFIG_FILES section.
26985 # No need to generate the scripts if there are no CONFIG_FILES.
26986 # This happens for instance when ./config.status config.h
26987 if test -n "$CONFIG_FILES"; then
26994 for ac_last_try in false false false false false :; do
26995 cat >conf$$subs.sed <<_ACEOF
26996 SHELL!$SHELL$ac_delim
26997 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26998 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26999 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27000 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27001 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27002 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27003 exec_prefix!$exec_prefix$ac_delim
27004 prefix!$prefix$ac_delim
27005 program_transform_name!$program_transform_name$ac_delim
27006 bindir!$bindir$ac_delim
27007 sbindir!$sbindir$ac_delim
27008 libexecdir!$libexecdir$ac_delim
27009 datarootdir!$datarootdir$ac_delim
27010 datadir!$datadir$ac_delim
27011 sysconfdir!$sysconfdir$ac_delim
27012 sharedstatedir!$sharedstatedir$ac_delim
27013 localstatedir!$localstatedir$ac_delim
27014 includedir!$includedir$ac_delim
27015 oldincludedir!$oldincludedir$ac_delim
27016 docdir!$docdir$ac_delim
27017 infodir!$infodir$ac_delim
27018 htmldir!$htmldir$ac_delim
27019 dvidir!$dvidir$ac_delim
27020 pdfdir!$pdfdir$ac_delim
27021 psdir!$psdir$ac_delim
27022 libdir!$libdir$ac_delim
27023 localedir!$localedir$ac_delim
27024 mandir!$mandir$ac_delim
27025 DEFS!$DEFS$ac_delim
27026 ECHO_C!$ECHO_C$ac_delim
27027 ECHO_N!$ECHO_N$ac_delim
27028 ECHO_T!$ECHO_T$ac_delim
27029 LIBS!$LIBS$ac_delim
27030 build_alias!$build_alias$ac_delim
27031 host_alias!$host_alias$ac_delim
27032 target_alias!$target_alias$ac_delim
27033 build!$build$ac_delim
27034 build_cpu!$build_cpu$ac_delim
27035 build_vendor!$build_vendor$ac_delim
27036 build_os!$build_os$ac_delim
27037 host!$host$ac_delim
27038 host_cpu!$host_cpu$ac_delim
27039 host_vendor!$host_vendor$ac_delim
27040 host_os!$host_os$ac_delim
27041 target!$target$ac_delim
27042 target_cpu!$target_cpu$ac_delim
27043 target_vendor!$target_vendor$ac_delim
27044 target_os!$target_os$ac_delim
27045 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27046 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27047 INSTALL_DATA!$INSTALL_DATA$ac_delim
27048 CYGPATH_W!$CYGPATH_W$ac_delim
27049 PACKAGE!$PACKAGE$ac_delim
27050 VERSION!$VERSION$ac_delim
27051 ACLOCAL!$ACLOCAL$ac_delim
27052 AUTOCONF!$AUTOCONF$ac_delim
27053 AUTOMAKE!$AUTOMAKE$ac_delim
27054 AUTOHEADER!$AUTOHEADER$ac_delim
27055 MAKEINFO!$MAKEINFO$ac_delim
27056 install_sh!$install_sh$ac_delim
27057 STRIP!$STRIP$ac_delim
27058 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27059 mkdir_p!$mkdir_p$ac_delim
27061 SET_MAKE!$SET_MAKE$ac_delim
27062 am__leading_dot!$am__leading_dot$ac_delim
27063 AMTAR!$AMTAR$ac_delim
27064 am__tar!$am__tar$ac_delim
27065 am__untar!$am__untar$ac_delim
27067 CFLAGS!$CFLAGS$ac_delim
27068 LDFLAGS!$LDFLAGS$ac_delim
27069 CPPFLAGS!$CPPFLAGS$ac_delim
27070 ac_ct_CC!$ac_ct_CC$ac_delim
27071 EXEEXT!$EXEEXT$ac_delim
27072 OBJEXT!$OBJEXT$ac_delim
27073 DEPDIR!$DEPDIR$ac_delim
27074 am__include!$am__include$ac_delim
27075 am__quote!$am__quote$ac_delim
27076 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27077 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27078 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27079 CCDEPMODE!$CCDEPMODE$ac_delim
27080 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27081 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27082 GREP!$GREP$ac_delim
27083 EGREP!$EGREP$ac_delim
27084 LN_S!$LN_S$ac_delim
27085 ECHO!$ECHO$ac_delim
27087 RANLIB!$RANLIB$ac_delim
27088 DLLTOOL!$DLLTOOL$ac_delim
27090 OBJDUMP!$OBJDUMP$ac_delim
27095 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27097 elif $ac_last_try; then
27098 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27099 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27100 { (exit 1); exit 1; }; }
27102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27106 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27107 if test -n "$ac_eof"; then
27108 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27109 ac_eof=`expr $ac_eof + 1`
27112 cat >>$CONFIG_STATUS <<_ACEOF
27113 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27117 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27118 s/^/s,@/; s/!/@,|#_!!_#|/
27121 s/'"$ac_delim"'$/,g/; t
27123 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27124 ' >>$CONFIG_STATUS <conf$$subs.sed
27125 rm -f conf$$subs.sed
27126 cat >>$CONFIG_STATUS <<_ACEOF
27132 for ac_last_try in false false false false false :; do
27133 cat >conf$$subs.sed <<_ACEOF
27134 CXXFLAGS!$CXXFLAGS$ac_delim
27135 ac_ct_CXX!$ac_ct_CXX$ac_delim
27136 CXXDEPMODE!$CXXDEPMODE$ac_delim
27137 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27138 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27139 CXXCPP!$CXXCPP$ac_delim
27141 FFLAGS!$FFLAGS$ac_delim
27142 ac_ct_F77!$ac_ct_F77$ac_delim
27143 LIBTOOL!$LIBTOOL$ac_delim
27144 LIBOBJS!$LIBOBJS$ac_delim
27145 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27146 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27147 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27148 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27149 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27150 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27151 GRAS_DEP!$GRAS_DEP$ac_delim
27152 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27153 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27154 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27155 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27156 MAINT!$MAINT$ac_delim
27157 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27158 abs_builddir!$abs_builddir$ac_delim
27159 abs_srcdir!$abs_srcdir$ac_delim
27160 abs_top_builddir!$abs_top_builddir$ac_delim
27161 abs_top_srcdir!$abs_top_srcdir$ac_delim
27162 BASH!$BASH$ac_delim
27163 WARNING!$WARNING$ac_delim
27165 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27166 LEXLIB!$LEXLIB$ac_delim
27167 FLEXML!$FLEXML$ac_delim
27168 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27169 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27170 DOXYGEN!$DOXYGEN$ac_delim
27171 ADDR2LINE!$ADDR2LINE$ac_delim
27172 ac_configure_args!$ac_configure_args$ac_delim
27173 MD5SUM!$MD5SUM$ac_delim
27174 build_id!$build_id$ac_delim
27175 LTLIBOBJS!$LTLIBOBJS$ac_delim
27178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 42; then
27180 elif $ac_last_try; then
27181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27182 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27183 { (exit 1); exit 1; }; }
27185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27189 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27190 if test -n "$ac_eof"; then
27191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27192 ac_eof=`expr $ac_eof + 1`
27195 cat >>$CONFIG_STATUS <<_ACEOF
27196 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27200 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27201 s/^/s,@/; s/!/@,|#_!!_#|/
27204 s/'"$ac_delim"'$/,g/; t
27206 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27207 ' >>$CONFIG_STATUS <conf$$subs.sed
27208 rm -f conf$$subs.sed
27209 cat >>$CONFIG_STATUS <<_ACEOF
27216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27218 # trailing colons and then remove the whole line if VPATH becomes empty
27219 # (actually we leave an empty line to preserve line numbers).
27220 if test "x$srcdir" = x.; then
27221 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27222 s/:*\$(srcdir):*/:/
27223 s/:*\${srcdir}:*/:/
27225 s/^\([^=]*=[ ]*\):*/\1/
27231 cat >>$CONFIG_STATUS <<\_ACEOF
27232 fi # test -n "$CONFIG_FILES"
27235 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27238 :[FHLC]) ac_mode=$ac_tag; continue;;
27240 case $ac_mode$ac_tag in
27242 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27243 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27244 { (exit 1); exit 1; }; };;
27245 :[FH]-) ac_tag=-:-;;
27246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27263 -) ac_f="$tmp/stdin";;
27264 *) # Look for the file first in the build tree, then in the source tree
27265 # (if the path is not absolute). The absolute path cannot be DOS-style,
27266 # because $ac_f cannot contain `:'.
27270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27272 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27273 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27274 { (exit 1); exit 1; }; };;
27276 ac_file_inputs="$ac_file_inputs $ac_f"
27279 # Let's still pretend it is `configure' which instantiates (i.e., don't
27280 # use $as_me), people would be surprised to read:
27281 # /* config.h. Generated by config.status. */
27282 configure_input="Generated from "`IFS=:
27283 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27284 if test x"$ac_file" != x-; then
27285 configure_input="$ac_file. $configure_input"
27286 { echo "$as_me:$LINENO: creating $ac_file" >&5
27287 echo "$as_me: creating $ac_file" >&6;}
27291 *:-:* | *:-) cat >"$tmp/stdin";;
27296 ac_dir=`$as_dirname -- "$ac_file" ||
27297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27298 X"$ac_file" : 'X\(//\)[^/]' \| \
27299 X"$ac_file" : 'X\(//\)$' \| \
27300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27306 /^X\(\/\/\)[^/].*/{
27321 -*) as_dir=./$as_dir;;
27323 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27327 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27328 *) as_qdir=$as_dir;;
27330 as_dirs="'$as_qdir' $as_dirs"
27331 as_dir=`$as_dirname -- "$as_dir" ||
27332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27333 X"$as_dir" : 'X\(//\)[^/]' \| \
27334 X"$as_dir" : 'X\(//\)$' \| \
27335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27341 /^X\(\/\/\)[^/].*/{
27354 test -d "$as_dir" && break
27356 test -z "$as_dirs" || eval "mkdir $as_dirs"
27357 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27358 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27359 { (exit 1); exit 1; }; }; }
27363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27365 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27366 # A ".." for each directory in $ac_dir_suffix.
27367 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27368 case $ac_top_builddir_sub in
27369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27373 ac_abs_top_builddir=$ac_pwd
27374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27375 # for backward compatibility:
27376 ac_top_builddir=$ac_top_build_prefix
27379 .) # We are building in place.
27381 ac_top_srcdir=$ac_top_builddir_sub
27382 ac_abs_top_srcdir=$ac_pwd ;;
27383 [\\/]* | ?:[\\/]* ) # Absolute name.
27384 ac_srcdir=$srcdir$ac_dir_suffix;
27385 ac_top_srcdir=$srcdir
27386 ac_abs_top_srcdir=$srcdir ;;
27387 *) # Relative name.
27388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27389 ac_top_srcdir=$ac_top_build_prefix$srcdir
27390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27407 cat >>$CONFIG_STATUS <<\_ACEOF
27408 # If the template does not know about datarootdir, expand it.
27409 # FIXME: This hack should be removed a few years after 2.60.
27410 ac_datarootdir_hack=; ac_datarootdir_seen=
27412 case `sed -n '/datarootdir/ {
27421 ' $ac_file_inputs` in
27422 *datarootdir*) ac_datarootdir_seen=yes;;
27423 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27424 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27425 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27427 cat >>$CONFIG_STATUS <<_ACEOF
27428 ac_datarootdir_hack='
27429 s&@datadir@&$datadir&g
27430 s&@docdir@&$docdir&g
27431 s&@infodir@&$infodir&g
27432 s&@localedir@&$localedir&g
27433 s&@mandir@&$mandir&g
27434 s&\\\${datarootdir}&$datarootdir&g' ;;
27438 # Neutralize VPATH when `$srcdir' = `.'.
27439 # Shell code in configure.ac might set extrasub.
27440 # FIXME: do we really want to maintain this feature?
27441 cat >>$CONFIG_STATUS <<_ACEOF
27445 cat >>$CONFIG_STATUS <<\_ACEOF
27447 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27448 s&@configure_input@&$configure_input&;t t
27449 s&@top_builddir@&$ac_top_builddir_sub&;t t
27450 s&@srcdir@&$ac_srcdir&;t t
27451 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27452 s&@top_srcdir@&$ac_top_srcdir&;t t
27453 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27454 s&@builddir@&$ac_builddir&;t t
27455 s&@abs_builddir@&$ac_abs_builddir&;t t
27456 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27457 s&@INSTALL@&$ac_INSTALL&;t t
27458 $ac_datarootdir_hack
27459 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27464 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27465 which seems to be undefined. Please make sure it is defined." >&5
27466 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27467 which seems to be undefined. Please make sure it is defined." >&2;}
27471 -) cat "$tmp/out"; rm -f "$tmp/out";;
27472 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27481 # Transform confdefs.h into a sed script `conftest.defines', that
27482 # substitutes the proper values into config.h.in to produce config.h.
27483 rm -f conftest.defines conftest.tail
27484 # First, append a space to every undef/define line, to ease matching.
27485 echo 's/$/ /' >conftest.defines
27486 # Then, protect against being on the right side of a sed subst, or in
27487 # an unquoted here document, in config.status. If some macros were
27488 # called several times there might be several #defines for the same
27489 # symbol, which is useless. But do not sort them, since the last
27490 # AC_DEFINE must be honored.
27491 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27492 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27493 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27494 # PARAMS is the parameter list in the macro definition--in most cases, it's
27495 # just an empty string.
27496 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27497 ac_dB='\\)[ (].*,\\1define\\2'
27505 s/^[ ]*#[ ]*define[ ][ ]*//
27510 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27511 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27512 ' >>conftest.defines
27514 # Remove the space that was appended to ease matching.
27515 # Then replace #undef with comments. This is necessary, for
27516 # example, in the case of _POSIX_SOURCE, which is predefined and required
27517 # on some systems where configure will not decide to define it.
27518 # (The regexp can be short, since the line contains either #define or #undef.)
27520 s,^[ #]*u.*,/* & */,' >>conftest.defines
27522 # Break up conftest.defines:
27523 ac_max_sed_lines=50
27525 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27526 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27527 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27529 ac_in='$ac_file_inputs'
27530 ac_out='"$tmp/out1"'
27531 ac_nxt='"$tmp/out2"'
27535 # Write a here document:
27536 cat >>$CONFIG_STATUS <<_ACEOF
27537 # First, check the format of the line:
27538 cat >"\$tmp/defines.sed" <<\\CEOF
27539 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27540 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27544 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27546 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27547 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27548 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27549 grep . conftest.tail >/dev/null || break
27550 rm -f conftest.defines
27551 mv conftest.tail conftest.defines
27553 rm -f conftest.defines conftest.tail
27555 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27556 cat >>$CONFIG_STATUS <<\_ACEOF
27557 if test x"$ac_file" != x-; then
27558 echo "/* $configure_input */" >"$tmp/config.h"
27559 cat "$ac_result" >>"$tmp/config.h"
27560 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27561 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27562 echo "$as_me: $ac_file is unchanged" >&6;}
27565 mv "$tmp/config.h" $ac_file
27568 echo "/* $configure_input */"
27572 # Compute $ac_file's index in $config_headers.
27574 for _am_header in $config_headers :; do
27575 case $_am_header in
27576 $ac_file | $ac_file:* )
27579 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27582 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27583 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27584 X$ac_file : 'X\(//\)[^/]' \| \
27585 X$ac_file : 'X\(//\)$' \| \
27586 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27592 /^X\(\/\/\)[^/].*/{
27604 s/.*/./; q'`/stamp-h$_am_stamp_count
27607 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27608 echo "$as_me: executing $ac_file commands" >&6;}
27613 case $ac_file$ac_mode in
27614 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27615 # Strip MF so we end up with the name of the file.
27616 mf=`echo "$mf" | sed -e 's/:.*$//'`
27617 # Check whether this is an Automake generated Makefile or not.
27618 # We used to match only the files named `Makefile.in', but
27619 # some people rename them; so instead we look at the file content.
27620 # Grep'ing the first line is not enough: some people post-process
27621 # each Makefile.in and add a new line on top of each file to say so.
27622 # So let's grep whole file.
27623 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27624 dirpart=`$as_dirname -- "$mf" ||
27625 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27626 X"$mf" : 'X\(//\)[^/]' \| \
27627 X"$mf" : 'X\(//\)$' \| \
27628 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27634 /^X\(\/\/\)[^/].*/{
27650 # Extract the definition of DEPDIR, am__include, and am__quote
27651 # from the Makefile without running `make'.
27652 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27653 test -z "$DEPDIR" && continue
27654 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27655 test -z "am__include" && continue
27656 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27657 # When using ansi2knr, U may be empty or an underscore; expand it
27658 U=`sed -n 's/^U = //p' < "$mf"`
27659 # Find all dependency output files, they are included files with
27660 # $(DEPDIR) in their names. We invoke sed twice because it is the
27661 # simplest approach to changing $(DEPDIR) to its actual value in the
27663 for file in `sed -n "
27664 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27665 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27666 # Make sure the directory exists.
27667 test -f "$dirpart/$file" && continue
27668 fdir=`$as_dirname -- "$file" ||
27669 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27670 X"$file" : 'X\(//\)[^/]' \| \
27671 X"$file" : 'X\(//\)$' \| \
27672 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27678 /^X\(\/\/\)[^/].*/{
27691 { as_dir=$dirpart/$fdir
27693 -*) as_dir=./$as_dir;;
27695 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27699 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27700 *) as_qdir=$as_dir;;
27702 as_dirs="'$as_qdir' $as_dirs"
27703 as_dir=`$as_dirname -- "$as_dir" ||
27704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27705 X"$as_dir" : 'X\(//\)[^/]' \| \
27706 X"$as_dir" : 'X\(//\)$' \| \
27707 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27713 /^X\(\/\/\)[^/].*/{
27726 test -d "$as_dir" && break
27728 test -z "$as_dirs" || eval "mkdir $as_dirs"
27729 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27730 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27731 { (exit 1); exit 1; }; }; }
27732 # echo "creating $dirpart/$file"
27733 echo '# dummy' > "$dirpart/$file"
27737 "tools/graspe-slave":F)
27739 tools/graspe-slave tools/graspe-master \
27741 test -e $file && chmod +x $file; \
27744 "testsuite/Makefile":F)
27746 testsuite/run_tests \
27747 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27749 test -e $file && chmod +x $file; \
27752 "testsuite/run_tests":F)
27754 testsuite/run_tests \
27755 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27757 test -e $file && chmod +x $file; \
27760 "testsuite/gras/trp_tcp_usage":F)
27762 testsuite/run_tests \
27763 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27765 test -e $file && chmod +x $file; \
27768 "testsuite/gras/trp_file_usage":F)
27770 testsuite/run_tests \
27771 testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27773 test -e $file && chmod +x $file; \
27776 "examples/Makefile":F)
27779 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27780 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27782 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27783 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27784 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27785 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27786 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27787 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27788 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27789 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27790 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27791 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27792 examples/msg/run_msg_test \
27793 examples/simdag/test_simdag \
27795 test -e $file && chmod +x $file; \
27798 "examples/msg/Makefile":F)
27801 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27802 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27804 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27805 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27806 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27807 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27808 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27809 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27810 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27811 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27812 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27813 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27814 examples/msg/run_msg_test \
27815 examples/simdag/test_simdag \
27817 test -e $file && chmod +x $file; \
27820 "examples/msg/run_msg_test":F)
27823 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27824 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27826 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27827 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27828 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27829 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27830 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27831 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27832 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27833 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27834 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27835 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27836 examples/msg/run_msg_test \
27837 examples/simdag/test_simdag \
27839 test -e $file && chmod +x $file; \
27842 "examples/simdag/Makefile":F)
27845 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27846 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27848 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27849 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27850 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27851 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27852 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27853 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27854 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27855 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27856 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27857 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27858 examples/msg/run_msg_test \
27859 examples/simdag/test_simdag \
27861 test -e $file && chmod +x $file; \
27864 "examples/simdag/test_simdag":F)
27867 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27868 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27870 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27871 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27872 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27873 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27874 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27875 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27876 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27877 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27878 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27879 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27880 examples/msg/run_msg_test \
27881 examples/simdag/test_simdag \
27883 test -e $file && chmod +x $file; \
27886 "examples/gras/Makefile":F)
27889 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27890 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27892 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27893 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27894 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27895 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27896 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27897 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27898 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27899 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27900 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27901 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27902 examples/msg/run_msg_test \
27903 examples/simdag/test_simdag \
27905 test -e $file && chmod +x $file; \
27908 "examples/gras/ping/Makefile":F)
27911 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27912 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27914 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27915 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27916 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27917 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27918 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27919 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27920 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27921 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27922 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27923 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27924 examples/msg/run_msg_test \
27925 examples/simdag/test_simdag \
27927 test -e $file && chmod +x $file; \
27930 "examples/gras/ping/test_sg":F)
27933 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27934 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27936 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27937 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27938 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27939 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27940 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27941 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27942 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27943 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27944 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27945 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27946 examples/msg/run_msg_test \
27947 examples/simdag/test_simdag \
27949 test -e $file && chmod +x $file; \
27952 "examples/gras/ping/test_rl":F)
27955 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27956 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27958 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27959 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27960 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27961 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27962 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27963 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27964 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27965 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27966 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27967 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27968 examples/msg/run_msg_test \
27969 examples/simdag/test_simdag \
27971 test -e $file && chmod +x $file; \
27974 "examples/gras/rpc/Makefile":F)
27977 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27978 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
27980 examples/gras/ping/test_sg examples/gras/ping/test_rl \
27981 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
27982 examples/gras/timer/test_sg examples/gras/timer/test_rl \
27983 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
27984 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
27985 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
27986 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
27987 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
27988 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
27989 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
27990 examples/msg/run_msg_test \
27991 examples/simdag/test_simdag \
27993 test -e $file && chmod +x $file; \
27996 "examples/gras/rpc/test_sg":F)
27999 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28000 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28002 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28003 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28004 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28005 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28006 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28007 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28008 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28009 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28010 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28011 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28012 examples/msg/run_msg_test \
28013 examples/simdag/test_simdag \
28015 test -e $file && chmod +x $file; \
28018 "examples/gras/rpc/test_rl":F)
28021 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28022 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28024 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28025 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28026 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28027 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28028 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28029 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28030 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28031 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28032 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28033 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28034 examples/msg/run_msg_test \
28035 examples/simdag/test_simdag \
28037 test -e $file && chmod +x $file; \
28040 "examples/gras/timer/Makefile":F)
28043 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28044 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28046 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28047 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28048 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28049 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28050 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28051 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28052 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28053 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28054 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28055 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28056 examples/msg/run_msg_test \
28057 examples/simdag/test_simdag \
28059 test -e $file && chmod +x $file; \
28062 "examples/gras/timer/test_sg":F)
28065 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28066 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28068 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28069 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28070 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28071 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28072 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28073 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28074 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28075 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28076 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28077 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28078 examples/msg/run_msg_test \
28079 examples/simdag/test_simdag \
28081 test -e $file && chmod +x $file; \
28084 "examples/gras/timer/test_rl":F)
28087 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28088 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28090 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28091 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28092 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28093 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28094 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28095 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28096 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28097 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28098 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28099 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28100 examples/msg/run_msg_test \
28101 examples/simdag/test_simdag \
28103 test -e $file && chmod +x $file; \
28106 "examples/gras/chrono/Makefile":F)
28109 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28110 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28112 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28113 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28114 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28115 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28116 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28117 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28118 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28119 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28120 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28121 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28122 examples/msg/run_msg_test \
28123 examples/simdag/test_simdag \
28125 test -e $file && chmod +x $file; \
28128 "examples/gras/chrono/test_sg":F)
28131 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28132 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28134 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28135 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28136 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28137 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28138 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28139 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28140 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28141 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28142 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28143 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28144 examples/msg/run_msg_test \
28145 examples/simdag/test_simdag \
28147 test -e $file && chmod +x $file; \
28150 "examples/gras/chrono/test_rl":F)
28153 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28154 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28156 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28157 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28158 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28159 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28160 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28161 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28162 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28163 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28164 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28165 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28166 examples/msg/run_msg_test \
28167 examples/simdag/test_simdag \
28169 test -e $file && chmod +x $file; \
28172 "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28175 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28176 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28178 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28179 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28180 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28181 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28182 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28183 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28184 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28185 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28186 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28187 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28188 examples/msg/run_msg_test \
28189 examples/simdag/test_simdag \
28191 test -e $file && chmod +x $file; \
28194 "examples/gras/mutual_exclusion/simple_token/test_sg":F)
28197 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28198 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28200 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28201 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28202 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28203 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28204 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28205 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28206 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28207 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28208 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28209 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28210 examples/msg/run_msg_test \
28211 examples/simdag/test_simdag \
28213 test -e $file && chmod +x $file; \
28216 "examples/gras/mutual_exclusion/simple_token/test_rl":F)
28219 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28220 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28222 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28223 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28224 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28225 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28226 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28227 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28228 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28229 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28230 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28231 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28232 examples/msg/run_msg_test \
28233 examples/simdag/test_simdag \
28235 test -e $file && chmod +x $file; \
28238 "examples/gras/mmrpc/Makefile":F)
28241 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28242 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28244 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28245 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28246 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28247 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28248 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28249 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28250 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28251 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28252 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28253 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28254 examples/msg/run_msg_test \
28255 examples/simdag/test_simdag \
28257 test -e $file && chmod +x $file; \
28260 "examples/gras/mmrpc/test_sg":F)
28263 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28264 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28266 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28267 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28268 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28269 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28270 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28271 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28272 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28273 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28274 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28275 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28276 examples/msg/run_msg_test \
28277 examples/simdag/test_simdag \
28279 test -e $file && chmod +x $file; \
28282 "examples/gras/mmrpc/test_rl":F)
28285 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28286 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28288 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28289 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28290 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28291 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28292 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28293 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28294 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28295 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28296 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28297 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28298 examples/msg/run_msg_test \
28299 examples/simdag/test_simdag \
28301 test -e $file && chmod +x $file; \
28304 "examples/gras/pmm/Makefile":F)
28307 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28308 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28310 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28311 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28312 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28313 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28314 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28315 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28316 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28317 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28318 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28319 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28320 examples/msg/run_msg_test \
28321 examples/simdag/test_simdag \
28323 test -e $file && chmod +x $file; \
28326 "examples/gras/pmm/test_sg":F)
28329 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28330 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28332 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28333 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28334 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28335 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28336 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28337 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28338 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28339 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28340 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28341 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28342 examples/msg/run_msg_test \
28343 examples/simdag/test_simdag \
28345 test -e $file && chmod +x $file; \
28348 "examples/gras/pmm/test_rl":F)
28351 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28352 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28354 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28355 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28356 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28357 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28358 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28359 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28360 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28361 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28362 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28363 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28364 examples/msg/run_msg_test \
28365 examples/simdag/test_simdag \
28367 test -e $file && chmod +x $file; \
28370 "examples/gras/all2all/Makefile":F)
28373 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28374 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28376 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28377 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28378 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28379 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28380 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28381 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28382 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28383 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28384 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28385 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28386 examples/msg/run_msg_test \
28387 examples/simdag/test_simdag \
28389 test -e $file && chmod +x $file; \
28392 "examples/gras/all2all/test_sg":F)
28395 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28396 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28398 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28399 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28400 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28401 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28402 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28403 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28404 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28405 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28406 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28407 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28408 examples/msg/run_msg_test \
28409 examples/simdag/test_simdag \
28411 test -e $file && chmod +x $file; \
28414 "examples/gras/all2all/test_rl":F)
28417 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28418 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28420 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28421 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28422 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28423 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28424 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28425 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28426 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28427 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28428 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28429 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28430 examples/msg/run_msg_test \
28431 examples/simdag/test_simdag \
28433 test -e $file && chmod +x $file; \
28436 "examples/gras/p2p/Makefile":F)
28439 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28440 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28442 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28443 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28444 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28445 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28446 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28447 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28448 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28449 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28450 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28451 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28452 examples/msg/run_msg_test \
28453 examples/simdag/test_simdag \
28455 test -e $file && chmod +x $file; \
28458 "examples/gras/p2p/chord/Makefile":F)
28461 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28462 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28464 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28465 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28466 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28467 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28468 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28469 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28470 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28471 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28472 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28473 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28474 examples/msg/run_msg_test \
28475 examples/simdag/test_simdag \
28477 test -e $file && chmod +x $file; \
28480 "examples/gras/p2p/chord/test_sg":F)
28483 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28484 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28486 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28487 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28488 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28489 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28490 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28491 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28492 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28493 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28494 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28495 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28496 examples/msg/run_msg_test \
28497 examples/simdag/test_simdag \
28499 test -e $file && chmod +x $file; \
28502 "examples/gras/p2p/chord/test_rl":F)
28505 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28506 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28508 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28509 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28510 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28511 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28512 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28513 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28514 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28515 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28516 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28517 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28518 examples/msg/run_msg_test \
28519 examples/simdag/test_simdag \
28521 test -e $file && chmod +x $file; \
28524 "examples/gras/p2p/can/Makefile":F)
28527 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28528 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28530 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28531 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28532 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28533 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28534 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28535 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28536 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28537 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28538 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28539 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28540 examples/msg/run_msg_test \
28541 examples/simdag/test_simdag \
28543 test -e $file && chmod +x $file; \
28546 "examples/gras/p2p/can/test_sg":F)
28549 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28550 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28552 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28553 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28554 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28555 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28556 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28557 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28558 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28559 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28560 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28561 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28562 examples/msg/run_msg_test \
28563 examples/simdag/test_simdag \
28565 test -e $file && chmod +x $file; \
28568 "examples/gras/p2p/can/test_rl":F)
28571 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28572 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28574 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28575 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28576 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28577 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28578 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28579 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28580 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28581 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28582 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28583 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28584 examples/msg/run_msg_test \
28585 examples/simdag/test_simdag \
28587 test -e $file && chmod +x $file; \
28590 "examples/amok/Makefile":F)
28593 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28594 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28596 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28597 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28598 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28599 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28600 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28601 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28602 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28603 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28604 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28605 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28606 examples/msg/run_msg_test \
28607 examples/simdag/test_simdag \
28609 test -e $file && chmod +x $file; \
28612 "examples/amok/bandwidth/Makefile":F)
28615 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28616 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28618 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28619 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28620 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28621 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28622 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28623 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28624 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28625 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28626 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28627 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28628 examples/msg/run_msg_test \
28629 examples/simdag/test_simdag \
28631 test -e $file && chmod +x $file; \
28634 "examples/amok/bandwidth/test_sg":F)
28637 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28638 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28640 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28641 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28642 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28643 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28644 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28645 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28646 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28647 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28648 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28649 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28650 examples/msg/run_msg_test \
28651 examples/simdag/test_simdag \
28653 test -e $file && chmod +x $file; \
28656 "examples/amok/bandwidth/test_rl":F)
28659 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28660 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28662 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28663 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28664 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28665 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28666 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28667 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28668 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28669 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28670 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28671 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28672 examples/msg/run_msg_test \
28673 examples/simdag/test_simdag \
28675 test -e $file && chmod +x $file; \
28678 "examples/amok/saturate/Makefile":F)
28681 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28682 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28684 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28685 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28686 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28687 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28688 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28689 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28690 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28691 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28692 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28693 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28694 examples/msg/run_msg_test \
28695 examples/simdag/test_simdag \
28697 test -e $file && chmod +x $file; \
28700 "examples/amok/saturate/test_sg":F)
28703 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28704 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28706 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28707 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28708 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28709 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28710 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28711 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28712 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28713 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28714 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28715 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28716 examples/msg/run_msg_test \
28717 examples/simdag/test_simdag \
28719 test -e $file && chmod +x $file; \
28722 "examples/amok/saturate/test_rl":F)
28725 examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28726 examples/amok/saturate/test_sg examples/amok/saturate/test_rl \
28728 examples/gras/ping/test_sg examples/gras/ping/test_rl \
28729 examples/gras/rpc/test_sg examples/gras/rpc/test_rl \
28730 examples/gras/timer/test_sg examples/gras/timer/test_rl \
28731 examples/gras/chrono/test_sg examples/gras/chrono/test_rl \
28732 examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl \
28733 examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl \
28734 examples/gras/pmm/test_sg examples/gras/pmm/test_rl \
28735 examples/gras/all2all/test_sg examples/gras/all2all/test_rl \
28736 examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl \
28737 examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl \
28738 examples/msg/run_msg_test \
28739 examples/simdag/test_simdag \
28741 test -e $file && chmod +x $file; \
28749 { (exit 0); exit 0; }
28751 chmod +x $CONFIG_STATUS
28752 ac_clean_files=$ac_clean_files_save
28755 # configure is writing to config.log, and then calls config.status.
28756 # config.status does its own redirection, appending to config.log.
28757 # Unfortunately, on DOS this fails, as config.log is still kept open
28758 # by configure, so config.status won't be able to write to it; its
28759 # output is simply discarded. So we exec the FD to /dev/null,
28760 # effectively closing config.log, so it can be properly (re)opened and
28761 # appended to by config.status. When coming back to configure, we
28762 # need to make the FD available again.
28763 if test "$no_create" != yes; then
28765 ac_config_status_args=
28766 test "$silent" = yes &&
28767 ac_config_status_args="$ac_config_status_args --quiet"
28769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28772 # would make configure fail if this is the last instruction.
28773 $ac_cs_success || { (exit 1); exit 1; }
28779 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28781 Compiler: ${CC} (version: ${GCC_VERSION})
28784 CPPFlags: ${CPPFLAGS}
28785 LDFlags: ${LDFLAGS}
28787 Context backend: ${with_context}
28790 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28792 echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28793 echo "WARNING: You may want to enable this by specifying:"
28795 echo "WARNING: ./configure --enable-maintainer-mode $ac_configure_args"
28798 echo $build_id > stamp.configure