2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libffi 3.0.10rc0.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='libffi'
747 PACKAGE_TARNAME='libffi'
748 PACKAGE_VERSION='3.0.10rc0'
749 PACKAGE_STRING='libffi 3.0.10rc0'
750 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
752 # Factoring default headers for most tests.
753 ac_includes_default="\
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
765 # ifdef HAVE_STDLIB_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
788 ac_subst_vars='am__EXEEXT_FALSE
822 POWERPC_FREEBSD_FALSE
859 MAINTAINER_MODE_FALSE
881 am__fastdepCCAS_FALSE
910 INSTALL_STRIP_PROGRAM
964 program_transform_name
976 enable_option_checking
977 enable_dependency_tracking
984 enable_maintainer_mode
990 ac_precious_vars='build_alias
999 # Initialize some variables set by options.
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1013 program_transform_name=s,x,x,
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1038 infodir='${datarootdir}/info'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1051 # If the previous option needs an argument, assign it.
1052 if test -n "$ac_prev"; then
1053 eval $ac_prev=\$ac_option
1059 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063 # Accept the important Cygnus configure options, so we can diagnose typos.
1065 case $ac_dashdash$ac_option in
1069 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1071 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072 bindir=$ac_optarg ;;
1074 -build | --build | --buil | --bui | --bu)
1075 ac_prev=build_alias ;;
1076 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077 build_alias=$ac_optarg ;;
1079 -cache-file | --cache-file | --cache-fil | --cache-fi \
1080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081 ac_prev=cache_file ;;
1082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084 cache_file=$ac_optarg ;;
1086 --config-cache | -C)
1087 cache_file=config.cache ;;
1089 -datadir | --datadir | --datadi | --datad)
1091 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092 datadir=$ac_optarg ;;
1094 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095 | --dataroo | --dataro | --datar)
1096 ac_prev=datarootdir ;;
1097 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099 datarootdir=$ac_optarg ;;
1101 -disable-* | --disable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval enable_$ac_useropt=no ;;
1118 -docdir | --docdir | --docdi | --doc | --do)
1120 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121 docdir=$ac_optarg ;;
1123 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1125 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126 dvidir=$ac_optarg ;;
1128 -enable-* | --enable-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "enable_$ac_useropt"
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval enable_$ac_useropt=\$ac_optarg ;;
1145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147 | --exec | --exe | --ex)
1148 ac_prev=exec_prefix ;;
1149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151 | --exec=* | --exe=* | --ex=*)
1152 exec_prefix=$ac_optarg ;;
1154 -gas | --gas | --ga | --g)
1155 # Obsolete; use --with-gas.
1158 -help | --help | --hel | --he | -h)
1159 ac_init_help=long ;;
1160 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161 ac_init_help=recursive ;;
1162 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163 ac_init_help=short ;;
1165 -host | --host | --hos | --ho)
1166 ac_prev=host_alias ;;
1167 -host=* | --host=* | --hos=* | --ho=*)
1168 host_alias=$ac_optarg ;;
1170 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1172 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1174 htmldir=$ac_optarg ;;
1176 -includedir | --includedir | --includedi | --included | --include \
1177 | --includ | --inclu | --incl | --inc)
1178 ac_prev=includedir ;;
1179 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180 | --includ=* | --inclu=* | --incl=* | --inc=*)
1181 includedir=$ac_optarg ;;
1183 -infodir | --infodir | --infodi | --infod | --info | --inf)
1185 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186 infodir=$ac_optarg ;;
1188 -libdir | --libdir | --libdi | --libd)
1190 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191 libdir=$ac_optarg ;;
1193 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194 | --libexe | --libex | --libe)
1195 ac_prev=libexecdir ;;
1196 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197 | --libexe=* | --libex=* | --libe=*)
1198 libexecdir=$ac_optarg ;;
1200 -localedir | --localedir | --localedi | --localed | --locale)
1201 ac_prev=localedir ;;
1202 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203 localedir=$ac_optarg ;;
1205 -localstatedir | --localstatedir | --localstatedi | --localstated \
1206 | --localstate | --localstat | --localsta | --localst | --locals)
1207 ac_prev=localstatedir ;;
1208 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210 localstatedir=$ac_optarg ;;
1212 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1214 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215 mandir=$ac_optarg ;;
1217 -nfp | --nfp | --nf)
1218 # Obsolete; use --without-fp.
1221 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222 | --no-cr | --no-c | -n)
1225 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1229 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231 | --oldin | --oldi | --old | --ol | --o)
1232 ac_prev=oldincludedir ;;
1233 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236 oldincludedir=$ac_optarg ;;
1238 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1240 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241 prefix=$ac_optarg ;;
1243 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244 | --program-pre | --program-pr | --program-p)
1245 ac_prev=program_prefix ;;
1246 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248 program_prefix=$ac_optarg ;;
1250 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251 | --program-suf | --program-su | --program-s)
1252 ac_prev=program_suffix ;;
1253 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255 program_suffix=$ac_optarg ;;
1257 -program-transform-name | --program-transform-name \
1258 | --program-transform-nam | --program-transform-na \
1259 | --program-transform-n | --program-transform- \
1260 | --program-transform | --program-transfor \
1261 | --program-transfo | --program-transf \
1262 | --program-trans | --program-tran \
1263 | --progr-tra | --program-tr | --program-t)
1264 ac_prev=program_transform_name ;;
1265 -program-transform-name=* | --program-transform-name=* \
1266 | --program-transform-nam=* | --program-transform-na=* \
1267 | --program-transform-n=* | --program-transform-=* \
1268 | --program-transform=* | --program-transfor=* \
1269 | --program-transfo=* | --program-transf=* \
1270 | --program-trans=* | --program-tran=* \
1271 | --progr-tra=* | --program-tr=* | --program-t=*)
1272 program_transform_name=$ac_optarg ;;
1274 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1276 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277 pdfdir=$ac_optarg ;;
1279 -psdir | --psdir | --psdi | --psd | --ps)
1281 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1288 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292 sbindir=$ac_optarg ;;
1294 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296 | --sharedst | --shareds | --shared | --share | --shar \
1298 ac_prev=sharedstatedir ;;
1299 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303 sharedstatedir=$ac_optarg ;;
1305 -site | --site | --sit)
1307 -site=* | --site=* | --sit=*)
1310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313 srcdir=$ac_optarg ;;
1315 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316 | --syscon | --sysco | --sysc | --sys | --sy)
1317 ac_prev=sysconfdir ;;
1318 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320 sysconfdir=$ac_optarg ;;
1322 -target | --target | --targe | --targ | --tar | --ta | --t)
1323 ac_prev=target_alias ;;
1324 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325 target_alias=$ac_optarg ;;
1327 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330 -version | --version | --versio | --versi | --vers | -V)
1331 ac_init_version=: ;;
1334 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338 { (exit 1); exit 1; }; }
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1348 eval with_$ac_useropt=\$ac_optarg ;;
1350 -without-* | --without-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355 { (exit 1); exit 1; }; }
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1365 eval with_$ac_useropt=no ;;
1368 # Obsolete; use --with-x.
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386 Try \`$0 --help' for more information." >&2
1387 { (exit 1); exit 1; }; }
1391 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1394 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395 { (exit 1); exit 1; }; }
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413 { (exit 1); exit 1; }; }
1416 if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1419 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420 { (exit 1); exit 1; }; } ;;
1421 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1425 # Check all directory arguments for consistency.
1426 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427 datadir sysconfdir sharedstatedir localstatedir includedir \
1428 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429 libdir localedir mandir
1431 eval ac_val=\$$ac_var
1432 # Remove trailing slashes.
1435 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436 eval $ac_var=\$ac_val;;
1438 # Be sure to have absolute directory names.
1440 [\\/$]* | ?:[\\/]* ) continue;;
1441 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1443 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444 { (exit 1); exit 1; }; }
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1452 target=$target_alias
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456 if test "x$build_alias" = x; then
1457 cross_compiling=maybe
1458 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459 If a cross compiler is detected then cross compile mode will be used." >&2
1460 elif test "x$build_alias" != "x$host_alias"; then
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1468 test "$silent" = yes && exec 6>/dev/null
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475 { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478 { (exit 1); exit 1; }; }
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483 ac_srcdir_defaulted=yes
1484 # Try the directory containing this script, then the parent directory.
1485 ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487 X"$as_myself" : 'X\(//\)[^/]' \| \
1488 X"$as_myself" : 'X\(//\)$' \| \
1489 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1513 ac_srcdir_defaulted=no
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518 { (exit 1); exit 1; }; }
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523 { (exit 1); exit 1; }; }
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 for ac_var in $ac_precious_vars; do
1536 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_${ac_var}_value=\$${ac_var}
1538 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1543 # Report the --help message.
1545 if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1549 \`configure' configures libffi 3.0.10rc0 to adapt to many kinds of systems.
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE. See below for descriptions of some of the useful variables.
1556 Defaults for the options are specified in brackets.
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1569 Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1580 For better control, use the options below.
1582 Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1598 --htmldir=DIR html documentation [DOCDIR]
1599 --dvidir=DIR dvi documentation [DOCDIR]
1600 --pdfdir=DIR pdf documentation [DOCDIR]
1601 --psdir=DIR ps documentation [DOCDIR]
1607 --program-prefix=PREFIX prepend PREFIX to installed program names
1608 --program-suffix=SUFFIX append SUFFIX to installed program names
1609 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1612 --build=BUILD configure for building on BUILD [guessed]
1613 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1614 --target=TARGET configure for building compilers for TARGET [HOST]
1618 if test -n "$ac_init_help"; then
1619 case $ac_init_help in
1620 short | recursive ) echo "Configuration of libffi 3.0.10rc0:";;
1625 --disable-option-checking ignore unrecognized --enable/--with options
1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1628 --disable-dependency-tracking speeds up one-time build
1629 --enable-dependency-tracking do not reject slow dependency extractors
1630 --enable-shared[=PKGS] build shared libraries [default=yes]
1631 --enable-static[=PKGS] build static libraries [default=yes]
1632 --enable-fast-install[=PKGS]
1633 optimize for fast installation [default=yes]
1634 --disable-libtool-lock avoid locking (might break parallel builds)
1635 --enable-maintainer-mode enable make rules and dependencies not useful
1636 (and sometimes confusing) to the casual installer
1637 --enable-debug debugging mode
1638 --disable-structs omit code for struct support
1639 --disable-raw-api make the raw api unavailable
1640 --enable-purify-safety purify-safe mode
1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1645 --with-pic try to use only PIC/non-PIC objects [default=use
1647 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1649 Some influential environment variables:
1650 CC C compiler command
1651 CFLAGS C compiler flags
1652 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1653 nonstandard directory <lib dir>
1654 LIBS libraries to pass to the linker, e.g. -l<library>
1655 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1656 you have headers in a nonstandard directory <include dir>
1657 CCAS assembler compiler command (defaults to CC)
1658 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1661 Use these variables to override the choices made by `configure' or to help
1662 it to find libraries and programs with nonstandard names/locations.
1664 Report bugs to <http://gcc.gnu.org/bugs.html>.
1669 if test "$ac_init_help" = "recursive"; then
1670 # If there are subdirs, report their specific --help.
1671 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1672 test -d "$ac_dir" ||
1673 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1681 # A ".." for each directory in $ac_dir_suffix.
1682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1683 case $ac_top_builddir_sub in
1684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1688 ac_abs_top_builddir=$ac_pwd
1689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1690 # for backward compatibility:
1691 ac_top_builddir=$ac_top_build_prefix
1694 .) # We are building in place.
1696 ac_top_srcdir=$ac_top_builddir_sub
1697 ac_abs_top_srcdir=$ac_pwd ;;
1698 [\\/]* | ?:[\\/]* ) # Absolute name.
1699 ac_srcdir=$srcdir$ac_dir_suffix;
1700 ac_top_srcdir=$srcdir
1701 ac_abs_top_srcdir=$srcdir ;;
1703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1704 ac_top_srcdir=$ac_top_build_prefix$srcdir
1705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1709 cd "$ac_dir" || { ac_status=$?; continue; }
1710 # Check for guested configure.
1711 if test -f "$ac_srcdir/configure.gnu"; then
1713 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1714 elif test -f "$ac_srcdir/configure"; then
1716 $SHELL "$ac_srcdir/configure" --help=recursive
1718 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1720 cd "$ac_pwd" || { ac_status=$?; break; }
1724 test -n "$ac_init_help" && exit $ac_status
1725 if $ac_init_version; then
1727 libffi configure 3.0.10rc0
1728 generated by GNU Autoconf 2.63
1730 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1731 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1732 This configure script is free software; the Free Software Foundation
1733 gives unlimited permission to copy, distribute and modify it.
1737 cat >config.log <<_ACEOF
1738 This file contains any messages produced by compilers while
1739 running configure, to aid debugging if configure makes a mistake.
1741 It was created by libffi $as_me 3.0.10rc0, which was
1742 generated by GNU Autoconf 2.63. Invocation command line was
1754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1763 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1764 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1767 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1768 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1769 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 test -z "$as_dir" && as_dir=.
1778 $as_echo "PATH: $as_dir"
1794 # Keep a trace of the command line.
1795 # Strip out --no-create and --no-recursion so they do not pile up.
1796 # Strip out --silent because we don't want to record it for future runs.
1797 # Also quote any args containing shell meta-characters.
1798 # Make two passes to allow for proper duplicate-argument suppression.
1802 ac_must_keep_next=false
1808 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1810 | -silent | --silent | --silen | --sile | --sil)
1813 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1818 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1819 if test $ac_must_keep_next = true; then
1820 ac_must_keep_next=false # Got value, back to normal.
1823 *=* | --config-cache | -C | -disable-* | --disable-* \
1824 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1825 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1826 | -with-* | --with-* | -without-* | --without-* | --x)
1827 case "$ac_configure_args0 " in
1828 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1831 -* ) ac_must_keep_next=true ;;
1834 ac_configure_args="$ac_configure_args '$ac_arg'"
1839 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1840 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1842 # When interrupted or exit'd, cleanup temporary files, and complete
1843 # config.log. We remove comments because anyway the quotes in there
1844 # would cause problems or look ugly.
1845 # WARNING: Use '\'' to represent an apostrophe within the trap.
1846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1847 trap 'exit_status=$?
1848 # Save into config.log some information that might help in debugging.
1853 ## ---------------- ##
1854 ## Cache variables. ##
1855 ## ---------------- ##
1858 # The following way of writing the cache mishandles newlines in values,
1860 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861 eval ac_val=\$$ac_var
1865 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1869 _ | IFS | as_nl) ;; #(
1870 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1871 *) $as_unset $ac_var ;;
1876 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877 *${as_nl}ac_space=\ *)
1879 "s/'\''/'\''\\\\'\'''\''/g;
1880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1891 ## ----------------- ##
1892 ## Output variables. ##
1893 ## ----------------- ##
1896 for ac_var in $ac_subst_vars
1898 eval ac_val=\$$ac_var
1900 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 $as_echo "$ac_var='\''$ac_val'\''"
1906 if test -n "$ac_subst_files"; then
1908 ## ------------------- ##
1909 ## File substitutions. ##
1910 ## ------------------- ##
1913 for ac_var in $ac_subst_files
1915 eval ac_val=\$$ac_var
1917 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1919 $as_echo "$ac_var='\''$ac_val'\''"
1924 if test -s confdefs.h; then
1934 test "$ac_signal" != 0 &&
1935 $as_echo "$as_me: caught signal $ac_signal"
1936 $as_echo "$as_me: exit $exit_status"
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1942 for ac_signal in 1 2 13 15; do
1943 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1950 # Predefined preprocessor variables.
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_NAME "$PACKAGE_NAME"
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_STRING "$PACKAGE_STRING"
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1977 # Let the site file select an alternate cache file if it wants to.
1978 # Prefer an explicitly selected file to automatically selected ones.
1981 if test -n "$CONFIG_SITE"; then
1982 ac_site_file1=$CONFIG_SITE
1983 elif test "x$prefix" != xNONE; then
1984 ac_site_file1=$prefix/share/config.site
1985 ac_site_file2=$prefix/etc/config.site
1987 ac_site_file1=$ac_default_prefix/share/config.site
1988 ac_site_file2=$ac_default_prefix/etc/config.site
1990 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1992 test "x$ac_site_file" = xNONE && continue
1993 if test -r "$ac_site_file"; then
1994 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1995 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1996 sed 's/^/| /' "$ac_site_file" >&5
2001 if test -r "$cache_file"; then
2002 # Some versions of bash will fail to source /dev/null (special
2003 # files actually), so we avoid doing that.
2004 if test -f "$cache_file"; then
2005 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2006 $as_echo "$as_me: loading cache $cache_file" >&6;}
2008 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2009 *) . "./$cache_file";;
2013 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2014 $as_echo "$as_me: creating cache $cache_file" >&6;}
2018 # Check that the precious variables saved in the cache have kept the same
2020 ac_cache_corrupted=false
2021 for ac_var in $ac_precious_vars; do
2022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2023 eval ac_new_set=\$ac_env_${ac_var}_set
2024 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2025 eval ac_new_val=\$ac_env_${ac_var}_value
2026 case $ac_old_set,$ac_new_set in
2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2032 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2034 ac_cache_corrupted=: ;;
2037 if test "x$ac_old_val" != "x$ac_new_val"; then
2038 # differences in whitespace do not lead to failure.
2039 ac_old_val_w=`echo x $ac_old_val`
2040 ac_new_val_w=`echo x $ac_new_val`
2041 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2042 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2043 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2044 ac_cache_corrupted=:
2046 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2047 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2048 eval $ac_var=\$ac_old_val
2050 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2051 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2052 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2053 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2056 # Pass precious variables to config.status.
2057 if test "$ac_new_set" = set; then
2059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 *) ac_arg=$ac_var=$ac_new_val ;;
2062 case " $ac_configure_args " in
2063 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2064 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2068 if $ac_cache_corrupted; then
2069 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2072 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2073 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2074 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2075 { (exit 1); exit 1; }; }
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109 ac_config_headers="$ac_config_headers fficonfig.h"
2113 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2114 if test -f "$ac_dir/install-sh"; then
2116 ac_install_sh="$ac_aux_dir/install-sh -c"
2118 elif test -f "$ac_dir/install.sh"; then
2120 ac_install_sh="$ac_aux_dir/install.sh -c"
2122 elif test -f "$ac_dir/shtool"; then
2124 ac_install_sh="$ac_aux_dir/shtool install -c"
2128 if test -z "$ac_aux_dir"; then
2129 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2130 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2131 { (exit 1); exit 1; }; }
2134 # These three variables are undocumented and unsupported,
2135 # and are intended to be withdrawn in a future Autoconf release.
2136 # They can cause serious problems if a builder's source tree is in a directory
2137 # whose full name contains unusual characters.
2138 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2139 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2140 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147 { (exit 1); exit 1; }; }
2149 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2150 $as_echo_n "checking build system type... " >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152 $as_echo_n "(cached) " >&6
2154 ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160 { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2167 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 $as_echo "$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2171 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2173 { (exit 1); exit 1; }; };;
2176 ac_save_IFS=$IFS; IFS='-'
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2189 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2190 $as_echo_n "checking host system type... " >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192 $as_echo_n "(cached) " >&6
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2204 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 $as_echo "$ac_cv_host" >&6; }
2208 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2210 { (exit 1); exit 1; }; };;
2213 ac_save_IFS=$IFS; IFS='-'
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2226 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2227 $as_echo_n "checking target system type... " >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229 $as_echo_n "(cached) " >&6
2231 if test "x$target_alias" = x; then
2232 ac_cv_target=$ac_cv_host
2234 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237 { (exit 1); exit 1; }; }
2241 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 $as_echo "$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2245 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2247 { (exit 1); exit 1; }; };;
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266 test "$program_prefix$program_suffix$program_transform_name" = \
2268 program_prefix=${target_alias}-
2269 target_alias=${target_alias-$host_alias}
2271 . ${srcdir}/configure.host
2273 am__api_version='1.11'
2275 # Find a good install program. We prefer a C program (faster),
2276 # so one script is as good as another. But avoid the broken or
2277 # incompatible versions:
2278 # SysV /etc/install, /usr/sbin/install
2279 # SunOS /usr/etc/install
2280 # IRIX /sbin/install
2282 # AmigaOS /C/install, which installs bootblocks on floppy discs
2283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2286 # OS/2's system install, which has a completely different semantic
2287 # ./install, which can be erroneously created by make from ./install.sh.
2288 # Reject install programs that cannot install multiple files.
2289 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2290 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2291 if test -z "$INSTALL"; then
2292 if test "${ac_cv_path_install+set}" = set; then
2293 $as_echo_n "(cached) " >&6
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 test -z "$as_dir" && as_dir=.
2300 # Account for people who put trailing slashes in PATH elements.
2302 ./ | .// | /cC/* | \
2303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2304 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2307 # OSF1 and SCO ODT 3.0 have their own names for install.
2308 # Don't use installbsd from OSF since it installs stuff as root
2310 for ac_prog in ginstall scoinst install; do
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2313 if test $ac_prog = install &&
2314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315 # AIX install. It has an incompatible calling convention.
2317 elif test $ac_prog = install &&
2318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2319 # program-specific install script used by HP pwplus--don't use.
2322 rm -rf conftest.one conftest.two conftest.dir
2323 echo one > conftest.one
2324 echo two > conftest.two
2326 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2327 test -s conftest.one && test -s conftest.two &&
2328 test -s conftest.dir/conftest.one &&
2329 test -s conftest.dir/conftest.two
2331 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2344 rm -rf conftest.one conftest.two conftest.dir
2347 if test "${ac_cv_path_install+set}" = set; then
2348 INSTALL=$ac_cv_path_install
2350 # As a last resort, use the slow shell script. Don't cache a
2351 # value for INSTALL within a source directory, because that will
2352 # break other packages using the cache if that directory is
2353 # removed, or if the value is a relative name.
2354 INSTALL=$ac_install_sh
2357 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2358 $as_echo "$INSTALL" >&6; }
2360 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2361 # It thinks the first close brace ends the variable substitution.
2362 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2364 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2366 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2368 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2369 $as_echo_n "checking whether build environment is sane... " >&6; }
2372 echo timestamp > conftest.file
2373 # Reject unsafe characters in $srcdir or the absolute working directory
2374 # name. Accept space and tab only in the latter.
2378 *[\\\"\#\$\&\'\`$am_lf]*)
2379 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2380 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2381 { (exit 1); exit 1; }; };;
2384 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2385 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2386 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2387 { (exit 1); exit 1; }; };;
2390 # Do `set' in a subshell so we don't clobber the current shell's
2391 # arguments. Must try -L first in case configure is actually a
2392 # symlink; some systems play weird games with the mod time of symlinks
2393 # (eg FreeBSD returns the mod time of the symlink's containing
2396 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2397 if test "$*" = "X"; then
2399 set X `ls -t "$srcdir/configure" conftest.file`
2402 if test "$*" != "X $srcdir/configure conftest.file" \
2403 && test "$*" != "X conftest.file $srcdir/configure"; then
2405 # If neither matched, then we have a broken ls. This can happen
2406 # if, for instance, CONFIG_SHELL is bash and it inherits a
2407 # broken ls alias from the environment. This has actually
2408 # happened. Such a system could not be considered "sane".
2409 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2410 alias in your environment" >&5
2411 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2412 alias in your environment" >&2;}
2413 { (exit 1); exit 1; }; }
2416 test "$2" = conftest.file
2422 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2423 Check your system clock" >&5
2424 $as_echo "$as_me: error: newly created file is older than distributed files!
2425 Check your system clock" >&2;}
2426 { (exit 1); exit 1; }; }
2428 { $as_echo "$as_me:$LINENO: result: yes" >&5
2429 $as_echo "yes" >&6; }
2430 test "$program_prefix" != NONE &&
2431 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2432 # Use a double $ so make ignores it.
2433 test "$program_suffix" != NONE &&
2434 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2435 # Double any \ or $.
2436 # By default was `s,x,x', remove it if useless.
2437 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2438 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2440 # expand $ac_aux_dir to an absolute path
2441 am_aux_dir=`cd $ac_aux_dir && pwd`
2443 if test x"${MISSING+set}" != xset; then
2446 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2448 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2451 # Use eval to expand $SHELL
2452 if eval "$MISSING --run true"; then
2453 am_missing_run="$MISSING --run "
2456 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2457 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2460 if test x"${install_sh}" != xset; then
2463 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2465 install_sh="\${SHELL} $am_aux_dir/install-sh"
2469 # Installed binaries are usually stripped using `strip' when the user
2470 # run `make install-strip'. However `strip' might not be the right
2471 # tool to use in cross-compilation environments, therefore Automake
2472 # will honor the `STRIP' environment variable to overrule this program.
2473 if test "$cross_compiling" != no; then
2474 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2476 set dummy ${ac_tool_prefix}strip; ac_word=$2
2477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if test "${ac_cv_prog_STRIP+set}" = set; then
2480 $as_echo_n "(cached) " >&6
2482 if test -n "$STRIP"; then
2483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 STRIP=$ac_cv_prog_STRIP
2503 if test -n "$STRIP"; then
2504 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2505 $as_echo "$STRIP" >&6; }
2507 { $as_echo "$as_me:$LINENO: result: no" >&5
2508 $as_echo "no" >&6; }
2513 if test -z "$ac_cv_prog_STRIP"; then
2515 # Extract the first word of "strip", so it can be a program name with args.
2516 set dummy strip; ac_word=$2
2517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2520 $as_echo_n "(cached) " >&6
2522 if test -n "$ac_ct_STRIP"; then
2523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_STRIP="strip"
2533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2543 if test -n "$ac_ct_STRIP"; then
2544 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2545 $as_echo "$ac_ct_STRIP" >&6; }
2547 { $as_echo "$as_me:$LINENO: result: no" >&5
2548 $as_echo "no" >&6; }
2551 if test "x$ac_ct_STRIP" = x; then
2554 case $cross_compiling:$ac_tool_warned in
2556 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2558 ac_tool_warned=yes ;;
2563 STRIP="$ac_cv_prog_STRIP"
2567 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2569 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2570 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2571 if test -z "$MKDIR_P"; then
2572 if test "${ac_cv_path_mkdir+set}" = set; then
2573 $as_echo_n "(cached) " >&6
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2579 test -z "$as_dir" && as_dir=.
2580 for ac_prog in mkdir gmkdir; do
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2583 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2584 'mkdir (GNU coreutils) '* | \
2585 'mkdir (coreutils) '* | \
2586 'mkdir (fileutils) '4.1*)
2587 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2597 if test "${ac_cv_path_mkdir+set}" = set; then
2598 MKDIR_P="$ac_cv_path_mkdir -p"
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for MKDIR_P within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 test -d ./--version && rmdir ./--version
2605 MKDIR_P="$ac_install_sh -d"
2608 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2609 $as_echo "$MKDIR_P" >&6; }
2613 [\\/$]* | ?:[\\/]*) ;;
2614 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2617 for ac_prog in gawk mawk nawk awk
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 $as_echo_n "checking for $ac_word... " >&6; }
2623 if test "${ac_cv_prog_AWK+set}" = set; then
2624 $as_echo_n "(cached) " >&6
2626 if test -n "$AWK"; then
2627 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_AWK="$ac_prog"
2637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 if test -n "$AWK"; then
2648 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2649 $as_echo "$AWK" >&6; }
2651 { $as_echo "$as_me:$LINENO: result: no" >&5
2652 $as_echo "no" >&6; }
2656 test -n "$AWK" && break
2659 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2660 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2662 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2663 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2664 $as_echo_n "(cached) " >&6
2666 cat >conftest.make <<\_ACEOF
2669 @echo '@@@%%%=$(MAKE)=@@@%%%'
2671 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2672 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2674 eval ac_cv_prog_make_${ac_make}_set=yes;;
2676 eval ac_cv_prog_make_${ac_make}_set=no;;
2680 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2681 { $as_echo "$as_me:$LINENO: result: yes" >&5
2682 $as_echo "yes" >&6; }
2685 { $as_echo "$as_me:$LINENO: result: no" >&5
2686 $as_echo "no" >&6; }
2687 SET_MAKE="MAKE=${MAKE-make}"
2690 rm -rf .tst 2>/dev/null
2691 mkdir .tst 2>/dev/null
2692 if test -d .tst; then
2697 rmdir .tst 2>/dev/null
2699 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2700 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2701 # is not polluted with repeated "-I."
2702 am__isrc=' -I$(srcdir)'
2703 # test to see if srcdir already configured
2704 if test -f $srcdir/config.status; then
2705 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2706 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2707 { (exit 1); exit 1; }; }
2711 # test whether we have cygpath
2712 if test -z "$CYGPATH_W"; then
2713 if (cygpath --version) >/dev/null 2>/dev/null; then
2714 CYGPATH_W='cygpath -w'
2721 # Define the identity of the package.
2726 cat >>confdefs.h <<_ACEOF
2727 #define PACKAGE "$PACKAGE"
2731 cat >>confdefs.h <<_ACEOF
2732 #define VERSION "$VERSION"
2735 # Some tools Automake needs.
2737 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2740 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2743 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2746 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2749 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2751 # We need awk for the "check" target. The system "awk" is bad on
2753 # Always define AMTAR for backward compatibility.
2755 AMTAR=${AMTAR-"${am_missing_run}tar"}
2757 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2764 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2765 # We must force CC to /not/ be precious variables; otherwise
2766 # the wrong, non-multilib-adjusted value will be used in multilibs.
2767 # As a side effect, we have to subst CFLAGS ourselves.
2768 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
2769 # defaults of its own if none are provided.
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 $as_echo_n "(cached) " >&6
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2812 { $as_echo "$as_me:$LINENO: result: no" >&5
2813 $as_echo "no" >&6; }
2818 if test -z "$ac_cv_prog_CC"; then
2820 # Extract the first word of "gcc", so it can be a program name with args.
2821 set dummy gcc; ac_word=$2
2822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2825 $as_echo_n "(cached) " >&6
2827 if test -n "$ac_ct_CC"; then
2828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_ac_ct_CC="gcc"
2838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2848 if test -n "$ac_ct_CC"; then
2849 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2850 $as_echo "$ac_ct_CC" >&6; }
2852 { $as_echo "$as_me:$LINENO: result: no" >&5
2853 $as_echo "no" >&6; }
2856 if test "x$ac_ct_CC" = x; then
2859 case $cross_compiling:$ac_tool_warned in
2861 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2863 ac_tool_warned=yes ;;
2871 if test -z "$CC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}cc; ac_word=$2
2875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then
2878 $as_echo_n "(cached) " >&6
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_CC="${ac_tool_prefix}cc"
2891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 if test -n "$CC"; then
2902 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2903 $as_echo "$CC" >&6; }
2905 { $as_echo "$as_me:$LINENO: result: no" >&5
2906 $as_echo "no" >&6; }
2912 if test -z "$CC"; then
2913 # Extract the first word of "cc", so it can be a program name with args.
2914 set dummy cc; ac_word=$2
2915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if test "${ac_cv_prog_CC+set}" = set; then
2918 $as_echo_n "(cached) " >&6
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2932 ac_prog_rejected=yes
2936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 if test $ac_prog_rejected = yes; then
2944 # We found a bogon in the path, so make sure we never use it.
2945 set dummy $ac_cv_prog_CC
2947 if test $# != 0; then
2948 # We chose a different compiler from the bogus one.
2949 # However, it has the same basename, so the bogon will be chosen
2950 # first if we set CC to just the basename; use the full file name.
2952 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2962 { $as_echo "$as_me:$LINENO: result: no" >&5
2963 $as_echo "no" >&6; }
2968 if test -z "$CC"; then
2969 if test -n "$ac_tool_prefix"; then
2970 for ac_prog in cl.exe
2972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2974 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if test "${ac_cv_prog_CC+set}" = set; then
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3004 { $as_echo "$as_me:$LINENO: result: no" >&5
3005 $as_echo "no" >&6; }
3009 test -n "$CC" && break
3012 if test -z "$CC"; then
3014 for ac_prog in cl.exe
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$ac_ct_CC"; then
3024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_ac_ct_CC="$ac_prog"
3034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3046 $as_echo "$ac_ct_CC" >&6; }
3048 { $as_echo "$as_me:$LINENO: result: no" >&5
3049 $as_echo "no" >&6; }
3053 test -n "$ac_ct_CC" && break
3056 if test "x$ac_ct_CC" = x; then
3059 case $cross_compiling:$ac_tool_warned in
3061 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063 ac_tool_warned=yes ;;
3072 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3075 See \`config.log' for more details." >&5
3076 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." >&2;}
3078 { (exit 1); exit 1; }; }; }
3080 # Provide some information about the compiler.
3081 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3084 { (ac_try="$ac_compiler --version >&5"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090 $as_echo "$ac_try_echo") >&5
3091 (eval "$ac_compiler --version >&5") 2>&5
3093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }
3095 { (ac_try="$ac_compiler -v >&5"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101 $as_echo "$ac_try_echo") >&5
3102 (eval "$ac_compiler -v >&5") 2>&5
3104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }
3106 { (ac_try="$ac_compiler -V >&5"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3112 $as_echo "$ac_try_echo") >&5
3113 (eval "$ac_compiler -V >&5") 2>&5
3115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3133 ac_clean_files_save=$ac_clean_files
3134 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3135 # Try to create an executable without -o first, disregard a.out.
3136 # It will help us diagnose broken compilers, and finding out an intuition
3138 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3139 $as_echo_n "checking for C compiler default output file name... " >&6; }
3140 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3142 # The possible output files:
3143 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3146 for ac_file in $ac_files
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3150 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3155 if { (ac_try="$ac_link_default"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3161 $as_echo "$ac_try_echo") >&5
3162 (eval "$ac_link_default") 2>&5
3164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; then
3166 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3167 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3168 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3169 # so that the user can short-circuit this test for compilers unknown to
3171 for ac_file in $ac_files ''
3173 test -f "$ac_file" || continue
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3178 # We found the default executable, but exeext='' is most
3182 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3184 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 # We set ac_cv_exeext here because the later test for it is not
3187 # safe: cross compilers may not add the suffix if given an `-o'
3188 # argument, so we may need to know it at that point already.
3189 # Even if this section looks crufty: it has the advantage of
3196 test "$ac_cv_exeext" = no && ac_cv_exeext=
3202 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3203 $as_echo "$ac_file" >&6; }
3204 if test -z "$ac_file"; then
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3211 See \`config.log' for more details." >&5
3212 $as_echo "$as_me: error: C compiler cannot create executables
3213 See \`config.log' for more details." >&2;}
3214 { (exit 77); exit 77; }; }; }
3217 ac_exeext=$ac_cv_exeext
3219 # Check that the compiler produces executables we can run. If not, either
3220 # the compiler is broken, or we cross compile.
3221 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3222 $as_echo_n "checking whether the C compiler works... " >&6; }
3223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3224 # If not cross compiling, check that we can run a simple program.
3225 if test "$cross_compiling" != yes; then
3226 if { ac_try='./$ac_file'
3227 { (case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$ac_try_echo") >&5
3233 (eval "$ac_try") 2>&5
3235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3239 if test "$cross_compiling" = maybe; then
3242 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3245 If you meant to cross compile, use \`--host'.
3246 See \`config.log' for more details." >&5
3247 $as_echo "$as_me: error: cannot run C compiled programs.
3248 If you meant to cross compile, use \`--host'.
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }; }
3254 { $as_echo "$as_me:$LINENO: result: yes" >&5
3255 $as_echo "yes" >&6; }
3257 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3258 ac_clean_files=$ac_clean_files_save
3259 # Check that the compiler produces executables we can run. If not, either
3260 # the compiler is broken, or we cross compile.
3261 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3262 $as_echo_n "checking whether we are cross compiling... " >&6; }
3263 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3264 $as_echo "$cross_compiling" >&6; }
3266 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3267 $as_echo_n "checking for suffix of executables... " >&6; }
3268 if { (ac_try="$ac_link"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_link") 2>&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; then
3279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3281 # work properly (i.e., refer to `conftest.exe'), while it won't with
3283 for ac_file in conftest.exe conftest conftest.*; do
3284 test -f "$ac_file" || continue
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3296 See \`config.log' for more details." >&5
3297 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3298 See \`config.log' for more details." >&2;}
3299 { (exit 1); exit 1; }; }; }
3302 rm -f conftest$ac_cv_exeext
3303 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3304 $as_echo "$ac_cv_exeext" >&6; }
3306 rm -f conftest.$ac_ext
3307 EXEEXT=$ac_cv_exeext
3309 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3310 $as_echo_n "checking for suffix of object files... " >&6; }
3311 if test "${ac_cv_objext+set}" = set; then
3312 $as_echo_n "(cached) " >&6
3314 cat >conftest.$ac_ext <<_ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3329 rm -f conftest.o conftest.obj
3330 if { (ac_try="$ac_compile"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336 $as_echo "$ac_try_echo") >&5
3337 (eval "$ac_compile") 2>&5
3339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; then
3341 for ac_file in conftest.o conftest.obj conftest.*; do
3342 test -f "$ac_file" || continue;
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3350 $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3356 See \`config.log' for more details." >&5
3357 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3358 See \`config.log' for more details." >&2;}
3359 { (exit 1); exit 1; }; }; }
3362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3364 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3365 $as_echo "$ac_cv_objext" >&6; }
3366 OBJEXT=$ac_cv_objext
3368 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3369 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3370 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3371 $as_echo_n "(cached) " >&6
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3398 $as_echo "$ac_try_echo") >&5
3399 (eval "$ac_compile") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } && {
3406 test -z "$ac_c_werror_flag" ||
3407 test ! -s conftest.err
3408 } && test -s conftest.$ac_objext; then
3411 $as_echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3421 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3422 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3423 if test $ac_compiler_gnu = yes; then
3428 ac_test_CFLAGS=${CFLAGS+set}
3429 ac_save_CFLAGS=$CFLAGS
3430 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3431 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3432 if test "${ac_cv_prog_cc_g+set}" = set; then
3433 $as_echo_n "(cached) " >&6
3435 ac_save_c_werror_flag=$ac_c_werror_flag
3436 ac_c_werror_flag=yes
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3461 $as_echo "$ac_try_echo") >&5
3462 (eval "$ac_compile") 2>conftest.er1
3464 grep -v '^ *+' conftest.er1 >conftest.err
3466 cat conftest.err >&5
3467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } && {
3469 test -z "$ac_c_werror_flag" ||
3470 test ! -s conftest.err
3471 } && test -s conftest.$ac_objext; then
3474 $as_echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3493 rm -f conftest.$ac_objext
3494 if { (ac_try="$ac_compile"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500 $as_echo "$ac_try_echo") >&5
3501 (eval "$ac_compile") 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } && {
3508 test -z "$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3510 } && test -s conftest.$ac_objext; then
3513 $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541 (eval "$ac_compile") 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && {
3548 test -z "$ac_c_werror_flag" ||
3549 test ! -s conftest.err
3550 } && test -s conftest.$ac_objext; then
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_c_werror_flag=$ac_save_c_werror_flag
3568 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3569 $as_echo "$ac_cv_prog_cc_g" >&6; }
3570 if test "$ac_test_CFLAGS" = set; then
3571 CFLAGS=$ac_save_CFLAGS
3572 elif test $ac_cv_prog_cc_g = yes; then
3573 if test "$GCC" = yes; then
3579 if test "$GCC" = yes; then
3585 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3587 if test "${ac_cv_prog_cc_c89+set}" = set; then
3588 $as_echo_n "(cached) " >&6
3590 ac_cv_prog_cc_c89=no
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3616 s = g (p, va_arg (v,int));
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3622 function prototypes and stuff, but not '\xHH' hex character constants.
3623 These don't provoke an error unfortunately, instead are silently treated
3624 as 'x'. The following induces an error, until -std is added to get
3625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3626 array size at least. It's necessary to write '\x00'==0 to get something
3627 that's true only with -std. */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631 inside strings and character constants. */
3633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3635 int test (int i, double x);
3636 struct s1 {int (*f) (int a);};
3637 struct s2 {int (*f) (double a);};
3638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 CC="$ac_save_CC $ac_arg"
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661 (eval "$ac_compile") 2>conftest.er1
3663 grep -v '^ *+' conftest.er1 >conftest.err
3665 cat conftest.err >&5
3666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } && {
3668 test -z "$ac_c_werror_flag" ||
3669 test ! -s conftest.err
3670 } && test -s conftest.$ac_objext; then
3671 ac_cv_prog_cc_c89=$ac_arg
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3679 rm -f core conftest.err conftest.$ac_objext
3680 test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 rm -f conftest.$ac_ext
3687 case "x$ac_cv_prog_cc_c89" in
3689 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3690 $as_echo "none needed" >&6; } ;;
3692 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3693 $as_echo "unsupported" >&6; } ;;
3695 CC="$CC $ac_cv_prog_cc_c89"
3696 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3697 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 DEPDIR="${am__leading_dot}deps"
3708 ac_config_commands="$ac_config_commands depfiles"
3711 am_make=${MAKE-make}
3712 cat > confinc << 'END'
3714 @echo this is the am__doit target
3717 # If we don't find an include directive, just comment out the code.
3718 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3719 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3723 # First try GNU make style include.
3724 echo "include confinc" > confmf
3725 # Ignore all kinds of additional output from `make'.
3726 case `$am_make -s -f confmf 2> /dev/null` in #(
3727 *the\ am__doit\ target*)
3733 # Now try BSD make style include.
3734 if test "$am__include" = "#"; then
3735 echo '.include "confinc"' > confmf
3736 case `$am_make -s -f confmf 2> /dev/null` in #(
3737 *the\ am__doit\ target*)
3738 am__include=.include
3746 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3747 $as_echo "$_am_result" >&6; }
3748 rm -f confinc confmf
3750 # Check whether --enable-dependency-tracking was given.
3751 if test "${enable_dependency_tracking+set}" = set; then
3752 enableval=$enable_dependency_tracking;
3755 if test "x$enable_dependency_tracking" != xno; then
3756 am_depcomp="$ac_aux_dir/depcomp"
3759 if test "x$enable_dependency_tracking" != xno; then
3769 depcc="$CC" am_compiler_list=
3771 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3774 $as_echo_n "(cached) " >&6
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816 # Solaris 8's {/usr,}/bin/sh.
3817 touch sub/conftst$i.h
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle `-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3833 # after this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested
3835 if test "x$enable_dependency_tracking" = xyes; then
3841 msvisualcpp | msvcmsys)
3842 # This compiler won't grok `-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=$am__obj \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3877 am_cv_CC_dependencies_compiler_type=none
3881 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_FALSE='#'
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
3902 # By default we simply use the C compiler to build assembly code.
3904 test "${CCAS+set}" = set || CCAS=$CC
3905 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3909 depcc="$CCAS" am_compiler_list=
3911 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3912 $as_echo_n "checking dependency style of $depcc... " >&6; }
3913 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3914 $as_echo_n "(cached) " >&6
3916 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3917 # We make a subdir and do the tests there. Otherwise we can end up
3918 # making bogus files that we don't know about and never remove. For
3919 # instance it was reported that on HP-UX the gcc test will end up
3920 # making a dummy file named `D' -- because `-MD' means `put the output
3923 # Copy depcomp to subdir because otherwise we won't find it if we're
3924 # using a relative directory.
3925 cp "$am_depcomp" conftest.dir
3927 # We will build objects and dependencies in a subdirectory because
3928 # it helps to detect inapplicable dependency modes. For instance
3929 # both Tru64's cc and ICC support -MD to output dependencies as a
3930 # side effect of compilation, but ICC will put the dependencies in
3931 # the current directory while Tru64 will put them in the object
3935 am_cv_CCAS_dependencies_compiler_type=none
3936 if test "$am_compiler_list" = ""; then
3937 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3942 for depmode in $am_compiler_list; do
3943 # Setup a source with many dependencies, because some compilers
3944 # like to wrap large dependency lists on column 80 (with \), and
3945 # we should not choose a depcomp mode which is confused by this.
3947 # We need to recreate these files for each test, as the compiler may
3948 # overwrite some of them when testing with obscure command lines.
3949 # This happens at least with the AIX C compiler.
3951 for i in 1 2 3 4 5 6; do
3952 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3953 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3954 # Solaris 8's {/usr,}/bin/sh.
3955 touch sub/conftst$i.h
3957 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3959 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3960 # mode. It turns out that the SunPro C++ compiler does not properly
3961 # handle `-M -o', and we need to detect this. Also, some Intel
3962 # versions had trouble with output in subdirs
3963 am__obj=sub/conftest.${OBJEXT-o}
3964 am__minus_obj="-o $am__obj"
3967 # This depmode causes a compiler race in universal mode.
3968 test "$am__universal" = false || continue
3971 # after this tag, mechanisms are not by side-effect, so they'll
3972 # only be used when explicitly requested
3973 if test "x$enable_dependency_tracking" = xyes; then
3979 msvisualcpp | msvcmsys)
3980 # This compiler won't grok `-c -o', but also, the minuso test has
3981 # not run yet. These depmodes are late enough in the game, and
3982 # so weak that their functioning should not be impacted.
3983 am__obj=conftest.${OBJEXT-o}
3988 if depmode=$depmode \
3989 source=sub/conftest.c object=$am__obj \
3990 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3991 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3992 >/dev/null 2>conftest.err &&
3993 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3995 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3997 # icc doesn't choke on unknown options, it will just issue warnings
3998 # or remarks (even with -Werror). So we grep stderr for any message
3999 # that says an option was ignored or not supported.
4000 # When given -MP, icc 7.0 and 7.1 complain thusly:
4001 # icc: Command line warning: ignoring option '-M'; no argument required
4002 # The diagnosis changed in icc 8.0:
4003 # icc: Command line remark: option '-MP' not supported
4004 if (grep 'ignoring option' conftest.err ||
4005 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4006 am_cv_CCAS_dependencies_compiler_type=$depmode
4015 am_cv_CCAS_dependencies_compiler_type=none
4019 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4020 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4021 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4024 test "x$enable_dependency_tracking" != xno \
4025 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4026 am__fastdepCCAS_TRUE=
4027 am__fastdepCCAS_FALSE='#'
4029 am__fastdepCCAS_TRUE='#'
4030 am__fastdepCCAS_FALSE=
4034 if test "x$CC" != xcc; then
4035 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4036 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4038 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4039 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4041 set dummy $CC; ac_cc=`$as_echo "$2" |
4042 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4043 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4044 $as_echo_n "(cached) " >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4061 # Make sure it works both with $CC and with simple cc.
4062 # We do the test twice because some compilers refuse to overwrite an
4063 # existing .o file with -o, though they will create one.
4064 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4066 if { (case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4071 $as_echo "$ac_try_echo") >&5
4072 (eval "$ac_try") 2>&5
4074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4081 $as_echo "$ac_try_echo") >&5
4082 (eval "$ac_try") 2>&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); };
4087 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4088 if test "x$CC" != xcc; then
4089 # Test first that cc exists at all.
4090 if { ac_try='cc -c conftest.$ac_ext >&5'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4096 $as_echo "$ac_try_echo") >&5
4097 (eval "$ac_try") 2>&5
4099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4103 if { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109 (eval "$ac_try") 2>&5
4111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4118 $as_echo "$ac_try_echo") >&5
4119 (eval "$ac_try") 2>&5
4121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); };
4127 # cc exists but doesn't like -o.
4128 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4133 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4135 rm -f core conftest*
4138 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4139 { $as_echo "$as_me:$LINENO: result: yes" >&5
4140 $as_echo "yes" >&6; }
4142 { $as_echo "$as_me:$LINENO: result: no" >&5
4143 $as_echo "no" >&6; }
4145 cat >>confdefs.h <<\_ACEOF
4146 #define NO_MINUS_C_MINUS_O 1
4151 # FIXME: we rely on the cache variable name because
4152 # there is no other way.
4154 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4155 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4156 if test "$am_t" != yes; then
4157 # Losing compiler, so override with the script.
4158 # FIXME: It is wrong to rewrite CC.
4159 # But if we don't then we get into trouble of one sort or another.
4160 # A longer-term fix would be to have automake use am__CC in this case,
4161 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4162 CC="$am_aux_dir/compile $CC"
4168 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4169 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4174 macro_version='2.2.6b'
4175 macro_revision='1.3017'
4189 ltmain="$ac_aux_dir/ltmain.sh"
4191 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4192 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4193 if test "${ac_cv_path_SED+set}" = set; then
4194 $as_echo_n "(cached) " >&6
4196 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4197 for ac_i in 1 2 3 4 5 6 7; do
4198 ac_script="$ac_script$as_nl$ac_script"
4200 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4201 $as_unset ac_script || ac_script=
4202 if test -z "$SED"; then
4203 ac_path_SED_found=false
4204 # Loop through the user's path and test for each of PROGNAME-LIST
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir=.
4210 for ac_prog in sed gsed; do
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4213 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4214 # Check for GNU ac_path_SED and select it if it is found.
4215 # Check for GNU $ac_path_SED
4216 case `"$ac_path_SED" --version 2>&1` in
4218 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4221 $as_echo_n 0123456789 >"conftest.in"
4224 cat "conftest.in" "conftest.in" >"conftest.tmp"
4225 mv "conftest.tmp" "conftest.in"
4226 cp "conftest.in" "conftest.nl"
4227 $as_echo '' >> "conftest.nl"
4228 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230 ac_count=`expr $ac_count + 1`
4231 if test $ac_count -gt ${ac_path_SED_max-0}; then
4232 # Best one so far, save it but keep looking for a better one
4233 ac_cv_path_SED="$ac_path_SED"
4234 ac_path_SED_max=$ac_count
4236 # 10*(2^10) chars as input seems more than enough
4237 test $ac_count -gt 10 && break
4239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 $ac_path_SED_found && break 3
4247 if test -z "$ac_cv_path_SED"; then
4248 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4249 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4250 { (exit 1); exit 1; }; }
4257 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4258 $as_echo "$ac_cv_path_SED" >&6; }
4259 SED="$ac_cv_path_SED"
4262 test -z "$SED" && SED=sed
4263 Xsed="$SED -e 1s/^X//"
4275 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4276 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4277 if test "${ac_cv_path_GREP+set}" = set; then
4278 $as_echo_n "(cached) " >&6
4280 if test -z "$GREP"; then
4281 ac_path_GREP_found=false
4282 # Loop through the user's path and test for each of PROGNAME-LIST
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4287 test -z "$as_dir" && as_dir=.
4288 for ac_prog in grep ggrep; do
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4291 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4292 # Check for GNU ac_path_GREP and select it if it is found.
4293 # Check for GNU $ac_path_GREP
4294 case `"$ac_path_GREP" --version 2>&1` in
4296 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4299 $as_echo_n 0123456789 >"conftest.in"
4302 cat "conftest.in" "conftest.in" >"conftest.tmp"
4303 mv "conftest.tmp" "conftest.in"
4304 cp "conftest.in" "conftest.nl"
4305 $as_echo 'GREP' >> "conftest.nl"
4306 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308 ac_count=`expr $ac_count + 1`
4309 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4310 # Best one so far, save it but keep looking for a better one
4311 ac_cv_path_GREP="$ac_path_GREP"
4312 ac_path_GREP_max=$ac_count
4314 # 10*(2^10) chars as input seems more than enough
4315 test $ac_count -gt 10 && break
4317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4320 $ac_path_GREP_found && break 3
4325 if test -z "$ac_cv_path_GREP"; then
4326 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4327 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4328 { (exit 1); exit 1; }; }
4331 ac_cv_path_GREP=$GREP
4335 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4336 $as_echo "$ac_cv_path_GREP" >&6; }
4337 GREP="$ac_cv_path_GREP"
4340 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4341 $as_echo_n "checking for egrep... " >&6; }
4342 if test "${ac_cv_path_EGREP+set}" = set; then
4343 $as_echo_n "(cached) " >&6
4345 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4346 then ac_cv_path_EGREP="$GREP -E"
4348 if test -z "$EGREP"; then
4349 ac_path_EGREP_found=false
4350 # Loop through the user's path and test for each of PROGNAME-LIST
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 test -z "$as_dir" && as_dir=.
4356 for ac_prog in egrep; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4359 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4360 # Check for GNU ac_path_EGREP and select it if it is found.
4361 # Check for GNU $ac_path_EGREP
4362 case `"$ac_path_EGREP" --version 2>&1` in
4364 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4367 $as_echo_n 0123456789 >"conftest.in"
4370 cat "conftest.in" "conftest.in" >"conftest.tmp"
4371 mv "conftest.tmp" "conftest.in"
4372 cp "conftest.in" "conftest.nl"
4373 $as_echo 'EGREP' >> "conftest.nl"
4374 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376 ac_count=`expr $ac_count + 1`
4377 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4378 # Best one so far, save it but keep looking for a better one
4379 ac_cv_path_EGREP="$ac_path_EGREP"
4380 ac_path_EGREP_max=$ac_count
4382 # 10*(2^10) chars as input seems more than enough
4383 test $ac_count -gt 10 && break
4385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 $ac_path_EGREP_found && break 3
4393 if test -z "$ac_cv_path_EGREP"; then
4394 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4395 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4396 { (exit 1); exit 1; }; }
4399 ac_cv_path_EGREP=$EGREP
4404 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4405 $as_echo "$ac_cv_path_EGREP" >&6; }
4406 EGREP="$ac_cv_path_EGREP"
4409 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4410 $as_echo_n "checking for fgrep... " >&6; }
4411 if test "${ac_cv_path_FGREP+set}" = set; then
4412 $as_echo_n "(cached) " >&6
4414 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4415 then ac_cv_path_FGREP="$GREP -F"
4417 if test -z "$FGREP"; then
4418 ac_path_FGREP_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424 test -z "$as_dir" && as_dir=.
4425 for ac_prog in fgrep; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4428 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4429 # Check for GNU ac_path_FGREP and select it if it is found.
4430 # Check for GNU $ac_path_FGREP
4431 case `"$ac_path_FGREP" --version 2>&1` in
4433 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4436 $as_echo_n 0123456789 >"conftest.in"
4439 cat "conftest.in" "conftest.in" >"conftest.tmp"
4440 mv "conftest.tmp" "conftest.in"
4441 cp "conftest.in" "conftest.nl"
4442 $as_echo 'FGREP' >> "conftest.nl"
4443 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445 ac_count=`expr $ac_count + 1`
4446 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4447 # Best one so far, save it but keep looking for a better one
4448 ac_cv_path_FGREP="$ac_path_FGREP"
4449 ac_path_FGREP_max=$ac_count
4451 # 10*(2^10) chars as input seems more than enough
4452 test $ac_count -gt 10 && break
4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457 $ac_path_FGREP_found && break 3
4462 if test -z "$ac_cv_path_FGREP"; then
4463 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4464 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4465 { (exit 1); exit 1; }; }
4468 ac_cv_path_FGREP=$FGREP
4473 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4474 $as_echo "$ac_cv_path_FGREP" >&6; }
4475 FGREP="$ac_cv_path_FGREP"
4478 test -z "$GREP" && GREP=grep
4498 # Check whether --with-gnu-ld was given.
4499 if test "${with_gnu_ld+set}" = set; then
4500 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4506 if test "$GCC" = yes; then
4507 # Check if gcc -print-prog-name=ld gives a path.
4508 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4509 $as_echo_n "checking for ld used by $CC... " >&6; }
4512 # gcc leaves a trailing carriage return which upsets mingw
4513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4518 # Accept absolute paths.
4520 re_direlt='/[^/][^/]*/\.\./'
4521 # Canonicalize the pathname of ld
4522 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4523 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4524 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4526 test -z "$LD" && LD="$ac_prog"
4529 # If it fails, then pretend we aren't using GCC.
4533 # If it is relative, then search for the first ld in PATH.
4537 elif test "$with_gnu_ld" = yes; then
4538 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4539 $as_echo_n "checking for GNU ld... " >&6; }
4541 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4542 $as_echo_n "checking for non-GNU ld... " >&6; }
4544 if test "${lt_cv_path_LD+set}" = set; then
4545 $as_echo_n "(cached) " >&6
4547 if test -z "$LD"; then
4548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4549 for ac_dir in $PATH; do
4551 test -z "$ac_dir" && ac_dir=.
4552 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4553 lt_cv_path_LD="$ac_dir/$ac_prog"
4554 # Check to see if the program is GNU ld. I'd rather use --version,
4555 # but apparently some variants of GNU ld only accept -v.
4556 # Break only if it was the GNU/non-GNU ld that we prefer.
4557 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4558 *GNU* | *'with BFD'*)
4559 test "$with_gnu_ld" != no && break
4562 test "$with_gnu_ld" != yes && break
4569 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4574 if test -n "$LD"; then
4575 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4576 $as_echo "$LD" >&6; }
4578 { $as_echo "$as_me:$LINENO: result: no" >&5
4579 $as_echo "no" >&6; }
4581 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4582 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4583 { (exit 1); exit 1; }; }
4584 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4585 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4586 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4587 $as_echo_n "(cached) " >&6
4589 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4590 case `$LD -v 2>&1 </dev/null` in
4591 *GNU* | *'with BFD'*)
4592 lt_cv_prog_gnu_ld=yes
4595 lt_cv_prog_gnu_ld=no
4599 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4600 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4601 with_gnu_ld=$lt_cv_prog_gnu_ld
4611 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4612 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4613 if test "${lt_cv_path_NM+set}" = set; then
4614 $as_echo_n "(cached) " >&6
4616 if test -n "$NM"; then
4617 # Let the user override the test.
4620 lt_nm_to_check="${ac_tool_prefix}nm"
4621 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4622 lt_nm_to_check="$lt_nm_to_check nm"
4624 for lt_tmp_nm in $lt_nm_to_check; do
4625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4626 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4628 test -z "$ac_dir" && ac_dir=.
4629 tmp_nm="$ac_dir/$lt_tmp_nm"
4630 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4631 # Check to see if the nm accepts a BSD-compat flag.
4632 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4633 # nm: unknown option "B" ignored
4634 # Tru64's nm complains that /dev/null is an invalid object file
4635 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4636 */dev/null* | *'Invalid file or object type'*)
4637 lt_cv_path_NM="$tmp_nm -B"
4641 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4643 lt_cv_path_NM="$tmp_nm -p"
4647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4648 continue # so that we can try to find one that supports BSD flags
4657 : ${lt_cv_path_NM=no}
4660 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4661 $as_echo "$lt_cv_path_NM" >&6; }
4662 if test "$lt_cv_path_NM" != "no"; then
4665 # Didn't find any BSD compatible name lister, look for dumpbin.
4666 if test -n "$ac_tool_prefix"; then
4667 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4671 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4672 $as_echo_n "checking for $ac_word... " >&6; }
4673 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4674 $as_echo_n "(cached) " >&6
4676 if test -n "$DUMPBIN"; then
4677 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4686 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 DUMPBIN=$ac_cv_prog_DUMPBIN
4697 if test -n "$DUMPBIN"; then
4698 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4699 $as_echo "$DUMPBIN" >&6; }
4701 { $as_echo "$as_me:$LINENO: result: no" >&5
4702 $as_echo "no" >&6; }
4706 test -n "$DUMPBIN" && break
4709 if test -z "$DUMPBIN"; then
4710 ac_ct_DUMPBIN=$DUMPBIN
4711 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4713 # Extract the first word of "$ac_prog", so it can be a program name with args.
4714 set dummy $ac_prog; ac_word=$2
4715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4718 $as_echo_n "(cached) " >&6
4720 if test -n "$ac_ct_DUMPBIN"; then
4721 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4741 if test -n "$ac_ct_DUMPBIN"; then
4742 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4743 $as_echo "$ac_ct_DUMPBIN" >&6; }
4745 { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4750 test -n "$ac_ct_DUMPBIN" && break
4753 if test "x$ac_ct_DUMPBIN" = x; then
4756 case $cross_compiling:$ac_tool_warned in
4758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4760 ac_tool_warned=yes ;;
4762 DUMPBIN=$ac_ct_DUMPBIN
4767 if test "$DUMPBIN" != ":"; then
4771 test -z "$NM" && NM=nm
4778 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4779 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4780 if test "${lt_cv_nm_interface+set}" = set; then
4781 $as_echo_n "(cached) " >&6
4783 lt_cv_nm_interface="BSD nm"
4784 echo "int some_variable = 0;" > conftest.$ac_ext
4785 (eval echo "\"\$as_me:4785: $ac_compile\"" >&5)
4786 (eval "$ac_compile" 2>conftest.err)
4787 cat conftest.err >&5
4788 (eval echo "\"\$as_me:4788: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4789 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4790 cat conftest.err >&5
4791 (eval echo "\"\$as_me:4791: output\"" >&5)
4792 cat conftest.out >&5
4793 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4794 lt_cv_nm_interface="MS dumpbin"
4798 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4799 $as_echo "$lt_cv_nm_interface" >&6; }
4801 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4802 $as_echo_n "checking whether ln -s works... " >&6; }
4804 if test "$LN_S" = "ln -s"; then
4805 { $as_echo "$as_me:$LINENO: result: yes" >&5
4806 $as_echo "yes" >&6; }
4808 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4809 $as_echo "no, using $LN_S" >&6; }
4812 # find the maximum length of command line arguments
4813 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4814 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4815 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4816 $as_echo_n "(cached) " >&6
4823 # On DJGPP, this test can blow up pretty badly due to problems in libc
4824 # (any single argument exceeding 2000 bytes causes a buffer overrun
4825 # during glob expansion). Even if it were fixed, the result of this
4826 # check would be larger than it should be.
4827 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4831 # Under GNU Hurd, this test is not required because there is
4832 # no limit to the length of command line arguments.
4833 # Libtool will interpret -1 as no limit whatsoever
4834 lt_cv_sys_max_cmd_len=-1;
4837 cygwin* | mingw* | cegcc*)
4838 # On Win9x/ME, this test blows up -- it succeeds, but takes
4839 # about 5 minutes as the teststring grows exponentially.
4840 # Worse, since 9x/ME are not pre-emptively multitasking,
4841 # you end up with a "frozen" computer, even though with patience
4842 # the test eventually succeeds (with a max line length of 256k).
4843 # Instead, let's just punt: use the minimum linelength reported by
4844 # all of the supported platforms: 8192 (on NT/2K/XP).
4845 lt_cv_sys_max_cmd_len=8192;
4849 # On AmigaOS with pdksh, this test takes hours, literally.
4850 # So we just punt and use a minimum line length of 8192.
4851 lt_cv_sys_max_cmd_len=8192;
4854 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4855 # This has been around since 386BSD, at least. Likely further.
4856 if test -x /sbin/sysctl; then
4857 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4858 elif test -x /usr/sbin/sysctl; then
4859 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4861 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4863 # And add a safety zone
4864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4869 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4870 lt_cv_sys_max_cmd_len=196608
4874 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4875 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4876 # nice to cause kernel panics so lets avoid the loop below.
4877 # First set a reasonable default.
4878 lt_cv_sys_max_cmd_len=16384
4880 if test -x /sbin/sysconfig; then
4881 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4882 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4887 lt_cv_sys_max_cmd_len=102400
4889 sysv5* | sco5v6* | sysv4.2uw2*)
4890 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4891 if test -n "$kargmax"; then
4892 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4894 lt_cv_sys_max_cmd_len=32768
4898 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4899 if test -n "$lt_cv_sys_max_cmd_len"; then
4900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4903 # Make teststring a little bigger before we do anything with it.
4904 # a 1K string should be a reasonable start.
4905 for i in 1 2 3 4 5 6 7 8 ; do
4906 teststring=$teststring$teststring
4908 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4909 # If test is not a shell built-in, we'll probably end up computing a
4910 # maximum length that is only half of the actual maximum length, but
4912 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4913 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4914 test $i != 17 # 1/2 MB should be enough
4917 teststring=$teststring$teststring
4919 # Only check the string length outside the loop.
4920 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4922 # Add a significant safety factor because C++ compilers can tack on
4923 # massive amounts of additional arguments before passing them to the
4924 # linker. It appears as though 1/2 is a usable value.
4925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4932 if test -n $lt_cv_sys_max_cmd_len ; then
4933 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4934 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4936 { $as_echo "$as_me:$LINENO: result: none" >&5
4937 $as_echo "none" >&6; }
4939 max_cmd_len=$lt_cv_sys_max_cmd_len
4950 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4951 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4952 # Try some XSI features
4955 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4957 && eval 'test $(( 1 + 1 )) -eq 2 \
4958 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4960 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4961 $as_echo "$xsi_shell" >&6; }
4964 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4965 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4967 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4969 && lt_shell_append=yes
4970 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4971 $as_echo "$lt_shell_append" >&6; }
4974 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4984 # test EBCDIC or ASCII
4985 case `echo X|tr X '\101'` in
4986 A) # ASCII based system
4987 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4988 lt_SP2NL='tr \040 \012'
4989 lt_NL2SP='tr \015\012 \040\040'
4991 *) # EBCDIC based system
4992 lt_SP2NL='tr \100 \n'
4993 lt_NL2SP='tr \r\n \100\100'
5005 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5006 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5007 if test "${lt_cv_ld_reload_flag+set}" = set; then
5008 $as_echo_n "(cached) " >&6
5010 lt_cv_ld_reload_flag='-r'
5012 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5013 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5014 reload_flag=$lt_cv_ld_reload_flag
5015 case $reload_flag in
5017 *) reload_flag=" $reload_flag" ;;
5019 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5022 if test "$GCC" = yes; then
5023 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5038 if test -n "$ac_tool_prefix"; then
5039 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5040 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5046 if test -n "$OBJDUMP"; then
5047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 OBJDUMP=$ac_cv_prog_OBJDUMP
5067 if test -n "$OBJDUMP"; then
5068 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5069 $as_echo "$OBJDUMP" >&6; }
5071 { $as_echo "$as_me:$LINENO: result: no" >&5
5072 $as_echo "no" >&6; }
5077 if test -z "$ac_cv_prog_OBJDUMP"; then
5078 ac_ct_OBJDUMP=$OBJDUMP
5079 # Extract the first word of "objdump", so it can be a program name with args.
5080 set dummy objdump; ac_word=$2
5081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5084 $as_echo_n "(cached) " >&6
5086 if test -n "$ac_ct_OBJDUMP"; then
5087 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5107 if test -n "$ac_ct_OBJDUMP"; then
5108 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5109 $as_echo "$ac_ct_OBJDUMP" >&6; }
5111 { $as_echo "$as_me:$LINENO: result: no" >&5
5112 $as_echo "no" >&6; }
5115 if test "x$ac_ct_OBJDUMP" = x; then
5118 case $cross_compiling:$ac_tool_warned in
5120 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5124 OBJDUMP=$ac_ct_OBJDUMP
5127 OBJDUMP="$ac_cv_prog_OBJDUMP"
5130 test -z "$OBJDUMP" && OBJDUMP=objdump
5140 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5141 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5142 if test "${lt_cv_deplibs_check_method+set}" = set; then
5143 $as_echo_n "(cached) " >&6
5145 lt_cv_file_magic_cmd='$MAGIC_CMD'
5146 lt_cv_file_magic_test_file=
5147 lt_cv_deplibs_check_method='unknown'
5148 # Need to set the preceding variable on all platforms that support
5149 # interlibrary dependencies.
5150 # 'none' -- dependencies not supported.
5151 # `unknown' -- same as none, but documents that we really don't know.
5152 # 'pass_all' -- all dependencies passed with no checks.
5153 # 'test_compile' -- check by making test program.
5154 # 'file_magic [[regex]]' -- check by looking for files in library path
5155 # which responds to the $file_magic_cmd with a given extended regex.
5156 # If you have `file' or equivalent on your system and you're not sure
5157 # whether `pass_all' will *always* work, you probably want this one.
5161 lt_cv_deplibs_check_method=pass_all
5165 lt_cv_deplibs_check_method=pass_all
5169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5170 lt_cv_file_magic_cmd='/usr/bin/file -L'
5171 lt_cv_file_magic_test_file=/shlib/libc.so
5175 # func_win32_libid is a shell function defined in ltmain.sh
5176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5177 lt_cv_file_magic_cmd='func_win32_libid'
5181 # Base MSYS/MinGW do not provide the 'file' command needed by
5182 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5183 # unless we find 'file', for example because we are cross-compiling.
5184 if ( file / ) >/dev/null 2>&1; then
5185 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5186 lt_cv_file_magic_cmd='func_win32_libid'
5188 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5189 lt_cv_file_magic_cmd='$OBJDUMP -f'
5194 # use the weaker test based on 'objdump'. See mingw*.
5195 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5196 lt_cv_file_magic_cmd='$OBJDUMP -f'
5199 darwin* | rhapsody*)
5200 lt_cv_deplibs_check_method=pass_all
5203 freebsd* | dragonfly*)
5204 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5207 # Not sure whether the presence of OpenBSD here was a mistake.
5208 # Let's accept both of them until this is cleared up.
5209 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5210 lt_cv_file_magic_cmd=/usr/bin/file
5211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5215 lt_cv_deplibs_check_method=pass_all
5220 lt_cv_deplibs_check_method=pass_all
5223 hpux10.20* | hpux11*)
5224 lt_cv_file_magic_cmd=/usr/bin/file
5227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5231 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]'
5232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5236 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5242 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5246 irix5* | irix6* | nonstopux*)
5248 *-32|*"-32 ") libmagic=32-bit;;
5249 *-n32|*"-n32 ") libmagic=N32;;
5250 *-64|*"-64 ") libmagic=64-bit;;
5251 *) libmagic=never-match;;
5253 lt_cv_deplibs_check_method=pass_all
5256 # This must be Linux ELF.
5257 linux* | k*bsd*-gnu)
5258 lt_cv_deplibs_check_method=pass_all
5262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5271 lt_cv_file_magic_cmd=/usr/bin/file
5272 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5276 lt_cv_deplibs_check_method=pass_all
5280 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5287 osf3* | osf4* | osf5*)
5288 lt_cv_deplibs_check_method=pass_all
5292 lt_cv_deplibs_check_method=pass_all
5296 lt_cv_deplibs_check_method=pass_all
5299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5300 lt_cv_deplibs_check_method=pass_all
5304 case $host_vendor in
5306 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]'
5307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5310 lt_cv_deplibs_check_method=pass_all
5313 lt_cv_file_magic_cmd='/bin/file'
5314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5317 lt_cv_file_magic_cmd='/bin/file'
5318 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5319 lt_cv_file_magic_test_file=/lib/libc.so
5322 lt_cv_deplibs_check_method=pass_all
5325 lt_cv_deplibs_check_method=pass_all
5331 lt_cv_deplibs_check_method=pass_all
5336 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5337 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5338 file_magic_cmd=$lt_cv_file_magic_cmd
5339 deplibs_check_method=$lt_cv_deplibs_check_method
5340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}ar; ac_word=$2
5356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if test "${ac_cv_prog_AR+set}" = set; then
5359 $as_echo_n "(cached) " >&6
5361 if test -n "$AR"; then
5362 ac_cv_prog_AR="$AR" # Let the user override the test.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_AR="${ac_tool_prefix}ar"
5372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 if test -n "$AR"; then
5383 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5384 $as_echo "$AR" >&6; }
5386 { $as_echo "$as_me:$LINENO: result: no" >&5
5387 $as_echo "no" >&6; }
5392 if test -z "$ac_cv_prog_AR"; then
5394 # Extract the first word of "ar", so it can be a program name with args.
5395 set dummy ar; ac_word=$2
5396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5399 $as_echo_n "(cached) " >&6
5401 if test -n "$ac_ct_AR"; then
5402 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_ac_ct_AR="ar"
5412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5422 if test -n "$ac_ct_AR"; then
5423 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5424 $as_echo "$ac_ct_AR" >&6; }
5426 { $as_echo "$as_me:$LINENO: result: no" >&5
5427 $as_echo "no" >&6; }
5430 if test "x$ac_ct_AR" = x; then
5433 case $cross_compiling:$ac_tool_warned in
5435 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5445 test -z "$AR" && AR=ar
5446 test -z "$AR_FLAGS" && AR_FLAGS=cru
5458 if test -n "$ac_tool_prefix"; then
5459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5460 set dummy ${ac_tool_prefix}strip; ac_word=$2
5461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_STRIP+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5466 if test -n "$STRIP"; then
5467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 STRIP=$ac_cv_prog_STRIP
5487 if test -n "$STRIP"; then
5488 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5489 $as_echo "$STRIP" >&6; }
5491 { $as_echo "$as_me:$LINENO: result: no" >&5
5492 $as_echo "no" >&6; }
5497 if test -z "$ac_cv_prog_STRIP"; then
5499 # Extract the first word of "strip", so it can be a program name with args.
5500 set dummy strip; ac_word=$2
5501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5504 $as_echo_n "(cached) " >&6
5506 if test -n "$ac_ct_STRIP"; then
5507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_prog_ac_ct_STRIP="strip"
5517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5527 if test -n "$ac_ct_STRIP"; then
5528 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5529 $as_echo "$ac_ct_STRIP" >&6; }
5531 { $as_echo "$as_me:$LINENO: result: no" >&5
5532 $as_echo "no" >&6; }
5535 if test "x$ac_ct_STRIP" = x; then
5538 case $cross_compiling:$ac_tool_warned in
5540 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542 ac_tool_warned=yes ;;
5547 STRIP="$ac_cv_prog_STRIP"
5550 test -z "$STRIP" && STRIP=:
5557 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if test "${ac_cv_prog_RANLIB+set}" = set; then
5563 $as_echo_n "(cached) " >&6
5565 if test -n "$RANLIB"; then
5566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 RANLIB=$ac_cv_prog_RANLIB
5586 if test -n "$RANLIB"; then
5587 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5588 $as_echo "$RANLIB" >&6; }
5590 { $as_echo "$as_me:$LINENO: result: no" >&5
5591 $as_echo "no" >&6; }
5596 if test -z "$ac_cv_prog_RANLIB"; then
5597 ac_ct_RANLIB=$RANLIB
5598 # Extract the first word of "ranlib", so it can be a program name with args.
5599 set dummy ranlib; ac_word=$2
5600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$ac_ct_RANLIB"; then
5606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_ac_ct_RANLIB="ranlib"
5616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5626 if test -n "$ac_ct_RANLIB"; then
5627 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5628 $as_echo "$ac_ct_RANLIB" >&6; }
5630 { $as_echo "$as_me:$LINENO: result: no" >&5
5631 $as_echo "no" >&6; }
5634 if test "x$ac_ct_RANLIB" = x; then
5637 case $cross_compiling:$ac_tool_warned in
5639 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641 ac_tool_warned=yes ;;
5643 RANLIB=$ac_ct_RANLIB
5646 RANLIB="$ac_cv_prog_RANLIB"
5649 test -z "$RANLIB" && RANLIB=:
5656 # Determine commands to create old-style static archives.
5657 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5658 old_postinstall_cmds='chmod 644 $oldlib'
5659 old_postuninstall_cmds=
5661 if test -n "$RANLIB"; then
5664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5670 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5706 # If no C compiler was specified, use CC.
5709 # If no C compiler flags were specified, use CFLAGS.
5710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5712 # Allow CC to be a program name with arguments.
5716 # Check for command to grab the raw symbol name followed by C symbol from nm.
5717 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5718 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5719 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5720 $as_echo_n "(cached) " >&6
5723 # These are sane defaults that work on at least a few old systems.
5724 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5726 # Character class describing NM global symbol codes.
5727 symcode='[BCDEGRST]'
5729 # Regexp to match symbols that can be accessed directly from C.
5730 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5732 # Define system-specific variables.
5737 cygwin* | mingw* | pw32* | cegcc*)
5738 symcode='[ABCDGISTW]'
5741 if test "$host_cpu" = ia64; then
5742 symcode='[ABCDEGRST]'
5746 symcode='[BCDEGRST]'
5749 symcode='[BCDEGQRST]'
5760 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5768 # If we're using GNU nm, then use its standard symbol codes.
5769 case `$NM -V 2>&1` in
5770 *GNU* | *'with BFD'*)
5771 symcode='[ABCDGIRSTW]' ;;
5774 # Transform an extracted symbol line into a proper C declaration.
5775 # Some systems (esp. on ia64) link data and code symbols differently,
5776 # so use this general approach.
5777 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5779 # Transform an extracted symbol line into symbol name and symbol address
5780 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5781 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5783 # Handle CRLF in mingw tool chain
5787 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5791 # Try without a prefix underscore, then with it.
5792 for ac_symprfx in "" "_"; do
5794 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5795 symxfrm="\\1 $ac_symprfx\\2 \\2"
5797 # Write the raw and C identifiers.
5798 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5799 # Fake it for dumpbin and say T for any non-static function
5800 # and D for any global variable.
5801 # Also find C++ and __fastcall symbols from MSVC++,
5802 # which start with @ or ?.
5803 lt_cv_sys_global_symbol_pipe="$AWK '"\
5804 " {last_section=section; section=\$ 3};"\
5805 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5806 " \$ 0!~/External *\|/{next};"\
5807 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5808 " {if(hide[section]) next};"\
5809 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5810 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5811 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5812 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5813 " ' prfx=^$ac_symprfx"
5815 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5818 # Check to see that the pipe works correctly.
5822 cat > conftest.$ac_ext <<_LT_EOF
5827 void nm_test_func(void);
5828 void nm_test_func(void){}
5832 int main(){nm_test_var='a';nm_test_func();return(0);}
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836 (eval $ac_compile) 2>&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; then
5840 # Now try to grab the symbols.
5842 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5843 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && test -s "$nlist"; then
5847 # Try sorting and uniquifying the output.
5848 if sort "$nlist" | uniq > "$nlist"T; then
5849 mv -f "$nlist"T "$nlist"
5854 # Make sure that we snagged all the symbols we need.
5855 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5856 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5857 cat <<_LT_EOF > conftest.$ac_ext
5863 # Now generate the symbol file.
5864 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5866 cat <<_LT_EOF >> conftest.$ac_ext
5868 /* The mapping between symbol names and symbols. */
5873 lt__PROGRAM__LTX_preloaded_symbols[] =
5875 { "@PROGRAM@", (void *) 0 },
5877 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5878 cat <<\_LT_EOF >> conftest.$ac_ext
5882 /* This works around a problem in FreeBSD linker */
5883 #ifdef FREEBSD_WORKAROUND
5884 static const void *lt_preloaded_setup() {
5885 return lt__PROGRAM__LTX_preloaded_symbols;
5893 # Now try linking the two files.
5894 mv conftest.$ac_objext conftstm.$ac_objext
5895 lt_save_LIBS="$LIBS"
5896 lt_save_CFLAGS="$CFLAGS"
5897 LIBS="conftstm.$ac_objext"
5898 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900 (eval $ac_link) 2>&5
5902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5906 LIBS="$lt_save_LIBS"
5907 CFLAGS="$lt_save_CFLAGS"
5909 echo "cannot find nm_test_func in $nlist" >&5
5912 echo "cannot find nm_test_var in $nlist" >&5
5915 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5918 echo "$progname: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 rm -rf conftest* conftst*
5923 # Do not use the global_symbol_pipe unless it works.
5924 if test "$pipe_works" = yes; then
5927 lt_cv_sys_global_symbol_pipe=
5933 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5934 lt_cv_sys_global_symbol_to_cdecl=
5936 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5937 { $as_echo "$as_me:$LINENO: result: failed" >&5
5938 $as_echo "failed" >&6; }
5940 { $as_echo "$as_me:$LINENO: result: ok" >&5
5941 $as_echo "ok" >&6; }
5966 # Check whether --enable-libtool-lock was given.
5967 if test "${enable_libtool_lock+set}" = set; then
5968 enableval=$enable_libtool_lock;
5971 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5973 # Some flags need to be propagated to the compiler or linker for good
5977 # Find out which ABI we are using.
5978 echo 'int i;' > conftest.$ac_ext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>&5
5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; then
5984 case `/usr/bin/file conftest.$ac_objext` in
5996 # Find out which ABI we are using.
5997 echo '#line 5997 "configure"' > conftest.$ac_ext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999 (eval $ac_compile) 2>&5
6001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; then
6003 if test "$lt_cv_prog_gnu_ld" = yes; then
6004 case `/usr/bin/file conftest.$ac_objext` in
6006 LD="${LD-ld} -melf32bsmip"
6009 LD="${LD-ld} -melf32bmipn32"
6012 LD="${LD-ld} -melf64bmip"
6016 case `/usr/bin/file conftest.$ac_objext` in
6032 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6033 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6034 # Find out which ABI we are using.
6035 echo 'int i;' > conftest.$ac_ext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; then
6041 case `/usr/bin/file conftest.o` in
6044 x86_64-*kfreebsd*-gnu)
6045 LD="${LD-ld} -m elf_i386_fbsd"
6048 LD="${LD-ld} -m elf_i386"
6050 ppc64-*linux*|powerpc64-*linux*)
6051 LD="${LD-ld} -m elf32ppclinux"
6054 LD="${LD-ld} -m elf_s390"
6057 LD="${LD-ld} -m elf32_sparc"
6063 x86_64-*kfreebsd*-gnu)
6064 LD="${LD-ld} -m elf_x86_64_fbsd"
6067 LD="${LD-ld} -m elf_x86_64"
6069 ppc*-*linux*|powerpc*-*linux*)
6070 LD="${LD-ld} -m elf64ppc"
6072 s390*-*linux*|s390*-*tpf*)
6073 LD="${LD-ld} -m elf64_s390"
6076 LD="${LD-ld} -m elf64_sparc"
6086 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6087 SAVE_CFLAGS="$CFLAGS"
6088 CFLAGS="$CFLAGS -belf"
6089 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6090 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6091 if test "${lt_cv_cc_needs_belf+set}" = set; then
6092 $as_echo_n "(cached) " >&6
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100 cat >conftest.$ac_ext <<_ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (ac_try="$ac_link"
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122 $as_echo "$ac_try_echo") >&5
6123 (eval "$ac_link") 2>conftest.er1
6125 grep -v '^ *+' conftest.er1 >conftest.err
6127 cat conftest.err >&5
6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest$ac_exeext && {
6133 test "$cross_compiling" = yes ||
6134 $as_test_x conftest$ac_exeext
6136 lt_cv_cc_needs_belf=yes
6138 $as_echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 lt_cv_cc_needs_belf=no
6144 rm -rf conftest.dSYM
6145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6146 conftest$ac_exeext conftest.$ac_ext
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6155 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6156 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6157 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6158 CFLAGS="$SAVE_CFLAGS"
6162 # Find out which ABI we are using.
6163 echo 'int i;' > conftest.$ac_ext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165 (eval $ac_compile) 2>&5
6167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; then
6169 case `/usr/bin/file conftest.o` in
6171 case $lt_cv_prog_gnu_ld in
6172 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6174 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6186 need_locks="$enable_libtool_lock"
6190 rhapsody* | darwin*)
6191 if test -n "$ac_tool_prefix"; then
6192 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6197 $as_echo_n "(cached) " >&6
6199 if test -n "$DSYMUTIL"; then
6200 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6220 if test -n "$DSYMUTIL"; then
6221 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6222 $as_echo "$DSYMUTIL" >&6; }
6224 { $as_echo "$as_me:$LINENO: result: no" >&5
6225 $as_echo "no" >&6; }
6230 if test -z "$ac_cv_prog_DSYMUTIL"; then
6231 ac_ct_DSYMUTIL=$DSYMUTIL
6232 # Extract the first word of "dsymutil", so it can be a program name with args.
6233 set dummy dsymutil; ac_word=$2
6234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6237 $as_echo_n "(cached) " >&6
6239 if test -n "$ac_ct_DSYMUTIL"; then
6240 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6260 if test -n "$ac_ct_DSYMUTIL"; then
6261 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6262 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6264 { $as_echo "$as_me:$LINENO: result: no" >&5
6265 $as_echo "no" >&6; }
6268 if test "x$ac_ct_DSYMUTIL" = x; then
6271 case $cross_compiling:$ac_tool_warned in
6273 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6277 DSYMUTIL=$ac_ct_DSYMUTIL
6280 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6283 if test -n "$ac_tool_prefix"; then
6284 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6285 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6289 $as_echo_n "(cached) " >&6
6291 if test -n "$NMEDIT"; then
6292 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 NMEDIT=$ac_cv_prog_NMEDIT
6312 if test -n "$NMEDIT"; then
6313 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6314 $as_echo "$NMEDIT" >&6; }
6316 { $as_echo "$as_me:$LINENO: result: no" >&5
6317 $as_echo "no" >&6; }
6322 if test -z "$ac_cv_prog_NMEDIT"; then
6323 ac_ct_NMEDIT=$NMEDIT
6324 # Extract the first word of "nmedit", so it can be a program name with args.
6325 set dummy nmedit; ac_word=$2
6326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6329 $as_echo_n "(cached) " >&6
6331 if test -n "$ac_ct_NMEDIT"; then
6332 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6352 if test -n "$ac_ct_NMEDIT"; then
6353 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6354 $as_echo "$ac_ct_NMEDIT" >&6; }
6356 { $as_echo "$as_me:$LINENO: result: no" >&5
6357 $as_echo "no" >&6; }
6360 if test "x$ac_ct_NMEDIT" = x; then
6363 case $cross_compiling:$ac_tool_warned in
6365 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367 ac_tool_warned=yes ;;
6369 NMEDIT=$ac_ct_NMEDIT
6372 NMEDIT="$ac_cv_prog_NMEDIT"
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if test "${ac_cv_prog_LIPO+set}" = set; then
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$LIPO"; then
6384 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 LIPO=$ac_cv_prog_LIPO
6404 if test -n "$LIPO"; then
6405 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6406 $as_echo "$LIPO" >&6; }
6408 { $as_echo "$as_me:$LINENO: result: no" >&5
6409 $as_echo "no" >&6; }
6414 if test -z "$ac_cv_prog_LIPO"; then
6416 # Extract the first word of "lipo", so it can be a program name with args.
6417 set dummy lipo; ac_word=$2
6418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$ac_ct_LIPO"; then
6424 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_ac_ct_LIPO="lipo"
6434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6444 if test -n "$ac_ct_LIPO"; then
6445 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6446 $as_echo "$ac_ct_LIPO" >&6; }
6448 { $as_echo "$as_me:$LINENO: result: no" >&5
6449 $as_echo "no" >&6; }
6452 if test "x$ac_ct_LIPO" = x; then
6455 case $cross_compiling:$ac_tool_warned in
6457 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6464 LIPO="$ac_cv_prog_LIPO"
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}otool; ac_word=$2
6470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_prog_OTOOL+set}" = set; then
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$OTOOL"; then
6476 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 OTOOL=$ac_cv_prog_OTOOL
6496 if test -n "$OTOOL"; then
6497 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6498 $as_echo "$OTOOL" >&6; }
6500 { $as_echo "$as_me:$LINENO: result: no" >&5
6501 $as_echo "no" >&6; }
6506 if test -z "$ac_cv_prog_OTOOL"; then
6508 # Extract the first word of "otool", so it can be a program name with args.
6509 set dummy otool; ac_word=$2
6510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6513 $as_echo_n "(cached) " >&6
6515 if test -n "$ac_ct_OTOOL"; then
6516 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_ac_ct_OTOOL="otool"
6526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6536 if test -n "$ac_ct_OTOOL"; then
6537 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6538 $as_echo "$ac_ct_OTOOL" >&6; }
6540 { $as_echo "$as_me:$LINENO: result: no" >&5
6541 $as_echo "no" >&6; }
6544 if test "x$ac_ct_OTOOL" = x; then
6547 case $cross_compiling:$ac_tool_warned in
6549 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551 ac_tool_warned=yes ;;
6556 OTOOL="$ac_cv_prog_OTOOL"
6559 if test -n "$ac_tool_prefix"; then
6560 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6561 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6565 $as_echo_n "(cached) " >&6
6567 if test -n "$OTOOL64"; then
6568 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir=.
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6577 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 OTOOL64=$ac_cv_prog_OTOOL64
6588 if test -n "$OTOOL64"; then
6589 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6590 $as_echo "$OTOOL64" >&6; }
6592 { $as_echo "$as_me:$LINENO: result: no" >&5
6593 $as_echo "no" >&6; }
6598 if test -z "$ac_cv_prog_OTOOL64"; then
6599 ac_ct_OTOOL64=$OTOOL64
6600 # Extract the first word of "otool64", so it can be a program name with args.
6601 set dummy otool64; ac_word=$2
6602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6605 $as_echo_n "(cached) " >&6
6607 if test -n "$ac_ct_OTOOL64"; then
6608 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_prog_ac_ct_OTOOL64="otool64"
6618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6628 if test -n "$ac_ct_OTOOL64"; then
6629 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6630 $as_echo "$ac_ct_OTOOL64" >&6; }
6632 { $as_echo "$as_me:$LINENO: result: no" >&5
6633 $as_echo "no" >&6; }
6636 if test "x$ac_ct_OTOOL64" = x; then
6639 case $cross_compiling:$ac_tool_warned in
6641 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6643 ac_tool_warned=yes ;;
6645 OTOOL64=$ac_ct_OTOOL64
6648 OTOOL64="$ac_cv_prog_OTOOL64"
6677 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6678 $as_echo_n "checking for -single_module linker flag... " >&6; }
6679 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6680 $as_echo_n "(cached) " >&6
6682 lt_cv_apple_cc_single_mod=no
6683 if test -z "${LT_MULTI_MODULE}"; then
6684 # By default we will add the -single_module flag. You can override
6685 # by either setting the environment variable LT_MULTI_MODULE
6686 # non-empty at configure time, or by adding -multi_module to the
6688 rm -rf libconftest.dylib*
6689 echo "int foo(void){return 1;}" > conftest.c
6690 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6691 -dynamiclib -Wl,-single_module conftest.c" >&5
6692 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6693 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6695 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6696 lt_cv_apple_cc_single_mod=yes
6698 cat conftest.err >&5
6700 rm -rf libconftest.dylib*
6704 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6705 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6706 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6707 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6708 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6709 $as_echo_n "(cached) " >&6
6711 lt_cv_ld_exported_symbols_list=no
6712 save_LDFLAGS=$LDFLAGS
6713 echo "_main" > conftest.sym
6714 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6715 cat >conftest.$ac_ext <<_ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h. */
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_link") 2>conftest.er1
6740 grep -v '^ *+' conftest.er1 >conftest.err
6742 cat conftest.err >&5
6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest$ac_exeext && {
6748 test "$cross_compiling" = yes ||
6749 $as_test_x conftest$ac_exeext
6751 lt_cv_ld_exported_symbols_list=yes
6753 $as_echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 lt_cv_ld_exported_symbols_list=no
6759 rm -rf conftest.dSYM
6760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6761 conftest$ac_exeext conftest.$ac_ext
6762 LDFLAGS="$save_LDFLAGS"
6765 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6766 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6768 rhapsody* | darwin1.[012])
6769 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6772 darwin*) # darwin 5.x on
6773 # if running on 10.5 or later, the deployment target defaults
6774 # to the OS version, if on x86, and 10.4, the deployment
6775 # target defaults to 10.4. Don't you love it?
6776 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6777 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6778 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6780 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6782 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6786 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6787 _lt_dar_single_mod='$single_module'
6789 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6790 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6792 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6794 if test "$DSYMUTIL" != ":"; then
6795 _lt_dsymutil='~$DSYMUTIL $lib || :'
6803 ac_cpp='$CPP $CPPFLAGS'
6804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6808 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6809 # On Suns, sometimes $CPP names a directory.
6810 if test -n "$CPP" && test -d "$CPP"; then
6813 if test -z "$CPP"; then
6814 if test "${ac_cv_prog_CPP+set}" = set; then
6815 $as_echo_n "(cached) " >&6
6817 # Double quotes because CPP needs to be expanded
6818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6821 for ac_c_preproc_warn_flag in '' yes
6823 # Use a header file that comes with gcc, so configuring glibc
6824 # with a fresh cross-compiler works.
6825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6826 # <limits.h> exists even on freestanding compilers.
6827 # On the NeXT, cc -E runs the code through the compiler's parser,
6828 # not just through cpp. "Syntax error" is here to catch this case.
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6836 # include <limits.h>
6838 # include <assert.h>
6842 if { (ac_try="$ac_cpp conftest.$ac_ext"
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6848 $as_echo "$ac_try_echo") >&5
6849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6851 grep -v '^ *+' conftest.er1 >conftest.err
6853 cat conftest.err >&5
6854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } >/dev/null && {
6856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6857 test ! -s conftest.err
6861 $as_echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6864 # Broken: fails on valid input.
6868 rm -f conftest.err conftest.$ac_ext
6870 # OK, works on sane cases. Now check whether nonexistent headers
6871 # can be detected and how.
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 #include <ac_nonexistent.h>
6880 if { (ac_try="$ac_cpp conftest.$ac_ext"
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6886 $as_echo "$ac_try_echo") >&5
6887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6889 grep -v '^ *+' conftest.er1 >conftest.err
6891 cat conftest.err >&5
6892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } >/dev/null && {
6894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6895 test ! -s conftest.err
6897 # Broken: success on invalid input.
6900 $as_echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 # Passes both tests.
6908 rm -f conftest.err conftest.$ac_ext
6911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6912 rm -f conftest.err conftest.$ac_ext
6913 if $ac_preproc_ok; then
6925 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6926 $as_echo "$CPP" >&6; }
6928 for ac_c_preproc_warn_flag in '' yes
6930 # Use a header file that comes with gcc, so configuring glibc
6931 # with a fresh cross-compiler works.
6932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6933 # <limits.h> exists even on freestanding compilers.
6934 # On the NeXT, cc -E runs the code through the compiler's parser,
6935 # not just through cpp. "Syntax error" is here to catch this case.
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6943 # include <limits.h>
6945 # include <assert.h>
6949 if { (ac_try="$ac_cpp conftest.$ac_ext"
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6955 $as_echo "$ac_try_echo") >&5
6956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6958 grep -v '^ *+' conftest.er1 >conftest.err
6960 cat conftest.err >&5
6961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } >/dev/null && {
6963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6968 $as_echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 # Broken: fails on valid input.
6975 rm -f conftest.err conftest.$ac_ext
6977 # OK, works on sane cases. Now check whether nonexistent headers
6978 # can be detected and how.
6979 cat >conftest.$ac_ext <<_ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 #include <ac_nonexistent.h>
6987 if { (ac_try="$ac_cpp conftest.$ac_ext"
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1 >conftest.err
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } >/dev/null && {
7001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7004 # Broken: success on invalid input.
7007 $as_echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7010 # Passes both tests.
7015 rm -f conftest.err conftest.$ac_ext
7018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7019 rm -f conftest.err conftest.$ac_ext
7020 if $ac_preproc_ok; then
7023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7025 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7026 See \`config.log' for more details." >&5
7027 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7028 See \`config.log' for more details." >&2;}
7029 { (exit 1); exit 1; }; }; }
7033 ac_cpp='$CPP $CPPFLAGS'
7034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7040 $as_echo_n "checking for ANSI C header files... " >&6; }
7041 if test "${ac_cv_header_stdc+set}" = set; then
7042 $as_echo_n "(cached) " >&6
7044 cat >conftest.$ac_ext <<_ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7063 rm -f conftest.$ac_objext
7064 if { (ac_try="$ac_compile"
7066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7067 *) ac_try_echo=$ac_try;;
7069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7070 $as_echo "$ac_try_echo") >&5
7071 (eval "$ac_compile") 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_c_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest.$ac_objext; then
7081 ac_cv_header_stdc=yes
7083 $as_echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_cv_header_stdc=no
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 if test $ac_cv_header_stdc = yes; then
7092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7093 cat >conftest.$ac_ext <<_ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103 $EGREP "memchr" >/dev/null 2>&1; then
7106 ac_cv_header_stdc=no
7112 if test $ac_cv_header_stdc = yes; then
7113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7114 cat >conftest.$ac_ext <<_ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124 $EGREP "free" >/dev/null 2>&1; then
7127 ac_cv_header_stdc=no
7133 if test $ac_cv_header_stdc = yes; then
7134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7135 if test "$cross_compiling" = yes; then
7138 cat >conftest.$ac_ext <<_ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7146 #if ((' ' & 0x0FF) == 0x020)
7147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7150 # define ISLOWER(c) \
7151 (('a' <= (c) && (c) <= 'i') \
7152 || ('j' <= (c) && (c) <= 'r') \
7153 || ('s' <= (c) && (c) <= 'z'))
7154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7162 for (i = 0; i < 256; i++)
7163 if (XOR (islower (i), ISLOWER (i))
7164 || toupper (i) != TOUPPER (i))
7169 rm -f conftest$ac_exeext
7170 if { (ac_try="$ac_link"
7172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173 *) ac_try_echo=$ac_try;;
7175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7176 $as_echo "$ac_try_echo") >&5
7177 (eval "$ac_link") 2>&5
7179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7181 { (case "(($ac_try" in
7182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7186 $as_echo "$ac_try_echo") >&5
7187 (eval "$ac_try") 2>&5
7189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7193 $as_echo "$as_me: program exited with status $ac_status" >&5
7194 $as_echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7198 ac_cv_header_stdc=no
7200 rm -rf conftest.dSYM
7201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7208 $as_echo "$ac_cv_header_stdc" >&6; }
7209 if test $ac_cv_header_stdc = yes; then
7211 cat >>confdefs.h <<\_ACEOF
7212 #define STDC_HEADERS 1
7217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7227 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7228 inttypes.h stdint.h unistd.h
7230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7232 $as_echo_n "checking for $ac_header... " >&6; }
7233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7234 $as_echo_n "(cached) " >&6
7236 cat >conftest.$ac_ext <<_ACEOF
7239 cat confdefs.h >>conftest.$ac_ext
7240 cat >>conftest.$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 $ac_includes_default
7244 #include <$ac_header>
7246 rm -f conftest.$ac_objext
7247 if { (ac_try="$ac_compile"
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7253 $as_echo "$ac_try_echo") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1 >conftest.err
7258 cat conftest.err >&5
7259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7264 eval "$as_ac_Header=yes"
7266 $as_echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 eval "$as_ac_Header=no"
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 ac_res=`eval 'as_val=${'$as_ac_Header'}
7275 $as_echo "$as_val"'`
7276 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7277 $as_echo "$ac_res" >&6; }
7278 as_val=`eval 'as_val=${'$as_ac_Header'}
7279 $as_echo "$as_val"'`
7280 if test "x$as_val" = x""yes; then
7281 cat >>confdefs.h <<_ACEOF
7282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7291 for ac_header in dlfcn.h
7293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7295 $as_echo_n "checking for $ac_header... " >&6; }
7296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7297 $as_echo_n "(cached) " >&6
7299 cat >conftest.$ac_ext <<_ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 $ac_includes_default
7307 #include <$ac_header>
7309 rm -f conftest.$ac_objext
7310 if { (ac_try="$ac_compile"
7312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7316 $as_echo "$ac_try_echo") >&5
7317 (eval "$ac_compile") 2>conftest.er1
7319 grep -v '^ *+' conftest.er1 >conftest.err
7321 cat conftest.err >&5
7322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
7327 eval "$as_ac_Header=yes"
7329 $as_echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 eval "$as_ac_Header=no"
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 ac_res=`eval 'as_val=${'$as_ac_Header'}
7338 $as_echo "$as_val"'`
7339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7340 $as_echo "$ac_res" >&6; }
7341 as_val=`eval 'as_val=${'$as_ac_Header'}
7342 $as_echo "$as_val"'`
7343 if test "x$as_val" = x""yes; then
7344 cat >>confdefs.h <<_ACEOF
7345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7364 # Check whether --enable-shared was given.
7365 if test "${enable_shared+set}" = set; then
7366 enableval=$enable_shared; p=${PACKAGE-default}
7368 yes) enable_shared=yes ;;
7369 no) enable_shared=no ;;
7372 # Look at the argument we got. We use all the common list separators.
7373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7374 for pkg in $enableval; do
7376 if test "X$pkg" = "X$p"; then
7395 # Check whether --enable-static was given.
7396 if test "${enable_static+set}" = set; then
7397 enableval=$enable_static; p=${PACKAGE-default}
7399 yes) enable_static=yes ;;
7400 no) enable_static=no ;;
7403 # Look at the argument we got. We use all the common list separators.
7404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7405 for pkg in $enableval; do
7407 if test "X$pkg" = "X$p"; then
7427 # Check whether --with-pic was given.
7428 if test "${with_pic+set}" = set; then
7429 withval=$with_pic; pic_mode="$withval"
7435 test -z "$pic_mode" && pic_mode=default
7443 # Check whether --enable-fast-install was given.
7444 if test "${enable_fast_install+set}" = set; then
7445 enableval=$enable_fast_install; p=${PACKAGE-default}
7447 yes) enable_fast_install=yes ;;
7448 no) enable_fast_install=no ;;
7450 enable_fast_install=no
7451 # Look at the argument we got. We use all the common list separators.
7452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7453 for pkg in $enableval; do
7455 if test "X$pkg" = "X$p"; then
7456 enable_fast_install=yes
7463 enable_fast_install=yes
7476 # This can be used to rebuild libtool when needed
7477 LIBTOOL_DEPS="$ltmain"
7479 # Always use our own libtool.
7480 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7506 test -z "$LN_S" && LN_S="ln -s"
7521 if test -n "${ZSH_VERSION+set}" ; then
7522 setopt NO_GLOB_SUBST
7525 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7526 $as_echo_n "checking for objdir... " >&6; }
7527 if test "${lt_cv_objdir+set}" = set; then
7528 $as_echo_n "(cached) " >&6
7530 rm -f .libs 2>/dev/null
7531 mkdir .libs 2>/dev/null
7532 if test -d .libs; then
7535 # MS-DOS does not allow filenames that begin with a dot.
7538 rmdir .libs 2>/dev/null
7540 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7541 $as_echo "$lt_cv_objdir" >&6; }
7542 objdir=$lt_cv_objdir
7548 cat >>confdefs.h <<_ACEOF
7549 #define LT_OBJDIR "$lt_cv_objdir/"
7570 # AIX sometimes has problems with the GCC collect2 program. For some
7571 # reason, if we set the COLLECT_NAMES environment variable, the problems
7572 # vanish in a puff of smoke.
7573 if test "X${COLLECT_NAMES+set}" != Xset; then
7575 export COLLECT_NAMES
7580 # Sed substitution that helps us do robust quoting. It backslashifies
7581 # metacharacters that are still active within double-quoted strings.
7582 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7584 # Same as above, but do not quote variable references.
7585 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7587 # Sed substitution to delay expansion of an escaped shell variable in a
7588 # double_quote_subst'ed string.
7589 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7591 # Sed substitution to delay expansion of an escaped single quote.
7592 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7594 # Sed substitution to avoid accidental globbing in evaled expressions
7595 no_glob_subst='s/\*/\\\*/g'
7599 can_build_shared=yes
7601 # All known linkers require a `.a' archive for static linking (except MSVC,
7602 # which needs '.lib').
7605 with_gnu_ld="$lt_cv_prog_gnu_ld"
7608 old_CFLAGS="$CFLAGS"
7610 # Set sane defaults for various variables
7611 test -z "$CC" && CC=cc
7612 test -z "$LTCC" && LTCC=$CC
7613 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7614 test -z "$LD" && LD=ld
7615 test -z "$ac_objext" && ac_objext=o
7617 for cc_temp in $compiler""; do
7619 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7620 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7625 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7628 # Only perform the check for file, if the check method requires it
7629 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7630 case $deplibs_check_method in
7632 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7633 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7634 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7635 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7636 $as_echo_n "(cached) " >&6
7640 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7643 lt_save_MAGIC_CMD="$MAGIC_CMD"
7644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7645 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7646 for ac_dir in $ac_dummy; do
7648 test -z "$ac_dir" && ac_dir=.
7649 if test -f $ac_dir/${ac_tool_prefix}file; then
7650 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7651 if test -n "$file_magic_test_file"; then
7652 case $deplibs_check_method in
7654 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7656 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7657 $EGREP "$file_magic_regex" > /dev/null; then
7662 *** Warning: the command libtool uses to detect shared libraries,
7663 *** $file_magic_cmd, produces output that libtool cannot recognize.
7664 *** The result is that libtool may fail to recognize shared libraries
7665 *** as such. This will affect the creation of libtool libraries that
7666 *** depend on shared libraries, but programs linked with such libtool
7667 *** libraries will work regardless of this problem. Nevertheless, you
7668 *** may want to report the problem to your system manager and/or to
7669 *** bug-libtool@gnu.org
7679 MAGIC_CMD="$lt_save_MAGIC_CMD"
7684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685 if test -n "$MAGIC_CMD"; then
7686 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7687 $as_echo "$MAGIC_CMD" >&6; }
7689 { $as_echo "$as_me:$LINENO: result: no" >&5
7690 $as_echo "no" >&6; }
7697 if test -z "$lt_cv_path_MAGIC_CMD"; then
7698 if test -n "$ac_tool_prefix"; then
7699 { $as_echo "$as_me:$LINENO: checking for file" >&5
7700 $as_echo_n "checking for file... " >&6; }
7701 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7702 $as_echo_n "(cached) " >&6
7706 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7709 lt_save_MAGIC_CMD="$MAGIC_CMD"
7710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7711 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7712 for ac_dir in $ac_dummy; do
7714 test -z "$ac_dir" && ac_dir=.
7715 if test -f $ac_dir/file; then
7716 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7717 if test -n "$file_magic_test_file"; then
7718 case $deplibs_check_method in
7720 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7721 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7723 $EGREP "$file_magic_regex" > /dev/null; then
7728 *** Warning: the command libtool uses to detect shared libraries,
7729 *** $file_magic_cmd, produces output that libtool cannot recognize.
7730 *** The result is that libtool may fail to recognize shared libraries
7731 *** as such. This will affect the creation of libtool libraries that
7732 *** depend on shared libraries, but programs linked with such libtool
7733 *** libraries will work regardless of this problem. Nevertheless, you
7734 *** may want to report the problem to your system manager and/or to
7735 *** bug-libtool@gnu.org
7745 MAGIC_CMD="$lt_save_MAGIC_CMD"
7750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751 if test -n "$MAGIC_CMD"; then
7752 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7753 $as_echo "$MAGIC_CMD" >&6; }
7755 { $as_echo "$as_me:$LINENO: result: no" >&5
7756 $as_echo "no" >&6; }
7769 # Use C for the default configuration in the libtool script
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779 # Source file extension for C test sources.
7782 # Object file extension for compiled C test sources.
7786 # Code to be used in simple compile tests
7787 lt_simple_compile_test_code="int some_variable = 0;"
7789 # Code to be used in simple link tests
7790 lt_simple_link_test_code='int main(){return(0);}'
7798 # If no C compiler was specified, use CC.
7801 # If no C compiler flags were specified, use CFLAGS.
7802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7804 # Allow CC to be a program name with arguments.
7807 # Save the default compiler, since it gets overwritten when the other
7808 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7809 compiler_DEFAULT=$CC
7811 # save warnings/boilerplate of simple test code
7812 ac_outfile=conftest.$ac_objext
7813 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7814 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7815 _lt_compiler_boilerplate=`cat conftest.err`
7818 ac_outfile=conftest.$ac_objext
7819 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7820 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7821 _lt_linker_boilerplate=`cat conftest.err`
7825 if test -n "$compiler"; then
7827 lt_prog_compiler_no_builtin_flag=
7829 if test "$GCC" = yes; then
7830 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7832 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7833 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7834 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7835 $as_echo_n "(cached) " >&6
7837 lt_cv_prog_compiler_rtti_exceptions=no
7838 ac_outfile=conftest.$ac_objext
7839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7840 lt_compiler_flag="-fno-rtti -fno-exceptions"
7841 # Insert the option either (1) after the last *FLAGS variable, or
7842 # (2) before a word containing "conftest.", or (3) at the end.
7843 # Note that $ac_compile itself does not contain backslashes and begins
7844 # with a dollar sign (not a hyphen), so the echo should work correctly.
7845 # The option is referenced via a variable to avoid confusing sed.
7846 lt_compile=`echo "$ac_compile" | $SED \
7847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7849 -e 's:$: $lt_compiler_flag:'`
7850 (eval echo "\"\$as_me:7850: $lt_compile\"" >&5)
7851 (eval "$lt_compile" 2>conftest.err)
7853 cat conftest.err >&5
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 if (exit $ac_status) && test -s "$ac_outfile"; then
7856 # The compiler can only warn and ignore the option if not recognized
7857 # So say no if there are warnings other than the usual output.
7858 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7861 lt_cv_prog_compiler_rtti_exceptions=yes
7867 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7868 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7870 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7871 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7883 lt_prog_compiler_wl=
7884 lt_prog_compiler_pic=
7885 lt_prog_compiler_static=
7887 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7888 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7890 if test "$GCC" = yes; then
7891 lt_prog_compiler_wl='-Wl,'
7892 lt_prog_compiler_static='-static'
7896 # All AIX code is PIC.
7897 if test "$host_cpu" = ia64; then
7898 # AIX 5 now supports IA64 processor
7899 lt_prog_compiler_static='-Bstatic'
7906 # see comment about AmigaOS4 .so support
7907 lt_prog_compiler_pic='-fPIC'
7910 # FIXME: we need at least 68020 code to build shared libraries, but
7911 # adding the `-m68020' flag to GCC prevents building anything better,
7913 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7918 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7919 # PIC is the default for these OSes.
7922 mingw* | cygwin* | pw32* | os2* | cegcc*)
7923 # This hack is so that the source file can tell whether it is being
7924 # built for inclusion in a dll (and should export symbols for example).
7925 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7926 # (--disable-auto-import) libraries
7927 lt_prog_compiler_pic='-DDLL_EXPORT'
7930 darwin* | rhapsody*)
7931 # PIC is the default on this platform
7932 # Common symbols not allowed in MH_DYLIB files
7933 lt_prog_compiler_pic='-fno-common'
7937 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7938 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7939 # sets the default TLS model and affects inlining.
7945 lt_prog_compiler_pic='-fPIC'
7951 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7952 # Instead, we relocate shared libraries at runtime.
7956 # Just because we use GCC doesn't mean we suddenly get shared libraries
7957 # on systems that don't support them.
7958 lt_prog_compiler_can_build_shared=no
7963 # QNX uses GNU C++, but need to define -shared option too, otherwise
7965 lt_prog_compiler_pic='-fPIC -shared'
7969 if test -d /usr/nec; then
7970 lt_prog_compiler_pic=-Kconform_pic
7975 lt_prog_compiler_pic='-fPIC'
7979 # PORTME Check for flag to pass linker flags through the system compiler.
7982 lt_prog_compiler_wl='-Wl,'
7983 if test "$host_cpu" = ia64; then
7984 # AIX 5 now supports IA64 processor
7985 lt_prog_compiler_static='-Bstatic'
7987 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7991 mingw* | cygwin* | pw32* | os2* | cegcc*)
7992 # This hack is so that the source file can tell whether it is being
7993 # built for inclusion in a dll (and should export symbols for example).
7994 lt_prog_compiler_pic='-DDLL_EXPORT'
7997 hpux9* | hpux10* | hpux11*)
7998 lt_prog_compiler_wl='-Wl,'
7999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8006 lt_prog_compiler_pic='+Z'
8009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8010 lt_prog_compiler_static='${wl}-a ${wl}archive'
8013 irix5* | irix6* | nonstopux*)
8014 lt_prog_compiler_wl='-Wl,'
8015 # PIC (with -KPIC) is the default.
8016 lt_prog_compiler_static='-non_shared'
8019 linux* | k*bsd*-gnu)
8020 case $cc_basename in
8021 # old Intel for x86_64 which still supported -KPIC.
8023 lt_prog_compiler_wl='-Wl,'
8024 lt_prog_compiler_pic='-KPIC'
8025 lt_prog_compiler_static='-static'
8027 # icc used to be incompatible with GCC.
8028 # ICC 10 doesn't accept -KPIC any more.
8030 lt_prog_compiler_wl='-Wl,'
8031 lt_prog_compiler_pic='-fPIC'
8032 lt_prog_compiler_static='-static'
8034 # Lahey Fortran 8.1.
8036 lt_prog_compiler_wl='-Wl,'
8037 lt_prog_compiler_pic='--shared'
8038 lt_prog_compiler_static='--static'
8040 pgcc* | pgf77* | pgf90* | pgf95*)
8041 # Portland Group compilers (*not* the Pentium gcc compiler,
8042 # which looks to be a dead project)
8043 lt_prog_compiler_wl='-Wl,'
8044 lt_prog_compiler_pic='-fpic'
8045 lt_prog_compiler_static='-Bstatic'
8048 lt_prog_compiler_wl='-Wl,'
8049 # All Alpha code is PIC.
8050 lt_prog_compiler_static='-non_shared'
8053 # IBM XL C 8.0/Fortran 10.1 on PPC
8054 lt_prog_compiler_wl='-Wl,'
8055 lt_prog_compiler_pic='-qpic'
8056 lt_prog_compiler_static='-qstaticlink'
8059 case `$CC -V 2>&1 | sed 5q` in
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 lt_prog_compiler_wl='-Wl,'
8067 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8068 lt_prog_compiler_pic='-KPIC'
8069 lt_prog_compiler_static='-Bstatic'
8070 lt_prog_compiler_wl=''
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-Bstatic'
8083 # QNX uses GNU C++, but need to define -shared option too, otherwise
8085 lt_prog_compiler_pic='-fPIC -shared'
8088 osf3* | osf4* | osf5*)
8089 lt_prog_compiler_wl='-Wl,'
8090 # All OSF/1 code is PIC.
8091 lt_prog_compiler_static='-non_shared'
8095 lt_prog_compiler_static='-non_shared'
8099 lt_prog_compiler_pic='-KPIC'
8100 lt_prog_compiler_static='-Bstatic'
8101 case $cc_basename in
8103 lt_prog_compiler_wl='-Qoption ld ';;
8105 lt_prog_compiler_wl='-Wl,';;
8110 lt_prog_compiler_wl='-Qoption ld '
8111 lt_prog_compiler_pic='-PIC'
8112 lt_prog_compiler_static='-Bstatic'
8115 sysv4 | sysv4.2uw2* | sysv4.3*)
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_pic='-KPIC'
8118 lt_prog_compiler_static='-Bstatic'
8122 if test -d /usr/nec ;then
8123 lt_prog_compiler_pic='-Kconform_pic'
8124 lt_prog_compiler_static='-Bstatic'
8128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_pic='-KPIC'
8131 lt_prog_compiler_static='-Bstatic'
8135 lt_prog_compiler_wl='-Wl,'
8136 lt_prog_compiler_can_build_shared=no
8140 lt_prog_compiler_pic='-pic'
8141 lt_prog_compiler_static='-Bstatic'
8145 lt_prog_compiler_can_build_shared=no
8151 # For platforms which do not support PIC, -DPIC is meaningless:
8153 lt_prog_compiler_pic=
8156 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8159 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8160 $as_echo "$lt_prog_compiler_pic" >&6; }
8168 # Check to make sure the PIC flag actually works.
8170 if test -n "$lt_prog_compiler_pic"; then
8171 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8172 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8173 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8174 $as_echo_n "(cached) " >&6
8176 lt_cv_prog_compiler_pic_works=no
8177 ac_outfile=conftest.$ac_objext
8178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8179 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8180 # Insert the option either (1) after the last *FLAGS variable, or
8181 # (2) before a word containing "conftest.", or (3) at the end.
8182 # Note that $ac_compile itself does not contain backslashes and begins
8183 # with a dollar sign (not a hyphen), so the echo should work correctly.
8184 # The option is referenced via a variable to avoid confusing sed.
8185 lt_compile=`echo "$ac_compile" | $SED \
8186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8188 -e 's:$: $lt_compiler_flag:'`
8189 (eval echo "\"\$as_me:8189: $lt_compile\"" >&5)
8190 (eval "$lt_compile" 2>conftest.err)
8192 cat conftest.err >&5
8193 echo "$as_me:8193: \$? = $ac_status" >&5
8194 if (exit $ac_status) && test -s "$ac_outfile"; then
8195 # The compiler can only warn and ignore the option if not recognized
8196 # So say no if there are warnings other than the usual output.
8197 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8200 lt_cv_prog_compiler_pic_works=yes
8206 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8207 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8209 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8210 case $lt_prog_compiler_pic in
8212 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8215 lt_prog_compiler_pic=
8216 lt_prog_compiler_can_build_shared=no
8227 # Check to make sure the static flag actually works.
8229 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8230 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8231 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8232 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8233 $as_echo_n "(cached) " >&6
8235 lt_cv_prog_compiler_static_works=no
8236 save_LDFLAGS="$LDFLAGS"
8237 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8238 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8240 # The linker can only warn and ignore the option if not recognized
8241 # So say no if there are warnings
8242 if test -s conftest.err; then
8243 # Append any errors to the config.log.
8244 cat conftest.err 1>&5
8245 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8247 if diff conftest.exp conftest.er2 >/dev/null; then
8248 lt_cv_prog_compiler_static_works=yes
8251 lt_cv_prog_compiler_static_works=yes
8255 LDFLAGS="$save_LDFLAGS"
8258 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8259 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8261 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8264 lt_prog_compiler_static=
8273 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8274 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8275 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8276 $as_echo_n "(cached) " >&6
8278 lt_cv_prog_compiler_c_o=no
8279 $RM -r conftest 2>/dev/null
8283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8285 lt_compiler_flag="-o out/conftest2.$ac_objext"
8286 # Insert the option either (1) after the last *FLAGS variable, or
8287 # (2) before a word containing "conftest.", or (3) at the end.
8288 # Note that $ac_compile itself does not contain backslashes and begins
8289 # with a dollar sign (not a hyphen), so the echo should work correctly.
8290 lt_compile=`echo "$ac_compile" | $SED \
8291 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8292 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8293 -e 's:$: $lt_compiler_flag:'`
8294 (eval echo "\"\$as_me:8294: $lt_compile\"" >&5)
8295 (eval "$lt_compile" 2>out/conftest.err)
8297 cat out/conftest.err >&5
8298 echo "$as_me:8298: \$? = $ac_status" >&5
8299 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8301 # The compiler can only warn and ignore the option if not recognized
8302 # So say no if there are warnings
8303 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8304 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8305 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8306 lt_cv_prog_compiler_c_o=yes
8311 # SGI C++ compiler will create directory out/ii_files/ for
8312 # template instantiation
8313 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8314 $RM out/* && rmdir out
8320 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8321 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8328 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8329 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8330 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8331 $as_echo_n "(cached) " >&6
8333 lt_cv_prog_compiler_c_o=no
8334 $RM -r conftest 2>/dev/null
8338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8340 lt_compiler_flag="-o out/conftest2.$ac_objext"
8341 # Insert the option either (1) after the last *FLAGS variable, or
8342 # (2) before a word containing "conftest.", or (3) at the end.
8343 # Note that $ac_compile itself does not contain backslashes and begins
8344 # with a dollar sign (not a hyphen), so the echo should work correctly.
8345 lt_compile=`echo "$ac_compile" | $SED \
8346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8348 -e 's:$: $lt_compiler_flag:'`
8349 (eval echo "\"\$as_me:8349: $lt_compile\"" >&5)
8350 (eval "$lt_compile" 2>out/conftest.err)
8352 cat out/conftest.err >&5
8353 echo "$as_me:8353: \$? = $ac_status" >&5
8354 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8356 # The compiler can only warn and ignore the option if not recognized
8357 # So say no if there are warnings
8358 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8359 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8360 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8361 lt_cv_prog_compiler_c_o=yes
8366 # SGI C++ compiler will create directory out/ii_files/ for
8367 # template instantiation
8368 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8369 $RM out/* && rmdir out
8375 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8376 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8381 hard_links="nottested"
8382 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8383 # do not overwrite the value of need_locks provided by the user
8384 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8385 $as_echo_n "checking if we can lock with hard links... " >&6; }
8388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8390 ln conftest.a conftest.b 2>&5 || hard_links=no
8391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8392 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8393 $as_echo "$hard_links" >&6; }
8394 if test "$hard_links" = no; then
8395 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8396 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8408 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8409 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8412 allow_undefined_flag=
8413 always_export_symbols=no
8415 archive_expsym_cmds=
8416 compiler_needs_object=no
8417 enable_shared_with_static_runtimes=no
8418 export_dynamic_flag_spec=
8419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8420 hardcode_automatic=no
8422 hardcode_direct_absolute=no
8423 hardcode_libdir_flag_spec=
8424 hardcode_libdir_flag_spec_ld=
8425 hardcode_libdir_separator=
8427 hardcode_shlibpath_var=unsupported
8429 link_all_deplibs=unknown
8432 old_archive_from_new_cmds=
8433 old_archive_from_expsyms_cmds=
8434 thread_safe_flag_spec=
8435 whole_archive_flag_spec=
8436 # include_expsyms should be a list of space-separated symbols to be *always*
8437 # included in the symbol list
8439 # exclude_expsyms can be an extended regexp of symbols to exclude
8440 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8442 # as well as any symbol that contains `d'.
8443 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8445 # platforms (ab)use it in PIC code, but their linkers get confused if
8446 # the symbol is explicitly referenced. Since portable code cannot
8447 # rely on this symbol name, it's probably fine to never include it in
8448 # preloaded symbol tables.
8449 # Exclude shared library initialization/finalization symbols.
8450 extract_expsyms_cmds=
8453 cygwin* | mingw* | pw32* | cegcc*)
8454 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8455 # When not using gcc, we currently assume that we are using
8456 # Microsoft Visual C++.
8457 if test "$GCC" != yes; then
8462 # we just hope/assume this is gcc and not c89 (= MSVC++)
8471 if test "$with_gnu_ld" = yes; then
8472 # If archive_cmds runs LD, not CC, wlarc should be empty
8475 # Set some defaults for GNU ld with shared library support. These
8476 # are reset later if shared libraries are not supported. Putting them
8477 # here allows them to be overridden if necessary.
8478 runpath_var=LD_RUN_PATH
8479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8480 export_dynamic_flag_spec='${wl}--export-dynamic'
8481 # ancient GNU ld didn't support --whole-archive et. al.
8482 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8483 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8485 whole_archive_flag_spec=
8487 supports_anon_versioning=no
8488 case `$LD -v 2>&1` in
8489 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8490 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8491 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8492 *\ 2.11.*) ;; # other 2.11 versions
8493 *) supports_anon_versioning=yes ;;
8496 # See if GNU ld supports shared libraries.
8499 # On AIX/PPC, the GNU linker is very broken
8500 if test "$host_cpu" != ia64; then
8504 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8505 *** to be unable to reliably create shared libraries on AIX.
8506 *** Therefore, libtool is disabling shared libraries support. If you
8507 *** really care for shared libraries, you may want to modify your PATH
8508 *** so that a non-GNU linker is found, and then restart.
8517 # see comment about AmigaOS4 .so support
8518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519 archive_expsym_cmds=''
8522 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)'
8523 hardcode_libdir_flag_spec='-L$libdir'
8524 hardcode_minus_L=yes
8530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8531 allow_undefined_flag=unsupported
8532 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8533 # support --undefined. This deserves some investigation. FIXME
8534 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8540 cygwin* | mingw* | pw32* | cegcc*)
8541 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8542 # as there is no search path for DLLs.
8543 hardcode_libdir_flag_spec='-L$libdir'
8544 allow_undefined_flag=unsupported
8545 always_export_symbols=no
8546 enable_shared_with_static_runtimes=yes
8547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8549 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8551 # If the export-symbols file already is a .def file (1st line
8552 # is EXPORTS), use it as is; otherwise, prepend...
8553 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8554 cp $export_symbols $output_objdir/$soname.def;
8556 echo EXPORTS > $output_objdir/$soname.def;
8557 cat $export_symbols >> $output_objdir/$soname.def;
8559 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8567 hardcode_shlibpath_var=no
8568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8569 export_dynamic_flag_spec='${wl}-E'
8570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8571 # Instead, shared libraries are loaded at an image base (0x10000000 by
8572 # default) and relocated if they conflict, which is a slow very memory
8573 # consuming and fragmenting process. To avoid this, we pick a random,
8574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8577 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'
8580 gnu* | linux* | tpf* | k*bsd*-gnu)
8582 if test "$host_os" = linux-dietlibc; then
8583 case $cc_basename in
8584 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8587 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8588 && test "$tmp_diet" = no
8591 tmp_sharedflag='-shared'
8592 case $cc_basename,$host_cpu in
8593 pgcc*) # Portland Group C compiler
8594 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'
8595 tmp_addflag=' $pic_flag'
8597 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8598 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'
8599 tmp_addflag=' $pic_flag -Mnomain' ;;
8600 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8601 tmp_addflag=' -i_dynamic' ;;
8602 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8603 tmp_addflag=' -i_dynamic -nofor_main' ;;
8604 ifc* | ifort*) # Intel Fortran compiler
8605 tmp_addflag=' -nofor_main' ;;
8606 lf95*) # Lahey Fortran 8.1
8607 whole_archive_flag_spec=
8608 tmp_sharedflag='--shared' ;;
8609 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8610 tmp_sharedflag='-qmkshrobj'
8613 case `$CC -V 2>&1 | sed 5q` in
8614 *Sun\ C*) # Sun C 5.9
8615 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8616 compiler_needs_object=yes
8617 tmp_sharedflag='-G' ;;
8618 *Sun\ F*) # Sun Fortran 8.3
8619 tmp_sharedflag='-G' ;;
8621 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623 if test "x$supports_anon_versioning" = xyes; then
8624 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8626 echo "local: *; };" >> $output_objdir/$libname.ver~
8627 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8630 case $cc_basename in
8632 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8633 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8634 hardcode_libdir_flag_spec=
8635 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8636 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8637 if test "x$supports_anon_versioning" = xyes; then
8638 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8640 echo "local: *; };" >> $output_objdir/$libname.ver~
8641 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8652 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8661 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8666 *** create shared libraries on Solaris systems. Therefore, libtool
8667 *** is disabling shared libraries support. We urge you to upgrade GNU
8668 *** binutils to release 2.9.1 or newer. Another option is to modify
8669 *** your PATH or compiler configuration so that the native linker is
8670 *** used, and then restart.
8673 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8682 case `$LD -v 2>&1` in
8683 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8688 *** reliably create shared libraries on SCO systems. Therefore, libtool
8689 *** is disabling shared libraries support. We urge you to upgrade GNU
8690 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8691 *** your PATH or compiler configuration so that the native linker is
8692 *** used, and then restart.
8697 # For security reasons, it is highly recommended that you always
8698 # use absolute paths for naming shared libraries, and exclude the
8699 # DT_RUNPATH tag from executables and libraries. But doing so
8700 # requires that you compile everything twice, which is a pain.
8701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8716 hardcode_shlibpath_var=no
8720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729 if test "$ld_shlibs" = no; then
8731 hardcode_libdir_flag_spec=
8732 export_dynamic_flag_spec=
8733 whole_archive_flag_spec=
8736 # PORTME fill in a description of your system's linker (not GNU ld)
8739 allow_undefined_flag=unsupported
8740 always_export_symbols=yes
8741 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'
8742 # Note: this linker hardcodes the directories in LIBPATH if there
8743 # are no directories specified by -L.
8744 hardcode_minus_L=yes
8745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8746 # Neither direct hardcoding nor static linking is supported with a
8748 hardcode_direct=unsupported
8753 if test "$host_cpu" = ia64; then
8754 # On IA64, the linker does run time linking by default, so we don't
8755 # have to do anything special.
8756 aix_use_runtimelinking=no
8757 exp_sym_flag='-Bexport'
8760 # If we're using GNU nm, then we don't want the "-C" option.
8761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8762 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8763 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'
8765 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'
8767 aix_use_runtimelinking=no
8769 # Test if we are trying to use run time linking or normal
8770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8771 # need to do runtime linking.
8772 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8773 for ld_flag in $LDFLAGS; do
8774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8775 aix_use_runtimelinking=yes
8782 exp_sym_flag='-bexport'
8783 no_entry_flag='-bnoentry'
8786 # When large executables or shared objects are built, AIX ld can
8787 # have problems creating the table of contents. If linking a library
8788 # or program results in "error TOC overflow" add -mminimal-toc to
8789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8794 hardcode_direct_absolute=yes
8795 hardcode_libdir_separator=':'
8796 link_all_deplibs=yes
8797 file_list_spec='${wl}-f,'
8799 if test "$GCC" = yes; then
8800 case $host_os in aix4.[012]|aix4.[012].*)
8801 # We only want to do this on AIX 4.2 and lower, the check
8802 # below for broken collect2 doesn't work under 4.3+
8803 collect2name=`${CC} -print-prog-name=collect2`
8804 if test -f "$collect2name" &&
8805 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8807 # We have reworked collect2
8810 # We have old collect2
8811 hardcode_direct=unsupported
8812 # It fails to find uninstalled libraries when the uninstalled
8813 # path is not listed in the libpath. Setting hardcode_minus_L
8814 # to unsupported forces relinking
8815 hardcode_minus_L=yes
8816 hardcode_libdir_flag_spec='-L$libdir'
8817 hardcode_libdir_separator=
8821 shared_flag='-shared'
8822 if test "$aix_use_runtimelinking" = yes; then
8823 shared_flag="$shared_flag "'${wl}-G'
8827 if test "$host_cpu" = ia64; then
8828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8829 # chokes on -Wl,-G. The following line is correct:
8832 if test "$aix_use_runtimelinking" = yes; then
8833 shared_flag='${wl}-G'
8835 shared_flag='${wl}-bM:SRE'
8840 export_dynamic_flag_spec='${wl}-bexpall'
8841 # It seems that -bexpall does not export symbols beginning with
8842 # underscore (_), so it is better to generate a list of symbols to export.
8843 always_export_symbols=yes
8844 if test "$aix_use_runtimelinking" = yes; then
8845 # Warning - without using the other runtime loading flags (-brtl),
8846 # -berok will link without error, but may produce a broken library.
8847 allow_undefined_flag='-berok'
8848 # Determine the default libpath from the value encoded in an
8850 cat >conftest.$ac_ext <<_ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (ac_try="$ac_link"
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873 (eval "$ac_link") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest$ac_exeext && {
8883 test "$cross_compiling" = yes ||
8884 $as_test_x conftest$ac_exeext
8887 lt_aix_libpath_sed='
8888 /Import File Strings/,/^$/ {
8894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8895 # Check for a 64-bit object if we didn't find anything.
8896 if test -z "$aix_libpath"; then
8897 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8900 $as_echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8906 rm -rf conftest.dSYM
8907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8908 conftest$ac_exeext conftest.$ac_ext
8909 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8911 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8912 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8914 if test "$host_cpu" = ia64; then
8915 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8916 allow_undefined_flag="-z nodefs"
8917 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"
8919 # Determine the default libpath from the value encoded in an
8921 cat >conftest.$ac_ext <<_ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8936 rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943 $as_echo "$ac_try_echo") >&5
8944 (eval "$ac_link") 2>conftest.er1
8946 grep -v '^ *+' conftest.er1 >conftest.err
8948 cat conftest.err >&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest$ac_exeext && {
8954 test "$cross_compiling" = yes ||
8955 $as_test_x conftest$ac_exeext
8958 lt_aix_libpath_sed='
8959 /Import File Strings/,/^$/ {
8965 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8966 # Check for a 64-bit object if we didn't find anything.
8967 if test -z "$aix_libpath"; then
8968 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8971 $as_echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8977 rm -rf conftest.dSYM
8978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8979 conftest$ac_exeext conftest.$ac_ext
8980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8982 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8983 # Warning - without using the other run time loading flags,
8984 # -berok will link without error, but may produce a broken library.
8985 no_undefined_flag=' ${wl}-bernotok'
8986 allow_undefined_flag=' ${wl}-berok'
8987 # Exported symbols can be pulled into shared objects from archives
8988 whole_archive_flag_spec='$convenience'
8989 archive_cmds_need_lc=yes
8990 # This is similar to how AIX traditionally builds its shared libraries.
8991 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'
8999 # see comment about AmigaOS4 .so support
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds=''
9004 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)'
9005 hardcode_libdir_flag_spec='-L$libdir'
9006 hardcode_minus_L=yes
9012 export_dynamic_flag_spec=-rdynamic
9015 cygwin* | mingw* | pw32* | cegcc*)
9016 # When not using gcc, we currently assume that we are using
9017 # Microsoft Visual C++.
9018 # hardcode_libdir_flag_spec is actually meaningless, as there is
9019 # no search path for DLLs.
9020 hardcode_libdir_flag_spec=' '
9021 allow_undefined_flag=unsupported
9022 # Tell ltmain to make .lib files, not .a files.
9024 # Tell ltmain to make .dll files, not .so files.
9026 # FIXME: Setting linknames here is a bad hack.
9027 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9028 # The linker will automatically build a .lib file if we build a DLL.
9029 old_archive_from_new_cmds='true'
9030 # FIXME: Should let the user specify the lib program.
9031 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9032 fix_srcfile_path='`cygpath -w "$srcfile"`'
9033 enable_shared_with_static_runtimes=yes
9036 darwin* | rhapsody*)
9039 archive_cmds_need_lc=no
9041 hardcode_automatic=yes
9042 hardcode_shlibpath_var=unsupported
9043 whole_archive_flag_spec=''
9044 link_all_deplibs=yes
9045 allow_undefined_flag="$_lt_dar_allow_undefined"
9046 case $cc_basename in
9047 ifort*) _lt_dar_can_shared=yes ;;
9048 *) _lt_dar_can_shared=$GCC ;;
9050 if test "$_lt_dar_can_shared" = "yes"; then
9051 output_verbose_link_cmd=echo
9052 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9053 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9054 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9055 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9065 hardcode_libdir_flag_spec='-L$libdir'
9066 hardcode_shlibpath_var=no
9073 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9074 # support. Future versions do this automatically, but an explicit c++rt0.o
9075 # does not break anything, and helps significantly (at the cost of a little
9078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9079 hardcode_libdir_flag_spec='-R$libdir'
9081 hardcode_shlibpath_var=no
9084 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_minus_L=yes
9089 hardcode_shlibpath_var=no
9092 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9093 freebsd* | dragonfly*)
9094 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9095 hardcode_libdir_flag_spec='-R$libdir'
9097 hardcode_shlibpath_var=no
9101 if test "$GCC" = yes; then
9102 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'
9104 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'
9106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9107 hardcode_libdir_separator=:
9110 # hardcode_minus_L: Not really in the search PATH,
9111 # but as the default location of the library.
9112 hardcode_minus_L=yes
9113 export_dynamic_flag_spec='${wl}-E'
9117 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9118 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9122 if test "$with_gnu_ld" = no; then
9123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9124 hardcode_libdir_flag_spec_ld='+b $libdir'
9125 hardcode_libdir_separator=:
9127 hardcode_direct_absolute=yes
9128 export_dynamic_flag_spec='${wl}-E'
9129 # hardcode_minus_L: Not really in the search PATH,
9130 # but as the default location of the library.
9131 hardcode_minus_L=yes
9136 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9139 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9151 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9161 if test "$with_gnu_ld" = no; then
9162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9163 hardcode_libdir_separator=:
9168 hardcode_shlibpath_var=no
9172 hardcode_direct_absolute=yes
9173 export_dynamic_flag_spec='${wl}-E'
9175 # hardcode_minus_L: Not really in the search PATH,
9176 # but as the default location of the library.
9177 hardcode_minus_L=yes
9183 irix5* | irix6* | nonstopux*)
9184 if test "$GCC" = yes; then
9185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9186 # Try to use the -exported_symbol ld option, if it does not
9187 # work, assume that -exports_file does not work either and
9188 # implicitly export all symbols.
9189 save_LDFLAGS="$LDFLAGS"
9190 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9191 cat >conftest.$ac_ext <<_ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9201 $as_echo "$ac_try_echo") >&5
9202 (eval "$ac_link") 2>conftest.er1
9204 grep -v '^ *+' conftest.er1 >conftest.err
9206 cat conftest.err >&5
9207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest$ac_exeext && {
9212 test "$cross_compiling" = yes ||
9213 $as_test_x conftest$ac_exeext
9215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9218 $as_echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9224 rm -rf conftest.dSYM
9225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9226 conftest$ac_exeext conftest.$ac_ext
9227 LDFLAGS="$save_LDFLAGS"
9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9232 archive_cmds_need_lc='no'
9233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234 hardcode_libdir_separator=:
9236 link_all_deplibs=yes
9240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9243 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9245 hardcode_libdir_flag_spec='-R$libdir'
9247 hardcode_shlibpath_var=no
9251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254 hardcode_libdir_separator=:
9255 hardcode_shlibpath_var=no
9262 if test -f /usr/libexec/ld.so; then
9264 hardcode_shlibpath_var=no
9265 hardcode_direct_absolute=yes
9266 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9270 export_dynamic_flag_spec='${wl}-E'
9273 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9275 hardcode_libdir_flag_spec='-R$libdir'
9278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 hardcode_minus_L=yes
9291 allow_undefined_flag=unsupported
9292 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'
9293 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9297 if test "$GCC" = yes; then
9298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9299 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9301 allow_undefined_flag=' -expect_unresolved \*'
9302 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9304 archive_cmds_need_lc='no'
9305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306 hardcode_libdir_separator=:
9309 osf4* | osf5*) # as osf3* with the addition of -msym flag
9310 if test "$GCC" = yes; then
9311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9312 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315 allow_undefined_flag=' -expect_unresolved \*'
9316 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9317 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9318 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9320 # Both c and cxx compiler support -rpath directly
9321 hardcode_libdir_flag_spec='-rpath $libdir'
9323 archive_cmds_need_lc='no'
9324 hardcode_libdir_separator=:
9328 no_undefined_flag=' -z defs'
9329 if test "$GCC" = yes; then
9331 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9333 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9335 case `$CC -V 2>&1` in
9338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9344 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9346 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_shlibpath_var=no
9353 solaris2.[0-5] | solaris2.[0-5].*) ;;
9355 # The compiler driver will combine and reorder linker options,
9356 # but understands `-z linker_flag'. GCC discards it without `$wl',
9357 # but is careful enough not to reorder.
9358 # Supported since Solaris 2.6 (maybe 2.5.1?)
9359 if test "$GCC" = yes; then
9360 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9362 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9366 link_all_deplibs=yes
9370 if test "x$host_vendor" = xsequent; then
9371 # Use $CC to link under sequent, because it throws in some extra .o
9372 # files that make .init and .fini sections work.
9373 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_libdir_flag_spec='-L$libdir'
9379 hardcode_minus_L=yes
9380 hardcode_shlibpath_var=no
9384 case $host_vendor in
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_direct=yes # is this really true???
9390 ## LD is ld it makes a PLAMLIB
9391 ## CC just makes a GrossModule.
9392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9393 reload_cmds='$CC -r -o $output$reload_objs'
9397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9401 runpath_var='LD_RUN_PATH'
9402 hardcode_shlibpath_var=no
9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_shlibpath_var=no
9408 export_dynamic_flag_spec='-Bexport'
9412 if test -d /usr/nec; then
9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_shlibpath_var=no
9415 runpath_var=LD_RUN_PATH
9416 hardcode_runpath_var=yes
9421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9422 no_undefined_flag='${wl}-z,text'
9423 archive_cmds_need_lc=no
9424 hardcode_shlibpath_var=no
9425 runpath_var='LD_RUN_PATH'
9427 if test "$GCC" = yes; then
9428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 sysv5* | sco3.2v5* | sco5v6*)
9437 # Note: We can NOT use -z defs as we might desire, because we do not
9438 # link with -lc, and that would cause any symbols used from libc to
9439 # always be unresolved, which means just about no library would
9440 # ever link correctly. If we're not using GNU ld we use -z text
9441 # though, which does catch some bad symbols but isn't as heavy-handed
9443 no_undefined_flag='${wl}-z,text'
9444 allow_undefined_flag='${wl}-z,nodefs'
9445 archive_cmds_need_lc=no
9446 hardcode_shlibpath_var=no
9447 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9448 hardcode_libdir_separator=':'
9449 link_all_deplibs=yes
9450 export_dynamic_flag_spec='${wl}-Bexport'
9451 runpath_var='LD_RUN_PATH'
9453 if test "$GCC" = yes; then
9454 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_libdir_flag_spec='-L$libdir'
9465 hardcode_shlibpath_var=no
9473 if test x$host_vendor = xsni; then
9475 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9476 export_dynamic_flag_spec='${wl}-Blargedynsym'
9482 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9483 $as_echo "$ld_shlibs" >&6; }
9484 test "$ld_shlibs" = no && can_build_shared=no
9486 with_gnu_ld=$with_gnu_ld
9503 # Do we need to explicitly link libc?
9505 case "x$archive_cmds_need_lc" in
9507 # Assume -lc should be added
9508 archive_cmds_need_lc=yes
9510 if test "$enable_shared" = yes && test "$GCC" = yes; then
9511 case $archive_cmds in
9513 # FIXME: we may have to deal with multi-command sequences.
9516 # Test whether the compiler implicitly links with -lc since on some
9517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9518 # to ld, don't add -lc before -lgcc.
9519 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525 (eval $ac_compile) 2>&5
9527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } 2>conftest.err; then
9531 libobjs=conftest.$ac_objext
9533 wl=$lt_prog_compiler_wl
9534 pic_flag=$lt_prog_compiler_pic
9540 lt_save_allow_undefined_flag=$allow_undefined_flag
9541 allow_undefined_flag=
9542 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9543 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }
9548 archive_cmds_need_lc=no
9550 archive_cmds_need_lc=yes
9552 allow_undefined_flag=$lt_save_allow_undefined_flag
9554 cat conftest.err 1>&5
9557 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9558 $as_echo "$archive_cmds_need_lc" >&6; }
9721 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9722 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9724 if test "$GCC" = yes; then
9726 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9727 *) lt_awk_arg="/^libraries:/" ;;
9729 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9730 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9731 # if the path contains ";" then we assume it to be the separator
9732 # otherwise default to the standard path separator (i.e. ":") - it is
9733 # assumed that no part of a normal pathname contains ";" but that should
9734 # okay in the real world where ";" in dirpaths is itself problematic.
9735 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9737 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9739 # Ok, now we have the path, separated by spaces, we can step through it
9740 # and add multilib dir if necessary.
9741 lt_tmp_lt_search_path_spec=
9742 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9743 for lt_sys_path in $lt_search_path_spec; do
9744 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9745 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9747 test -d "$lt_sys_path" && \
9748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9751 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9752 BEGIN {RS=" "; FS="/|\n";} {
9755 for (lt_i = NF; lt_i > 0; lt_i--) {
9756 if ($lt_i != "" && $lt_i != ".") {
9757 if ($lt_i == "..") {
9760 if (lt_count == 0) {
9761 lt_foo="/" $lt_i lt_foo;
9768 if (lt_foo != "") { lt_freq[lt_foo]++; }
9769 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9771 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9773 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9776 libname_spec='lib$name'
9784 shlibpath_overrides_runpath=unknown
9786 dynamic_linker="$host_os ld.so"
9787 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9788 need_lib_prefix=unknown
9789 hardcode_into_libs=no
9791 # when you set need_version to no, make sure it does not cause -set_version
9792 # flags to be left without arguments
9793 need_version=unknown
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9799 shlibpath_var=LIBPATH
9801 # AIX 3 has no versioning support, so we append a major version to the name.
9802 soname_spec='${libname}${release}${shared_ext}$major'
9809 hardcode_into_libs=yes
9810 if test "$host_cpu" = ia64; then
9811 # AIX 5 supports IA64
9812 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9813 shlibpath_var=LD_LIBRARY_PATH
9815 # With GCC up to 2.95.x, collect2 would create an import file
9816 # for dependence libraries. The import file would start with
9817 # the line `#! .'. This would cause the generated library to
9818 # depend on `.', always an invalid library. This was fixed in
9819 # development snapshots of GCC prior to 3.0.
9821 aix4 | aix4.[01] | aix4.[01].*)
9822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9824 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9832 # soname into executable. Probably we can add versioning support to
9833 # collect2, so additional links can be useful in future.
9834 if test "$aix_use_runtimelinking" = yes; then
9835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9836 # instead of lib<name>.a to let people know that these are not
9837 # typical AIX shared libraries.
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 # We preserve .a as extension for shared libraries through AIX4.2
9841 # and later when we are not doing run time linking.
9842 library_names_spec='${libname}${release}.a $libname.a'
9843 soname_spec='${libname}${release}${shared_ext}$major'
9845 shlibpath_var=LIBPATH
9852 # Since July 2007 AmigaOS4 officially supports .so libraries.
9853 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857 library_names_spec='$libname.ixlibrary $libname.a'
9858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9859 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'
9865 library_names_spec='${libname}${shared_ext}'
9866 dynamic_linker="$host_os ld.so"
9867 shlibpath_var=LIBRARY_PATH
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874 soname_spec='${libname}${release}${shared_ext}$major'
9875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9876 shlibpath_var=LD_LIBRARY_PATH
9877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9879 # the default ld.so.conf also contains /usr/contrib/lib and
9880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9881 # libtool to hard-code these into programs
9884 cygwin* | mingw* | pw32* | cegcc*)
9885 version_type=windows
9890 case $GCC,$host_os in
9891 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9892 library_names_spec='$libname.dll.a'
9893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9894 postinstall_cmds='base_file=`basename \${file}`~
9895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9896 dldir=$destdir/`dirname \$dlpath`~
9897 test -d \$dldir || mkdir -p \$dldir~
9898 $install_prog $dir/$dlname \$dldir/$dlname~
9899 chmod a+x \$dldir/$dlname~
9900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9904 dlpath=$dir/\$dldll~
9906 shlibpath_overrides_runpath=yes
9910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9915 # MinGW DLLs use traditional 'lib' prefix
9916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9917 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9918 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9919 # It is most probably a Windows format PATH printed by
9920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9921 # path with ; separators, and with drive letters. We can handle the
9922 # drive letters (cygwin fileutils understands them), so leave them,
9923 # especially as we might pass files found there to a mingw objdump,
9924 # which wouldn't understand a cygwinified path. Ahh.
9925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9927 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9931 # pw32 DLLs use 'pw' prefix rather than 'lib'
9932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9941 dynamic_linker='Win32 ld.exe'
9942 # FIXME: first we should search . and the directory the executable is in
9946 darwin* | rhapsody*)
9947 dynamic_linker="$host_os dyld"
9951 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9952 soname_spec='${libname}${release}${major}$shared_ext'
9953 shlibpath_overrides_runpath=yes
9954 shlibpath_var=DYLD_LIBRARY_PATH
9955 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9957 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9958 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
9974 freebsd* | dragonfly*)
9975 # DragonFly does not have aout. When/if they implement a new
9976 # versioning mechanism, adjust this.
9977 if test -x /usr/bin/objformat; then
9978 objformat=`/usr/bin/objformat`
9981 freebsd[123]*) objformat=aout ;;
9985 version_type=freebsd-$objformat
9986 case $version_type in
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9997 shlibpath_var=LD_LIBRARY_PATH
10000 shlibpath_overrides_runpath=yes
10002 freebsd3.[01]* | freebsdelf3.[01]*)
10003 shlibpath_overrides_runpath=yes
10004 hardcode_into_libs=yes
10006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10008 shlibpath_overrides_runpath=no
10009 hardcode_into_libs=yes
10011 *) # from 4.6 on, and DragonFly
10012 shlibpath_overrides_runpath=yes
10013 hardcode_into_libs=yes
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 hardcode_into_libs=yes
10028 hpux9* | hpux10* | hpux11*)
10029 # Give a soname corresponding to the major version so that dld.sl refuses to
10030 # link against other versions.
10037 hardcode_into_libs=yes
10038 dynamic_linker="$host_os dld.so"
10039 shlibpath_var=LD_LIBRARY_PATH
10040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 if test "X$HPUX_IA64_MODE" = X32; then
10044 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10046 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10052 hardcode_into_libs=yes
10053 dynamic_linker="$host_os dld.sl"
10054 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10063 dynamic_linker="$host_os dld.sl"
10064 shlibpath_var=SHLIB_PATH
10065 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10070 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10071 postinstall_cmds='chmod 555 $lib'
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10079 soname_spec='${libname}${release}${shared_ext}$major'
10080 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 shlibpath_overrides_runpath=no
10083 hardcode_into_libs=yes
10086 irix5* | irix6* | nonstopux*)
10088 nonstopux*) version_type=nonstopux ;;
10090 if test "$lt_cv_prog_gnu_ld" = yes; then
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10101 irix5* | nonstopux*)
10102 libsuff= shlibsuff=
10105 case $LD in # libtool.m4 will add one of these switches to LD
10106 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10107 libsuff= shlibsuff= libmagic=32-bit;;
10108 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10109 libsuff=32 shlibsuff=N32 libmagic=N32;;
10110 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10111 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10112 *) libsuff= shlibsuff= libmagic=never-match;;
10116 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10117 shlibpath_overrides_runpath=no
10118 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10119 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10120 hardcode_into_libs=yes
10123 # No shared lib support for Linux oldld, aout, or coff.
10124 linux*oldld* | linux*aout* | linux*coff*)
10128 # This must be Linux ELF.
10129 linux* | k*bsd*-gnu)
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=no
10138 # Some binutils ld are patched to set DT_RUNPATH
10139 save_LDFLAGS=$LDFLAGS
10140 save_libdir=$libdir
10141 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10142 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10143 cat >conftest.$ac_ext <<_ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10165 $as_echo "$ac_try_echo") >&5
10166 (eval "$ac_link") 2>conftest.er1
10168 grep -v '^ *+' conftest.er1 >conftest.err
10170 cat conftest.err >&5
10171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest$ac_exeext && {
10176 test "$cross_compiling" = yes ||
10177 $as_test_x conftest$ac_exeext
10179 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10180 shlibpath_overrides_runpath=yes
10184 $as_echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10190 rm -rf conftest.dSYM
10191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LDFLAGS=$save_LDFLAGS
10194 libdir=$save_libdir
10196 # This implies no fast_install, which is unacceptable.
10197 # Some rework will be needed to allow for fast_install
10198 # before this can be enabled.
10199 hardcode_into_libs=yes
10201 # Add ABI-specific directories to the system library path.
10202 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10204 # Append ld.so.conf contents to the search path
10205 if test -f /etc/ld.so.conf; then
10206 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10207 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10210 # We used to test for /lib/ld.so.1 and disable shared libraries on
10211 # powerpc, because MkLinux only supported shared libraries with the
10212 # GNU dynamic linker. Since this was broken with cross compilers,
10213 # most powerpc-linux boxes support dynamic linking these days and
10214 # people can always --disable-shared, the test was removed, and we
10215 # assume the GNU/Linux dynamic linker is in use.
10216 dynamic_linker='GNU/Linux ld.so'
10223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10226 dynamic_linker='NetBSD (a.out) ld.so'
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 dynamic_linker='NetBSD ld.elf_so'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=yes
10234 hardcode_into_libs=yes
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=yes
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249 soname_spec='${libname}${release}${shared_ext}$major'
10250 shlibpath_var=LD_LIBRARY_PATH
10251 shlibpath_overrides_runpath=no
10252 hardcode_into_libs=yes
10253 dynamic_linker='ldqnx.so'
10258 sys_lib_dlsearch_path_spec="/usr/lib"
10260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10262 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10263 *) need_version=no ;;
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10270 openbsd2.[89] | openbsd2.[89].*)
10271 shlibpath_overrides_runpath=no
10274 shlibpath_overrides_runpath=yes
10278 shlibpath_overrides_runpath=yes
10283 libname_spec='$name'
10286 library_names_spec='$libname${shared_ext} $libname.a'
10287 dynamic_linker='OS/2 ld.exe'
10288 shlibpath_var=LIBPATH
10291 osf3* | osf4* | osf5*)
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=yes
10314 hardcode_into_libs=yes
10315 # ldd complains unless libraries are executable
10316 postinstall_cmds='chmod +x $lib'
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10322 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10325 if test "$with_gnu_ld" = yes; then
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 case $host_vendor in
10338 shlibpath_overrides_runpath=no
10340 runpath_var=LD_RUN_PATH
10348 shlibpath_overrides_runpath=no
10349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10355 if test -d /usr/nec ;then
10357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10358 soname_spec='$libname${shared_ext}.$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10364 version_type=freebsd-elf
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 if test "$with_gnu_ld" = yes; then
10373 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10375 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10382 sys_lib_dlsearch_path_spec='/usr/lib'
10386 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=no
10393 hardcode_into_libs=yes
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10407 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10408 $as_echo "$dynamic_linker" >&6; }
10409 test "$dynamic_linker" = no && can_build_shared=no
10411 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10412 if test "$GCC" = yes; then
10413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10416 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10417 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10419 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10420 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10509 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10512 if test -n "$hardcode_libdir_flag_spec" ||
10513 test -n "$runpath_var" ||
10514 test "X$hardcode_automatic" = "Xyes" ; then
10516 # We can hardcode non-existent directories.
10517 if test "$hardcode_direct" != no &&
10518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10519 # have to relink, otherwise we might link with an installed library
10520 # when we should be linking with a yet-to-be-installed one
10521 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10522 test "$hardcode_minus_L" != no; then
10523 # Linking always hardcodes the temporary library directory.
10524 hardcode_action=relink
10526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10527 hardcode_action=immediate
10530 # We cannot hardcode anything, or else we can only hardcode existing
10532 hardcode_action=unsupported
10534 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10535 $as_echo "$hardcode_action" >&6; }
10537 if test "$hardcode_action" = relink ||
10538 test "$inherit_rpath" = yes; then
10539 # Fast installation is not supported
10540 enable_fast_install=no
10541 elif test "$shlibpath_overrides_runpath" = yes ||
10542 test "$enable_shared" = no; then
10543 # Fast installation is not necessary
10544 enable_fast_install=needless
10552 if test "x$enable_dlopen" != xyes; then
10553 enable_dlopen=unknown
10554 enable_dlopen_self=unknown
10555 enable_dlopen_self_static=unknown
10562 lt_cv_dlopen="load_add_on"
10564 lt_cv_dlopen_self=yes
10567 mingw* | pw32* | cegcc*)
10568 lt_cv_dlopen="LoadLibrary"
10573 lt_cv_dlopen="dlopen"
10578 # if libdl is installed we need to link against it
10579 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10581 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10582 $as_echo_n "(cached) " >&6
10584 ac_check_lib_save_LIBS=$LIBS
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616 (eval "$ac_link") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1 >conftest.err
10620 cat conftest.err >&5
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest$ac_exeext && {
10626 test "$cross_compiling" = yes ||
10627 $as_test_x conftest$ac_exeext
10629 ac_cv_lib_dl_dlopen=yes
10631 $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ac_cv_lib_dl_dlopen=no
10637 rm -rf conftest.dSYM
10638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10639 conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10642 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10643 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10644 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10648 lt_cv_dlopen="dyld"
10650 lt_cv_dlopen_self=yes
10657 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10658 $as_echo_n "checking for shl_load... " >&6; }
10659 if test "${ac_cv_func_shl_load+set}" = set; then
10660 $as_echo_n "(cached) " >&6
10662 cat >conftest.$ac_ext <<_ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10668 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10670 #define shl_load innocuous_shl_load
10672 /* System header to define __stub macros and hopefully few prototypes,
10673 which can conflict with char shl_load (); below.
10674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10675 <limits.h> exists even on freestanding compilers. */
10678 # include <limits.h>
10680 # include <assert.h>
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10692 /* The GNU C library defines this for functions which it implements
10693 to always fail with ENOSYS. Some functions are actually named
10694 something starting with __ and the normal name is an alias. */
10695 #if defined __stub_shl_load || defined __stub___shl_load
10702 return shl_load ();
10707 rm -f conftest.$ac_objext conftest$ac_exeext
10708 if { (ac_try="$ac_link"
10709 case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10714 $as_echo "$ac_try_echo") >&5
10715 (eval "$ac_link") 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } && {
10722 test -z "$ac_c_werror_flag" ||
10723 test ! -s conftest.err
10724 } && test -s conftest$ac_exeext && {
10725 test "$cross_compiling" = yes ||
10726 $as_test_x conftest$ac_exeext
10728 ac_cv_func_shl_load=yes
10730 $as_echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_cv_func_shl_load=no
10736 rm -rf conftest.dSYM
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738 conftest$ac_exeext conftest.$ac_ext
10740 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10741 $as_echo "$ac_cv_func_shl_load" >&6; }
10742 if test "x$ac_cv_func_shl_load" = x""yes; then
10743 lt_cv_dlopen="shl_load"
10745 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10746 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10747 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10748 $as_echo_n "(cached) " >&6
10750 ac_check_lib_save_LIBS=$LIBS
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10769 return shl_load ();
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10781 $as_echo "$ac_try_echo") >&5
10782 (eval "$ac_link") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest$ac_exeext && {
10792 test "$cross_compiling" = yes ||
10793 $as_test_x conftest$ac_exeext
10795 ac_cv_lib_dld_shl_load=yes
10797 $as_echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10800 ac_cv_lib_dld_shl_load=no
10803 rm -rf conftest.dSYM
10804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10805 conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10809 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10810 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10811 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10813 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10814 $as_echo_n "checking for dlopen... " >&6; }
10815 if test "${ac_cv_func_dlopen+set}" = set; then
10816 $as_echo_n "(cached) " >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10826 #define dlopen innocuous_dlopen
10828 /* System header to define __stub macros and hopefully few prototypes,
10829 which can conflict with char dlopen (); below.
10830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10831 <limits.h> exists even on freestanding compilers. */
10834 # include <limits.h>
10836 # include <assert.h>
10841 /* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10848 /* The GNU C library defines this for functions which it implements
10849 to always fail with ENOSYS. Some functions are actually named
10850 something starting with __ and the normal name is an alias. */
10851 #if defined __stub_dlopen || defined __stub___dlopen
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10870 $as_echo "$ac_try_echo") >&5
10871 (eval "$ac_link") 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest$ac_exeext && {
10881 test "$cross_compiling" = yes ||
10882 $as_test_x conftest$ac_exeext
10884 ac_cv_func_dlopen=yes
10886 $as_echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_cv_func_dlopen=no
10892 rm -rf conftest.dSYM
10893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10894 conftest$ac_exeext conftest.$ac_ext
10896 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10897 $as_echo "$ac_cv_func_dlopen" >&6; }
10898 if test "x$ac_cv_func_dlopen" = x""yes; then
10899 lt_cv_dlopen="dlopen"
10901 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10904 $as_echo_n "(cached) " >&6
10906 ac_check_lib_save_LIBS=$LIBS
10908 cat >conftest.$ac_ext <<_ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10930 rm -f conftest.$ac_objext conftest$ac_exeext
10931 if { (ac_try="$ac_link"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10937 $as_echo "$ac_try_echo") >&5
10938 (eval "$ac_link") 2>conftest.er1
10940 grep -v '^ *+' conftest.er1 >conftest.err
10942 cat conftest.err >&5
10943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } && {
10945 test -z "$ac_c_werror_flag" ||
10946 test ! -s conftest.err
10947 } && test -s conftest$ac_exeext && {
10948 test "$cross_compiling" = yes ||
10949 $as_test_x conftest$ac_exeext
10951 ac_cv_lib_dl_dlopen=yes
10953 $as_echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_cv_lib_dl_dlopen=no
10959 rm -rf conftest.dSYM
10960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10961 conftest$ac_exeext conftest.$ac_ext
10962 LIBS=$ac_check_lib_save_LIBS
10964 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10965 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10966 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10969 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10970 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10971 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10972 $as_echo_n "(cached) " >&6
10974 ac_check_lib_save_LIBS=$LIBS
10975 LIBS="-lsvld $LIBS"
10976 cat >conftest.$ac_ext <<_ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10983 /* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (ac_try="$ac_link"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11005 $as_echo "$ac_try_echo") >&5
11006 (eval "$ac_link") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } && {
11013 test -z "$ac_c_werror_flag" ||
11014 test ! -s conftest.err
11015 } && test -s conftest$ac_exeext && {
11016 test "$cross_compiling" = yes ||
11017 $as_test_x conftest$ac_exeext
11019 ac_cv_lib_svld_dlopen=yes
11021 $as_echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 ac_cv_lib_svld_dlopen=no
11027 rm -rf conftest.dSYM
11028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11029 conftest$ac_exeext conftest.$ac_ext
11030 LIBS=$ac_check_lib_save_LIBS
11032 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11033 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11034 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11037 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11038 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11039 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11040 $as_echo_n "(cached) " >&6
11042 ac_check_lib_save_LIBS=$LIBS
11044 cat >conftest.$ac_ext <<_ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11051 /* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11061 return dld_link ();
11066 rm -f conftest.$ac_objext conftest$ac_exeext
11067 if { (ac_try="$ac_link"
11068 case "(($ac_try" in
11069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11070 *) ac_try_echo=$ac_try;;
11072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11073 $as_echo "$ac_try_echo") >&5
11074 (eval "$ac_link") 2>conftest.er1
11076 grep -v '^ *+' conftest.er1 >conftest.err
11078 cat conftest.err >&5
11079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } && {
11081 test -z "$ac_c_werror_flag" ||
11082 test ! -s conftest.err
11083 } && test -s conftest$ac_exeext && {
11084 test "$cross_compiling" = yes ||
11085 $as_test_x conftest$ac_exeext
11087 ac_cv_lib_dld_dld_link=yes
11089 $as_echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 ac_cv_lib_dld_dld_link=no
11095 rm -rf conftest.dSYM
11096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11097 conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11101 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11102 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11103 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11124 if test "x$lt_cv_dlopen" != xno; then
11130 case $lt_cv_dlopen in
11132 save_CPPFLAGS="$CPPFLAGS"
11133 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11135 save_LDFLAGS="$LDFLAGS"
11136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11139 LIBS="$lt_cv_dlopen_libs $LIBS"
11141 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11142 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11143 if test "${lt_cv_dlopen_self+set}" = set; then
11144 $as_echo_n "(cached) " >&6
11146 if test "$cross_compiling" = yes; then :
11147 lt_cv_dlopen_self=cross
11149 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11150 lt_status=$lt_dlunknown
11151 cat > conftest.$ac_ext <<_LT_EOF
11152 #line 11152 "configure"
11153 #include "confdefs.h"
11162 # define LT_DLGLOBAL RTLD_GLOBAL
11165 # define LT_DLGLOBAL DL_GLOBAL
11167 # define LT_DLGLOBAL 0
11171 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11172 find out it does not work in some platform. */
11173 #ifndef LT_DLLAZY_OR_NOW
11175 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11178 # define LT_DLLAZY_OR_NOW DL_LAZY
11181 # define LT_DLLAZY_OR_NOW RTLD_NOW
11184 # define LT_DLLAZY_OR_NOW DL_NOW
11186 # define LT_DLLAZY_OR_NOW 0
11193 void fnord() { int i=42;}
11196 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11197 int status = $lt_dlunknown;
11201 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11202 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11203 /* dlclose (self); */
11211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11212 (eval $ac_link) 2>&5
11214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11216 (./conftest; exit; ) >&5 2>/dev/null
11218 case x$lt_status in
11219 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11220 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11221 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11224 # compilation failed
11225 lt_cv_dlopen_self=no
11232 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11233 $as_echo "$lt_cv_dlopen_self" >&6; }
11235 if test "x$lt_cv_dlopen_self" = xyes; then
11236 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11237 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11238 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11239 if test "${lt_cv_dlopen_self_static+set}" = set; then
11240 $as_echo_n "(cached) " >&6
11242 if test "$cross_compiling" = yes; then :
11243 lt_cv_dlopen_self_static=cross
11245 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11246 lt_status=$lt_dlunknown
11247 cat > conftest.$ac_ext <<_LT_EOF
11248 #line 11248 "configure"
11249 #include "confdefs.h"
11258 # define LT_DLGLOBAL RTLD_GLOBAL
11261 # define LT_DLGLOBAL DL_GLOBAL
11263 # define LT_DLGLOBAL 0
11267 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11268 find out it does not work in some platform. */
11269 #ifndef LT_DLLAZY_OR_NOW
11271 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11274 # define LT_DLLAZY_OR_NOW DL_LAZY
11277 # define LT_DLLAZY_OR_NOW RTLD_NOW
11280 # define LT_DLLAZY_OR_NOW DL_NOW
11282 # define LT_DLLAZY_OR_NOW 0
11289 void fnord() { int i=42;}
11292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11293 int status = $lt_dlunknown;
11297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11298 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11299 /* dlclose (self); */
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>&5
11310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11312 (./conftest; exit; ) >&5 2>/dev/null
11314 case x$lt_status in
11315 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11316 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11317 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11320 # compilation failed
11321 lt_cv_dlopen_self_static=no
11328 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11329 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11332 CPPFLAGS="$save_CPPFLAGS"
11333 LDFLAGS="$save_LDFLAGS"
11338 case $lt_cv_dlopen_self in
11339 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11340 *) enable_dlopen_self=unknown ;;
11343 case $lt_cv_dlopen_self_static in
11344 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11345 *) enable_dlopen_self_static=unknown ;;
11367 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11368 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11369 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11370 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11371 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11372 { $as_echo "$as_me:$LINENO: result: yes" >&5
11373 $as_echo "yes" >&6; }
11375 # FIXME - insert some real tests, host_os isn't really good enough
11378 if test -n "$STRIP" ; then
11379 striplib="$STRIP -x"
11380 old_striplib="$STRIP -S"
11381 { $as_echo "$as_me:$LINENO: result: yes" >&5
11382 $as_echo "yes" >&6; }
11384 { $as_echo "$as_me:$LINENO: result: no" >&5
11385 $as_echo "no" >&6; }
11389 { $as_echo "$as_me:$LINENO: result: no" >&5
11390 $as_echo "no" >&6; }
11406 # Report which library types will actually be built
11407 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11408 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11409 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11410 $as_echo "$can_build_shared" >&6; }
11412 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11413 $as_echo_n "checking whether to build shared libraries... " >&6; }
11414 test "$can_build_shared" = "no" && enable_shared=no
11416 # On AIX, shared libraries and static libraries use the same namespace, and
11417 # are all built from PIC.
11420 test "$enable_shared" = yes && enable_static=no
11421 if test -n "$RANLIB"; then
11422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11423 postinstall_cmds='$RANLIB $lib'
11428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11429 test "$enable_shared" = yes && enable_static=no
11433 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11434 $as_echo "$enable_shared" >&6; }
11436 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11437 $as_echo_n "checking whether to build static libraries... " >&6; }
11438 # Make sure either enable_shared or enable_static is yes.
11439 test "$enable_shared" = yes || enable_static=yes
11440 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11441 $as_echo "$enable_static" >&6; }
11448 ac_cpp='$CPP $CPPFLAGS'
11449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11467 ac_config_commands="$ac_config_commands libtool"
11472 # Only expand once:
11478 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11479 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11480 # Check whether --enable-maintainer-mode was given.
11481 if test "${enable_maintainer_mode+set}" = set; then
11482 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11484 USE_MAINTAINER_MODE=no
11487 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11488 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11489 if test $USE_MAINTAINER_MODE = yes; then
11490 MAINTAINER_MODE_TRUE=
11491 MAINTAINER_MODE_FALSE='#'
11493 MAINTAINER_MODE_TRUE='#'
11494 MAINTAINER_MODE_FALSE=
11497 MAINT=$MAINTAINER_MODE_TRUE
11502 for ac_header in sys/mman.h
11504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11507 $as_echo_n "checking for $ac_header... " >&6; }
11508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11509 $as_echo_n "(cached) " >&6
11511 ac_res=`eval 'as_val=${'$as_ac_Header'}
11512 $as_echo "$as_val"'`
11513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11514 $as_echo "$ac_res" >&6; }
11516 # Is the header compilable?
11517 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11518 $as_echo_n "checking $ac_header usability... " >&6; }
11519 cat >conftest.$ac_ext <<_ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525 $ac_includes_default
11526 #include <$ac_header>
11528 rm -f conftest.$ac_objext
11529 if { (ac_try="$ac_compile"
11530 case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11535 $as_echo "$ac_try_echo") >&5
11536 (eval "$ac_compile") 2>conftest.er1
11538 grep -v '^ *+' conftest.er1 >conftest.err
11540 cat conftest.err >&5
11541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } && {
11543 test -z "$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 } && test -s conftest.$ac_objext; then
11546 ac_header_compiler=yes
11548 $as_echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 ac_header_compiler=no
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11556 $as_echo "$ac_header_compiler" >&6; }
11558 # Is the header present?
11559 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11560 $as_echo_n "checking $ac_header presence... " >&6; }
11561 cat >conftest.$ac_ext <<_ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <$ac_header>
11569 if { (ac_try="$ac_cpp conftest.$ac_ext"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11575 $as_echo "$ac_try_echo") >&5
11576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11578 grep -v '^ *+' conftest.er1 >conftest.err
11580 cat conftest.err >&5
11581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } >/dev/null && {
11583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11584 test ! -s conftest.err
11586 ac_header_preproc=yes
11588 $as_echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ac_header_preproc=no
11594 rm -f conftest.err conftest.$ac_ext
11595 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11596 $as_echo "$ac_header_preproc" >&6; }
11598 # So? What about this header?
11599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11602 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11605 ac_header_preproc=yes
11608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11621 ## ------------------------------------------- ##
11622 ## Report this to http://gcc.gnu.org/bugs.html ##
11623 ## ------------------------------------------- ##
11625 ) | sed "s/^/$as_me: WARNING: /" >&2
11628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11629 $as_echo_n "checking for $ac_header... " >&6; }
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 $as_echo_n "(cached) " >&6
11633 eval "$as_ac_Header=\$ac_header_preproc"
11635 ac_res=`eval 'as_val=${'$as_ac_Header'}
11636 $as_echo "$as_val"'`
11637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11638 $as_echo "$ac_res" >&6; }
11641 as_val=`eval 'as_val=${'$as_ac_Header'}
11642 $as_echo "$as_val"'`
11643 if test "x$as_val" = x""yes; then
11644 cat >>confdefs.h <<_ACEOF
11645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11653 for ac_func in mmap
11655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11656 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11657 $as_echo_n "checking for $ac_func... " >&6; }
11658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11659 $as_echo_n "(cached) " >&6
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11669 #define $ac_func innocuous_$ac_func
11671 /* System header to define __stub macros and hopefully few prototypes,
11672 which can conflict with char $ac_func (); below.
11673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11674 <limits.h> exists even on freestanding compilers. */
11677 # include <limits.h>
11679 # include <assert.h>
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11691 /* The GNU C library defines this for functions which it implements
11692 to always fail with ENOSYS. Some functions are actually named
11693 something starting with __ and the normal name is an alias. */
11694 #if defined __stub_$ac_func || defined __stub___$ac_func
11701 return $ac_func ();
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (ac_try="$ac_link"
11708 case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11713 $as_echo "$ac_try_echo") >&5
11714 (eval "$ac_link") 2>conftest.er1
11716 grep -v '^ *+' conftest.er1 >conftest.err
11718 cat conftest.err >&5
11719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && {
11721 test -z "$ac_c_werror_flag" ||
11722 test ! -s conftest.err
11723 } && test -s conftest$ac_exeext && {
11724 test "$cross_compiling" = yes ||
11725 $as_test_x conftest$ac_exeext
11727 eval "$as_ac_var=yes"
11729 $as_echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 eval "$as_ac_var=no"
11735 rm -rf conftest.dSYM
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737 conftest$ac_exeext conftest.$ac_ext
11739 ac_res=`eval 'as_val=${'$as_ac_var'}
11740 $as_echo "$as_val"'`
11741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11742 $as_echo "$ac_res" >&6; }
11743 as_val=`eval 'as_val=${'$as_ac_var'}
11744 $as_echo "$as_val"'`
11745 if test "x$as_val" = x""yes; then
11746 cat >>confdefs.h <<_ACEOF
11747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11754 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11755 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11756 $as_echo_n "checking for sys/mman.h... " >&6; }
11757 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11758 $as_echo_n "(cached) " >&6
11760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11761 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11763 # Is the header compilable?
11764 { $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
11765 $as_echo_n "checking sys/mman.h usability... " >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11773 #include <sys/mman.h>
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11782 $as_echo "$ac_try_echo") >&5
11783 (eval "$ac_compile") 2>conftest.er1
11785 grep -v '^ *+' conftest.er1 >conftest.err
11787 cat conftest.err >&5
11788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } && {
11790 test -z "$ac_c_werror_flag" ||
11791 test ! -s conftest.err
11792 } && test -s conftest.$ac_objext; then
11793 ac_header_compiler=yes
11795 $as_echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 ac_header_compiler=no
11801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11802 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11803 $as_echo "$ac_header_compiler" >&6; }
11805 # Is the header present?
11806 { $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
11807 $as_echo_n "checking sys/mman.h presence... " >&6; }
11808 cat >conftest.$ac_ext <<_ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <sys/mman.h>
11816 if { (ac_try="$ac_cpp conftest.$ac_ext"
11817 case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11822 $as_echo "$ac_try_echo") >&5
11823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11825 grep -v '^ *+' conftest.er1 >conftest.err
11827 cat conftest.err >&5
11828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } >/dev/null && {
11830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11831 test ! -s conftest.err
11833 ac_header_preproc=yes
11835 $as_echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 ac_header_preproc=no
11841 rm -f conftest.err conftest.$ac_ext
11842 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11843 $as_echo "$ac_header_preproc" >&6; }
11845 # So? What about this header?
11846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11848 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
11849 $as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11850 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
11851 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
11852 ac_header_preproc=yes
11855 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
11856 $as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
11857 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
11858 $as_echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
11859 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
11860 $as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
11861 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
11862 $as_echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
11863 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
11864 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
11865 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
11866 $as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
11868 ## ------------------------------------------- ##
11869 ## Report this to http://gcc.gnu.org/bugs.html ##
11870 ## ------------------------------------------- ##
11872 ) | sed "s/^/$as_me: WARNING: /" >&2
11875 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11876 $as_echo_n "checking for sys/mman.h... " >&6; }
11877 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11878 $as_echo_n "(cached) " >&6
11880 ac_cv_header_sys_mman_h=$ac_header_preproc
11882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11883 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11886 if test "x$ac_cv_header_sys_mman_h" = x""yes; then
11887 libffi_header_sys_mman_h=yes
11889 libffi_header_sys_mman_h=no
11893 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
11894 $as_echo_n "checking for mmap... " >&6; }
11895 if test "${ac_cv_func_mmap+set}" = set; then
11896 $as_echo_n "(cached) " >&6
11898 cat >conftest.$ac_ext <<_ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11904 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11906 #define mmap innocuous_mmap
11908 /* System header to define __stub macros and hopefully few prototypes,
11909 which can conflict with char mmap (); below.
11910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911 <limits.h> exists even on freestanding compilers. */
11914 # include <limits.h>
11916 # include <assert.h>
11921 /* Override any GCC internal prototype to avoid an error.
11922 Use char because int might match the return type of a GCC
11923 builtin and then its argument prototype would still apply. */
11928 /* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
11931 #if defined __stub_mmap || defined __stub___mmap
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11950 $as_echo "$ac_try_echo") >&5
11951 (eval "$ac_link") 2>conftest.er1
11953 grep -v '^ *+' conftest.er1 >conftest.err
11955 cat conftest.err >&5
11956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } && {
11958 test -z "$ac_c_werror_flag" ||
11959 test ! -s conftest.err
11960 } && test -s conftest$ac_exeext && {
11961 test "$cross_compiling" = yes ||
11962 $as_test_x conftest$ac_exeext
11964 ac_cv_func_mmap=yes
11966 $as_echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11972 rm -rf conftest.dSYM
11973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11974 conftest$ac_exeext conftest.$ac_ext
11976 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11977 $as_echo "$ac_cv_func_mmap" >&6; }
11978 if test "x$ac_cv_func_mmap" = x""yes; then
11979 libffi_func_mmap=yes
11981 libffi_func_mmap=no
11984 if test "$libffi_header_sys_mman_h" != yes \
11985 || test "$libffi_func_mmap" != yes; then
11986 ac_cv_func_mmap_file=no
11987 ac_cv_func_mmap_dev_zero=no
11988 ac_cv_func_mmap_anon=no
11990 { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11991 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11992 if test "${ac_cv_func_mmap_file+set}" = set; then
11993 $as_echo_n "(cached) " >&6
11995 # Add a system to this blacklist if
11996 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11997 # memory area containing the same data that you'd get if you applied
11998 # read() to the same fd. The only system known to have a problem here
11999 # is VMS, where text files have record structure.
12002 ac_cv_func_mmap_file=no ;;
12004 ac_cv_func_mmap_file=yes;;
12007 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12008 $as_echo "$ac_cv_func_mmap_file" >&6; }
12009 { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12010 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12011 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12012 $as_echo_n "(cached) " >&6
12014 # Add a system to this blacklist if it has mmap() but /dev/zero
12015 # does not exist, or if mmapping /dev/zero does not give anonymous
12016 # zeroed pages with both the following properties:
12017 # 1. If you map N consecutive pages in with one call, and then
12018 # unmap any subset of those pages, the pages that were not
12019 # explicitly unmapped remain accessible.
12020 # 2. If you map two adjacent blocks of memory and then unmap them
12021 # both at once, they must both go away.
12022 # Systems known to be in this category are Windows (all variants),
12025 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12026 ac_cv_func_mmap_dev_zero=no ;;
12028 ac_cv_func_mmap_dev_zero=yes;;
12031 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12032 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12034 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12035 { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12036 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12037 if test "${ac_cv_decl_map_anon+set}" = set; then
12038 $as_echo_n "(cached) " >&6
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 #include <sys/types.h>
12047 #include <sys/mman.h>
12048 #include <unistd.h>
12050 #ifndef MAP_ANONYMOUS
12051 #define MAP_ANONYMOUS MAP_ANON
12057 int n = MAP_ANONYMOUS;
12062 rm -f conftest.$ac_objext
12063 if { (ac_try="$ac_compile"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12069 $as_echo "$ac_try_echo") >&5
12070 (eval "$ac_compile") 2>conftest.er1
12072 grep -v '^ *+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && {
12077 test -z "$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12079 } && test -s conftest.$ac_objext; then
12080 ac_cv_decl_map_anon=yes
12082 $as_echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12085 ac_cv_decl_map_anon=no
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12091 $as_echo "$ac_cv_decl_map_anon" >&6; }
12093 if test $ac_cv_decl_map_anon = no; then
12094 ac_cv_func_mmap_anon=no
12096 { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12097 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12098 if test "${ac_cv_func_mmap_anon+set}" = set; then
12099 $as_echo_n "(cached) " >&6
12101 # Add a system to this blacklist if it has mmap() and MAP_ANON or
12102 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12103 # doesn't give anonymous zeroed pages with the same properties listed
12104 # above for use of /dev/zero.
12105 # Systems known to be in this category are Windows, VMS, and SCO Unix.
12107 vms* | cygwin* | pe | mingw* | sco* | udk* )
12108 ac_cv_func_mmap_anon=no ;;
12110 ac_cv_func_mmap_anon=yes;;
12113 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12114 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12118 if test $ac_cv_func_mmap_file = yes; then
12120 cat >>confdefs.h <<\_ACEOF
12121 #define HAVE_MMAP_FILE 1
12125 if test $ac_cv_func_mmap_dev_zero = yes; then
12127 cat >>confdefs.h <<\_ACEOF
12128 #define HAVE_MMAP_DEV_ZERO 1
12132 if test $ac_cv_func_mmap_anon = yes; then
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_MMAP_ANON 1
12141 if test -d $srcdir/testsuite; then
12143 TESTSUBDIR_FALSE='#'
12145 TESTSUBDIR_TRUE='#'
12150 TARGETDIR="unknown"
12153 TARGET=ALPHA; TARGETDIR=alpha;
12154 # Support 128-bit long double, changeable via command-line switch.
12155 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12159 TARGET=ARM; TARGETDIR=arm
12162 amd64-*-freebsd* | amd64-*-openbsd*)
12163 TARGET=X86_64; TARGETDIR=x86
12167 TARGET=X86_64; TARGETDIR=x86
12171 TARGET=AVR32; TARGETDIR=avr32
12175 TARGET=LIBFFI_CRIS; TARGETDIR=cris
12179 TARGET=FRV; TARGETDIR=frv
12182 hppa*-*-linux* | parisc*-*-linux*)
12183 TARGET=PA_LINUX; TARGETDIR=pa
12186 TARGET=PA64_HPUX; TARGETDIR=pa
12189 TARGET=PA_HPUX; TARGETDIR=pa
12192 i?86-*-freebsd* | i?86-*-openbsd*)
12193 TARGET=X86_FREEBSD; TARGETDIR=x86
12195 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*)
12196 TARGET=X86_WIN32; TARGETDIR=x86
12197 # All mingw/cygwin/win32 builds require this for sharedlib
12198 AM_LTLDFLAGS="-no-undefined"
12201 TARGET=X86_DARWIN; TARGETDIR=x86
12203 i?86-*-solaris2.1[0-9]*)
12204 TARGET=X86_64; TARGETDIR=x86
12207 TARGET=X86; TARGETDIR=x86
12211 TARGET=IA64; TARGETDIR=ia64
12215 TARGET=M32R; TARGETDIR=m32r
12219 TARGET=M68K; TARGETDIR=m68k
12222 mips-sgi-irix5.* | mips-sgi-irix6.*)
12223 TARGET=MIPS; TARGETDIR=mips
12226 # Support 128-bit long double for NewABI.
12227 HAVE_LONG_DOUBLE='defined(__mips64)'
12228 TARGET=MIPS; TARGETDIR=mips
12231 powerpc*-*-linux* | powerpc-*-sysv*)
12232 TARGET=POWERPC; TARGETDIR=powerpc
12235 TARGET=POWERPC; TARGETDIR=powerpc
12238 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12240 powerpc-*-aix* | rs6000-*-aix*)
12241 TARGET=POWERPC_AIX; TARGETDIR=powerpc
12243 powerpc-*-freebsd*)
12244 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12246 powerpc64-*-freebsd*)
12247 TARGET=POWERPC; TARGETDIR=powerpc
12250 TARGET=POWERPC; TARGETDIR=powerpc
12253 s390-*-* | s390x-*-*)
12254 TARGET=S390; TARGETDIR=s390
12257 sh-*-* | sh[34]*-*-*)
12258 TARGET=SH; TARGETDIR=sh
12260 sh64-*-* | sh5*-*-*)
12261 TARGET=SH64; TARGETDIR=sh64
12265 TARGET=SPARC; TARGETDIR=sparc
12269 TARGET=X86_DARWIN; TARGETDIR=x86
12272 x86_64-*-cygwin* | x86_64-*-mingw*)
12273 TARGET=X86_WIN64; TARGETDIR=x86
12277 TARGET=X86_64; TARGETDIR=x86
12284 if test $TARGETDIR = unknown; then
12285 { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
12286 $as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
12287 { (exit 1); exit 1; }; }
12290 if test x$TARGET = xMIPS; then
12298 if test x$TARGET = xSPARC; then
12306 if test x$TARGET = xX86; then
12314 if test x$TARGET = xX86_FREEBSD; then
12316 X86_FREEBSD_FALSE='#'
12318 X86_FREEBSD_TRUE='#'
12322 if test x$TARGET = xX86_WIN32; then
12324 X86_WIN32_FALSE='#'
12330 if test x$TARGET = xX86_WIN64; then
12332 X86_WIN64_FALSE='#'
12338 if test x$TARGET = xX86_DARWIN; then
12340 X86_DARWIN_FALSE='#'
12342 X86_DARWIN_TRUE='#'
12346 if test x$TARGET = xALPHA; then
12354 if test x$TARGET = xIA64; then
12362 if test x$TARGET = xM32R; then
12370 if test x$TARGET = xM68K; then
12378 if test x$TARGET = xMOXIE; then
12386 if test x$TARGET = xPOWERPC; then
12394 if test x$TARGET = xPOWERPC_AIX; then
12396 POWERPC_AIX_FALSE='#'
12398 POWERPC_AIX_TRUE='#'
12402 if test x$TARGET = xPOWERPC_DARWIN; then
12403 POWERPC_DARWIN_TRUE=
12404 POWERPC_DARWIN_FALSE='#'
12406 POWERPC_DARWIN_TRUE='#'
12407 POWERPC_DARWIN_FALSE=
12410 if test x$TARGET = xPOWERPC_FREEBSD; then
12411 POWERPC_FREEBSD_TRUE=
12412 POWERPC_FREEBSD_FALSE='#'
12414 POWERPC_FREEBSD_TRUE='#'
12415 POWERPC_FREEBSD_FALSE=
12418 if test x$TARGET = xARM; then
12426 if test x$TARGET = xAVR32; then
12434 if test x$TARGET = xLIBFFI_CRIS; then
12436 LIBFFI_CRIS_FALSE='#'
12438 LIBFFI_CRIS_TRUE='#'
12442 if test x$TARGET = xFRV; then
12450 if test x$TARGET = xS390; then
12458 if test x$TARGET = xX86_64; then
12466 if test x$TARGET = xSH; then
12474 if test x$TARGET = xSH64; then
12482 if test x$TARGET = xPA_LINUX; then
12490 if test x$TARGET = xPA_HPUX; then
12498 if test x$TARGET = xPA64_HPUX; then
12500 PA64_HPUX_FALSE='#'
12507 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12508 $as_echo_n "checking for ANSI C header files... " >&6; }
12509 if test "${ac_cv_header_stdc+set}" = set; then
12510 $as_echo_n "(cached) " >&6
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 #include <stdlib.h>
12519 #include <stdarg.h>
12520 #include <string.h>
12531 rm -f conftest.$ac_objext
12532 if { (ac_try="$ac_compile"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12538 $as_echo "$ac_try_echo") >&5
12539 (eval "$ac_compile") 2>conftest.er1
12541 grep -v '^ *+' conftest.er1 >conftest.err
12543 cat conftest.err >&5
12544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } && {
12546 test -z "$ac_c_werror_flag" ||
12547 test ! -s conftest.err
12548 } && test -s conftest.$ac_objext; then
12549 ac_cv_header_stdc=yes
12551 $as_echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 ac_cv_header_stdc=no
12557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 if test $ac_cv_header_stdc = yes; then
12560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 #include <string.h>
12570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12571 $EGREP "memchr" >/dev/null 2>&1; then
12574 ac_cv_header_stdc=no
12580 if test $ac_cv_header_stdc = yes; then
12581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12582 cat >conftest.$ac_ext <<_ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12588 #include <stdlib.h>
12591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12592 $EGREP "free" >/dev/null 2>&1; then
12595 ac_cv_header_stdc=no
12601 if test $ac_cv_header_stdc = yes; then
12602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12603 if test "$cross_compiling" = yes; then
12606 cat >conftest.$ac_ext <<_ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12613 #include <stdlib.h>
12614 #if ((' ' & 0x0FF) == 0x020)
12615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12618 # define ISLOWER(c) \
12619 (('a' <= (c) && (c) <= 'i') \
12620 || ('j' <= (c) && (c) <= 'r') \
12621 || ('s' <= (c) && (c) <= 'z'))
12622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12630 for (i = 0; i < 256; i++)
12631 if (XOR (islower (i), ISLOWER (i))
12632 || toupper (i) != TOUPPER (i))
12637 rm -f conftest$ac_exeext
12638 if { (ac_try="$ac_link"
12639 case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12644 $as_echo "$ac_try_echo") >&5
12645 (eval "$ac_link") 2>&5
12647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12654 $as_echo "$ac_try_echo") >&5
12655 (eval "$ac_try") 2>&5
12657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12661 $as_echo "$as_me: program exited with status $ac_status" >&5
12662 $as_echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ( exit $ac_status )
12666 ac_cv_header_stdc=no
12668 rm -rf conftest.dSYM
12669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12675 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12676 $as_echo "$ac_cv_header_stdc" >&6; }
12677 if test $ac_cv_header_stdc = yes; then
12679 cat >>confdefs.h <<\_ACEOF
12680 #define STDC_HEADERS 1
12686 for ac_func in memcpy
12688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12689 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12690 $as_echo_n "checking for $ac_func... " >&6; }
12691 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12692 $as_echo_n "(cached) " >&6
12694 cat >conftest.$ac_ext <<_ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12702 #define $ac_func innocuous_$ac_func
12704 /* System header to define __stub macros and hopefully few prototypes,
12705 which can conflict with char $ac_func (); below.
12706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707 <limits.h> exists even on freestanding compilers. */
12710 # include <limits.h>
12712 # include <assert.h>
12717 /* Override any GCC internal prototype to avoid an error.
12718 Use char because int might match the return type of a GCC
12719 builtin and then its argument prototype would still apply. */
12724 /* The GNU C library defines this for functions which it implements
12725 to always fail with ENOSYS. Some functions are actually named
12726 something starting with __ and the normal name is an alias. */
12727 #if defined __stub_$ac_func || defined __stub___$ac_func
12734 return $ac_func ();
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747 (eval "$ac_link") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest$ac_exeext && {
12757 test "$cross_compiling" = yes ||
12758 $as_test_x conftest$ac_exeext
12760 eval "$as_ac_var=yes"
12762 $as_echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 eval "$as_ac_var=no"
12768 rm -rf conftest.dSYM
12769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12770 conftest$ac_exeext conftest.$ac_ext
12772 ac_res=`eval 'as_val=${'$as_ac_var'}
12773 $as_echo "$as_val"'`
12774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12775 $as_echo "$ac_res" >&6; }
12776 as_val=`eval 'as_val=${'$as_ac_var'}
12777 $as_echo "$as_val"'`
12778 if test "x$as_val" = x""yes; then
12779 cat >>confdefs.h <<_ACEOF
12780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12786 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12787 # for constant arguments. Useless!
12788 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12789 $as_echo_n "checking for working alloca.h... " >&6; }
12790 if test "${ac_cv_working_alloca_h+set}" = set; then
12791 $as_echo_n "(cached) " >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 #include <alloca.h>
12803 char *p = (char *) alloca (2 * sizeof (int));
12809 rm -f conftest.$ac_objext conftest$ac_exeext
12810 if { (ac_try="$ac_link"
12811 case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12816 $as_echo "$ac_try_echo") >&5
12817 (eval "$ac_link") 2>conftest.er1
12819 grep -v '^ *+' conftest.er1 >conftest.err
12821 cat conftest.err >&5
12822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } && {
12824 test -z "$ac_c_werror_flag" ||
12825 test ! -s conftest.err
12826 } && test -s conftest$ac_exeext && {
12827 test "$cross_compiling" = yes ||
12828 $as_test_x conftest$ac_exeext
12830 ac_cv_working_alloca_h=yes
12832 $as_echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 ac_cv_working_alloca_h=no
12838 rm -rf conftest.dSYM
12839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12840 conftest$ac_exeext conftest.$ac_ext
12842 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12843 $as_echo "$ac_cv_working_alloca_h" >&6; }
12844 if test $ac_cv_working_alloca_h = yes; then
12846 cat >>confdefs.h <<\_ACEOF
12847 #define HAVE_ALLOCA_H 1
12852 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12853 $as_echo_n "checking for alloca... " >&6; }
12854 if test "${ac_cv_func_alloca_works+set}" = set; then
12855 $as_echo_n "(cached) " >&6
12857 cat >conftest.$ac_ext <<_ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12864 # define alloca __builtin_alloca
12867 # include <malloc.h>
12868 # define alloca _alloca
12870 # ifdef HAVE_ALLOCA_H
12871 # include <alloca.h>
12876 # ifndef alloca /* predefined by HP cc +Olibcalls */
12887 char *p = (char *) alloca (1);
12893 rm -f conftest.$ac_objext conftest$ac_exeext
12894 if { (ac_try="$ac_link"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12900 $as_echo "$ac_try_echo") >&5
12901 (eval "$ac_link") 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
12905 cat conftest.err >&5
12906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
12910 } && test -s conftest$ac_exeext && {
12911 test "$cross_compiling" = yes ||
12912 $as_test_x conftest$ac_exeext
12914 ac_cv_func_alloca_works=yes
12916 $as_echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 ac_cv_func_alloca_works=no
12922 rm -rf conftest.dSYM
12923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12924 conftest$ac_exeext conftest.$ac_ext
12926 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12927 $as_echo "$ac_cv_func_alloca_works" >&6; }
12929 if test $ac_cv_func_alloca_works = yes; then
12931 cat >>confdefs.h <<\_ACEOF
12932 #define HAVE_ALLOCA 1
12936 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12937 # that cause trouble. Some versions do not even contain alloca or
12938 # contain a buggy version. If you still want to use their alloca,
12939 # use ar to extract alloca.o from them instead of compiling alloca.c.
12941 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12943 cat >>confdefs.h <<\_ACEOF
12948 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12949 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12950 if test "${ac_cv_os_cray+set}" = set; then
12951 $as_echo_n "(cached) " >&6
12953 cat >conftest.$ac_ext <<_ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 #if defined CRAY && ! defined CRAY2
12966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12967 $EGREP "webecray" >/dev/null 2>&1; then
12975 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12976 $as_echo "$ac_cv_os_cray" >&6; }
12977 if test $ac_cv_os_cray = yes; then
12978 for ac_func in _getb67 GETB67 getb67; do
12979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12981 $as_echo_n "checking for $ac_func... " >&6; }
12982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12983 $as_echo_n "(cached) " >&6
12985 cat >conftest.$ac_ext <<_ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12993 #define $ac_func innocuous_$ac_func
12995 /* System header to define __stub macros and hopefully few prototypes,
12996 which can conflict with char $ac_func (); below.
12997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12998 <limits.h> exists even on freestanding compilers. */
13001 # include <limits.h>
13003 # include <assert.h>
13008 /* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply. */
13015 /* The GNU C library defines this for functions which it implements
13016 to always fail with ENOSYS. Some functions are actually named
13017 something starting with __ and the normal name is an alias. */
13018 #if defined __stub_$ac_func || defined __stub___$ac_func
13025 return $ac_func ();
13030 rm -f conftest.$ac_objext conftest$ac_exeext
13031 if { (ac_try="$ac_link"
13032 case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13037 $as_echo "$ac_try_echo") >&5
13038 (eval "$ac_link") 2>conftest.er1
13040 grep -v '^ *+' conftest.er1 >conftest.err
13042 cat conftest.err >&5
13043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } && {
13045 test -z "$ac_c_werror_flag" ||
13046 test ! -s conftest.err
13047 } && test -s conftest$ac_exeext && {
13048 test "$cross_compiling" = yes ||
13049 $as_test_x conftest$ac_exeext
13051 eval "$as_ac_var=yes"
13053 $as_echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13056 eval "$as_ac_var=no"
13059 rm -rf conftest.dSYM
13060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13061 conftest$ac_exeext conftest.$ac_ext
13063 ac_res=`eval 'as_val=${'$as_ac_var'}
13064 $as_echo "$as_val"'`
13065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13066 $as_echo "$ac_res" >&6; }
13067 as_val=`eval 'as_val=${'$as_ac_var'}
13068 $as_echo "$as_val"'`
13069 if test "x$as_val" = x""yes; then
13071 cat >>confdefs.h <<_ACEOF
13072 #define CRAY_STACKSEG_END $ac_func
13081 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13082 $as_echo_n "checking stack direction for C alloca... " >&6; }
13083 if test "${ac_cv_c_stack_direction+set}" = set; then
13084 $as_echo_n "(cached) " >&6
13086 if test "$cross_compiling" = yes; then
13087 ac_cv_c_stack_direction=0
13089 cat >conftest.$ac_ext <<_ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13095 $ac_includes_default
13097 find_stack_direction ()
13099 static char *addr = 0;
13104 return find_stack_direction ();
13107 return (&dummy > addr) ? 1 : -1;
13113 return find_stack_direction () < 0;
13116 rm -f conftest$ac_exeext
13117 if { (ac_try="$ac_link"
13118 case "(($ac_try" in
13119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13123 $as_echo "$ac_try_echo") >&5
13124 (eval "$ac_link") 2>&5
13126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13128 { (case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13133 $as_echo "$ac_try_echo") >&5
13134 (eval "$ac_try") 2>&5
13136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_cv_c_stack_direction=1
13140 $as_echo "$as_me: program exited with status $ac_status" >&5
13141 $as_echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13144 ( exit $ac_status )
13145 ac_cv_c_stack_direction=-1
13147 rm -rf conftest.dSYM
13148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13153 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13154 $as_echo "$ac_cv_c_stack_direction" >&6; }
13156 cat >>confdefs.h <<_ACEOF
13157 #define STACK_DIRECTION $ac_cv_c_stack_direction
13164 # The cast to long int works around a bug in the HP C Compiler
13165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13167 # This bug is HP SR number 8606223364.
13168 { $as_echo "$as_me:$LINENO: checking size of double" >&5
13169 $as_echo_n "checking size of double... " >&6; }
13170 if test "${ac_cv_sizeof_double+set}" = set; then
13171 $as_echo_n "(cached) " >&6
13173 if test "$cross_compiling" = yes; then
13174 # Depending upon the size, compute the lo and hi bounds.
13175 cat >conftest.$ac_ext <<_ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181 $ac_includes_default
13185 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13202 grep -v '^ *+' conftest.er1 >conftest.err
13204 cat conftest.err >&5
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest.$ac_objext; then
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 $ac_includes_default
13222 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13229 rm -f conftest.$ac_objext
13230 if { (ac_try="$ac_compile"
13231 case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13236 $as_echo "$ac_try_echo") >&5
13237 (eval "$ac_compile") 2>conftest.er1
13239 grep -v '^ *+' conftest.er1 >conftest.err
13241 cat conftest.err >&5
13242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } && {
13244 test -z "$ac_c_werror_flag" ||
13245 test ! -s conftest.err
13246 } && test -s conftest.$ac_objext; then
13247 ac_hi=$ac_mid; break
13249 $as_echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 ac_lo=`expr $ac_mid + 1`
13253 if test $ac_lo -le $ac_mid; then
13257 ac_mid=`expr 2 '*' $ac_mid + 1`
13260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263 $as_echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 $ac_includes_default
13276 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13283 rm -f conftest.$ac_objext
13284 if { (ac_try="$ac_compile"
13285 case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13290 $as_echo "$ac_try_echo") >&5
13291 (eval "$ac_compile") 2>conftest.er1
13293 grep -v '^ *+' conftest.er1 >conftest.err
13295 cat conftest.err >&5
13296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } && {
13298 test -z "$ac_c_werror_flag" ||
13299 test ! -s conftest.err
13300 } && test -s conftest.$ac_objext; then
13303 cat >conftest.$ac_ext <<_ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13309 $ac_includes_default
13313 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13320 rm -f conftest.$ac_objext
13321 if { (ac_try="$ac_compile"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13327 $as_echo "$ac_try_echo") >&5
13328 (eval "$ac_compile") 2>conftest.er1
13330 grep -v '^ *+' conftest.er1 >conftest.err
13332 cat conftest.err >&5
13333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } && {
13335 test -z "$ac_c_werror_flag" ||
13336 test ! -s conftest.err
13337 } && test -s conftest.$ac_objext; then
13338 ac_lo=$ac_mid; break
13340 $as_echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343 ac_hi=`expr '(' $ac_mid ')' - 1`
13344 if test $ac_mid -le $ac_hi; then
13348 ac_mid=`expr 2 '*' $ac_mid`
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 $as_echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 # Binary search between lo and hi bounds.
13365 while test "x$ac_lo" != "x$ac_hi"; do
13366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13367 cat >conftest.$ac_ext <<_ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 $ac_includes_default
13377 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13384 rm -f conftest.$ac_objext
13385 if { (ac_try="$ac_compile"
13386 case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13391 $as_echo "$ac_try_echo") >&5
13392 (eval "$ac_compile") 2>conftest.er1
13394 grep -v '^ *+' conftest.er1 >conftest.err
13396 cat conftest.err >&5
13397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } && {
13399 test -z "$ac_c_werror_flag" ||
13400 test ! -s conftest.err
13401 } && test -s conftest.$ac_objext; then
13404 $as_echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 ac_lo=`expr '(' $ac_mid ')' + 1`
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 ?*) ac_cv_sizeof_double=$ac_lo;;
13414 '') if test "$ac_cv_type_double" = yes; then
13415 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13417 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13418 See \`config.log' for more details." >&5
13419 $as_echo "$as_me: error: cannot compute sizeof (double)
13420 See \`config.log' for more details." >&2;}
13421 { (exit 77); exit 77; }; }; }
13423 ac_cv_sizeof_double=0
13427 cat >conftest.$ac_ext <<_ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 $ac_includes_default
13434 static long int longval () { return (long int) (sizeof (double)); }
13435 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13437 #include <stdlib.h>
13442 FILE *f = fopen ("conftest.val", "w");
13445 if (((long int) (sizeof (double))) < 0)
13447 long int i = longval ();
13448 if (i != ((long int) (sizeof (double))))
13450 fprintf (f, "%ld", i);
13454 unsigned long int i = ulongval ();
13455 if (i != ((long int) (sizeof (double))))
13457 fprintf (f, "%lu", i);
13459 /* Do not output a trailing newline, as this causes \r\n confusion
13460 on some platforms. */
13461 return ferror (f) || fclose (f) != 0;
13467 rm -f conftest$ac_exeext
13468 if { (ac_try="$ac_link"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13474 $as_echo "$ac_try_echo") >&5
13475 (eval "$ac_link") 2>&5
13477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13484 $as_echo "$ac_try_echo") >&5
13485 (eval "$ac_try") 2>&5
13487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13489 ac_cv_sizeof_double=`cat conftest.val`
13491 $as_echo "$as_me: program exited with status $ac_status" >&5
13492 $as_echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 ( exit $ac_status )
13496 if test "$ac_cv_type_double" = yes; then
13497 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13499 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13500 See \`config.log' for more details." >&5
13501 $as_echo "$as_me: error: cannot compute sizeof (double)
13502 See \`config.log' for more details." >&2;}
13503 { (exit 77); exit 77; }; }; }
13505 ac_cv_sizeof_double=0
13508 rm -rf conftest.dSYM
13509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13513 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
13514 $as_echo "$ac_cv_sizeof_double" >&6; }
13518 cat >>confdefs.h <<_ACEOF
13519 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13523 # The cast to long int works around a bug in the HP C Compiler
13524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13526 # This bug is HP SR number 8606223364.
13527 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
13528 $as_echo_n "checking size of long double... " >&6; }
13529 if test "${ac_cv_sizeof_long_double+set}" = set; then
13530 $as_echo_n "(cached) " >&6
13532 if test "$cross_compiling" = yes; then
13533 # Depending upon the size, compute the lo and hi bounds.
13534 cat >conftest.$ac_ext <<_ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 $ac_includes_default
13544 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
13551 rm -f conftest.$ac_objext
13552 if { (ac_try="$ac_compile"
13553 case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13558 $as_echo "$ac_try_echo") >&5
13559 (eval "$ac_compile") 2>conftest.er1
13561 grep -v '^ *+' conftest.er1 >conftest.err
13563 cat conftest.err >&5
13564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest.$ac_objext; then
13571 cat >conftest.$ac_ext <<_ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 $ac_includes_default
13581 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13588 rm -f conftest.$ac_objext
13589 if { (ac_try="$ac_compile"
13590 case "(($ac_try" in
13591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13595 $as_echo "$ac_try_echo") >&5
13596 (eval "$ac_compile") 2>conftest.er1
13598 grep -v '^ *+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } && {
13603 test -z "$ac_c_werror_flag" ||
13604 test ! -s conftest.err
13605 } && test -s conftest.$ac_objext; then
13606 ac_hi=$ac_mid; break
13608 $as_echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13611 ac_lo=`expr $ac_mid + 1`
13612 if test $ac_lo -le $ac_mid; then
13616 ac_mid=`expr 2 '*' $ac_mid + 1`
13619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13622 $as_echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13625 cat >conftest.$ac_ext <<_ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13631 $ac_includes_default
13635 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
13642 rm -f conftest.$ac_objext
13643 if { (ac_try="$ac_compile"
13644 case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13649 $as_echo "$ac_try_echo") >&5
13650 (eval "$ac_compile") 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } && {
13657 test -z "$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13659 } && test -s conftest.$ac_objext; then
13662 cat >conftest.$ac_ext <<_ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 $ac_includes_default
13672 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
13679 rm -f conftest.$ac_objext
13680 if { (ac_try="$ac_compile"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13686 $as_echo "$ac_try_echo") >&5
13687 (eval "$ac_compile") 2>conftest.er1
13689 grep -v '^ *+' conftest.er1 >conftest.err
13691 cat conftest.err >&5
13692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && {
13694 test -z "$ac_c_werror_flag" ||
13695 test ! -s conftest.err
13696 } && test -s conftest.$ac_objext; then
13697 ac_lo=$ac_mid; break
13699 $as_echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13702 ac_hi=`expr '(' $ac_mid ')' - 1`
13703 if test $ac_mid -le $ac_hi; then
13707 ac_mid=`expr 2 '*' $ac_mid`
13710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13713 $as_echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 # Binary search between lo and hi bounds.
13724 while test "x$ac_lo" != "x$ac_hi"; do
13725 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13726 cat >conftest.$ac_ext <<_ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 $ac_includes_default
13736 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13743 rm -f conftest.$ac_objext
13744 if { (ac_try="$ac_compile"
13745 case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13750 $as_echo "$ac_try_echo") >&5
13751 (eval "$ac_compile") 2>conftest.er1
13753 grep -v '^ *+' conftest.er1 >conftest.err
13755 cat conftest.err >&5
13756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } && {
13758 test -z "$ac_c_werror_flag" ||
13759 test ! -s conftest.err
13760 } && test -s conftest.$ac_objext; then
13763 $as_echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ac_lo=`expr '(' $ac_mid ')' + 1`
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 ?*) ac_cv_sizeof_long_double=$ac_lo;;
13773 '') if test "$ac_cv_type_long_double" = yes; then
13774 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13776 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13777 See \`config.log' for more details." >&5
13778 $as_echo "$as_me: error: cannot compute sizeof (long double)
13779 See \`config.log' for more details." >&2;}
13780 { (exit 77); exit 77; }; }; }
13782 ac_cv_sizeof_long_double=0
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 $ac_includes_default
13793 static long int longval () { return (long int) (sizeof (long double)); }
13794 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
13796 #include <stdlib.h>
13801 FILE *f = fopen ("conftest.val", "w");
13804 if (((long int) (sizeof (long double))) < 0)
13806 long int i = longval ();
13807 if (i != ((long int) (sizeof (long double))))
13809 fprintf (f, "%ld", i);
13813 unsigned long int i = ulongval ();
13814 if (i != ((long int) (sizeof (long double))))
13816 fprintf (f, "%lu", i);
13818 /* Do not output a trailing newline, as this causes \r\n confusion
13819 on some platforms. */
13820 return ferror (f) || fclose (f) != 0;
13826 rm -f conftest$ac_exeext
13827 if { (ac_try="$ac_link"
13828 case "(($ac_try" in
13829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830 *) ac_try_echo=$ac_try;;
13832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13833 $as_echo "$ac_try_echo") >&5
13834 (eval "$ac_link") 2>&5
13836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13838 { (case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13843 $as_echo "$ac_try_echo") >&5
13844 (eval "$ac_try") 2>&5
13846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 ac_cv_sizeof_long_double=`cat conftest.val`
13850 $as_echo "$as_me: program exited with status $ac_status" >&5
13851 $as_echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13854 ( exit $ac_status )
13855 if test "$ac_cv_type_long_double" = yes; then
13856 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13858 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13859 See \`config.log' for more details." >&5
13860 $as_echo "$as_me: error: cannot compute sizeof (long double)
13861 See \`config.log' for more details." >&2;}
13862 { (exit 77); exit 77; }; }; }
13864 ac_cv_sizeof_long_double=0
13867 rm -rf conftest.dSYM
13868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13872 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
13873 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13877 cat >>confdefs.h <<_ACEOF
13878 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13883 # Also AC_SUBST this variable for ffi.h.
13884 if test -z "$HAVE_LONG_DOUBLE"; then
13886 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13887 if test $ac_cv_sizeof_long_double != 0; then
13890 cat >>confdefs.h <<\_ACEOF
13891 #define HAVE_LONG_DOUBLE 1
13900 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13901 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13902 if test "${ac_cv_c_bigendian+set}" = set; then
13903 $as_echo_n "(cached) " >&6
13905 ac_cv_c_bigendian=unknown
13906 # See if we're dealing with a universal compiler.
13907 cat >conftest.$ac_ext <<_ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 #ifndef __APPLE_CC__
13914 not a universal capable compiler
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13926 $as_echo "$ac_try_echo") >&5
13927 (eval "$ac_compile") 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } && {
13934 test -z "$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13936 } && test -s conftest.$ac_objext; then
13938 # Check for potential -arch flags. It is not universal unless
13939 # there are some -arch flags. Note that *ppc* also matches
13940 # ppc64. This check is also rather less than ideal.
13941 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13942 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13945 $as_echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 if test $ac_cv_c_bigendian = unknown; then
13953 # See if sys/param.h defines the BYTE_ORDER macro.
13954 cat >conftest.$ac_ext <<_ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 #include <sys/types.h>
13961 #include <sys/param.h>
13966 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13967 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13969 bogus endian macros
13976 rm -f conftest.$ac_objext
13977 if { (ac_try="$ac_compile"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13983 $as_echo "$ac_try_echo") >&5
13984 (eval "$ac_compile") 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest.$ac_objext; then
13994 # It does; now see whether it defined to BIG_ENDIAN or not.
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 #include <sys/types.h>
14002 #include <sys/param.h>
14007 #if BYTE_ORDER != BIG_ENDIAN
14015 rm -f conftest.$ac_objext
14016 if { (ac_try="$ac_compile"
14017 case "(($ac_try" in
14018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14022 $as_echo "$ac_try_echo") >&5
14023 (eval "$ac_compile") 2>conftest.er1
14025 grep -v '^ *+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && {
14030 test -z "$ac_c_werror_flag" ||
14031 test ! -s conftest.err
14032 } && test -s conftest.$ac_objext; then
14033 ac_cv_c_bigendian=yes
14035 $as_echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14038 ac_cv_c_bigendian=no
14041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14043 $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 if test $ac_cv_c_bigendian = unknown; then
14052 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14053 cat >conftest.$ac_ext <<_ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 #include <limits.h>
14064 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14065 bogus endian macros
14072 rm -f conftest.$ac_objext
14073 if { (ac_try="$ac_compile"
14074 case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14079 $as_echo "$ac_try_echo") >&5
14080 (eval "$ac_compile") 2>conftest.er1
14082 grep -v '^ *+' conftest.er1 >conftest.err
14084 cat conftest.err >&5
14085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && {
14087 test -z "$ac_c_werror_flag" ||
14088 test ! -s conftest.err
14089 } && test -s conftest.$ac_objext; then
14090 # It does; now see whether it defined to _BIG_ENDIAN or not.
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #include <limits.h>
14102 #ifndef _BIG_ENDIAN
14110 rm -f conftest.$ac_objext
14111 if { (ac_try="$ac_compile"
14112 case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14117 $as_echo "$ac_try_echo") >&5
14118 (eval "$ac_compile") 2>conftest.er1
14120 grep -v '^ *+' conftest.er1 >conftest.err
14122 cat conftest.err >&5
14123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } && {
14125 test -z "$ac_c_werror_flag" ||
14126 test ! -s conftest.err
14127 } && test -s conftest.$ac_objext; then
14128 ac_cv_c_bigendian=yes
14130 $as_echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_cv_c_bigendian=no
14136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 $as_echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14146 if test $ac_cv_c_bigendian = unknown; then
14147 # Compile a test program.
14148 if test "$cross_compiling" = yes; then
14149 # Try to guess by grepping values from an object file.
14150 cat >conftest.$ac_ext <<_ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14156 short int ascii_mm[] =
14157 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14158 short int ascii_ii[] =
14159 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14160 int use_ascii (int i) {
14161 return ascii_mm[i] + ascii_ii[i];
14163 short int ebcdic_ii[] =
14164 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14165 short int ebcdic_mm[] =
14166 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14167 int use_ebcdic (int i) {
14168 return ebcdic_mm[i] + ebcdic_ii[i];
14175 return use_ascii (foo) == use_ebcdic (foo);
14180 rm -f conftest.$ac_objext
14181 if { (ac_try="$ac_compile"
14182 case "(($ac_try" in
14183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184 *) ac_try_echo=$ac_try;;
14186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14187 $as_echo "$ac_try_echo") >&5
14188 (eval "$ac_compile") 2>conftest.er1
14190 grep -v '^ *+' conftest.er1 >conftest.err
14192 cat conftest.err >&5
14193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } && {
14195 test -z "$ac_c_werror_flag" ||
14196 test ! -s conftest.err
14197 } && test -s conftest.$ac_objext; then
14198 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14199 ac_cv_c_bigendian=yes
14201 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14202 if test "$ac_cv_c_bigendian" = unknown; then
14203 ac_cv_c_bigendian=no
14205 # finding both strings is unlikely to happen, but who knows?
14206 ac_cv_c_bigendian=unknown
14210 $as_echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14218 cat >conftest.$ac_ext <<_ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 $ac_includes_default
14229 /* Are we little or big endian? From Harbison&Steele. */
14233 char c[sizeof (long int)];
14236 return u.c[sizeof (long int) - 1] == 1;
14242 rm -f conftest$ac_exeext
14243 if { (ac_try="$ac_link"
14244 case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14249 $as_echo "$ac_try_echo") >&5
14250 (eval "$ac_link") 2>&5
14252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14254 { (case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14259 $as_echo "$ac_try_echo") >&5
14260 (eval "$ac_try") 2>&5
14262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }; then
14264 ac_cv_c_bigendian=no
14266 $as_echo "$as_me: program exited with status $ac_status" >&5
14267 $as_echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14270 ( exit $ac_status )
14271 ac_cv_c_bigendian=yes
14273 rm -rf conftest.dSYM
14274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14280 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14281 $as_echo "$ac_cv_c_bigendian" >&6; }
14282 case $ac_cv_c_bigendian in #(
14284 cat >>confdefs.h <<\_ACEOF
14285 #define WORDS_BIGENDIAN 1
14292 cat >>confdefs.h <<\_ACEOF
14293 #define AC_APPLE_UNIVERSAL_BUILD 1
14298 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14299 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14300 $as_echo "$as_me: error: unknown endianness
14301 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14302 { (exit 1); exit 1; }; } ;;
14306 { $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14307 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14308 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14309 $as_echo_n "(cached) " >&6
14312 libffi_cv_as_cfi_pseudo_op=unknown
14313 cat >conftest.$ac_ext <<_ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 asm (".cfi_startproc\n\t.cfi_endproc");
14328 rm -f conftest.$ac_objext
14329 if { (ac_try="$ac_compile"
14330 case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14335 $as_echo "$ac_try_echo") >&5
14336 (eval "$ac_compile") 2>conftest.er1
14338 grep -v '^ *+' conftest.er1 >conftest.err
14340 cat conftest.err >&5
14341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } && {
14343 test -z "$ac_c_werror_flag" ||
14344 test ! -s conftest.err
14345 } && test -s conftest.$ac_objext; then
14346 libffi_cv_as_cfi_pseudo_op=yes
14348 $as_echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14351 libffi_cv_as_cfi_pseudo_op=no
14354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14358 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14359 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14361 cat >>confdefs.h <<\_ACEOF
14362 #define HAVE_AS_CFI_PSEUDO_OP 1
14367 if test x$TARGET = xSPARC; then
14368 { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14369 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14370 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14371 $as_echo_n "(cached) " >&6
14374 save_CFLAGS="$CFLAGS"
14375 save_LDFLAGS="$LDFLAGS"
14376 CFLAGS="$CFLAGS -fpic"
14377 LDFLAGS="$LDFLAGS -shared"
14378 cat >conftest.$ac_ext <<_ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14400 $as_echo "$ac_try_echo") >&5
14401 (eval "$ac_link") 2>conftest.er1
14403 grep -v '^ *+' conftest.er1 >conftest.err
14405 cat conftest.err >&5
14406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } && {
14408 test -z "$ac_c_werror_flag" ||
14409 test ! -s conftest.err
14410 } && test -s conftest$ac_exeext && {
14411 test "$cross_compiling" = yes ||
14412 $as_test_x conftest$ac_exeext
14414 libffi_cv_as_sparc_ua_pcrel=yes
14416 $as_echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 libffi_cv_as_sparc_ua_pcrel=no
14422 rm -rf conftest.dSYM
14423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14424 conftest$ac_exeext conftest.$ac_ext
14425 CFLAGS="$save_CFLAGS"
14426 LDFLAGS="$save_LDFLAGS"
14428 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14429 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14430 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_AS_SPARC_UA_PCREL 1
14438 { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14439 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14440 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14441 $as_echo_n "(cached) " >&6
14444 libffi_cv_as_register_pseudo_op=unknown
14445 # Check if we have .register
14446 cat >conftest.$ac_ext <<_ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 asm (".register %g2, #scratch");
14461 rm -f conftest.$ac_objext
14462 if { (ac_try="$ac_compile"
14463 case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14468 $as_echo "$ac_try_echo") >&5
14469 (eval "$ac_compile") 2>conftest.er1
14471 grep -v '^ *+' conftest.er1 >conftest.err
14473 cat conftest.err >&5
14474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } && {
14476 test -z "$ac_c_werror_flag" ||
14477 test ! -s conftest.err
14478 } && test -s conftest.$ac_objext; then
14479 libffi_cv_as_register_pseudo_op=yes
14481 $as_echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 libffi_cv_as_register_pseudo_op=no
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
14491 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14492 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14494 cat >>confdefs.h <<\_ACEOF
14495 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14501 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14502 { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
14503 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14504 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
14505 $as_echo_n "(cached) " >&6
14508 libffi_cv_as_x86_pcrel=yes
14509 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14510 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14511 libffi_cv_as_x86_pcrel=no
14515 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
14516 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14517 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_AS_X86_PCREL 1
14525 { $as_echo "$as_me:$LINENO: checking assembler .ascii pseudo-op support" >&5
14526 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14527 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then
14528 $as_echo_n "(cached) " >&6
14531 libffi_cv_as_ascii_pseudo_op=unknown
14532 # Check if we have .ascii
14533 cat >conftest.$ac_ext <<_ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 asm (".ascii \"string\"");
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14555 $as_echo "$ac_try_echo") >&5
14556 (eval "$ac_compile") 2>conftest.er1
14558 grep -v '^ *+' conftest.er1 >conftest.err
14560 cat conftest.err >&5
14561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest.$ac_objext; then
14566 libffi_cv_as_ascii_pseudo_op=yes
14568 $as_echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 libffi_cv_as_ascii_pseudo_op=no
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_ascii_pseudo_op" >&5
14578 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14579 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14581 cat >>confdefs.h <<\_ACEOF
14582 #define HAVE_AS_ASCII_PSEUDO_OP 1
14587 { $as_echo "$as_me:$LINENO: checking assembler .string pseudo-op support" >&5
14588 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14589 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then
14590 $as_echo_n "(cached) " >&6
14593 libffi_cv_as_string_pseudo_op=unknown
14594 # Check if we have .string
14595 cat >conftest.$ac_ext <<_ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14601 asm (".string \"string\"");
14610 rm -f conftest.$ac_objext
14611 if { (ac_try="$ac_compile"
14612 case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14617 $as_echo "$ac_try_echo") >&5
14618 (eval "$ac_compile") 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest.$ac_objext; then
14628 libffi_cv_as_string_pseudo_op=yes
14630 $as_echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 libffi_cv_as_string_pseudo_op=no
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_string_pseudo_op" >&5
14640 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14641 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14643 cat >>confdefs.h <<\_ACEOF
14644 #define HAVE_AS_STRING_PSEUDO_OP 1
14651 *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14653 cat >>confdefs.h <<\_ACEOF
14654 #define FFI_MMAP_EXEC_WRIT 1
14660 if test x$TARGET = xX86_64; then
14661 { $as_echo "$as_me:$LINENO: checking assembler supports unwind section type" >&5
14662 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14663 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then
14664 $as_echo_n "(cached) " >&6
14667 libffi_cv_as_x86_64_unwind_section_type=yes
14668 echo '.section .eh_frame,"a",@unwind' > conftest.s
14669 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14670 libffi_cv_as_x86_64_unwind_section_type=no
14674 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14675 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14676 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14678 cat >>confdefs.h <<\_ACEOF
14679 #define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1
14685 { $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
14686 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14687 if test "${libffi_cv_ro_eh_frame+set}" = set; then
14688 $as_echo_n "(cached) " >&6
14691 libffi_cv_ro_eh_frame=no
14692 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14693 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14694 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14695 libffi_cv_ro_eh_frame=yes
14696 elif grep '.section.*eh_frame.*#alloc' conftest.c \
14697 | grep -v '#write' > /dev/null; then
14698 libffi_cv_ro_eh_frame=yes
14704 { $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
14705 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14706 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14708 cat >>confdefs.h <<\_ACEOF
14709 #define HAVE_RO_EH_FRAME 1
14713 cat >>confdefs.h <<\_ACEOF
14714 #define EH_FRAME_FLAGS "a"
14719 cat >>confdefs.h <<\_ACEOF
14720 #define EH_FRAME_FLAGS "aw"
14725 { $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
14726 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14727 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
14728 $as_echo_n "(cached) " >&6
14731 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
14732 libffi_cv_hidden_visibility_attribute=no
14733 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14740 libffi_cv_hidden_visibility_attribute=yes
14746 { $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
14747 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14748 if test $libffi_cv_hidden_visibility_attribute = yes; then
14750 cat >>confdefs.h <<\_ACEOF
14751 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
14764 # Check whether --enable-debug was given.
14765 if test "${enable_debug+set}" = set; then
14766 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14768 cat >>confdefs.h <<\_ACEOF
14769 #define FFI_DEBUG 1
14775 if test "$enable_debug" = "yes"; then
14777 FFI_DEBUG_FALSE='#'
14784 # Check whether --enable-structs was given.
14785 if test "${enable_structs+set}" = set; then
14786 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14788 cat >>confdefs.h <<\_ACEOF
14789 #define FFI_NO_STRUCTS 1
14796 # Check whether --enable-raw-api was given.
14797 if test "${enable_raw_api+set}" = set; then
14798 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14800 cat >>confdefs.h <<\_ACEOF
14801 #define FFI_NO_RAW_API 1
14808 # Check whether --enable-purify-safety was given.
14809 if test "${enable_purify_safety+set}" = set; then
14810 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14812 cat >>confdefs.h <<\_ACEOF
14813 #define USING_PURIFY 1
14820 if test -n "$with_cross_host" &&
14821 test x"$with_cross_host" != x"no"; then
14822 toolexecdir='$(exec_prefix)/$(target_alias)'
14823 toolexeclibdir='$(toolexecdir)/lib'
14825 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14826 toolexeclibdir='$(libdir)'
14828 multi_os_directory=`$CC -print-multi-os-directory`
14829 case $multi_os_directory in
14830 .) ;; # Avoid trailing /.
14831 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14836 if test "${multilib}" = "yes"; then
14837 multilib_arg="--enable-multilib"
14842 ac_config_commands="$ac_config_commands include"
14844 ac_config_commands="$ac_config_commands src"
14847 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14850 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14853 cat >confcache <<\_ACEOF
14854 # This file is a shell script that caches the results of configure
14855 # tests run on this system so they can be shared between configure
14856 # scripts and configure runs, see configure's option --config-cache.
14857 # It is not useful on other systems. If it contains results you don't
14858 # want to keep, you may remove or edit it.
14860 # config.status only pays attention to the cache file if you give it
14861 # the --recheck option to rerun configure.
14863 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14864 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14865 # following values.
14869 # The following way of writing the cache mishandles newlines in values,
14870 # but we know of no workaround that is simple, portable, and efficient.
14871 # So, we kill variables containing newlines.
14872 # Ultrix sh set writes to stderr and can't be redirected directly,
14873 # and sets the high bit in the cache file unless we assign to the vars.
14875 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14876 eval ac_val=\$$ac_var
14880 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14884 _ | IFS | as_nl) ;; #(
14885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14886 *) $as_unset $ac_var ;;
14892 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14893 *${as_nl}ac_space=\ *)
14894 # `set' does not quote correctly, so add quotes (double-quote
14895 # substitution turns \\\\ into \\, and sed turns \\ into \).
14898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14901 # `set' quotes correctly as required by POSIX, so do not add quotes.
14902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14916 if test -w "$cache_file"; then
14917 test "x$cache_file" != "x/dev/null" &&
14918 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14919 $as_echo "$as_me: updating cache $cache_file" >&6;}
14920 cat confcache >$cache_file
14922 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14923 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14929 # Let make expand exec_prefix.
14930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14932 DEFS=-DHAVE_CONFIG_H
14936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14937 # 1. Remove the extension, and $U if already installed.
14938 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14939 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14940 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14941 # will be set to the directory where LIBOBJS objects are built.
14942 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14943 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14945 LIBOBJS=$ac_libobjs
14947 LTLIBOBJS=$ac_ltlibobjs
14950 if test -n "$EXEEXT"; then
14952 am__EXEEXT_FALSE='#'
14954 am__EXEEXT_TRUE='#'
14958 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14959 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14960 Usually this means the macro was only invoked conditionally." >&5
14961 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14962 Usually this means the macro was only invoked conditionally." >&2;}
14963 { (exit 1); exit 1; }; }
14965 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14966 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14967 Usually this means the macro was only invoked conditionally." >&5
14968 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14969 Usually this means the macro was only invoked conditionally." >&2;}
14970 { (exit 1); exit 1; }; }
14972 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14973 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
14974 Usually this means the macro was only invoked conditionally." >&5
14975 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
14976 Usually this means the macro was only invoked conditionally." >&2;}
14977 { (exit 1); exit 1; }; }
14979 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14980 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14981 Usually this means the macro was only invoked conditionally." >&5
14982 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14983 Usually this means the macro was only invoked conditionally." >&2;}
14984 { (exit 1); exit 1; }; }
14986 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14987 { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
14988 Usually this means the macro was only invoked conditionally." >&5
14989 $as_echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
14990 Usually this means the macro was only invoked conditionally." >&2;}
14991 { (exit 1); exit 1; }; }
14993 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14994 { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
14995 Usually this means the macro was only invoked conditionally." >&5
14996 $as_echo "$as_me: error: conditional \"MIPS\" was never defined.
14997 Usually this means the macro was only invoked conditionally." >&2;}
14998 { (exit 1); exit 1; }; }
15000 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15001 { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
15002 Usually this means the macro was only invoked conditionally." >&5
15003 $as_echo "$as_me: error: conditional \"SPARC\" was never defined.
15004 Usually this means the macro was only invoked conditionally." >&2;}
15005 { (exit 1); exit 1; }; }
15007 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15008 { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
15009 Usually this means the macro was only invoked conditionally." >&5
15010 $as_echo "$as_me: error: conditional \"X86\" was never defined.
15011 Usually this means the macro was only invoked conditionally." >&2;}
15012 { (exit 1); exit 1; }; }
15014 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15015 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
15016 Usually this means the macro was only invoked conditionally." >&5
15017 $as_echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
15018 Usually this means the macro was only invoked conditionally." >&2;}
15019 { (exit 1); exit 1; }; }
15021 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15022 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
15023 Usually this means the macro was only invoked conditionally." >&5
15024 $as_echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
15025 Usually this means the macro was only invoked conditionally." >&2;}
15026 { (exit 1); exit 1; }; }
15028 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15029 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
15030 Usually this means the macro was only invoked conditionally." >&5
15031 $as_echo "$as_me: error: conditional \"X86_WIN64\" was never defined.
15032 Usually this means the macro was only invoked conditionally." >&2;}
15033 { (exit 1); exit 1; }; }
15035 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15036 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
15037 Usually this means the macro was only invoked conditionally." >&5
15038 $as_echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
15039 Usually this means the macro was only invoked conditionally." >&2;}
15040 { (exit 1); exit 1; }; }
15042 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15043 { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
15044 Usually this means the macro was only invoked conditionally." >&5
15045 $as_echo "$as_me: error: conditional \"ALPHA\" was never defined.
15046 Usually this means the macro was only invoked conditionally." >&2;}
15047 { (exit 1); exit 1; }; }
15049 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15050 { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
15051 Usually this means the macro was only invoked conditionally." >&5
15052 $as_echo "$as_me: error: conditional \"IA64\" was never defined.
15053 Usually this means the macro was only invoked conditionally." >&2;}
15054 { (exit 1); exit 1; }; }
15056 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15057 { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
15058 Usually this means the macro was only invoked conditionally." >&5
15059 $as_echo "$as_me: error: conditional \"M32R\" was never defined.
15060 Usually this means the macro was only invoked conditionally." >&2;}
15061 { (exit 1); exit 1; }; }
15063 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15064 { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
15065 Usually this means the macro was only invoked conditionally." >&5
15066 $as_echo "$as_me: error: conditional \"M68K\" was never defined.
15067 Usually this means the macro was only invoked conditionally." >&2;}
15068 { (exit 1); exit 1; }; }
15070 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15071 { { $as_echo "$as_me:$LINENO: error: conditional \"MOXIE\" was never defined.
15072 Usually this means the macro was only invoked conditionally." >&5
15073 $as_echo "$as_me: error: conditional \"MOXIE\" was never defined.
15074 Usually this means the macro was only invoked conditionally." >&2;}
15075 { (exit 1); exit 1; }; }
15077 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15078 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
15079 Usually this means the macro was only invoked conditionally." >&5
15080 $as_echo "$as_me: error: conditional \"POWERPC\" was never defined.
15081 Usually this means the macro was only invoked conditionally." >&2;}
15082 { (exit 1); exit 1; }; }
15084 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15085 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
15086 Usually this means the macro was only invoked conditionally." >&5
15087 $as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
15088 Usually this means the macro was only invoked conditionally." >&2;}
15089 { (exit 1); exit 1; }; }
15091 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15092 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
15093 Usually this means the macro was only invoked conditionally." >&5
15094 $as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
15095 Usually this means the macro was only invoked conditionally." >&2;}
15096 { (exit 1); exit 1; }; }
15098 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15099 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
15100 Usually this means the macro was only invoked conditionally." >&5
15101 $as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
15102 Usually this means the macro was only invoked conditionally." >&2;}
15103 { (exit 1); exit 1; }; }
15105 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15106 { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
15107 Usually this means the macro was only invoked conditionally." >&5
15108 $as_echo "$as_me: error: conditional \"ARM\" was never defined.
15109 Usually this means the macro was only invoked conditionally." >&2;}
15110 { (exit 1); exit 1; }; }
15112 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15113 { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
15114 Usually this means the macro was only invoked conditionally." >&5
15115 $as_echo "$as_me: error: conditional \"AVR32\" was never defined.
15116 Usually this means the macro was only invoked conditionally." >&2;}
15117 { (exit 1); exit 1; }; }
15119 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15120 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
15121 Usually this means the macro was only invoked conditionally." >&5
15122 $as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
15123 Usually this means the macro was only invoked conditionally." >&2;}
15124 { (exit 1); exit 1; }; }
15126 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15127 { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
15128 Usually this means the macro was only invoked conditionally." >&5
15129 $as_echo "$as_me: error: conditional \"FRV\" was never defined.
15130 Usually this means the macro was only invoked conditionally." >&2;}
15131 { (exit 1); exit 1; }; }
15133 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15134 { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
15135 Usually this means the macro was only invoked conditionally." >&5
15136 $as_echo "$as_me: error: conditional \"S390\" was never defined.
15137 Usually this means the macro was only invoked conditionally." >&2;}
15138 { (exit 1); exit 1; }; }
15140 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15141 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
15142 Usually this means the macro was only invoked conditionally." >&5
15143 $as_echo "$as_me: error: conditional \"X86_64\" was never defined.
15144 Usually this means the macro was only invoked conditionally." >&2;}
15145 { (exit 1); exit 1; }; }
15147 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15148 { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
15149 Usually this means the macro was only invoked conditionally." >&5
15150 $as_echo "$as_me: error: conditional \"SH\" was never defined.
15151 Usually this means the macro was only invoked conditionally." >&2;}
15152 { (exit 1); exit 1; }; }
15154 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15155 { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
15156 Usually this means the macro was only invoked conditionally." >&5
15157 $as_echo "$as_me: error: conditional \"SH64\" was never defined.
15158 Usually this means the macro was only invoked conditionally." >&2;}
15159 { (exit 1); exit 1; }; }
15161 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15162 { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
15163 Usually this means the macro was only invoked conditionally." >&5
15164 $as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
15165 Usually this means the macro was only invoked conditionally." >&2;}
15166 { (exit 1); exit 1; }; }
15168 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15169 { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
15170 Usually this means the macro was only invoked conditionally." >&5
15171 $as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
15172 Usually this means the macro was only invoked conditionally." >&2;}
15173 { (exit 1); exit 1; }; }
15175 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15176 { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
15177 Usually this means the macro was only invoked conditionally." >&5
15178 $as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
15179 Usually this means the macro was only invoked conditionally." >&2;}
15180 { (exit 1); exit 1; }; }
15183 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15184 { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_DEBUG\" was never defined.
15185 Usually this means the macro was only invoked conditionally." >&5
15186 $as_echo "$as_me: error: conditional \"FFI_DEBUG\" was never defined.
15187 Usually this means the macro was only invoked conditionally." >&2;}
15188 { (exit 1); exit 1; }; }
15191 : ${CONFIG_STATUS=./config.status}
15193 ac_clean_files_save=$ac_clean_files
15194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15195 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15196 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15197 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15199 # Generated by $as_me.
15200 # Run this file to recreate the current configuration.
15201 # Compiler output produced by configure, useful for debugging
15202 # configure, is in config.log if it exists.
15205 ac_cs_recheck=false
15207 SHELL=\${CONFIG_SHELL-$SHELL}
15210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15211 ## --------------------- ##
15212 ## M4sh Initialization. ##
15213 ## --------------------- ##
15215 # Be more Bourne compatible
15216 DUALCASE=1; export DUALCASE # for MKS sh
15217 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15220 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15221 # is contrary to our usage. Disable this feature.
15222 alias -g '${1+"$@"}'='"$@"'
15223 setopt NO_GLOB_SUBST
15225 case `(set -o) 2>/dev/null` in
15226 *posix*) set -o posix ;;
15235 # Avoid depending upon Character Ranges.
15236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15239 as_cr_digits='0123456789'
15240 as_cr_alnum=$as_cr_Letters$as_cr_digits
15245 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15246 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15249 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15250 as_echo='printf %s\n'
15251 as_echo_n='printf %s'
15253 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15254 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15255 as_echo_n='/usr/ucb/echo -n'
15257 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15258 as_echo_n_body='eval
15262 expr "X$arg" : "X\\(.*\\)$as_nl";
15263 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15265 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15267 export as_echo_n_body
15268 as_echo_n='sh -c $as_echo_n_body as_echo'
15270 export as_echo_body
15271 as_echo='sh -c $as_echo_body as_echo'
15274 # The user is always right.
15275 if test "${PATH_SEPARATOR+set}" != set; then
15277 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15278 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15283 # Support unset when possible.
15284 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15292 # We need space, tab and new line, in precisely that order. Quoting is
15293 # there to prevent editors from complaining about space-tab.
15294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15295 # splitting by setting IFS to empty value.)
15298 # Find who we are. Look in the path if we contain no directory separator.
15300 *[\\/]* ) as_myself=$0 ;;
15301 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15302 for as_dir in $PATH
15305 test -z "$as_dir" && as_dir=.
15306 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15312 # We did not find ourselves, most probably we were run as `sh COMMAND'
15313 # in which case we are not to be found in the path.
15314 if test "x$as_myself" = x; then
15317 if test ! -f "$as_myself"; then
15318 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15319 { (exit 1); exit 1; }
15322 # Work around bugs in pre-3.0 UWIN ksh.
15323 for as_var in ENV MAIL MAILPATH
15324 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15336 # Required to use basename.
15337 if expr a : '\(a\)' >/dev/null 2>&1 &&
15338 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15344 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15345 as_basename=basename
15351 # Name of the executable.
15352 as_me=`$as_basename -- "$0" ||
15353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15354 X"$0" : 'X\(//\)$' \| \
15355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15357 sed '/^.*\/\([^/][^/]*\)\/*$/{
15376 as_lineno_1=$LINENO
15377 as_lineno_2=$LINENO
15378 test "x$as_lineno_1" != "x$as_lineno_2" &&
15379 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15382 # uniformly replaced by the line number. The first 'sed' inserts a
15383 # line-number line after each line using $LINENO; the second 'sed'
15384 # does the real work. The second script uses 'N' to pair each
15385 # line-number line with the line containing $LINENO, and appends
15386 # trailing '-' during substitution so that $LINENO is not a special
15387 # case at line end.
15388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15389 # scripts with optimization help from Paolo Bonzini. Blame Lee
15390 # E. McMahon (1931-1989) for sed's syntax. :-)
15402 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15405 ' >$as_me.lineno &&
15406 chmod +x "$as_me.lineno" ||
15407 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15408 { (exit 1); exit 1; }; }
15410 # Don't try to exec as it changes $[0], causing all sort of problems
15411 # (the dirname of $[0] is not the place where we might find the
15412 # original and so on. Autoconf is especially sensitive to this).
15413 . "./$as_me.lineno"
15414 # Exit status is that of the last command.
15419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15425 ECHO_C= ECHO_N= ECHO_T=
15426 case `echo -n x` in
15428 case `echo 'x\c'` in
15429 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15435 if expr a : '\(a\)' >/dev/null 2>&1 &&
15436 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15442 rm -f conf$$ conf$$.exe conf$$.file
15443 if test -d conf$$.dir; then
15444 rm -f conf$$.dir/conf$$.file
15447 mkdir conf$$.dir 2>/dev/null
15449 if (echo >conf$$.file) 2>/dev/null; then
15450 if ln -s conf$$.file conf$$ 2>/dev/null; then
15452 # ... but there are two gotchas:
15453 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15454 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15455 # In both cases, we have to default to `cp -p'.
15456 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15458 elif ln conf$$.file conf$$ 2>/dev/null; then
15466 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15467 rmdir conf$$.dir 2>/dev/null
15469 if mkdir -p . 2>/dev/null; then
15472 test -d ./-p && rmdir ./-p
15476 if test -x / >/dev/null 2>&1; then
15477 as_test_x='test -x'
15479 if ls -dL / >/dev/null 2>&1; then
15486 if test -d "$1"; then
15492 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15493 ???[sx]*):;;*)false;;esac;fi
15497 as_executable_p=$as_test_x
15499 # Sed expression to map a string onto a valid CPP name.
15500 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15502 # Sed expression to map a string onto a valid variable name.
15503 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15508 # Save the log message, to keep $[0] and so on meaningful, and to
15509 # report actual input values of CONFIG_FILES etc. instead of their
15510 # values after options handling.
15512 This file was extended by libffi $as_me 3.0.10rc0, which was
15513 generated by GNU Autoconf 2.63. Invocation command line was
15515 CONFIG_FILES = $CONFIG_FILES
15516 CONFIG_HEADERS = $CONFIG_HEADERS
15517 CONFIG_LINKS = $CONFIG_LINKS
15518 CONFIG_COMMANDS = $CONFIG_COMMANDS
15521 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15526 case $ac_config_files in *"
15527 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15530 case $ac_config_headers in *"
15531 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15536 # Files that config.status was made for.
15537 config_files="$ac_config_files"
15538 config_headers="$ac_config_headers"
15539 config_links="$ac_config_links"
15540 config_commands="$ac_config_commands"
15544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15546 \`$as_me' instantiates files from templates according to the
15547 current configuration.
15549 Usage: $0 [OPTION]... [FILE]...
15551 -h, --help print this help, then exit
15552 -V, --version print version number and configuration settings, then exit
15553 -q, --quiet, --silent
15554 do not print progress messages
15555 -d, --debug don't remove temporary files
15556 --recheck update $as_me by reconfiguring in the same conditions
15557 --file=FILE[:TEMPLATE]
15558 instantiate the configuration file FILE
15559 --header=FILE[:TEMPLATE]
15560 instantiate the configuration header FILE
15562 Configuration files:
15565 Configuration headers:
15568 Configuration links:
15571 Configuration commands:
15574 Report bugs to <bug-autoconf@gnu.org>."
15577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15579 libffi config.status 3.0.10rc0
15580 configured by $0, generated by GNU Autoconf 2.63,
15581 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15583 Copyright (C) 2008 Free Software Foundation, Inc.
15584 This config.status script is free software; the Free Software Foundation
15585 gives unlimited permission to copy, distribute and modify it."
15592 test -n "\$AWK" || AWK=awk
15595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15596 # The default lists apply if the user does not specify any file.
15602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15603 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15614 # Handling of the options.
15615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15617 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15618 $as_echo "$ac_cs_version"; exit ;;
15619 --debug | --debu | --deb | --de | --d | -d )
15621 --file | --fil | --fi | --f )
15624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15626 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15627 ac_need_defaults=false;;
15628 --header | --heade | --head | --hea )
15631 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15633 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15634 ac_need_defaults=false;;
15636 # Conflict between --help and --header
15637 { $as_echo "$as_me: error: ambiguous option: $1
15638 Try \`$0 --help' for more information." >&2
15639 { (exit 1); exit 1; }; };;
15640 --help | --hel | -h )
15641 $as_echo "$ac_cs_usage"; exit ;;
15642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15643 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15646 # This is an error.
15647 -*) { $as_echo "$as_me: error: unrecognized option: $1
15648 Try \`$0 --help' for more information." >&2
15649 { (exit 1); exit 1; }; } ;;
15651 *) ac_config_targets="$ac_config_targets $1"
15652 ac_need_defaults=false ;;
15658 ac_configure_extra_args=
15660 if $ac_cs_silent; then
15662 ac_configure_extra_args="$ac_configure_extra_args --silent"
15666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15667 if \$ac_cs_recheck; then
15668 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15670 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15671 CONFIG_SHELL='$SHELL'
15672 export CONFIG_SHELL
15677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15682 ## Running $as_me. ##
15688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15692 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15695 # The HP-UX ksh and POSIX shell print the target directory to stdout
15696 # if CDPATH is set.
15697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15699 sed_quote_subst='$sed_quote_subst'
15700 double_quote_subst='$double_quote_subst'
15701 delay_variable_subst='$delay_variable_subst'
15702 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15703 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15704 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15705 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15706 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15707 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15708 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15709 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15710 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15711 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15712 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15713 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15714 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15715 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15716 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15717 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15718 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15719 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15720 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15721 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15722 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15723 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15724 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15725 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15726 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15727 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15728 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15729 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15730 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15731 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15732 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15733 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15734 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15735 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15736 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15737 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15738 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15739 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15740 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15741 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15742 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15743 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15744 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15745 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15746 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15747 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15748 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15749 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15750 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15751 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15752 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15753 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15754 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15755 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15756 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15757 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15758 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15759 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15760 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15761 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15762 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15763 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15764 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15765 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15766 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15767 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15768 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15769 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15770 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15771 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15772 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15773 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15774 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15775 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15776 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15777 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15778 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15779 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15780 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15781 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15782 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15783 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15784 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15785 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15786 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15787 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15788 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15789 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15790 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15791 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15792 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15793 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15794 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15795 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15796 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15797 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15798 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15799 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15800 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15801 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15802 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15803 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15804 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15805 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15806 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15807 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15808 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15809 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15810 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15811 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15812 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15813 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15814 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15815 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15816 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15817 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15818 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15819 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15822 LTCFLAGS='$LTCFLAGS'
15823 compiler='$compiler_DEFAULT'
15825 # Quote evaled strings.
15837 deplibs_check_method \
15846 lt_cv_sys_global_symbol_pipe \
15847 lt_cv_sys_global_symbol_to_cdecl \
15848 lt_cv_sys_global_symbol_to_c_name_address \
15849 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15852 lt_prog_compiler_no_builtin_flag \
15853 lt_prog_compiler_wl \
15854 lt_prog_compiler_pic \
15855 lt_prog_compiler_static \
15856 lt_cv_prog_compiler_c_o \
15864 export_dynamic_flag_spec \
15865 whole_archive_flag_spec \
15866 compiler_needs_object \
15868 allow_undefined_flag \
15869 no_undefined_flag \
15870 hardcode_libdir_flag_spec \
15871 hardcode_libdir_flag_spec_ld \
15872 hardcode_libdir_separator \
15877 variables_saved_for_relink \
15879 library_names_spec \
15884 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15885 *[\\\\\\\`\\"\\\$]*)
15886 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15889 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15894 # Double-quote double-evaled strings.
15895 for var in reload_cmds \
15896 old_postinstall_cmds \
15897 old_postuninstall_cmds \
15899 extract_expsyms_cmds \
15900 old_archive_from_new_cmds \
15901 old_archive_from_expsyms_cmds \
15903 archive_expsym_cmds \
15905 module_expsym_cmds \
15906 export_symbols_cmds \
15909 postuninstall_cmds \
15911 sys_lib_search_path_spec \
15912 sys_lib_dlsearch_path_spec; do
15913 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15914 *[\\\\\\\`\\"\\\$]*)
15915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15923 # Fix-up fallback echo if it was mangled by the above quoting rules.
15925 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15929 ac_aux_dir='$ac_aux_dir'
15930 xsi_shell='$xsi_shell'
15931 lt_shell_append='$lt_shell_append'
15933 # See if we are running on zsh, and set the options which allow our
15934 # commands through without removal of \ escapes INIT.
15935 if test -n "\${ZSH_VERSION+set}" ; then
15936 setopt NO_GLOB_SUBST
15942 TIMESTAMP='$TIMESTAMP'
15948 TARGETDIR="$TARGETDIR"
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954 # Handling of arguments.
15955 for ac_config_target in $ac_config_targets
15957 case $ac_config_target in
15958 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15959 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15960 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15961 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15962 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15963 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15964 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15965 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15966 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15967 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15968 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15969 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15971 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15972 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15973 { (exit 1); exit 1; }; };;
15978 # If the user did not use the arguments to specify the items to instantiate,
15979 # then the envvar interface is used. Set only those that are not.
15980 # We use the long form for the default assignment because of an extremely
15981 # bizarre bug on SunOS 4.1.3.
15982 if $ac_need_defaults; then
15983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15985 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15986 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15989 # Have a temporary directory for convenience. Make it in the build tree
15990 # simply because there is no reason against having it here, and in addition,
15991 # creating and moving files from /tmp can sometimes cause problems.
15992 # Hook for its removal unless debugging.
15993 # Note that there is a small window in which the directory will not be cleaned:
15994 # after its creation but before its name has been assigned to `$tmp'.
15998 trap 'exit_status=$?
15999 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16001 trap '{ (exit 1); exit 1; }' 1 2 13 15
16003 # Create a (secure) tmp directory for tmp files.
16006 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16007 test -n "$tmp" && test -d "$tmp"
16010 tmp=./conf$$-$RANDOM
16011 (umask 077 && mkdir "$tmp")
16014 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16015 { (exit 1); exit 1; }
16018 # Set up the scripts for CONFIG_FILES section.
16019 # No need to generate them if there are no CONFIG_FILES.
16020 # This happens for instance with `./config.status config.h'.
16021 if test -n "$CONFIG_FILES"; then
16025 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16026 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16029 ac_cs_awk_cr=$ac_cr
16032 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16037 echo "cat >conf$$subs.awk <<_ACEOF" &&
16038 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16040 } >conf$$subs.sh ||
16041 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16042 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16043 { (exit 1); exit 1; }; }
16044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16046 for ac_last_try in false false false false false :; do
16047 . ./conf$$subs.sh ||
16048 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16049 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16050 { (exit 1); exit 1; }; }
16052 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16053 if test $ac_delim_n = $ac_delim_num; then
16055 elif $ac_last_try; then
16056 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16057 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16058 { (exit 1); exit 1; }; }
16060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16063 rm -f conf$$subs.sh
16065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16066 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16070 s/^/S["/; s/!.*/"]=/
16080 s/\(.\{148\}\).*/\1/
16082 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16087 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16094 s/\(.\{148\}\).*/\1/
16096 s/["\\]/\\&/g; s/^/"/; s/$/"/
16100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16105 ' <conf$$subs.awk | sed '
16110 ' >>$CONFIG_STATUS || ac_write_fail=1
16111 rm -f conf$$subs.awk
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16114 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16115 for (key in S) S_is_set[key] = 1
16121 nfields = split(line, field, "@")
16123 len = length(field[1])
16124 for (i = 2; i < nfields; i++) {
16126 keylen = length(key)
16127 if (S_is_set[key]) {
16129 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16130 len += length(value) + length(field[++i])
16141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16142 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16143 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16146 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16147 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16148 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16149 { (exit 1); exit 1; }; }
16152 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16153 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16154 # trailing colons and then remove the whole line if VPATH becomes empty
16155 # (actually we leave an empty line to preserve line numbers).
16156 if test "x$srcdir" = x.; then
16157 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16158 s/:*\$(srcdir):*/:/
16159 s/:*\${srcdir}:*/:/
16161 s/^\([^=]*=[ ]*\):*/\1/
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 fi # test -n "$CONFIG_FILES"
16170 # Set up the scripts for CONFIG_HEADERS section.
16171 # No need to generate them if there are no CONFIG_HEADERS.
16172 # This happens for instance with `./config.status Makefile'.
16173 if test -n "$CONFIG_HEADERS"; then
16174 cat >"$tmp/defines.awk" <<\_ACAWK ||
16178 # Transform confdefs.h into an awk script `defines.awk', embedded as
16179 # here-document in config.status, that substitutes the proper values into
16180 # config.h.in to produce config.h.
16182 # Create a delimiter string that does not exist in confdefs.h, to ease
16183 # handling of long lines.
16185 for ac_last_try in false false :; do
16186 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16187 if test -z "$ac_t"; then
16189 elif $ac_last_try; then
16190 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16191 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16192 { (exit 1); exit 1; }; }
16194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16198 # For the awk script, D is an array of macro values keyed by name,
16199 # likewise P contains macro parameters if any. Preserve backslash
16200 # newline sequences.
16202 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16204 s/.\{148\}/&'"$ac_delim"'/g
16207 s/^[ ]*#[ ]*define[ ][ ]*/ /
16214 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16216 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16220 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16221 D["\1"]=" \3\\\\\\n"\\/p
16223 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16228 s/.\{148\}/&'"$ac_delim"'/g
16233 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16236 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16238 ' <confdefs.h | sed '
16239 s/'"$ac_delim"'/"\\\
16240 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16243 for (key in D) D_is_set[key] = 1
16246 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16248 split(line, arg, " ")
16249 if (arg[1] == "#") {
16253 defundef = substr(arg[1], 2)
16256 split(mac1, mac2, "(") #)
16258 prefix = substr(line, 1, index(line, defundef) - 1)
16259 if (D_is_set[macro]) {
16260 # Preserve the white space surrounding the "#".
16261 print prefix "define", macro P[macro] D[macro]
16264 # Replace #undef with comments. This is necessary, for example,
16265 # in the case of _POSIX_SOURCE, which is predefined and required
16266 # on some systems where configure will not decide to define it.
16267 if (defundef == "undef") {
16268 print "/*", prefix defundef, macro, "*/"
16276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16277 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16278 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16279 { (exit 1); exit 1; }; }
16280 fi # test -n "$CONFIG_HEADERS"
16283 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16288 :[FHLC]) ac_mode=$ac_tag; continue;;
16290 case $ac_mode$ac_tag in
16292 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16293 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16294 { (exit 1); exit 1; }; };;
16295 :[FH]-) ac_tag=-:-;;
16296 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16313 -) ac_f="$tmp/stdin";;
16314 *) # Look for the file first in the build tree, then in the source tree
16315 # (if the path is not absolute). The absolute path cannot be DOS-style,
16316 # because $ac_f cannot contain `:'.
16320 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16322 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16323 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16324 { (exit 1); exit 1; }; };;
16326 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16327 ac_file_inputs="$ac_file_inputs '$ac_f'"
16330 # Let's still pretend it is `configure' which instantiates (i.e., don't
16331 # use $as_me), people would be surprised to read:
16332 # /* config.h. Generated by config.status. */
16333 configure_input='Generated from '`
16334 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16336 if test x"$ac_file" != x-; then
16337 configure_input="$ac_file. $configure_input"
16338 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16339 $as_echo "$as_me: creating $ac_file" >&6;}
16341 # Neutralize special characters interpreted by sed in replacement strings.
16342 case $configure_input in #(
16343 *\&* | *\|* | *\\* )
16344 ac_sed_conf_input=`$as_echo "$configure_input" |
16345 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16346 *) ac_sed_conf_input=$configure_input;;
16350 *:-:* | *:-) cat >"$tmp/stdin" \
16351 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16352 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16353 { (exit 1); exit 1; }; } ;;
16358 ac_dir=`$as_dirname -- "$ac_file" ||
16359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16360 X"$ac_file" : 'X\(//\)[^/]' \| \
16361 X"$ac_file" : 'X\(//\)$' \| \
16362 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16363 $as_echo X"$ac_file" |
16364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16368 /^X\(\/\/\)[^/].*/{
16383 -*) as_dir=./$as_dir;;
16385 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16390 *) as_qdir=$as_dir;;
16392 as_dirs="'$as_qdir' $as_dirs"
16393 as_dir=`$as_dirname -- "$as_dir" ||
16394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16395 X"$as_dir" : 'X\(//\)[^/]' \| \
16396 X"$as_dir" : 'X\(//\)$' \| \
16397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16398 $as_echo X"$as_dir" |
16399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16403 /^X\(\/\/\)[^/].*/{
16416 test -d "$as_dir" && break
16418 test -z "$as_dirs" || eval "mkdir $as_dirs"
16419 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16420 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16421 { (exit 1); exit 1; }; }; }
16425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16428 # A ".." for each directory in $ac_dir_suffix.
16429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16430 case $ac_top_builddir_sub in
16431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16435 ac_abs_top_builddir=$ac_pwd
16436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16437 # for backward compatibility:
16438 ac_top_builddir=$ac_top_build_prefix
16441 .) # We are building in place.
16443 ac_top_srcdir=$ac_top_builddir_sub
16444 ac_abs_top_srcdir=$ac_pwd ;;
16445 [\\/]* | ?:[\\/]* ) # Absolute name.
16446 ac_srcdir=$srcdir$ac_dir_suffix;
16447 ac_top_srcdir=$srcdir
16448 ac_abs_top_srcdir=$srcdir ;;
16449 *) # Relative name.
16450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16451 ac_top_srcdir=$ac_top_build_prefix$srcdir
16452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16464 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16465 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16467 ac_MKDIR_P=$MKDIR_P
16469 [\\/$]* | ?:[\\/]* ) ;;
16470 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16475 # If the template does not know about datarootdir, expand it.
16476 # FIXME: This hack should be removed a few years after 2.60.
16477 ac_datarootdir_hack=; ac_datarootdir_seen=
16490 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16491 *datarootdir*) ac_datarootdir_seen=yes;;
16492 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16493 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16494 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16497 ac_datarootdir_hack='
16498 s&@datadir@&$datadir&g
16499 s&@docdir@&$docdir&g
16500 s&@infodir@&$infodir&g
16501 s&@localedir@&$localedir&g
16502 s&@mandir@&$mandir&g
16503 s&\\\${datarootdir}&$datarootdir&g' ;;
16507 # Neutralize VPATH when `$srcdir' = `.'.
16508 # Shell code in configure.ac might set extrasub.
16509 # FIXME: do we really want to maintain this feature?
16510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16511 ac_sed_extra="$ac_vpsub
16514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16517 s|@configure_input@|$ac_sed_conf_input|;t t
16518 s&@top_builddir@&$ac_top_builddir_sub&;t t
16519 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16520 s&@srcdir@&$ac_srcdir&;t t
16521 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16522 s&@top_srcdir@&$ac_top_srcdir&;t t
16523 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16524 s&@builddir@&$ac_builddir&;t t
16525 s&@abs_builddir@&$ac_abs_builddir&;t t
16526 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16527 s&@INSTALL@&$ac_INSTALL&;t t
16528 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16529 $ac_datarootdir_hack
16531 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16532 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16533 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16534 { (exit 1); exit 1; }; }
16536 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16537 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16538 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16539 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16540 which seems to be undefined. Please make sure it is defined." >&5
16541 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16542 which seems to be undefined. Please make sure it is defined." >&2;}
16546 -) cat "$tmp/out" && rm -f "$tmp/out";;
16547 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16549 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16550 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16551 { (exit 1); exit 1; }; }
16557 if test x"$ac_file" != x-; then
16559 $as_echo "/* $configure_input */" \
16560 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16561 } >"$tmp/config.h" \
16562 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16563 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16564 { (exit 1); exit 1; }; }
16565 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16566 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16570 mv "$tmp/config.h" "$ac_file" \
16571 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16572 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16573 { (exit 1); exit 1; }; }
16576 $as_echo "/* $configure_input */" \
16577 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16578 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16579 $as_echo "$as_me: error: could not create -" >&2;}
16580 { (exit 1); exit 1; }; }
16582 # Compute "$ac_file"'s index in $config_headers.
16585 for _am_header in $config_headers :; do
16586 case $_am_header in
16587 $_am_arg | $_am_arg:* )
16590 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16593 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16594 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16595 X"$_am_arg" : 'X\(//\)[^/]' \| \
16596 X"$_am_arg" : 'X\(//\)$' \| \
16597 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16598 $as_echo X"$_am_arg" |
16599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16603 /^X\(\/\/\)[^/].*/{
16615 s/.*/./; q'`/stamp-h$_am_stamp_count
16622 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16625 # Prefer the file from the source tree if names are identical.
16626 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16627 ac_source=$srcdir/$ac_source
16630 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16631 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16633 if test ! -r "$ac_source"; then
16634 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16635 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
16636 { (exit 1); exit 1; }; }
16640 # Try a relative symlink, then a hard link, then a copy.
16642 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16643 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16645 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16646 ln "$ac_source" "$ac_file" 2>/dev/null ||
16647 cp -p "$ac_source" "$ac_file" ||
16648 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16649 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16650 { (exit 1); exit 1; }; }
16653 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16654 $as_echo "$as_me: executing $ac_file commands" >&6;}
16659 case $ac_file$ac_mode in
16660 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16661 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16662 # are listed without --file. Let's play safe and only enable the eval
16663 # if we detect the quoting.
16664 case $CONFIG_FILES in
16665 *\'*) eval set x "$CONFIG_FILES" ;;
16666 *) set x $CONFIG_FILES ;;
16671 # Strip MF so we end up with the name of the file.
16672 mf=`echo "$mf" | sed -e 's/:.*$//'`
16673 # Check whether this is an Automake generated Makefile or not.
16674 # We used to match only the files named `Makefile.in', but
16675 # some people rename them; so instead we look at the file content.
16676 # Grep'ing the first line is not enough: some people post-process
16677 # each Makefile.in and add a new line on top of each file to say so.
16678 # Grep'ing the whole file is not good either: AIX grep has a line
16679 # limit of 2048, but all sed's we know have understand at least 4000.
16680 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16681 dirpart=`$as_dirname -- "$mf" ||
16682 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16683 X"$mf" : 'X\(//\)[^/]' \| \
16684 X"$mf" : 'X\(//\)$' \| \
16685 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16691 /^X\(\/\/\)[^/].*/{
16707 # Extract the definition of DEPDIR, am__include, and am__quote
16708 # from the Makefile without running `make'.
16709 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16710 test -z "$DEPDIR" && continue
16711 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16712 test -z "am__include" && continue
16713 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16714 # When using ansi2knr, U may be empty or an underscore; expand it
16715 U=`sed -n 's/^U = //p' < "$mf"`
16716 # Find all dependency output files, they are included files with
16717 # $(DEPDIR) in their names. We invoke sed twice because it is the
16718 # simplest approach to changing $(DEPDIR) to its actual value in the
16720 for file in `sed -n "
16721 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16722 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16723 # Make sure the directory exists.
16724 test -f "$dirpart/$file" && continue
16725 fdir=`$as_dirname -- "$file" ||
16726 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16727 X"$file" : 'X\(//\)[^/]' \| \
16728 X"$file" : 'X\(//\)$' \| \
16729 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16730 $as_echo X"$file" |
16731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16735 /^X\(\/\/\)[^/].*/{
16748 { as_dir=$dirpart/$fdir
16750 -*) as_dir=./$as_dir;;
16752 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16756 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16757 *) as_qdir=$as_dir;;
16759 as_dirs="'$as_qdir' $as_dirs"
16760 as_dir=`$as_dirname -- "$as_dir" ||
16761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16762 X"$as_dir" : 'X\(//\)[^/]' \| \
16763 X"$as_dir" : 'X\(//\)$' \| \
16764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16765 $as_echo X"$as_dir" |
16766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16770 /^X\(\/\/\)[^/].*/{
16783 test -d "$as_dir" && break
16785 test -z "$as_dirs" || eval "mkdir $as_dirs"
16786 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16787 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16788 { (exit 1); exit 1; }; }; }
16789 # echo "creating $dirpart/$file"
16790 echo '# dummy' > "$dirpart/$file"
16797 # See if we are running on zsh, and set the options which allow our
16798 # commands through without removal of \ escapes.
16799 if test -n "${ZSH_VERSION+set}" ; then
16800 setopt NO_GLOB_SUBST
16803 cfgfile="${ofile}T"
16804 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16807 cat <<_LT_EOF >> "$cfgfile"
16810 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16811 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16812 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16813 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16815 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16816 # 2006, 2007, 2008 Free Software Foundation, Inc.
16817 # Written by Gordon Matzigkeit, 1996
16819 # This file is part of GNU Libtool.
16821 # GNU Libtool is free software; you can redistribute it and/or
16822 # modify it under the terms of the GNU General Public License as
16823 # published by the Free Software Foundation; either version 2 of
16824 # the License, or (at your option) any later version.
16826 # As a special exception to the GNU General Public License,
16827 # if you distribute this file as part of a program or library that
16828 # is built using GNU Libtool, you may include this file under the
16829 # same distribution terms that you use for the rest of that program.
16831 # GNU Libtool is distributed in the hope that it will be useful,
16832 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16833 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16834 # GNU General Public License for more details.
16836 # You should have received a copy of the GNU General Public License
16837 # along with GNU Libtool; see the file COPYING. If not, a copy
16838 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16839 # obtained by writing to the Free Software Foundation, Inc.,
16840 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16843 # The names of the tagged configurations supported by this script.
16846 # ### BEGIN LIBTOOL CONFIG
16848 # Which release of libtool.m4 was used?
16849 macro_version=$macro_version
16850 macro_revision=$macro_revision
16852 # Whether or not to build shared libraries.
16853 build_libtool_libs=$enable_shared
16855 # Whether or not to build static libraries.
16856 build_old_libs=$enable_static
16858 # What type of objects to build.
16861 # Whether or not to optimize for fast installation.
16862 fast_install=$enable_fast_install
16865 host_alias=$host_alias
16869 # The build system.
16870 build_alias=$build_alias
16874 # A sed program that does not truncate output.
16877 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16878 Xsed="\$SED -e 1s/^X//"
16880 # A grep program that handles long lines.
16886 # A literal string matcher.
16889 # A BSD- or MS-compatible name lister.
16892 # Whether we need soft or hard links.
16895 # What is the maximum length of a command?
16896 max_cmd_len=$max_cmd_len
16898 # Object file suffix (normally "o").
16901 # Executable file suffix (normally "").
16904 # whether the shell understands "unset".
16907 # turn spaces into newlines.
16910 # turn newlines into spaces.
16913 # How to create reloadable object files.
16914 reload_flag=$lt_reload_flag
16915 reload_cmds=$lt_reload_cmds
16917 # An object symbol dumper.
16918 OBJDUMP=$lt_OBJDUMP
16920 # Method to check whether dependent libraries are shared objects.
16921 deplibs_check_method=$lt_deplibs_check_method
16923 # Command to use when deplibs_check_method == "file_magic".
16924 file_magic_cmd=$lt_file_magic_cmd
16928 AR_FLAGS=$lt_AR_FLAGS
16930 # A symbol stripping program.
16933 # Commands used to install an old-style archive.
16935 old_postinstall_cmds=$lt_old_postinstall_cmds
16936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16941 # LTCC compiler flags.
16942 LTCFLAGS=$lt_CFLAGS
16944 # Take the output of nm and produce a listing of raw symbols and C names.
16945 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16947 # Transform the output of nm in a proper C declaration.
16948 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16950 # Transform the output of nm in a C name address pair.
16951 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16953 # Transform the output of nm in a C name address pair when lib prefix is needed.
16954 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16956 # The name of the directory that contains temporary libtool files.
16959 # Shell to use when invoking shell scripts.
16962 # An echo program that does not interpret backslashes.
16965 # Used to examine libraries when file_magic_cmd begins with "file".
16966 MAGIC_CMD=$MAGIC_CMD
16968 # Must we lock files when doing compilation?
16969 need_locks=$lt_need_locks
16971 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16972 DSYMUTIL=$lt_DSYMUTIL
16974 # Tool to change global to local symbols on Mac OS X.
16977 # Tool to manipulate fat objects and archives on Mac OS X.
16980 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16983 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16984 OTOOL64=$lt_OTOOL64
16986 # Old archive suffix (normally "a").
16989 # Shared library suffix (normally ".so").
16990 shrext_cmds=$lt_shrext_cmds
16992 # The commands to extract the exported symbol list from a shared archive.
16993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16995 # Variables whose values should be saved in libtool wrapper scripts and
16996 # restored at link time.
16997 variables_saved_for_relink=$lt_variables_saved_for_relink
16999 # Do we need the "lib" prefix for modules?
17000 need_lib_prefix=$need_lib_prefix
17002 # Do we need a version for libraries?
17003 need_version=$need_version
17005 # Library versioning type.
17006 version_type=$version_type
17008 # Shared library runtime path variable.
17009 runpath_var=$runpath_var
17011 # Shared library path variable.
17012 shlibpath_var=$shlibpath_var
17014 # Is shlibpath searched before the hard-coded library search path?
17015 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17017 # Format of library name prefix.
17018 libname_spec=$lt_libname_spec
17020 # List of archive names. First name is the real one, the rest are links.
17021 # The last name is the one that the linker finds with -lNAME
17022 library_names_spec=$lt_library_names_spec
17024 # The coded name of the library, if different from the real name.
17025 soname_spec=$lt_soname_spec
17027 # Command to use after installation of a shared archive.
17028 postinstall_cmds=$lt_postinstall_cmds
17030 # Command to use after uninstallation of a shared archive.
17031 postuninstall_cmds=$lt_postuninstall_cmds
17033 # Commands used to finish a libtool library installation in a directory.
17034 finish_cmds=$lt_finish_cmds
17036 # As "finish_cmds", except a single script fragment to be evaled but
17038 finish_eval=$lt_finish_eval
17040 # Whether we should hardcode library paths into libraries.
17041 hardcode_into_libs=$hardcode_into_libs
17043 # Compile-time system search path for libraries.
17044 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17046 # Run-time system search path for libraries.
17047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17049 # Whether dlopen is supported.
17050 dlopen_support=$enable_dlopen
17052 # Whether dlopen of programs is supported.
17053 dlopen_self=$enable_dlopen_self
17055 # Whether dlopen of statically linked programs is supported.
17056 dlopen_self_static=$enable_dlopen_self_static
17058 # Commands to strip libraries.
17059 old_striplib=$lt_old_striplib
17060 striplib=$lt_striplib
17063 # The linker used to build libraries.
17066 # Commands used to build an old-style archive.
17067 old_archive_cmds=$lt_old_archive_cmds
17069 # A language specific compiler.
17072 # Is the compiler the GNU compiler?
17075 # Compiler flag to turn off builtin functions.
17076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17078 # How to pass a linker flag through the compiler.
17079 wl=$lt_lt_prog_compiler_wl
17081 # Additional compiler flags for building library objects.
17082 pic_flag=$lt_lt_prog_compiler_pic
17084 # Compiler flag to prevent dynamic linking.
17085 link_static_flag=$lt_lt_prog_compiler_static
17087 # Does compiler simultaneously support -c and -o options?
17088 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17090 # Whether or not to add -lc for building shared libraries.
17091 build_libtool_need_lc=$archive_cmds_need_lc
17093 # Whether or not to disallow shared libs when runtime libs are static.
17094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17096 # Compiler flag to allow reflexive dlopens.
17097 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17099 # Compiler flag to generate shared objects directly from archives.
17100 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17102 # Whether the compiler copes with passing no objects directly.
17103 compiler_needs_object=$lt_compiler_needs_object
17105 # Create an old-style archive from a shared archive.
17106 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17108 # Create a temporary old-style archive to link instead of a shared archive.
17109 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17111 # Commands used to build a shared archive.
17112 archive_cmds=$lt_archive_cmds
17113 archive_expsym_cmds=$lt_archive_expsym_cmds
17115 # Commands used to build a loadable module if different from building
17116 # a shared archive.
17117 module_cmds=$lt_module_cmds
17118 module_expsym_cmds=$lt_module_expsym_cmds
17120 # Whether we are building with GNU ld or not.
17121 with_gnu_ld=$lt_with_gnu_ld
17123 # Flag that allows shared libraries with undefined symbols to be built.
17124 allow_undefined_flag=$lt_allow_undefined_flag
17126 # Flag that enforces no undefined symbols.
17127 no_undefined_flag=$lt_no_undefined_flag
17129 # Flag to hardcode \$libdir into a binary during linking.
17130 # This must work even if \$libdir does not exist
17131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17133 # If ld is used when linking, flag to hardcode \$libdir into a binary
17134 # during linking. This must work even if \$libdir does not exist.
17135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17137 # Whether we need a single "-rpath" flag with a separated argument.
17138 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17140 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17141 # DIR into the resulting binary.
17142 hardcode_direct=$hardcode_direct
17144 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17145 # DIR into the resulting binary and the resulting library dependency is
17146 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17147 # library is relocated.
17148 hardcode_direct_absolute=$hardcode_direct_absolute
17150 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17151 # into the resulting binary.
17152 hardcode_minus_L=$hardcode_minus_L
17154 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17155 # into the resulting binary.
17156 hardcode_shlibpath_var=$hardcode_shlibpath_var
17158 # Set to "yes" if building a shared library automatically hardcodes DIR
17159 # into the library and all subsequent libraries and executables linked
17161 hardcode_automatic=$hardcode_automatic
17163 # Set to yes if linker adds runtime paths of dependent libraries
17164 # to runtime path list.
17165 inherit_rpath=$inherit_rpath
17167 # Whether libtool must link a program against all its dependency libraries.
17168 link_all_deplibs=$link_all_deplibs
17170 # Fix the shell variable \$srcfile for the compiler.
17171 fix_srcfile_path=$lt_fix_srcfile_path
17173 # Set to "yes" if exported symbols are required.
17174 always_export_symbols=$always_export_symbols
17176 # The commands to list exported symbols.
17177 export_symbols_cmds=$lt_export_symbols_cmds
17179 # Symbols that should not be listed in the preloaded symbols.
17180 exclude_expsyms=$lt_exclude_expsyms
17182 # Symbols that must always be exported.
17183 include_expsyms=$lt_include_expsyms
17185 # Commands necessary for linking programs (against libraries) with templates.
17186 prelink_cmds=$lt_prelink_cmds
17188 # Specify filename containing input files.
17189 file_list_spec=$lt_file_list_spec
17191 # How to hardcode a shared library path into an executable.
17192 hardcode_action=$hardcode_action
17194 # ### END LIBTOOL CONFIG
17200 cat <<\_LT_EOF >> "$cfgfile"
17201 # AIX sometimes has problems with the GCC collect2 program. For some
17202 # reason, if we set the COLLECT_NAMES environment variable, the problems
17203 # vanish in a puff of smoke.
17204 if test "X${COLLECT_NAMES+set}" != Xset; then
17206 export COLLECT_NAMES
17213 ltmain="$ac_aux_dir/ltmain.sh"
17216 # We use sed instead of cat because bash on DJGPP gets confused if
17217 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17218 # text mode, it properly converts lines to CR/LF. This bash problem
17219 # is reportedly fixed, but why not run on old versions too?
17220 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17221 || (rm -f "$cfgfile"; exit 1)
17225 cat << \_LT_EOF >> "$cfgfile"
17227 # func_dirname file append nondir_replacement
17228 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17229 # otherwise set result to NONDIR_REPLACEMENT.
17233 */*) func_dirname_result="${1%/*}${2}" ;;
17234 * ) func_dirname_result="${3}" ;;
17238 # func_basename file
17241 func_basename_result="${1##*/}"
17244 # func_dirname_and_basename file append nondir_replacement
17245 # perform func_basename and func_dirname in a single function
17247 # dirname: Compute the dirname of FILE. If nonempty,
17248 # add APPEND to the result, otherwise set result
17249 # to NONDIR_REPLACEMENT.
17250 # value returned in "$func_dirname_result"
17251 # basename: Compute filename of FILE.
17252 # value retuned in "$func_basename_result"
17253 # Implementation must be kept synchronized with func_dirname
17254 # and func_basename. For efficiency, we do not delegate to
17255 # those functions but instead duplicate the functionality here.
17256 func_dirname_and_basename ()
17259 */*) func_dirname_result="${1%/*}${2}" ;;
17260 * ) func_dirname_result="${3}" ;;
17262 func_basename_result="${1##*/}"
17265 # func_stripname prefix suffix name
17266 # strip PREFIX and SUFFIX off of NAME.
17267 # PREFIX and SUFFIX must not contain globbing or regex special
17268 # characters, hashes, percent signs, but SUFFIX may contain a leading
17269 # dot (in which case that matches only a dot).
17272 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17273 # positional parameters, so assign one to ordinary parameter first.
17274 func_stripname_result=${3}
17275 func_stripname_result=${func_stripname_result#"${1}"}
17276 func_stripname_result=${func_stripname_result%"${2}"}
17282 func_opt_split_opt=${1%%=*}
17283 func_opt_split_arg=${1#*=}
17290 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17291 *) func_lo2o_result=${1} ;;
17295 # func_xform libobj-or-source
17298 func_xform_result=${1%.*}.lo
17301 # func_arith arithmetic-term...
17304 func_arith_result=$(( $* ))
17308 # STRING may not start with a hyphen.
17311 func_len_result=${#1}
17316 *) # Bourne compatible functions.
17317 cat << \_LT_EOF >> "$cfgfile"
17319 # func_dirname file append nondir_replacement
17320 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17321 # otherwise set result to NONDIR_REPLACEMENT.
17324 # Extract subdirectory from the argument.
17325 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17326 if test "X$func_dirname_result" = "X${1}"; then
17327 func_dirname_result="${3}"
17329 func_dirname_result="$func_dirname_result${2}"
17333 # func_basename file
17336 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17340 # func_stripname prefix suffix name
17341 # strip PREFIX and SUFFIX off of NAME.
17342 # PREFIX and SUFFIX must not contain globbing or regex special
17343 # characters, hashes, percent signs, but SUFFIX may contain a leading
17344 # dot (in which case that matches only a dot).
17345 # func_strip_suffix prefix name
17349 .*) func_stripname_result=`$ECHO "X${3}" \
17350 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17351 *) func_stripname_result=`$ECHO "X${3}" \
17352 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17357 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17358 my_sed_long_arg='1s/^-[^=]*=//'
17363 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17364 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17370 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17373 # func_xform libobj-or-source
17376 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17379 # func_arith arithmetic-term...
17382 func_arith_result=`expr "$@"`
17386 # STRING may not start with a hyphen.
17389 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17395 case $lt_shell_append in
17397 cat << \_LT_EOF >> "$cfgfile"
17399 # func_append var value
17400 # Append VALUE to the end of shell variable VAR.
17408 cat << \_LT_EOF >> "$cfgfile"
17410 # func_append var value
17411 # Append VALUE to the end of shell variable VAR.
17422 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17423 || (rm -f "$cfgfile"; exit 1)
17425 mv -f "$cfgfile" "$ofile" ||
17426 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17430 "include":C) test -d include || mkdir include ;;
17432 test -d src || mkdir src
17433 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17440 { (exit 0); exit 0; }
17442 chmod +x $CONFIG_STATUS
17443 ac_clean_files=$ac_clean_files_save
17445 test $ac_write_fail = 0 ||
17446 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17447 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17448 { (exit 1); exit 1; }; }
17451 # configure is writing to config.log, and then calls config.status.
17452 # config.status does its own redirection, appending to config.log.
17453 # Unfortunately, on DOS this fails, as config.log is still kept open
17454 # by configure, so config.status won't be able to write to it; its
17455 # output is simply discarded. So we exec the FD to /dev/null,
17456 # effectively closing config.log, so it can be properly (re)opened and
17457 # appended to by config.status. When coming back to configure, we
17458 # need to make the FD available again.
17459 if test "$no_create" != yes; then
17461 ac_config_status_args=
17462 test "$silent" = yes &&
17463 ac_config_status_args="$ac_config_status_args --quiet"
17465 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17467 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17468 # would make configure fail if this is the last instruction.
17469 $ac_cs_success || { (exit 1); exit 1; }
17471 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17472 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17473 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}