2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libffi 3.0.10rc2.
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.10rc2'
749 PACKAGE_STRING='libffi 3.0.10rc2'
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
798 FFI_EXEC_TRAMPOLINE_TABLE
799 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
800 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
801 sys_symbol_underscore
826 POWERPC_FREEBSD_FALSE
863 MAINTAINER_MODE_FALSE
885 am__fastdepCCAS_FALSE
914 INSTALL_STRIP_PROGRAM
968 program_transform_name
980 enable_option_checking
981 enable_dependency_tracking
988 enable_maintainer_mode
994 ac_precious_vars='build_alias
1003 # Initialize some variables set by options.
1005 ac_init_version=false
1006 ac_unrecognized_opts=
1007 ac_unrecognized_sep=
1008 # The variables have the same names as the options, with
1009 # dashes changed to underlines.
1010 cache_file=/dev/null
1017 program_transform_name=s,x,x,
1025 # Installation directory options.
1026 # These are left unexpanded so users can "make install exec_prefix=/foo"
1027 # and all the variables that are supposed to be based on exec_prefix
1028 # by default will actually change.
1029 # Use braces instead of parens because sh, perl, etc. also accept them.
1030 # (The list follows the same order as the GNU Coding Standards.)
1031 bindir='${exec_prefix}/bin'
1032 sbindir='${exec_prefix}/sbin'
1033 libexecdir='${exec_prefix}/libexec'
1034 datarootdir='${prefix}/share'
1035 datadir='${datarootdir}'
1036 sysconfdir='${prefix}/etc'
1037 sharedstatedir='${prefix}/com'
1038 localstatedir='${prefix}/var'
1039 includedir='${prefix}/include'
1040 oldincludedir='/usr/include'
1041 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1042 infodir='${datarootdir}/info'
1047 libdir='${exec_prefix}/lib'
1048 localedir='${datarootdir}/locale'
1049 mandir='${datarootdir}/man'
1055 # If the previous option needs an argument, assign it.
1056 if test -n "$ac_prev"; then
1057 eval $ac_prev=\$ac_option
1063 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067 # Accept the important Cygnus configure options, so we can diagnose typos.
1069 case $ac_dashdash$ac_option in
1073 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1076 bindir=$ac_optarg ;;
1078 -build | --build | --buil | --bui | --bu)
1079 ac_prev=build_alias ;;
1080 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1081 build_alias=$ac_optarg ;;
1083 -cache-file | --cache-file | --cache-fil | --cache-fi \
1084 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1085 ac_prev=cache_file ;;
1086 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1087 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1088 cache_file=$ac_optarg ;;
1090 --config-cache | -C)
1091 cache_file=config.cache ;;
1093 -datadir | --datadir | --datadi | --datad)
1095 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1096 datadir=$ac_optarg ;;
1098 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1099 | --dataroo | --dataro | --datar)
1100 ac_prev=datarootdir ;;
1101 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1102 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1103 datarootdir=$ac_optarg ;;
1105 -disable-* | --disable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "enable_$ac_useropt"
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval enable_$ac_useropt=no ;;
1122 -docdir | --docdir | --docdi | --doc | --do)
1124 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125 docdir=$ac_optarg ;;
1127 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1129 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130 dvidir=$ac_optarg ;;
1132 -enable-* | --enable-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1137 { (exit 1); exit 1; }; }
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1142 "enable_$ac_useropt"
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval enable_$ac_useropt=\$ac_optarg ;;
1149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1151 | --exec | --exe | --ex)
1152 ac_prev=exec_prefix ;;
1153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1155 | --exec=* | --exe=* | --ex=*)
1156 exec_prefix=$ac_optarg ;;
1158 -gas | --gas | --ga | --g)
1159 # Obsolete; use --with-gas.
1162 -help | --help | --hel | --he | -h)
1163 ac_init_help=long ;;
1164 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1165 ac_init_help=recursive ;;
1166 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1167 ac_init_help=short ;;
1169 -host | --host | --hos | --ho)
1170 ac_prev=host_alias ;;
1171 -host=* | --host=* | --hos=* | --ho=*)
1172 host_alias=$ac_optarg ;;
1174 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1176 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1178 htmldir=$ac_optarg ;;
1180 -includedir | --includedir | --includedi | --included | --include \
1181 | --includ | --inclu | --incl | --inc)
1182 ac_prev=includedir ;;
1183 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1184 | --includ=* | --inclu=* | --incl=* | --inc=*)
1185 includedir=$ac_optarg ;;
1187 -infodir | --infodir | --infodi | --infod | --info | --inf)
1189 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1190 infodir=$ac_optarg ;;
1192 -libdir | --libdir | --libdi | --libd)
1194 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1195 libdir=$ac_optarg ;;
1197 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1198 | --libexe | --libex | --libe)
1199 ac_prev=libexecdir ;;
1200 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1201 | --libexe=* | --libex=* | --libe=*)
1202 libexecdir=$ac_optarg ;;
1204 -localedir | --localedir | --localedi | --localed | --locale)
1205 ac_prev=localedir ;;
1206 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1207 localedir=$ac_optarg ;;
1209 -localstatedir | --localstatedir | --localstatedi | --localstated \
1210 | --localstate | --localstat | --localsta | --localst | --locals)
1211 ac_prev=localstatedir ;;
1212 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1213 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1214 localstatedir=$ac_optarg ;;
1216 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1218 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1219 mandir=$ac_optarg ;;
1221 -nfp | --nfp | --nf)
1222 # Obsolete; use --without-fp.
1225 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1226 | --no-cr | --no-c | -n)
1229 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1230 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1233 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1234 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1235 | --oldin | --oldi | --old | --ol | --o)
1236 ac_prev=oldincludedir ;;
1237 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1238 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1239 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1240 oldincludedir=$ac_optarg ;;
1242 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1244 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1245 prefix=$ac_optarg ;;
1247 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1248 | --program-pre | --program-pr | --program-p)
1249 ac_prev=program_prefix ;;
1250 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1251 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1252 program_prefix=$ac_optarg ;;
1254 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1255 | --program-suf | --program-su | --program-s)
1256 ac_prev=program_suffix ;;
1257 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1258 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1259 program_suffix=$ac_optarg ;;
1261 -program-transform-name | --program-transform-name \
1262 | --program-transform-nam | --program-transform-na \
1263 | --program-transform-n | --program-transform- \
1264 | --program-transform | --program-transfor \
1265 | --program-transfo | --program-transf \
1266 | --program-trans | --program-tran \
1267 | --progr-tra | --program-tr | --program-t)
1268 ac_prev=program_transform_name ;;
1269 -program-transform-name=* | --program-transform-name=* \
1270 | --program-transform-nam=* | --program-transform-na=* \
1271 | --program-transform-n=* | --program-transform-=* \
1272 | --program-transform=* | --program-transfor=* \
1273 | --program-transfo=* | --program-transf=* \
1274 | --program-trans=* | --program-tran=* \
1275 | --progr-tra=* | --program-tr=* | --program-t=*)
1276 program_transform_name=$ac_optarg ;;
1278 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1280 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1281 pdfdir=$ac_optarg ;;
1283 -psdir | --psdir | --psdi | --psd | --ps)
1285 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289 | -silent | --silent | --silen | --sile | --sil)
1292 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1294 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1296 sbindir=$ac_optarg ;;
1298 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1299 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1300 | --sharedst | --shareds | --shared | --share | --shar \
1302 ac_prev=sharedstatedir ;;
1303 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1304 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1305 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1307 sharedstatedir=$ac_optarg ;;
1309 -site | --site | --sit)
1311 -site=* | --site=* | --sit=*)
1314 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1316 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1317 srcdir=$ac_optarg ;;
1319 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1320 | --syscon | --sysco | --sysc | --sys | --sy)
1321 ac_prev=sysconfdir ;;
1322 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1323 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1324 sysconfdir=$ac_optarg ;;
1326 -target | --target | --targe | --targ | --tar | --ta | --t)
1327 ac_prev=target_alias ;;
1328 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1329 target_alias=$ac_optarg ;;
1331 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1334 -version | --version | --versio | --versi | --vers | -V)
1335 ac_init_version=: ;;
1338 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1342 { (exit 1); exit 1; }; }
1343 ac_useropt_orig=$ac_useropt
1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1352 eval with_$ac_useropt=\$ac_optarg ;;
1354 -without-* | --without-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1359 { (exit 1); exit 1; }; }
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1369 eval with_$ac_useropt=no ;;
1372 # Obsolete; use --with-x.
1375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1376 | --x-incl | --x-inc | --x-in | --x-i)
1377 ac_prev=x_includes ;;
1378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1380 x_includes=$ac_optarg ;;
1382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1384 ac_prev=x_libraries ;;
1385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1387 x_libraries=$ac_optarg ;;
1389 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1390 Try \`$0 --help' for more information." >&2
1391 { (exit 1); exit 1; }; }
1395 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1398 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1399 { (exit 1); exit 1; }; }
1400 eval $ac_envvar=\$ac_optarg
1401 export $ac_envvar ;;
1404 # FIXME: should be removed in autoconf 3.0.
1405 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1406 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1407 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1408 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1414 if test -n "$ac_prev"; then
1415 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1416 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1417 { (exit 1); exit 1; }; }
1420 if test -n "$ac_unrecognized_opts"; then
1421 case $enable_option_checking in
1423 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1424 { (exit 1); exit 1; }; } ;;
1425 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429 # Check all directory arguments for consistency.
1430 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431 datadir sysconfdir sharedstatedir localstatedir includedir \
1432 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433 libdir localedir mandir
1435 eval ac_val=\$$ac_var
1436 # Remove trailing slashes.
1439 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440 eval $ac_var=\$ac_val;;
1442 # Be sure to have absolute directory names.
1444 [\\/$]* | ?:[\\/]* ) continue;;
1445 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1447 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1448 { (exit 1); exit 1; }; }
1451 # There might be people who depend on the old broken behavior: `$host'
1452 # used to hold the argument of --host etc.
1453 # FIXME: To remove some day.
1456 target=$target_alias
1458 # FIXME: To remove some day.
1459 if test "x$host_alias" != x; then
1460 if test "x$build_alias" = x; then
1461 cross_compiling=maybe
1462 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1463 If a cross compiler is detected then cross compile mode will be used." >&2
1464 elif test "x$build_alias" != "x$host_alias"; then
1470 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1472 test "$silent" = yes && exec 6>/dev/null
1475 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di=`ls -di .` &&
1477 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1478 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1479 { (exit 1); exit 1; }; }
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1482 { (exit 1); exit 1; }; }
1485 # Find the source files, if location was not specified.
1486 if test -z "$srcdir"; then
1487 ac_srcdir_defaulted=yes
1488 # Try the directory containing this script, then the parent directory.
1489 ac_confdir=`$as_dirname -- "$as_myself" ||
1490 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1491 X"$as_myself" : 'X\(//\)[^/]' \| \
1492 X"$as_myself" : 'X\(//\)$' \| \
1493 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1494 $as_echo X"$as_myself" |
1495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1517 ac_srcdir_defaulted=no
1519 if test ! -r "$srcdir/$ac_unique_file"; then
1520 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1521 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1522 { (exit 1); exit 1; }; }
1524 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1526 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1527 { (exit 1); exit 1; }; }
1529 # When building in place, set srcdir=.
1530 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533 # Remove unnecessary trailing slashes from srcdir.
1534 # Double slashes in file names in object file debugging info
1535 # mess up M-x gdb in Emacs.
1537 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1539 for ac_var in $ac_precious_vars; do
1540 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1541 eval ac_env_${ac_var}_value=\$${ac_var}
1542 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1547 # Report the --help message.
1549 if test "$ac_init_help" = "long"; then
1550 # Omit some internal or obsolete options to make the list less imposing.
1551 # This message is too long to be a string in the A/UX 3.1 sh.
1553 \`configure' configures libffi 3.0.10rc2 to adapt to many kinds of systems.
1555 Usage: $0 [OPTION]... [VAR=VALUE]...
1557 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1558 VAR=VALUE. See below for descriptions of some of the useful variables.
1560 Defaults for the options are specified in brackets.
1563 -h, --help display this help and exit
1564 --help=short display options specific to this package
1565 --help=recursive display the short help of all the included packages
1566 -V, --version display version information and exit
1567 -q, --quiet, --silent do not print \`checking...' messages
1568 --cache-file=FILE cache test results in FILE [disabled]
1569 -C, --config-cache alias for \`--cache-file=config.cache'
1570 -n, --no-create do not create output files
1571 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1573 Installation directories:
1574 --prefix=PREFIX install architecture-independent files in PREFIX
1575 [$ac_default_prefix]
1576 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1579 By default, \`make install' will install all the files in
1580 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1581 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1582 for instance \`--prefix=\$HOME'.
1584 For better control, use the options below.
1586 Fine tuning of the installation directories:
1587 --bindir=DIR user executables [EPREFIX/bin]
1588 --sbindir=DIR system admin executables [EPREFIX/sbin]
1589 --libexecdir=DIR program executables [EPREFIX/libexec]
1590 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1591 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1592 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1593 --libdir=DIR object code libraries [EPREFIX/lib]
1594 --includedir=DIR C header files [PREFIX/include]
1595 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1596 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1597 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1598 --infodir=DIR info documentation [DATAROOTDIR/info]
1599 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1600 --mandir=DIR man documentation [DATAROOTDIR/man]
1601 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1602 --htmldir=DIR html documentation [DOCDIR]
1603 --dvidir=DIR dvi documentation [DOCDIR]
1604 --pdfdir=DIR pdf documentation [DOCDIR]
1605 --psdir=DIR ps documentation [DOCDIR]
1611 --program-prefix=PREFIX prepend PREFIX to installed program names
1612 --program-suffix=SUFFIX append SUFFIX to installed program names
1613 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1616 --build=BUILD configure for building on BUILD [guessed]
1617 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1618 --target=TARGET configure for building compilers for TARGET [HOST]
1622 if test -n "$ac_init_help"; then
1623 case $ac_init_help in
1624 short | recursive ) echo "Configuration of libffi 3.0.10rc2:";;
1629 --disable-option-checking ignore unrecognized --enable/--with options
1630 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1631 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1632 --disable-dependency-tracking speeds up one-time build
1633 --enable-dependency-tracking do not reject slow dependency extractors
1634 --enable-shared[=PKGS] build shared libraries [default=yes]
1635 --enable-static[=PKGS] build static libraries [default=yes]
1636 --enable-fast-install[=PKGS]
1637 optimize for fast installation [default=yes]
1638 --disable-libtool-lock avoid locking (might break parallel builds)
1639 --enable-maintainer-mode enable make rules and dependencies not useful
1640 (and sometimes confusing) to the casual installer
1641 --enable-debug debugging mode
1642 --disable-structs omit code for struct support
1643 --disable-raw-api make the raw api unavailable
1644 --enable-purify-safety purify-safe mode
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-pic try to use only PIC/non-PIC objects [default=use
1651 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1653 Some influential environment variables:
1654 CC C compiler command
1655 CFLAGS C compiler flags
1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1657 nonstandard directory <lib dir>
1658 LIBS libraries to pass to the linker, e.g. -l<library>
1659 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1660 you have headers in a nonstandard directory <include dir>
1661 CCAS assembler compiler command (defaults to CC)
1662 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1665 Use these variables to override the choices made by `configure' or to help
1666 it to find libraries and programs with nonstandard names/locations.
1668 Report bugs to <http://gcc.gnu.org/bugs.html>.
1673 if test "$ac_init_help" = "recursive"; then
1674 # If there are subdirs, report their specific --help.
1675 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1676 test -d "$ac_dir" ||
1677 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1685 # A ".." for each directory in $ac_dir_suffix.
1686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1687 case $ac_top_builddir_sub in
1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692 ac_abs_top_builddir=$ac_pwd
1693 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1694 # for backward compatibility:
1695 ac_top_builddir=$ac_top_build_prefix
1698 .) # We are building in place.
1700 ac_top_srcdir=$ac_top_builddir_sub
1701 ac_abs_top_srcdir=$ac_pwd ;;
1702 [\\/]* | ?:[\\/]* ) # Absolute name.
1703 ac_srcdir=$srcdir$ac_dir_suffix;
1704 ac_top_srcdir=$srcdir
1705 ac_abs_top_srcdir=$srcdir ;;
1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1708 ac_top_srcdir=$ac_top_build_prefix$srcdir
1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1711 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1713 cd "$ac_dir" || { ac_status=$?; continue; }
1714 # Check for guested configure.
1715 if test -f "$ac_srcdir/configure.gnu"; then
1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1718 elif test -f "$ac_srcdir/configure"; then
1720 $SHELL "$ac_srcdir/configure" --help=recursive
1722 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1724 cd "$ac_pwd" || { ac_status=$?; break; }
1728 test -n "$ac_init_help" && exit $ac_status
1729 if $ac_init_version; then
1731 libffi configure 3.0.10rc2
1732 generated by GNU Autoconf 2.63
1734 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1735 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1736 This configure script is free software; the Free Software Foundation
1737 gives unlimited permission to copy, distribute and modify it.
1741 cat >config.log <<_ACEOF
1742 This file contains any messages produced by compilers while
1743 running configure, to aid debugging if configure makes a mistake.
1745 It was created by libffi $as_me 3.0.10rc2, which was
1746 generated by GNU Autoconf 2.63. Invocation command line was
1758 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1759 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1760 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1761 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1762 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1764 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1765 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1767 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1768 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1769 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1770 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1771 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1772 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1773 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 test -z "$as_dir" && as_dir=.
1782 $as_echo "PATH: $as_dir"
1798 # Keep a trace of the command line.
1799 # Strip out --no-create and --no-recursion so they do not pile up.
1800 # Strip out --silent because we don't want to record it for future runs.
1801 # Also quote any args containing shell meta-characters.
1802 # Make two passes to allow for proper duplicate-argument suppression.
1806 ac_must_keep_next=false
1812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814 | -silent | --silent | --silen | --sile | --sil)
1817 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1822 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1823 if test $ac_must_keep_next = true; then
1824 ac_must_keep_next=false # Got value, back to normal.
1827 *=* | --config-cache | -C | -disable-* | --disable-* \
1828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830 | -with-* | --with-* | -without-* | --without-* | --x)
1831 case "$ac_configure_args0 " in
1832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 -* ) ac_must_keep_next=true ;;
1838 ac_configure_args="$ac_configure_args '$ac_arg'"
1843 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1844 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1846 # When interrupted or exit'd, cleanup temporary files, and complete
1847 # config.log. We remove comments because anyway the quotes in there
1848 # would cause problems or look ugly.
1849 # WARNING: Use '\'' to represent an apostrophe within the trap.
1850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1851 trap 'exit_status=$?
1852 # Save into config.log some information that might help in debugging.
1857 ## ---------------- ##
1858 ## Cache variables. ##
1859 ## ---------------- ##
1862 # The following way of writing the cache mishandles newlines in values,
1864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865 eval ac_val=\$$ac_var
1869 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1870 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 _ | IFS | as_nl) ;; #(
1874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1875 *) $as_unset $ac_var ;;
1880 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881 *${as_nl}ac_space=\ *)
1883 "s/'\''/'\''\\\\'\'''\''/g;
1884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1895 ## ----------------- ##
1896 ## Output variables. ##
1897 ## ----------------- ##
1900 for ac_var in $ac_subst_vars
1902 eval ac_val=\$$ac_var
1904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 $as_echo "$ac_var='\''$ac_val'\''"
1910 if test -n "$ac_subst_files"; then
1912 ## ------------------- ##
1913 ## File substitutions. ##
1914 ## ------------------- ##
1917 for ac_var in $ac_subst_files
1919 eval ac_val=\$$ac_var
1921 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 $as_echo "$ac_var='\''$ac_val'\''"
1928 if test -s confdefs.h; then
1938 test "$ac_signal" != 0 &&
1939 $as_echo "$as_me: caught signal $ac_signal"
1940 $as_echo "$as_me: exit $exit_status"
1942 rm -f core *.core core.conftest.* &&
1943 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946 for ac_signal in 1 2 13 15; do
1947 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1951 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1952 rm -f -r conftest* confdefs.h
1954 # Predefined preprocessor variables.
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_NAME "$PACKAGE_NAME"
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_STRING "$PACKAGE_STRING"
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1981 # Let the site file select an alternate cache file if it wants to.
1982 # Prefer an explicitly selected file to automatically selected ones.
1985 if test -n "$CONFIG_SITE"; then
1986 ac_site_file1=$CONFIG_SITE
1987 elif test "x$prefix" != xNONE; then
1988 ac_site_file1=$prefix/share/config.site
1989 ac_site_file2=$prefix/etc/config.site
1991 ac_site_file1=$ac_default_prefix/share/config.site
1992 ac_site_file2=$ac_default_prefix/etc/config.site
1994 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1996 test "x$ac_site_file" = xNONE && continue
1997 if test -r "$ac_site_file"; then
1998 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1999 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2000 sed 's/^/| /' "$ac_site_file" >&5
2005 if test -r "$cache_file"; then
2006 # Some versions of bash will fail to source /dev/null (special
2007 # files actually), so we avoid doing that.
2008 if test -f "$cache_file"; then
2009 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2010 $as_echo "$as_me: loading cache $cache_file" >&6;}
2012 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013 *) . "./$cache_file";;
2017 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2018 $as_echo "$as_me: creating cache $cache_file" >&6;}
2022 # Check that the precious variables saved in the cache have kept the same
2024 ac_cache_corrupted=false
2025 for ac_var in $ac_precious_vars; do
2026 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2027 eval ac_new_set=\$ac_env_${ac_var}_set
2028 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2029 eval ac_new_val=\$ac_env_${ac_var}_value
2030 case $ac_old_set,$ac_new_set in
2032 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2033 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2034 ac_cache_corrupted=: ;;
2036 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2037 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2038 ac_cache_corrupted=: ;;
2041 if test "x$ac_old_val" != "x$ac_new_val"; then
2042 # differences in whitespace do not lead to failure.
2043 ac_old_val_w=`echo x $ac_old_val`
2044 ac_new_val_w=`echo x $ac_new_val`
2045 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2046 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2047 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2048 ac_cache_corrupted=:
2050 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2051 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2052 eval $ac_var=\$ac_old_val
2054 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2055 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2056 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2057 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2060 # Pass precious variables to config.status.
2061 if test "$ac_new_set" = set; then
2063 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2064 *) ac_arg=$ac_var=$ac_new_val ;;
2066 case " $ac_configure_args " in
2067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2068 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2072 if $ac_cache_corrupted; then
2073 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2076 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2077 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2078 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2079 { (exit 1); exit 1; }; }
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 ac_config_headers="$ac_config_headers fficonfig.h"
2117 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2118 if test -f "$ac_dir/install-sh"; then
2120 ac_install_sh="$ac_aux_dir/install-sh -c"
2122 elif test -f "$ac_dir/install.sh"; then
2124 ac_install_sh="$ac_aux_dir/install.sh -c"
2126 elif test -f "$ac_dir/shtool"; then
2128 ac_install_sh="$ac_aux_dir/shtool install -c"
2132 if test -z "$ac_aux_dir"; then
2133 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2134 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2135 { (exit 1); exit 1; }; }
2138 # These three variables are undocumented and unsupported,
2139 # and are intended to be withdrawn in a future Autoconf release.
2140 # They can cause serious problems if a builder's source tree is in a directory
2141 # whose full name contains unusual characters.
2142 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2143 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2144 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2147 # Make sure we can run config.sub.
2148 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2149 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2150 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2151 { (exit 1); exit 1; }; }
2153 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2154 $as_echo_n "checking build system type... " >&6; }
2155 if test "${ac_cv_build+set}" = set; then
2156 $as_echo_n "(cached) " >&6
2158 ac_build_alias=$build_alias
2159 test "x$ac_build_alias" = x &&
2160 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2161 test "x$ac_build_alias" = x &&
2162 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2163 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2164 { (exit 1); exit 1; }; }
2165 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2166 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2167 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2168 { (exit 1); exit 1; }; }
2171 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2172 $as_echo "$ac_cv_build" >&6; }
2173 case $ac_cv_build in
2175 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2176 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2177 { (exit 1); exit 1; }; };;
2180 ac_save_IFS=$IFS; IFS='-'
2186 # Remember, the first character of IFS is used to create $*,
2187 # except with old shells:
2190 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2193 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2194 $as_echo_n "checking host system type... " >&6; }
2195 if test "${ac_cv_host+set}" = set; then
2196 $as_echo_n "(cached) " >&6
2198 if test "x$host_alias" = x; then
2199 ac_cv_host=$ac_cv_build
2201 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2202 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2203 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2204 { (exit 1); exit 1; }; }
2208 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2209 $as_echo "$ac_cv_host" >&6; }
2212 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2213 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2214 { (exit 1); exit 1; }; };;
2217 ac_save_IFS=$IFS; IFS='-'
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2227 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2230 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2231 $as_echo_n "checking target system type... " >&6; }
2232 if test "${ac_cv_target+set}" = set; then
2233 $as_echo_n "(cached) " >&6
2235 if test "x$target_alias" = x; then
2236 ac_cv_target=$ac_cv_host
2238 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2239 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2240 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2241 { (exit 1); exit 1; }; }
2245 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2246 $as_echo "$ac_cv_target" >&6; }
2247 case $ac_cv_target in
2249 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2250 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2251 { (exit 1); exit 1; }; };;
2253 target=$ac_cv_target
2254 ac_save_IFS=$IFS; IFS='-'
2260 # Remember, the first character of IFS is used to create $*,
2261 # except with old shells:
2264 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2267 # The aliases save the names the user supplied, while $host etc.
2268 # will get canonicalized.
2269 test -n "$target_alias" &&
2270 test "$program_prefix$program_suffix$program_transform_name" = \
2272 program_prefix=${target_alias}-
2273 target_alias=${target_alias-$host_alias}
2275 . ${srcdir}/configure.host
2277 am__api_version='1.11'
2279 # Find a good install program. We prefer a C program (faster),
2280 # so one script is as good as another. But avoid the broken or
2281 # incompatible versions:
2282 # SysV /etc/install, /usr/sbin/install
2283 # SunOS /usr/etc/install
2284 # IRIX /sbin/install
2286 # AmigaOS /C/install, which installs bootblocks on floppy discs
2287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2290 # OS/2's system install, which has a completely different semantic
2291 # ./install, which can be erroneously created by make from ./install.sh.
2292 # Reject install programs that cannot install multiple files.
2293 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2294 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2295 if test -z "$INSTALL"; then
2296 if test "${ac_cv_path_install+set}" = set; then
2297 $as_echo_n "(cached) " >&6
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir=.
2304 # Account for people who put trailing slashes in PATH elements.
2306 ./ | .// | /cC/* | \
2307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2311 # OSF1 and SCO ODT 3.0 have their own names for install.
2312 # Don't use installbsd from OSF since it installs stuff as root
2314 for ac_prog in ginstall scoinst install; do
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2317 if test $ac_prog = install &&
2318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2319 # AIX install. It has an incompatible calling convention.
2321 elif test $ac_prog = install &&
2322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2323 # program-specific install script used by HP pwplus--don't use.
2326 rm -rf conftest.one conftest.two conftest.dir
2327 echo one > conftest.one
2328 echo two > conftest.two
2330 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2331 test -s conftest.one && test -s conftest.two &&
2332 test -s conftest.dir/conftest.one &&
2333 test -s conftest.dir/conftest.two
2335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2348 rm -rf conftest.one conftest.two conftest.dir
2351 if test "${ac_cv_path_install+set}" = set; then
2352 INSTALL=$ac_cv_path_install
2354 # As a last resort, use the slow shell script. Don't cache a
2355 # value for INSTALL within a source directory, because that will
2356 # break other packages using the cache if that directory is
2357 # removed, or if the value is a relative name.
2358 INSTALL=$ac_install_sh
2361 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2362 $as_echo "$INSTALL" >&6; }
2364 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2365 # It thinks the first close brace ends the variable substitution.
2366 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2368 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2370 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2372 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2373 $as_echo_n "checking whether build environment is sane... " >&6; }
2376 echo timestamp > conftest.file
2377 # Reject unsafe characters in $srcdir or the absolute working directory
2378 # name. Accept space and tab only in the latter.
2382 *[\\\"\#\$\&\'\`$am_lf]*)
2383 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2384 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2385 { (exit 1); exit 1; }; };;
2388 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2389 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2390 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2391 { (exit 1); exit 1; }; };;
2394 # Do `set' in a subshell so we don't clobber the current shell's
2395 # arguments. Must try -L first in case configure is actually a
2396 # symlink; some systems play weird games with the mod time of symlinks
2397 # (eg FreeBSD returns the mod time of the symlink's containing
2400 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2401 if test "$*" = "X"; then
2403 set X `ls -t "$srcdir/configure" conftest.file`
2406 if test "$*" != "X $srcdir/configure conftest.file" \
2407 && test "$*" != "X conftest.file $srcdir/configure"; then
2409 # If neither matched, then we have a broken ls. This can happen
2410 # if, for instance, CONFIG_SHELL is bash and it inherits a
2411 # broken ls alias from the environment. This has actually
2412 # happened. Such a system could not be considered "sane".
2413 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2414 alias in your environment" >&5
2415 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2416 alias in your environment" >&2;}
2417 { (exit 1); exit 1; }; }
2420 test "$2" = conftest.file
2426 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2427 Check your system clock" >&5
2428 $as_echo "$as_me: error: newly created file is older than distributed files!
2429 Check your system clock" >&2;}
2430 { (exit 1); exit 1; }; }
2432 { $as_echo "$as_me:$LINENO: result: yes" >&5
2433 $as_echo "yes" >&6; }
2434 test "$program_prefix" != NONE &&
2435 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2436 # Use a double $ so make ignores it.
2437 test "$program_suffix" != NONE &&
2438 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2439 # Double any \ or $.
2440 # By default was `s,x,x', remove it if useless.
2441 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2442 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444 # expand $ac_aux_dir to an absolute path
2445 am_aux_dir=`cd $ac_aux_dir && pwd`
2447 if test x"${MISSING+set}" != xset; then
2450 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2452 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2455 # Use eval to expand $SHELL
2456 if eval "$MISSING --run true"; then
2457 am_missing_run="$MISSING --run "
2460 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2461 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2464 if test x"${install_sh}" != xset; then
2467 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2469 install_sh="\${SHELL} $am_aux_dir/install-sh"
2473 # Installed binaries are usually stripped using `strip' when the user
2474 # run `make install-strip'. However `strip' might not be the right
2475 # tool to use in cross-compilation environments, therefore Automake
2476 # will honor the `STRIP' environment variable to overrule this program.
2477 if test "$cross_compiling" != no; then
2478 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}strip; ac_word=$2
2481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if test "${ac_cv_prog_STRIP+set}" = set; then
2484 $as_echo_n "(cached) " >&6
2486 if test -n "$STRIP"; then
2487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 STRIP=$ac_cv_prog_STRIP
2507 if test -n "$STRIP"; then
2508 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2509 $as_echo "$STRIP" >&6; }
2511 { $as_echo "$as_me:$LINENO: result: no" >&5
2512 $as_echo "no" >&6; }
2517 if test -z "$ac_cv_prog_STRIP"; then
2519 # Extract the first word of "strip", so it can be a program name with args.
2520 set dummy strip; ac_word=$2
2521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2524 $as_echo_n "(cached) " >&6
2526 if test -n "$ac_ct_STRIP"; then
2527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_ac_ct_STRIP="strip"
2537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2547 if test -n "$ac_ct_STRIP"; then
2548 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2549 $as_echo "$ac_ct_STRIP" >&6; }
2551 { $as_echo "$as_me:$LINENO: result: no" >&5
2552 $as_echo "no" >&6; }
2555 if test "x$ac_ct_STRIP" = x; then
2558 case $cross_compiling:$ac_tool_warned in
2560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2567 STRIP="$ac_cv_prog_STRIP"
2571 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2573 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2574 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2575 if test -z "$MKDIR_P"; then
2576 if test "${ac_cv_path_mkdir+set}" = set; then
2577 $as_echo_n "(cached) " >&6
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in mkdir gmkdir; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2587 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2588 'mkdir (GNU coreutils) '* | \
2589 'mkdir (coreutils) '* | \
2590 'mkdir (fileutils) '4.1*)
2591 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2601 if test "${ac_cv_path_mkdir+set}" = set; then
2602 MKDIR_P="$ac_cv_path_mkdir -p"
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for MKDIR_P within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 test -d ./--version && rmdir ./--version
2609 MKDIR_P="$ac_install_sh -d"
2612 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2613 $as_echo "$MKDIR_P" >&6; }
2617 [\\/$]* | ?:[\\/]*) ;;
2618 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2621 for ac_prog in gawk mawk nawk awk
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if test "${ac_cv_prog_AWK+set}" = set; then
2628 $as_echo_n "(cached) " >&6
2630 if test -n "$AWK"; then
2631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_AWK="$ac_prog"
2641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 if test -n "$AWK"; then
2652 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2653 $as_echo "$AWK" >&6; }
2655 { $as_echo "$as_me:$LINENO: result: no" >&5
2656 $as_echo "no" >&6; }
2660 test -n "$AWK" && break
2663 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2667 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2668 $as_echo_n "(cached) " >&6
2670 cat >conftest.make <<\_ACEOF
2673 @echo '@@@%%%=$(MAKE)=@@@%%%'
2675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2678 eval ac_cv_prog_make_${ac_make}_set=yes;;
2680 eval ac_cv_prog_make_${ac_make}_set=no;;
2684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2685 { $as_echo "$as_me:$LINENO: result: yes" >&5
2686 $as_echo "yes" >&6; }
2689 { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2691 SET_MAKE="MAKE=${MAKE-make}"
2694 rm -rf .tst 2>/dev/null
2695 mkdir .tst 2>/dev/null
2696 if test -d .tst; then
2701 rmdir .tst 2>/dev/null
2703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2704 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2705 # is not polluted with repeated "-I."
2706 am__isrc=' -I$(srcdir)'
2707 # test to see if srcdir already configured
2708 if test -f $srcdir/config.status; then
2709 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2710 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2711 { (exit 1); exit 1; }; }
2715 # test whether we have cygpath
2716 if test -z "$CYGPATH_W"; then
2717 if (cygpath --version) >/dev/null 2>/dev/null; then
2718 CYGPATH_W='cygpath -w'
2725 # Define the identity of the package.
2730 cat >>confdefs.h <<_ACEOF
2731 #define PACKAGE "$PACKAGE"
2735 cat >>confdefs.h <<_ACEOF
2736 #define VERSION "$VERSION"
2739 # Some tools Automake needs.
2741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2755 # We need awk for the "check" target. The system "awk" is bad on
2757 # Always define AMTAR for backward compatibility.
2759 AMTAR=${AMTAR-"${am_missing_run}tar"}
2761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2768 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2769 # We must force CC to /not/ be precious variables; otherwise
2770 # the wrong, non-multilib-adjusted value will be used in multilibs.
2771 # As a side effect, we have to subst CFLAGS ourselves.
2772 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
2773 # defaults of its own if none are provided.
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if test "${ac_cv_prog_CC+set}" = set; then
2789 $as_echo_n "(cached) " >&6
2791 if test -n "$CC"; then
2792 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 if test -n "$CC"; then
2813 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2814 $as_echo "$CC" >&6; }
2816 { $as_echo "$as_me:$LINENO: result: no" >&5
2817 $as_echo "no" >&6; }
2822 if test -z "$ac_cv_prog_CC"; then
2824 # Extract the first word of "gcc", so it can be a program name with args.
2825 set dummy gcc; ac_word=$2
2826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$ac_ct_CC"; then
2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CC="gcc"
2842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2852 if test -n "$ac_ct_CC"; then
2853 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2854 $as_echo "$ac_ct_CC" >&6; }
2856 { $as_echo "$as_me:$LINENO: result: no" >&5
2857 $as_echo "no" >&6; }
2860 if test "x$ac_ct_CC" = x; then
2863 case $cross_compiling:$ac_tool_warned in
2865 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}cc; ac_word=$2
2879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then
2882 $as_echo_n "(cached) " >&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_CC="${ac_tool_prefix}cc"
2895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2909 { $as_echo "$as_me:$LINENO: result: no" >&5
2910 $as_echo "no" >&6; }
2916 if test -z "$CC"; then
2917 # Extract the first word of "cc", so it can be a program name with args.
2918 set dummy cc; ac_word=$2
2919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 $as_echo_n "(cached) " >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2936 ac_prog_rejected=yes
2940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 if test $ac_prog_rejected = yes; then
2948 # We found a bogon in the path, so make sure we never use it.
2949 set dummy $ac_cv_prog_CC
2951 if test $# != 0; then
2952 # We chose a different compiler from the bogus one.
2953 # However, it has the same basename, so the bogon will be chosen
2954 # first if we set CC to just the basename; use the full file name.
2956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2966 { $as_echo "$as_me:$LINENO: result: no" >&5
2967 $as_echo "no" >&6; }
2972 if test -z "$CC"; then
2973 if test -n "$ac_tool_prefix"; then
2974 for ac_prog in cl.exe
2976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if test "${ac_cv_prog_CC+set}" = set; then
2981 $as_echo_n "(cached) " >&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3008 { $as_echo "$as_me:$LINENO: result: no" >&5
3009 $as_echo "no" >&6; }
3013 test -n "$CC" && break
3016 if test -z "$CC"; then
3018 for ac_prog in cl.exe
3020 # Extract the first word of "$ac_prog", so it can be a program name with args.
3021 set dummy $ac_prog; ac_word=$2
3022 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_ac_ct_CC="$ac_prog"
3038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3052 { $as_echo "$as_me:$LINENO: result: no" >&5
3053 $as_echo "no" >&6; }
3057 test -n "$ac_ct_CC" && break
3060 if test "x$ac_ct_CC" = x; then
3063 case $cross_compiling:$ac_tool_warned in
3065 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3076 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details." >&5
3080 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3081 See \`config.log' for more details." >&2;}
3082 { (exit 1); exit 1; }; }; }
3084 # Provide some information about the compiler.
3085 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3088 { (ac_try="$ac_compiler --version >&5"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_compiler --version >&5") 2>&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }
3099 { (ac_try="$ac_compiler -v >&5"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3105 $as_echo "$ac_try_echo") >&5
3106 (eval "$ac_compiler -v >&5") 2>&5
3108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }
3110 { (ac_try="$ac_compiler -V >&5"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3116 $as_echo "$ac_try_echo") >&5
3117 (eval "$ac_compiler -V >&5") 2>&5
3119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 ac_clean_files_save=$ac_clean_files
3138 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3139 # Try to create an executable without -o first, disregard a.out.
3140 # It will help us diagnose broken compilers, and finding out an intuition
3142 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3143 $as_echo_n "checking for C compiler default output file name... " >&6; }
3144 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3146 # The possible output files:
3147 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3150 for ac_file in $ac_files
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 if { (ac_try="$ac_link_default"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166 (eval "$ac_link_default") 2>&5
3168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; then
3170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3175 for ac_file in $ac_files ''
3177 test -f "$ac_file" || continue
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3182 # We found the default executable, but exeext='' is most
3186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 # We set ac_cv_exeext here because the later test for it is not
3191 # safe: cross compilers may not add the suffix if given an `-o'
3192 # argument, so we may need to know it at that point already.
3193 # Even if this section looks crufty: it has the advantage of
3200 test "$ac_cv_exeext" = no && ac_cv_exeext=
3206 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3207 $as_echo "$ac_file" >&6; }
3208 if test -z "$ac_file"; then
3209 $as_echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3212 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3215 See \`config.log' for more details." >&5
3216 $as_echo "$as_me: error: C compiler cannot create executables
3217 See \`config.log' for more details." >&2;}
3218 { (exit 77); exit 77; }; }; }
3221 ac_exeext=$ac_cv_exeext
3223 # Check that the compiler produces executables we can run. If not, either
3224 # the compiler is broken, or we cross compile.
3225 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3226 $as_echo_n "checking whether the C compiler works... " >&6; }
3227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3228 # If not cross compiling, check that we can run a simple program.
3229 if test "$cross_compiling" != yes; then
3230 if { ac_try='./$ac_file'
3231 { (case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237 (eval "$ac_try") 2>&5
3239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3243 if test "$cross_compiling" = maybe; then
3246 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3249 If you meant to cross compile, use \`--host'.
3250 See \`config.log' for more details." >&5
3251 $as_echo "$as_me: error: cannot run C compiled programs.
3252 If you meant to cross compile, use \`--host'.
3253 See \`config.log' for more details." >&2;}
3254 { (exit 1); exit 1; }; }; }
3258 { $as_echo "$as_me:$LINENO: result: yes" >&5
3259 $as_echo "yes" >&6; }
3261 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3262 ac_clean_files=$ac_clean_files_save
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3268 $as_echo "$cross_compiling" >&6; }
3270 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3271 $as_echo_n "checking for suffix of executables... " >&6; }
3272 if { (ac_try="$ac_link"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279 (eval "$ac_link") 2>&5
3281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; then
3283 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3284 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3285 # work properly (i.e., refer to `conftest.exe'), while it won't with
3287 for ac_file in conftest.exe conftest conftest.*; do
3288 test -f "$ac_file" || continue
3290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3300 See \`config.log' for more details." >&5
3301 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details." >&2;}
3303 { (exit 1); exit 1; }; }; }
3306 rm -f conftest$ac_cv_exeext
3307 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3308 $as_echo "$ac_cv_exeext" >&6; }
3310 rm -f conftest.$ac_ext
3311 EXEEXT=$ac_cv_exeext
3313 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3314 $as_echo_n "checking for suffix of object files... " >&6; }
3315 if test "${ac_cv_objext+set}" = set; then
3316 $as_echo_n "(cached) " >&6
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3333 rm -f conftest.o conftest.obj
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340 $as_echo "$ac_try_echo") >&5
3341 (eval "$ac_compile") 2>&5
3343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; then
3345 for ac_file in conftest.o conftest.obj conftest.*; do
3346 test -f "$ac_file" || continue;
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3354 $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3360 See \`config.log' for more details." >&5
3361 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3362 See \`config.log' for more details." >&2;}
3363 { (exit 1); exit 1; }; }; }
3366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3368 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3369 $as_echo "$ac_cv_objext" >&6; }
3370 OBJEXT=$ac_cv_objext
3372 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3373 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3375 $as_echo_n "(cached) " >&6
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3426 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3427 if test $ac_compiler_gnu = yes; then
3432 ac_test_CFLAGS=${CFLAGS+set}
3433 ac_save_CFLAGS=$CFLAGS
3434 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3435 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3436 if test "${ac_cv_prog_cc_g+set}" = set; then
3437 $as_echo_n "(cached) " >&6
3439 ac_save_c_werror_flag=$ac_c_werror_flag
3440 ac_c_werror_flag=yes
3443 cat >conftest.$ac_ext <<_ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3458 rm -f conftest.$ac_objext
3459 if { (ac_try="$ac_compile"
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3465 $as_echo "$ac_try_echo") >&5
3466 (eval "$ac_compile") 2>conftest.er1
3468 grep -v '^ *+' conftest.er1 >conftest.err
3470 cat conftest.err >&5
3471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); } && {
3473 test -z "$ac_c_werror_flag" ||
3474 test ! -s conftest.err
3475 } && test -s conftest.$ac_objext; then
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3497 rm -f conftest.$ac_objext
3498 if { (ac_try="$ac_compile"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest.$ac_objext; then
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 ac_c_werror_flag=$ac_save_c_werror_flag
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3544 $as_echo "$ac_try_echo") >&5
3545 (eval "$ac_compile") 2>conftest.er1
3547 grep -v '^ *+' conftest.er1 >conftest.err
3549 cat conftest.err >&5
3550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } && {
3552 test -z "$ac_c_werror_flag" ||
3553 test ! -s conftest.err
3554 } && test -s conftest.$ac_objext; then
3557 $as_echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3572 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575 CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577 if test "$GCC" = yes; then
3583 if test "$GCC" = yes; then
3589 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if test "${ac_cv_prog_cc_c89+set}" = set; then
3592 $as_echo_n "(cached) " >&6
3594 ac_cv_prog_cc_c89=no
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3604 #include <sys/types.h>
3605 #include <sys/stat.h>
3606 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3607 struct buf { int x; };
3608 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3609 static char *e (p, i)
3615 static char *f (char * (*g) (char **, int), char **p, ...)
3620 s = g (p, va_arg (v,int));
3625 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3626 function prototypes and stuff, but not '\xHH' hex character constants.
3627 These don't provoke an error unfortunately, instead are silently treated
3628 as 'x'. The following induces an error, until -std is added to get
3629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3630 array size at least. It's necessary to write '\x00'==0 to get something
3631 that's true only with -std. */
3632 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3634 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3635 inside strings and character constants. */
3637 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3639 int test (int i, double x);
3640 struct s1 {int (*f) (int a);};
3641 struct s2 {int (*f) (double a);};
3642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3648 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3653 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3654 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3656 CC="$ac_save_CC $ac_arg"
3657 rm -f conftest.$ac_objext
3658 if { (ac_try="$ac_compile"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664 $as_echo "$ac_try_echo") >&5
3665 (eval "$ac_compile") 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } && {
3672 test -z "$ac_c_werror_flag" ||
3673 test ! -s conftest.err
3674 } && test -s conftest.$ac_objext; then
3675 ac_cv_prog_cc_c89=$ac_arg
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3683 rm -f core conftest.err conftest.$ac_objext
3684 test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 rm -f conftest.$ac_ext
3691 case "x$ac_cv_prog_cc_c89" in
3693 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3694 $as_echo "none needed" >&6; } ;;
3696 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3697 $as_echo "unsupported" >&6; } ;;
3699 CC="$CC $ac_cv_prog_cc_c89"
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3701 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 DEPDIR="${am__leading_dot}deps"
3712 ac_config_commands="$ac_config_commands depfiles"
3715 am_make=${MAKE-make}
3716 cat > confinc << 'END'
3718 @echo this is the am__doit target
3721 # If we don't find an include directive, just comment out the code.
3722 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3723 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3727 # First try GNU make style include.
3728 echo "include confinc" > confmf
3729 # Ignore all kinds of additional output from `make'.
3730 case `$am_make -s -f confmf 2> /dev/null` in #(
3731 *the\ am__doit\ target*)
3737 # Now try BSD make style include.
3738 if test "$am__include" = "#"; then
3739 echo '.include "confinc"' > confmf
3740 case `$am_make -s -f confmf 2> /dev/null` in #(
3741 *the\ am__doit\ target*)
3742 am__include=.include
3750 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3751 $as_echo "$_am_result" >&6; }
3752 rm -f confinc confmf
3754 # Check whether --enable-dependency-tracking was given.
3755 if test "${enable_dependency_tracking+set}" = set; then
3756 enableval=$enable_dependency_tracking;
3759 if test "x$enable_dependency_tracking" != xno; then
3760 am_depcomp="$ac_aux_dir/depcomp"
3763 if test "x$enable_dependency_tracking" != xno; then
3773 depcc="$CC" am_compiler_list=
3775 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3776 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3778 $as_echo_n "(cached) " >&6
3780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3781 # We make a subdir and do the tests there. Otherwise we can end up
3782 # making bogus files that we don't know about and never remove. For
3783 # instance it was reported that on HP-UX the gcc test will end up
3784 # making a dummy file named `D' -- because `-MD' means `put the output
3787 # Copy depcomp to subdir because otherwise we won't find it if we're
3788 # using a relative directory.
3789 cp "$am_depcomp" conftest.dir
3791 # We will build objects and dependencies in a subdirectory because
3792 # it helps to detect inapplicable dependency modes. For instance
3793 # both Tru64's cc and ICC support -MD to output dependencies as a
3794 # side effect of compilation, but ICC will put the dependencies in
3795 # the current directory while Tru64 will put them in the object
3799 am_cv_CC_dependencies_compiler_type=none
3800 if test "$am_compiler_list" = ""; then
3801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3804 case " $depcc " in #(
3805 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3808 for depmode in $am_compiler_list; do
3809 # Setup a source with many dependencies, because some compilers
3810 # like to wrap large dependency lists on column 80 (with \), and
3811 # we should not choose a depcomp mode which is confused by this.
3813 # We need to recreate these files for each test, as the compiler may
3814 # overwrite some of them when testing with obscure command lines.
3815 # This happens at least with the AIX C compiler.
3817 for i in 1 2 3 4 5 6; do
3818 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3820 # Solaris 8's {/usr,}/bin/sh.
3821 touch sub/conftst$i.h
3823 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3825 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3826 # mode. It turns out that the SunPro C++ compiler does not properly
3827 # handle `-M -o', and we need to detect this. Also, some Intel
3828 # versions had trouble with output in subdirs
3829 am__obj=sub/conftest.${OBJEXT-o}
3830 am__minus_obj="-o $am__obj"
3833 # This depmode causes a compiler race in universal mode.
3834 test "$am__universal" = false || continue
3837 # after this tag, mechanisms are not by side-effect, so they'll
3838 # only be used when explicitly requested
3839 if test "x$enable_dependency_tracking" = xyes; then
3845 msvisualcpp | msvcmsys)
3846 # This compiler won't grok `-c -o', but also, the minuso test has
3847 # not run yet. These depmodes are late enough in the game, and
3848 # so weak that their functioning should not be impacted.
3849 am__obj=conftest.${OBJEXT-o}
3854 if depmode=$depmode \
3855 source=sub/conftest.c object=$am__obj \
3856 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3857 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3858 >/dev/null 2>conftest.err &&
3859 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3860 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3861 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3862 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3863 # icc doesn't choke on unknown options, it will just issue warnings
3864 # or remarks (even with -Werror). So we grep stderr for any message
3865 # that says an option was ignored or not supported.
3866 # When given -MP, icc 7.0 and 7.1 complain thusly:
3867 # icc: Command line warning: ignoring option '-M'; no argument required
3868 # The diagnosis changed in icc 8.0:
3869 # icc: Command line remark: option '-MP' not supported
3870 if (grep 'ignoring option' conftest.err ||
3871 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3872 am_cv_CC_dependencies_compiler_type=$depmode
3881 am_cv_CC_dependencies_compiler_type=none
3885 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3886 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3887 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890 test "x$enable_dependency_tracking" != xno \
3891 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893 am__fastdepCC_FALSE='#'
3895 am__fastdepCC_TRUE='#'
3896 am__fastdepCC_FALSE=
3906 # By default we simply use the C compiler to build assembly code.
3908 test "${CCAS+set}" = set || CCAS=$CC
3909 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3913 depcc="$CCAS" am_compiler_list=
3915 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3916 $as_echo_n "checking dependency style of $depcc... " >&6; }
3917 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3918 $as_echo_n "(cached) " >&6
3920 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921 # We make a subdir and do the tests there. Otherwise we can end up
3922 # making bogus files that we don't know about and never remove. For
3923 # instance it was reported that on HP-UX the gcc test will end up
3924 # making a dummy file named `D' -- because `-MD' means `put the output
3927 # Copy depcomp to subdir because otherwise we won't find it if we're
3928 # using a relative directory.
3929 cp "$am_depcomp" conftest.dir
3931 # We will build objects and dependencies in a subdirectory because
3932 # it helps to detect inapplicable dependency modes. For instance
3933 # both Tru64's cc and ICC support -MD to output dependencies as a
3934 # side effect of compilation, but ICC will put the dependencies in
3935 # the current directory while Tru64 will put them in the object
3939 am_cv_CCAS_dependencies_compiler_type=none
3940 if test "$am_compiler_list" = ""; then
3941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3946 for depmode in $am_compiler_list; do
3947 # Setup a source with many dependencies, because some compilers
3948 # like to wrap large dependency lists on column 80 (with \), and
3949 # we should not choose a depcomp mode which is confused by this.
3951 # We need to recreate these files for each test, as the compiler may
3952 # overwrite some of them when testing with obscure command lines.
3953 # This happens at least with the AIX C compiler.
3955 for i in 1 2 3 4 5 6; do
3956 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3957 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3958 # Solaris 8's {/usr,}/bin/sh.
3959 touch sub/conftst$i.h
3961 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3963 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3964 # mode. It turns out that the SunPro C++ compiler does not properly
3965 # handle `-M -o', and we need to detect this. Also, some Intel
3966 # versions had trouble with output in subdirs
3967 am__obj=sub/conftest.${OBJEXT-o}
3968 am__minus_obj="-o $am__obj"
3971 # This depmode causes a compiler race in universal mode.
3972 test "$am__universal" = false || continue
3975 # after this tag, mechanisms are not by side-effect, so they'll
3976 # only be used when explicitly requested
3977 if test "x$enable_dependency_tracking" = xyes; then
3983 msvisualcpp | msvcmsys)
3984 # This compiler won't grok `-c -o', but also, the minuso test has
3985 # not run yet. These depmodes are late enough in the game, and
3986 # so weak that their functioning should not be impacted.
3987 am__obj=conftest.${OBJEXT-o}
3992 if depmode=$depmode \
3993 source=sub/conftest.c object=$am__obj \
3994 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3995 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3996 >/dev/null 2>conftest.err &&
3997 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3998 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3999 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4000 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4001 # icc doesn't choke on unknown options, it will just issue warnings
4002 # or remarks (even with -Werror). So we grep stderr for any message
4003 # that says an option was ignored or not supported.
4004 # When given -MP, icc 7.0 and 7.1 complain thusly:
4005 # icc: Command line warning: ignoring option '-M'; no argument required
4006 # The diagnosis changed in icc 8.0:
4007 # icc: Command line remark: option '-MP' not supported
4008 if (grep 'ignoring option' conftest.err ||
4009 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4010 am_cv_CCAS_dependencies_compiler_type=$depmode
4019 am_cv_CCAS_dependencies_compiler_type=none
4023 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4024 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4025 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4028 test "x$enable_dependency_tracking" != xno \
4029 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4030 am__fastdepCCAS_TRUE=
4031 am__fastdepCCAS_FALSE='#'
4033 am__fastdepCCAS_TRUE='#'
4034 am__fastdepCCAS_FALSE=
4038 if test "x$CC" != xcc; then
4039 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4040 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4042 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4043 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4045 set dummy $CC; ac_cc=`$as_echo "$2" |
4046 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4047 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4048 $as_echo_n "(cached) " >&6
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4065 # Make sure it works both with $CC and with simple cc.
4066 # We do the test twice because some compilers refuse to overwrite an
4067 # existing .o file with -o, though they will create one.
4068 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4070 if { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076 (eval "$ac_try") 2>&5
4078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4085 $as_echo "$ac_try_echo") >&5
4086 (eval "$ac_try") 2>&5
4088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); };
4091 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4092 if test "x$CC" != xcc; then
4093 # Test first that cc exists at all.
4094 if { ac_try='cc -c conftest.$ac_ext >&5'
4095 { (case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100 $as_echo "$ac_try_echo") >&5
4101 (eval "$ac_try") 2>&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4107 if { (case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4112 $as_echo "$ac_try_echo") >&5
4113 (eval "$ac_try") 2>&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } &&
4117 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122 $as_echo "$ac_try_echo") >&5
4123 (eval "$ac_try") 2>&5
4125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); };
4131 # cc exists but doesn't like -o.
4132 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4137 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4139 rm -f core conftest*
4142 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4143 { $as_echo "$as_me:$LINENO: result: yes" >&5
4144 $as_echo "yes" >&6; }
4146 { $as_echo "$as_me:$LINENO: result: no" >&5
4147 $as_echo "no" >&6; }
4149 cat >>confdefs.h <<\_ACEOF
4150 #define NO_MINUS_C_MINUS_O 1
4155 # FIXME: we rely on the cache variable name because
4156 # there is no other way.
4158 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4159 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4160 if test "$am_t" != yes; then
4161 # Losing compiler, so override with the script.
4162 # FIXME: It is wrong to rewrite CC.
4163 # But if we don't then we get into trouble of one sort or another.
4164 # A longer-term fix would be to have automake use am__CC in this case,
4165 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4166 CC="$am_aux_dir/compile $CC"
4172 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4173 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4178 macro_version='2.2.6b'
4179 macro_revision='1.3017'
4193 ltmain="$ac_aux_dir/ltmain.sh"
4195 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4196 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4197 if test "${ac_cv_path_SED+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4200 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4201 for ac_i in 1 2 3 4 5 6 7; do
4202 ac_script="$ac_script$as_nl$ac_script"
4204 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4205 $as_unset ac_script || ac_script=
4206 if test -z "$SED"; then
4207 ac_path_SED_found=false
4208 # Loop through the user's path and test for each of PROGNAME-LIST
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_prog in sed gsed; do
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4217 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4218 # Check for GNU ac_path_SED and select it if it is found.
4219 # Check for GNU $ac_path_SED
4220 case `"$ac_path_SED" --version 2>&1` in
4222 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4225 $as_echo_n 0123456789 >"conftest.in"
4228 cat "conftest.in" "conftest.in" >"conftest.tmp"
4229 mv "conftest.tmp" "conftest.in"
4230 cp "conftest.in" "conftest.nl"
4231 $as_echo '' >> "conftest.nl"
4232 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234 ac_count=`expr $ac_count + 1`
4235 if test $ac_count -gt ${ac_path_SED_max-0}; then
4236 # Best one so far, save it but keep looking for a better one
4237 ac_cv_path_SED="$ac_path_SED"
4238 ac_path_SED_max=$ac_count
4240 # 10*(2^10) chars as input seems more than enough
4241 test $ac_count -gt 10 && break
4243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246 $ac_path_SED_found && break 3
4251 if test -z "$ac_cv_path_SED"; then
4252 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4253 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4254 { (exit 1); exit 1; }; }
4261 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4262 $as_echo "$ac_cv_path_SED" >&6; }
4263 SED="$ac_cv_path_SED"
4266 test -z "$SED" && SED=sed
4267 Xsed="$SED -e 1s/^X//"
4279 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4280 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4281 if test "${ac_cv_path_GREP+set}" = set; then
4282 $as_echo_n "(cached) " >&6
4284 if test -z "$GREP"; then
4285 ac_path_GREP_found=false
4286 # Loop through the user's path and test for each of PROGNAME-LIST
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4291 test -z "$as_dir" && as_dir=.
4292 for ac_prog in grep ggrep; do
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4295 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4296 # Check for GNU ac_path_GREP and select it if it is found.
4297 # Check for GNU $ac_path_GREP
4298 case `"$ac_path_GREP" --version 2>&1` in
4300 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4303 $as_echo_n 0123456789 >"conftest.in"
4306 cat "conftest.in" "conftest.in" >"conftest.tmp"
4307 mv "conftest.tmp" "conftest.in"
4308 cp "conftest.in" "conftest.nl"
4309 $as_echo 'GREP' >> "conftest.nl"
4310 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312 ac_count=`expr $ac_count + 1`
4313 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4314 # Best one so far, save it but keep looking for a better one
4315 ac_cv_path_GREP="$ac_path_GREP"
4316 ac_path_GREP_max=$ac_count
4318 # 10*(2^10) chars as input seems more than enough
4319 test $ac_count -gt 10 && break
4321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4324 $ac_path_GREP_found && break 3
4329 if test -z "$ac_cv_path_GREP"; then
4330 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4331 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4332 { (exit 1); exit 1; }; }
4335 ac_cv_path_GREP=$GREP
4339 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4340 $as_echo "$ac_cv_path_GREP" >&6; }
4341 GREP="$ac_cv_path_GREP"
4344 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4345 $as_echo_n "checking for egrep... " >&6; }
4346 if test "${ac_cv_path_EGREP+set}" = set; then
4347 $as_echo_n "(cached) " >&6
4349 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4350 then ac_cv_path_EGREP="$GREP -E"
4352 if test -z "$EGREP"; then
4353 ac_path_EGREP_found=false
4354 # Loop through the user's path and test for each of PROGNAME-LIST
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4359 test -z "$as_dir" && as_dir=.
4360 for ac_prog in egrep; do
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4363 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4364 # Check for GNU ac_path_EGREP and select it if it is found.
4365 # Check for GNU $ac_path_EGREP
4366 case `"$ac_path_EGREP" --version 2>&1` in
4368 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4371 $as_echo_n 0123456789 >"conftest.in"
4374 cat "conftest.in" "conftest.in" >"conftest.tmp"
4375 mv "conftest.tmp" "conftest.in"
4376 cp "conftest.in" "conftest.nl"
4377 $as_echo 'EGREP' >> "conftest.nl"
4378 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4380 ac_count=`expr $ac_count + 1`
4381 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4382 # Best one so far, save it but keep looking for a better one
4383 ac_cv_path_EGREP="$ac_path_EGREP"
4384 ac_path_EGREP_max=$ac_count
4386 # 10*(2^10) chars as input seems more than enough
4387 test $ac_count -gt 10 && break
4389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4392 $ac_path_EGREP_found && break 3
4397 if test -z "$ac_cv_path_EGREP"; then
4398 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4399 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4400 { (exit 1); exit 1; }; }
4403 ac_cv_path_EGREP=$EGREP
4408 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4409 $as_echo "$ac_cv_path_EGREP" >&6; }
4410 EGREP="$ac_cv_path_EGREP"
4413 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4414 $as_echo_n "checking for fgrep... " >&6; }
4415 if test "${ac_cv_path_FGREP+set}" = set; then
4416 $as_echo_n "(cached) " >&6
4418 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4419 then ac_cv_path_FGREP="$GREP -F"
4421 if test -z "$FGREP"; then
4422 ac_path_FGREP_found=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428 test -z "$as_dir" && as_dir=.
4429 for ac_prog in fgrep; do
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4432 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4433 # Check for GNU ac_path_FGREP and select it if it is found.
4434 # Check for GNU $ac_path_FGREP
4435 case `"$ac_path_FGREP" --version 2>&1` in
4437 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4440 $as_echo_n 0123456789 >"conftest.in"
4443 cat "conftest.in" "conftest.in" >"conftest.tmp"
4444 mv "conftest.tmp" "conftest.in"
4445 cp "conftest.in" "conftest.nl"
4446 $as_echo 'FGREP' >> "conftest.nl"
4447 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449 ac_count=`expr $ac_count + 1`
4450 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4451 # Best one so far, save it but keep looking for a better one
4452 ac_cv_path_FGREP="$ac_path_FGREP"
4453 ac_path_FGREP_max=$ac_count
4455 # 10*(2^10) chars as input seems more than enough
4456 test $ac_count -gt 10 && break
4458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4461 $ac_path_FGREP_found && break 3
4466 if test -z "$ac_cv_path_FGREP"; then
4467 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4468 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4469 { (exit 1); exit 1; }; }
4472 ac_cv_path_FGREP=$FGREP
4477 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4478 $as_echo "$ac_cv_path_FGREP" >&6; }
4479 FGREP="$ac_cv_path_FGREP"
4482 test -z "$GREP" && GREP=grep
4502 # Check whether --with-gnu-ld was given.
4503 if test "${with_gnu_ld+set}" = set; then
4504 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4510 if test "$GCC" = yes; then
4511 # Check if gcc -print-prog-name=ld gives a path.
4512 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4513 $as_echo_n "checking for ld used by $CC... " >&6; }
4516 # gcc leaves a trailing carriage return which upsets mingw
4517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4522 # Accept absolute paths.
4524 re_direlt='/[^/][^/]*/\.\./'
4525 # Canonicalize the pathname of ld
4526 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4527 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4528 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4530 test -z "$LD" && LD="$ac_prog"
4533 # If it fails, then pretend we aren't using GCC.
4537 # If it is relative, then search for the first ld in PATH.
4541 elif test "$with_gnu_ld" = yes; then
4542 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4543 $as_echo_n "checking for GNU ld... " >&6; }
4545 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4546 $as_echo_n "checking for non-GNU ld... " >&6; }
4548 if test "${lt_cv_path_LD+set}" = set; then
4549 $as_echo_n "(cached) " >&6
4551 if test -z "$LD"; then
4552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4553 for ac_dir in $PATH; do
4555 test -z "$ac_dir" && ac_dir=.
4556 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4557 lt_cv_path_LD="$ac_dir/$ac_prog"
4558 # Check to see if the program is GNU ld. I'd rather use --version,
4559 # but apparently some variants of GNU ld only accept -v.
4560 # Break only if it was the GNU/non-GNU ld that we prefer.
4561 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4562 *GNU* | *'with BFD'*)
4563 test "$with_gnu_ld" != no && break
4566 test "$with_gnu_ld" != yes && break
4573 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4578 if test -n "$LD"; then
4579 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4580 $as_echo "$LD" >&6; }
4582 { $as_echo "$as_me:$LINENO: result: no" >&5
4583 $as_echo "no" >&6; }
4585 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4586 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4587 { (exit 1); exit 1; }; }
4588 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4589 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4590 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4591 $as_echo_n "(cached) " >&6
4593 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4594 case `$LD -v 2>&1 </dev/null` in
4595 *GNU* | *'with BFD'*)
4596 lt_cv_prog_gnu_ld=yes
4599 lt_cv_prog_gnu_ld=no
4603 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4604 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4605 with_gnu_ld=$lt_cv_prog_gnu_ld
4615 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4616 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4617 if test "${lt_cv_path_NM+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$NM"; then
4621 # Let the user override the test.
4624 lt_nm_to_check="${ac_tool_prefix}nm"
4625 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4626 lt_nm_to_check="$lt_nm_to_check nm"
4628 for lt_tmp_nm in $lt_nm_to_check; do
4629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4630 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4632 test -z "$ac_dir" && ac_dir=.
4633 tmp_nm="$ac_dir/$lt_tmp_nm"
4634 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4635 # Check to see if the nm accepts a BSD-compat flag.
4636 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4637 # nm: unknown option "B" ignored
4638 # Tru64's nm complains that /dev/null is an invalid object file
4639 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4640 */dev/null* | *'Invalid file or object type'*)
4641 lt_cv_path_NM="$tmp_nm -B"
4645 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4647 lt_cv_path_NM="$tmp_nm -p"
4651 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4652 continue # so that we can try to find one that supports BSD flags
4661 : ${lt_cv_path_NM=no}
4664 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4665 $as_echo "$lt_cv_path_NM" >&6; }
4666 if test "$lt_cv_path_NM" != "no"; then
4669 # Didn't find any BSD compatible name lister, look for dumpbin.
4670 if test -n "$ac_tool_prefix"; then
4671 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4678 $as_echo_n "(cached) " >&6
4680 if test -n "$DUMPBIN"; then
4681 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 DUMPBIN=$ac_cv_prog_DUMPBIN
4701 if test -n "$DUMPBIN"; then
4702 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4703 $as_echo "$DUMPBIN" >&6; }
4705 { $as_echo "$as_me:$LINENO: result: no" >&5
4706 $as_echo "no" >&6; }
4710 test -n "$DUMPBIN" && break
4713 if test -z "$DUMPBIN"; then
4714 ac_ct_DUMPBIN=$DUMPBIN
4715 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4717 # Extract the first word of "$ac_prog", so it can be a program name with args.
4718 set dummy $ac_prog; ac_word=$2
4719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4722 $as_echo_n "(cached) " >&6
4724 if test -n "$ac_ct_DUMPBIN"; then
4725 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4745 if test -n "$ac_ct_DUMPBIN"; then
4746 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4747 $as_echo "$ac_ct_DUMPBIN" >&6; }
4749 { $as_echo "$as_me:$LINENO: result: no" >&5
4750 $as_echo "no" >&6; }
4754 test -n "$ac_ct_DUMPBIN" && break
4757 if test "x$ac_ct_DUMPBIN" = x; then
4760 case $cross_compiling:$ac_tool_warned in
4762 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764 ac_tool_warned=yes ;;
4766 DUMPBIN=$ac_ct_DUMPBIN
4771 if test "$DUMPBIN" != ":"; then
4775 test -z "$NM" && NM=nm
4782 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4783 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4784 if test "${lt_cv_nm_interface+set}" = set; then
4785 $as_echo_n "(cached) " >&6
4787 lt_cv_nm_interface="BSD nm"
4788 echo "int some_variable = 0;" > conftest.$ac_ext
4789 (eval echo "\"\$as_me:4789: $ac_compile\"" >&5)
4790 (eval "$ac_compile" 2>conftest.err)
4791 cat conftest.err >&5
4792 (eval echo "\"\$as_me:4792: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4793 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4794 cat conftest.err >&5
4795 (eval echo "\"\$as_me:4795: output\"" >&5)
4796 cat conftest.out >&5
4797 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4798 lt_cv_nm_interface="MS dumpbin"
4802 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4803 $as_echo "$lt_cv_nm_interface" >&6; }
4805 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4806 $as_echo_n "checking whether ln -s works... " >&6; }
4808 if test "$LN_S" = "ln -s"; then
4809 { $as_echo "$as_me:$LINENO: result: yes" >&5
4810 $as_echo "yes" >&6; }
4812 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4813 $as_echo "no, using $LN_S" >&6; }
4816 # find the maximum length of command line arguments
4817 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4818 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4819 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4820 $as_echo_n "(cached) " >&6
4827 # On DJGPP, this test can blow up pretty badly due to problems in libc
4828 # (any single argument exceeding 2000 bytes causes a buffer overrun
4829 # during glob expansion). Even if it were fixed, the result of this
4830 # check would be larger than it should be.
4831 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4835 # Under GNU Hurd, this test is not required because there is
4836 # no limit to the length of command line arguments.
4837 # Libtool will interpret -1 as no limit whatsoever
4838 lt_cv_sys_max_cmd_len=-1;
4841 cygwin* | mingw* | cegcc*)
4842 # On Win9x/ME, this test blows up -- it succeeds, but takes
4843 # about 5 minutes as the teststring grows exponentially.
4844 # Worse, since 9x/ME are not pre-emptively multitasking,
4845 # you end up with a "frozen" computer, even though with patience
4846 # the test eventually succeeds (with a max line length of 256k).
4847 # Instead, let's just punt: use the minimum linelength reported by
4848 # all of the supported platforms: 8192 (on NT/2K/XP).
4849 lt_cv_sys_max_cmd_len=8192;
4853 # On AmigaOS with pdksh, this test takes hours, literally.
4854 # So we just punt and use a minimum line length of 8192.
4855 lt_cv_sys_max_cmd_len=8192;
4858 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4859 # This has been around since 386BSD, at least. Likely further.
4860 if test -x /sbin/sysctl; then
4861 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4862 elif test -x /usr/sbin/sysctl; then
4863 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4865 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4867 # And add a safety zone
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4873 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4874 lt_cv_sys_max_cmd_len=196608
4878 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4879 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4880 # nice to cause kernel panics so lets avoid the loop below.
4881 # First set a reasonable default.
4882 lt_cv_sys_max_cmd_len=16384
4884 if test -x /sbin/sysconfig; then
4885 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4886 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4891 lt_cv_sys_max_cmd_len=102400
4893 sysv5* | sco5v6* | sysv4.2uw2*)
4894 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4895 if test -n "$kargmax"; then
4896 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4898 lt_cv_sys_max_cmd_len=32768
4902 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4903 if test -n "$lt_cv_sys_max_cmd_len"; then
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4907 # Make teststring a little bigger before we do anything with it.
4908 # a 1K string should be a reasonable start.
4909 for i in 1 2 3 4 5 6 7 8 ; do
4910 teststring=$teststring$teststring
4912 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4913 # If test is not a shell built-in, we'll probably end up computing a
4914 # maximum length that is only half of the actual maximum length, but
4916 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4917 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4918 test $i != 17 # 1/2 MB should be enough
4921 teststring=$teststring$teststring
4923 # Only check the string length outside the loop.
4924 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4926 # Add a significant safety factor because C++ compilers can tack on
4927 # massive amounts of additional arguments before passing them to the
4928 # linker. It appears as though 1/2 is a usable value.
4929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4936 if test -n $lt_cv_sys_max_cmd_len ; then
4937 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4938 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4940 { $as_echo "$as_me:$LINENO: result: none" >&5
4941 $as_echo "none" >&6; }
4943 max_cmd_len=$lt_cv_sys_max_cmd_len
4954 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4955 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4956 # Try some XSI features
4959 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4961 && eval 'test $(( 1 + 1 )) -eq 2 \
4962 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4964 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4965 $as_echo "$xsi_shell" >&6; }
4968 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4969 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4971 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4973 && lt_shell_append=yes
4974 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4975 $as_echo "$lt_shell_append" >&6; }
4978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4988 # test EBCDIC or ASCII
4989 case `echo X|tr X '\101'` in
4990 A) # ASCII based system
4991 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4992 lt_SP2NL='tr \040 \012'
4993 lt_NL2SP='tr \015\012 \040\040'
4995 *) # EBCDIC based system
4996 lt_SP2NL='tr \100 \n'
4997 lt_NL2SP='tr \r\n \100\100'
5009 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5010 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5011 if test "${lt_cv_ld_reload_flag+set}" = set; then
5012 $as_echo_n "(cached) " >&6
5014 lt_cv_ld_reload_flag='-r'
5016 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5017 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5018 reload_flag=$lt_cv_ld_reload_flag
5019 case $reload_flag in
5021 *) reload_flag=" $reload_flag" ;;
5023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5026 if test "$GCC" = yes; then
5027 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5042 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5048 $as_echo_n "(cached) " >&6
5050 if test -n "$OBJDUMP"; then
5051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 OBJDUMP=$ac_cv_prog_OBJDUMP
5071 if test -n "$OBJDUMP"; then
5072 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5073 $as_echo "$OBJDUMP" >&6; }
5075 { $as_echo "$as_me:$LINENO: result: no" >&5
5076 $as_echo "no" >&6; }
5081 if test -z "$ac_cv_prog_OBJDUMP"; then
5082 ac_ct_OBJDUMP=$OBJDUMP
5083 # Extract the first word of "objdump", so it can be a program name with args.
5084 set dummy objdump; ac_word=$2
5085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5088 $as_echo_n "(cached) " >&6
5090 if test -n "$ac_ct_OBJDUMP"; then
5091 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5111 if test -n "$ac_ct_OBJDUMP"; then
5112 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5113 $as_echo "$ac_ct_OBJDUMP" >&6; }
5115 { $as_echo "$as_me:$LINENO: result: no" >&5
5116 $as_echo "no" >&6; }
5119 if test "x$ac_ct_OBJDUMP" = x; then
5122 case $cross_compiling:$ac_tool_warned in
5124 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5128 OBJDUMP=$ac_ct_OBJDUMP
5131 OBJDUMP="$ac_cv_prog_OBJDUMP"
5134 test -z "$OBJDUMP" && OBJDUMP=objdump
5144 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5145 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5146 if test "${lt_cv_deplibs_check_method+set}" = set; then
5147 $as_echo_n "(cached) " >&6
5149 lt_cv_file_magic_cmd='$MAGIC_CMD'
5150 lt_cv_file_magic_test_file=
5151 lt_cv_deplibs_check_method='unknown'
5152 # Need to set the preceding variable on all platforms that support
5153 # interlibrary dependencies.
5154 # 'none' -- dependencies not supported.
5155 # `unknown' -- same as none, but documents that we really don't know.
5156 # 'pass_all' -- all dependencies passed with no checks.
5157 # 'test_compile' -- check by making test program.
5158 # 'file_magic [[regex]]' -- check by looking for files in library path
5159 # which responds to the $file_magic_cmd with a given extended regex.
5160 # If you have `file' or equivalent on your system and you're not sure
5161 # whether `pass_all' will *always* work, you probably want this one.
5165 lt_cv_deplibs_check_method=pass_all
5169 lt_cv_deplibs_check_method=pass_all
5173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5174 lt_cv_file_magic_cmd='/usr/bin/file -L'
5175 lt_cv_file_magic_test_file=/shlib/libc.so
5179 # func_win32_libid is a shell function defined in ltmain.sh
5180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181 lt_cv_file_magic_cmd='func_win32_libid'
5185 # Base MSYS/MinGW do not provide the 'file' command needed by
5186 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5187 # unless we find 'file', for example because we are cross-compiling.
5188 if ( file / ) >/dev/null 2>&1; then
5189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190 lt_cv_file_magic_cmd='func_win32_libid'
5192 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5193 lt_cv_file_magic_cmd='$OBJDUMP -f'
5198 # use the weaker test based on 'objdump'. See mingw*.
5199 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5200 lt_cv_file_magic_cmd='$OBJDUMP -f'
5203 darwin* | rhapsody*)
5204 lt_cv_deplibs_check_method=pass_all
5207 freebsd* | dragonfly*)
5208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5211 # Not sure whether the presence of OpenBSD here was a mistake.
5212 # Let's accept both of them until this is cleared up.
5213 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5214 lt_cv_file_magic_cmd=/usr/bin/file
5215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5219 lt_cv_deplibs_check_method=pass_all
5224 lt_cv_deplibs_check_method=pass_all
5227 hpux10.20* | hpux11*)
5228 lt_cv_file_magic_cmd=/usr/bin/file
5231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5232 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5235 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]'
5236 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5240 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5246 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5250 irix5* | irix6* | nonstopux*)
5252 *-32|*"-32 ") libmagic=32-bit;;
5253 *-n32|*"-n32 ") libmagic=N32;;
5254 *-64|*"-64 ") libmagic=64-bit;;
5255 *) libmagic=never-match;;
5257 lt_cv_deplibs_check_method=pass_all
5260 # This must be Linux ELF.
5261 linux* | k*bsd*-gnu)
5262 lt_cv_deplibs_check_method=pass_all
5266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5275 lt_cv_file_magic_cmd=/usr/bin/file
5276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5280 lt_cv_deplibs_check_method=pass_all
5284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5291 osf3* | osf4* | osf5*)
5292 lt_cv_deplibs_check_method=pass_all
5296 lt_cv_deplibs_check_method=pass_all
5300 lt_cv_deplibs_check_method=pass_all
5303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5304 lt_cv_deplibs_check_method=pass_all
5308 case $host_vendor in
5310 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]'
5311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5314 lt_cv_deplibs_check_method=pass_all
5317 lt_cv_file_magic_cmd='/bin/file'
5318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5321 lt_cv_file_magic_cmd='/bin/file'
5322 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5323 lt_cv_file_magic_test_file=/lib/libc.so
5326 lt_cv_deplibs_check_method=pass_all
5329 lt_cv_deplibs_check_method=pass_all
5335 lt_cv_deplibs_check_method=pass_all
5340 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5342 file_magic_cmd=$lt_cv_file_magic_cmd
5343 deplibs_check_method=$lt_cv_deplibs_check_method
5344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5357 if test -n "$ac_tool_prefix"; then
5358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5359 set dummy ${ac_tool_prefix}ar; ac_word=$2
5360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if test "${ac_cv_prog_AR+set}" = set; then
5363 $as_echo_n "(cached) " >&6
5365 if test -n "$AR"; then
5366 ac_cv_prog_AR="$AR" # Let the user override the test.
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375 ac_cv_prog_AR="${ac_tool_prefix}ar"
5376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 if test -n "$AR"; then
5387 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5388 $as_echo "$AR" >&6; }
5390 { $as_echo "$as_me:$LINENO: result: no" >&5
5391 $as_echo "no" >&6; }
5396 if test -z "$ac_cv_prog_AR"; then
5398 # Extract the first word of "ar", so it can be a program name with args.
5399 set dummy ar; ac_word=$2
5400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5403 $as_echo_n "(cached) " >&6
5405 if test -n "$ac_ct_AR"; then
5406 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5415 ac_cv_prog_ac_ct_AR="ar"
5416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5426 if test -n "$ac_ct_AR"; then
5427 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5428 $as_echo "$ac_ct_AR" >&6; }
5430 { $as_echo "$as_me:$LINENO: result: no" >&5
5431 $as_echo "no" >&6; }
5434 if test "x$ac_ct_AR" = x; then
5437 case $cross_compiling:$ac_tool_warned in
5439 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5441 ac_tool_warned=yes ;;
5449 test -z "$AR" && AR=ar
5450 test -z "$AR_FLAGS" && AR_FLAGS=cru
5462 if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}strip; ac_word=$2
5465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if test "${ac_cv_prog_STRIP+set}" = set; then
5468 $as_echo_n "(cached) " >&6
5470 if test -n "$STRIP"; then
5471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 STRIP=$ac_cv_prog_STRIP
5491 if test -n "$STRIP"; then
5492 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5493 $as_echo "$STRIP" >&6; }
5495 { $as_echo "$as_me:$LINENO: result: no" >&5
5496 $as_echo "no" >&6; }
5501 if test -z "$ac_cv_prog_STRIP"; then
5503 # Extract the first word of "strip", so it can be a program name with args.
5504 set dummy strip; ac_word=$2
5505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5508 $as_echo_n "(cached) " >&6
5510 if test -n "$ac_ct_STRIP"; then
5511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_prog_ac_ct_STRIP="strip"
5521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5531 if test -n "$ac_ct_STRIP"; then
5532 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5533 $as_echo "$ac_ct_STRIP" >&6; }
5535 { $as_echo "$as_me:$LINENO: result: no" >&5
5536 $as_echo "no" >&6; }
5539 if test "x$ac_ct_STRIP" = x; then
5542 case $cross_compiling:$ac_tool_warned in
5544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546 ac_tool_warned=yes ;;
5551 STRIP="$ac_cv_prog_STRIP"
5554 test -z "$STRIP" && STRIP=:
5561 if test -n "$ac_tool_prefix"; then
5562 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if test "${ac_cv_prog_RANLIB+set}" = set; then
5567 $as_echo_n "(cached) " >&6
5569 if test -n "$RANLIB"; then
5570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 RANLIB=$ac_cv_prog_RANLIB
5590 if test -n "$RANLIB"; then
5591 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5592 $as_echo "$RANLIB" >&6; }
5594 { $as_echo "$as_me:$LINENO: result: no" >&5
5595 $as_echo "no" >&6; }
5600 if test -z "$ac_cv_prog_RANLIB"; then
5601 ac_ct_RANLIB=$RANLIB
5602 # Extract the first word of "ranlib", so it can be a program name with args.
5603 set dummy ranlib; ac_word=$2
5604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5607 $as_echo_n "(cached) " >&6
5609 if test -n "$ac_ct_RANLIB"; then
5610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_ac_ct_RANLIB="ranlib"
5620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5630 if test -n "$ac_ct_RANLIB"; then
5631 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5632 $as_echo "$ac_ct_RANLIB" >&6; }
5634 { $as_echo "$as_me:$LINENO: result: no" >&5
5635 $as_echo "no" >&6; }
5638 if test "x$ac_ct_RANLIB" = x; then
5641 case $cross_compiling:$ac_tool_warned in
5643 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5647 RANLIB=$ac_ct_RANLIB
5650 RANLIB="$ac_cv_prog_RANLIB"
5653 test -z "$RANLIB" && RANLIB=:
5660 # Determine commands to create old-style static archives.
5661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5662 old_postinstall_cmds='chmod 644 $oldlib'
5663 old_postuninstall_cmds=
5665 if test -n "$RANLIB"; then
5668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5671 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5674 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5710 # If no C compiler was specified, use CC.
5713 # If no C compiler flags were specified, use CFLAGS.
5714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5716 # Allow CC to be a program name with arguments.
5720 # Check for command to grab the raw symbol name followed by C symbol from nm.
5721 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5722 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5723 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5724 $as_echo_n "(cached) " >&6
5727 # These are sane defaults that work on at least a few old systems.
5728 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5730 # Character class describing NM global symbol codes.
5731 symcode='[BCDEGRST]'
5733 # Regexp to match symbols that can be accessed directly from C.
5734 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5736 # Define system-specific variables.
5741 cygwin* | mingw* | pw32* | cegcc*)
5742 symcode='[ABCDGISTW]'
5745 if test "$host_cpu" = ia64; then
5746 symcode='[ABCDEGRST]'
5750 symcode='[BCDEGRST]'
5753 symcode='[BCDEGQRST]'
5764 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5772 # If we're using GNU nm, then use its standard symbol codes.
5773 case `$NM -V 2>&1` in
5774 *GNU* | *'with BFD'*)
5775 symcode='[ABCDGIRSTW]' ;;
5778 # Transform an extracted symbol line into a proper C declaration.
5779 # Some systems (esp. on ia64) link data and code symbols differently,
5780 # so use this general approach.
5781 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5783 # Transform an extracted symbol line into symbol name and symbol address
5784 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5785 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'"
5787 # Handle CRLF in mingw tool chain
5791 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5795 # Try without a prefix underscore, then with it.
5796 for ac_symprfx in "" "_"; do
5798 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5799 symxfrm="\\1 $ac_symprfx\\2 \\2"
5801 # Write the raw and C identifiers.
5802 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5803 # Fake it for dumpbin and say T for any non-static function
5804 # and D for any global variable.
5805 # Also find C++ and __fastcall symbols from MSVC++,
5806 # which start with @ or ?.
5807 lt_cv_sys_global_symbol_pipe="$AWK '"\
5808 " {last_section=section; section=\$ 3};"\
5809 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5810 " \$ 0!~/External *\|/{next};"\
5811 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5812 " {if(hide[section]) next};"\
5813 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5814 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5815 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5816 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5817 " ' prfx=^$ac_symprfx"
5819 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5822 # Check to see that the pipe works correctly.
5826 cat > conftest.$ac_ext <<_LT_EOF
5831 void nm_test_func(void);
5832 void nm_test_func(void){}
5836 int main(){nm_test_var='a';nm_test_func();return(0);}
5839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5840 (eval $ac_compile) 2>&5
5842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; then
5844 # Now try to grab the symbols.
5846 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5847 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && test -s "$nlist"; then
5851 # Try sorting and uniquifying the output.
5852 if sort "$nlist" | uniq > "$nlist"T; then
5853 mv -f "$nlist"T "$nlist"
5858 # Make sure that we snagged all the symbols we need.
5859 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5860 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5861 cat <<_LT_EOF > conftest.$ac_ext
5867 # Now generate the symbol file.
5868 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5870 cat <<_LT_EOF >> conftest.$ac_ext
5872 /* The mapping between symbol names and symbols. */
5877 lt__PROGRAM__LTX_preloaded_symbols[] =
5879 { "@PROGRAM@", (void *) 0 },
5881 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5882 cat <<\_LT_EOF >> conftest.$ac_ext
5886 /* This works around a problem in FreeBSD linker */
5887 #ifdef FREEBSD_WORKAROUND
5888 static const void *lt_preloaded_setup() {
5889 return lt__PROGRAM__LTX_preloaded_symbols;
5897 # Now try linking the two files.
5898 mv conftest.$ac_objext conftstm.$ac_objext
5899 lt_save_LIBS="$LIBS"
5900 lt_save_CFLAGS="$CFLAGS"
5901 LIBS="conftstm.$ac_objext"
5902 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904 (eval $ac_link) 2>&5
5906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5910 LIBS="$lt_save_LIBS"
5911 CFLAGS="$lt_save_CFLAGS"
5913 echo "cannot find nm_test_func in $nlist" >&5
5916 echo "cannot find nm_test_var in $nlist" >&5
5919 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5922 echo "$progname: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5925 rm -rf conftest* conftst*
5927 # Do not use the global_symbol_pipe unless it works.
5928 if test "$pipe_works" = yes; then
5931 lt_cv_sys_global_symbol_pipe=
5937 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5938 lt_cv_sys_global_symbol_to_cdecl=
5940 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5941 { $as_echo "$as_me:$LINENO: result: failed" >&5
5942 $as_echo "failed" >&6; }
5944 { $as_echo "$as_me:$LINENO: result: ok" >&5
5945 $as_echo "ok" >&6; }
5970 # Check whether --enable-libtool-lock was given.
5971 if test "${enable_libtool_lock+set}" = set; then
5972 enableval=$enable_libtool_lock;
5975 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5977 # Some flags need to be propagated to the compiler or linker for good
5981 # Find out which ABI we are using.
5982 echo 'int i;' > conftest.$ac_ext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; then
5988 case `/usr/bin/file conftest.$ac_objext` in
6000 # Find out which ABI we are using.
6001 echo '#line 6001 "configure"' > conftest.$ac_ext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6003 (eval $ac_compile) 2>&5
6005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; then
6007 if test "$lt_cv_prog_gnu_ld" = yes; then
6008 case `/usr/bin/file conftest.$ac_objext` in
6010 LD="${LD-ld} -melf32bsmip"
6013 LD="${LD-ld} -melf32bmipn32"
6016 LD="${LD-ld} -melf64bmip"
6020 case `/usr/bin/file conftest.$ac_objext` in
6036 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6037 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6038 # Find out which ABI we are using.
6039 echo 'int i;' > conftest.$ac_ext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041 (eval $ac_compile) 2>&5
6043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; then
6045 case `/usr/bin/file conftest.o` in
6048 x86_64-*kfreebsd*-gnu)
6049 LD="${LD-ld} -m elf_i386_fbsd"
6052 LD="${LD-ld} -m elf_i386"
6054 ppc64-*linux*|powerpc64-*linux*)
6055 LD="${LD-ld} -m elf32ppclinux"
6058 LD="${LD-ld} -m elf_s390"
6061 LD="${LD-ld} -m elf32_sparc"
6067 x86_64-*kfreebsd*-gnu)
6068 LD="${LD-ld} -m elf_x86_64_fbsd"
6071 LD="${LD-ld} -m elf_x86_64"
6073 ppc*-*linux*|powerpc*-*linux*)
6074 LD="${LD-ld} -m elf64ppc"
6076 s390*-*linux*|s390*-*tpf*)
6077 LD="${LD-ld} -m elf64_s390"
6080 LD="${LD-ld} -m elf64_sparc"
6090 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6091 SAVE_CFLAGS="$CFLAGS"
6092 CFLAGS="$CFLAGS -belf"
6093 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6094 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6095 if test "${lt_cv_cc_needs_belf+set}" = set; then
6096 $as_echo_n "(cached) " >&6
6099 ac_cpp='$CPP $CPPFLAGS'
6100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6104 cat >conftest.$ac_ext <<_ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (ac_try="$ac_link"
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6126 $as_echo "$ac_try_echo") >&5
6127 (eval "$ac_link") 2>conftest.er1
6129 grep -v '^ *+' conftest.er1 >conftest.err
6131 cat conftest.err >&5
6132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && {
6134 test -z "$ac_c_werror_flag" ||
6135 test ! -s conftest.err
6136 } && test -s conftest$ac_exeext && {
6137 test "$cross_compiling" = yes ||
6138 $as_test_x conftest$ac_exeext
6140 lt_cv_cc_needs_belf=yes
6142 $as_echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 lt_cv_cc_needs_belf=no
6148 rm -rf conftest.dSYM
6149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6150 conftest$ac_exeext conftest.$ac_ext
6152 ac_cpp='$CPP $CPPFLAGS'
6153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6158 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6159 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6160 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6161 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6162 CFLAGS="$SAVE_CFLAGS"
6166 # Find out which ABI we are using.
6167 echo 'int i;' > conftest.$ac_ext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169 (eval $ac_compile) 2>&5
6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; then
6173 case `/usr/bin/file conftest.o` in
6175 case $lt_cv_prog_gnu_ld in
6176 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6178 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6190 need_locks="$enable_libtool_lock"
6194 rhapsody* | darwin*)
6195 if test -n "$ac_tool_prefix"; then
6196 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6203 if test -n "$DSYMUTIL"; then
6204 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210 test -z "$as_dir" && as_dir=.
6211 for ac_exec_ext in '' $ac_executable_extensions; do
6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6213 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6224 if test -n "$DSYMUTIL"; then
6225 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6226 $as_echo "$DSYMUTIL" >&6; }
6228 { $as_echo "$as_me:$LINENO: result: no" >&5
6229 $as_echo "no" >&6; }
6234 if test -z "$ac_cv_prog_DSYMUTIL"; then
6235 ac_ct_DSYMUTIL=$DSYMUTIL
6236 # Extract the first word of "dsymutil", so it can be a program name with args.
6237 set dummy dsymutil; ac_word=$2
6238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6241 $as_echo_n "(cached) " >&6
6243 if test -n "$ac_ct_DSYMUTIL"; then
6244 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6264 if test -n "$ac_ct_DSYMUTIL"; then
6265 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6266 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6268 { $as_echo "$as_me:$LINENO: result: no" >&5
6269 $as_echo "no" >&6; }
6272 if test "x$ac_ct_DSYMUTIL" = x; then
6275 case $cross_compiling:$ac_tool_warned in
6277 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6281 DSYMUTIL=$ac_ct_DSYMUTIL
6284 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6287 if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$NMEDIT"; then
6296 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 NMEDIT=$ac_cv_prog_NMEDIT
6316 if test -n "$NMEDIT"; then
6317 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6318 $as_echo "$NMEDIT" >&6; }
6320 { $as_echo "$as_me:$LINENO: result: no" >&5
6321 $as_echo "no" >&6; }
6326 if test -z "$ac_cv_prog_NMEDIT"; then
6327 ac_ct_NMEDIT=$NMEDIT
6328 # Extract the first word of "nmedit", so it can be a program name with args.
6329 set dummy nmedit; ac_word=$2
6330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6333 $as_echo_n "(cached) " >&6
6335 if test -n "$ac_ct_NMEDIT"; then
6336 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6356 if test -n "$ac_ct_NMEDIT"; then
6357 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6358 $as_echo "$ac_ct_NMEDIT" >&6; }
6360 { $as_echo "$as_me:$LINENO: result: no" >&5
6361 $as_echo "no" >&6; }
6364 if test "x$ac_ct_NMEDIT" = x; then
6367 case $cross_compiling:$ac_tool_warned in
6369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6373 NMEDIT=$ac_ct_NMEDIT
6376 NMEDIT="$ac_cv_prog_NMEDIT"
6379 if test -n "$ac_tool_prefix"; then
6380 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_LIPO+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6387 if test -n "$LIPO"; then
6388 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 LIPO=$ac_cv_prog_LIPO
6408 if test -n "$LIPO"; then
6409 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6410 $as_echo "$LIPO" >&6; }
6412 { $as_echo "$as_me:$LINENO: result: no" >&5
6413 $as_echo "no" >&6; }
6418 if test -z "$ac_cv_prog_LIPO"; then
6420 # Extract the first word of "lipo", so it can be a program name with args.
6421 set dummy lipo; ac_word=$2
6422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6425 $as_echo_n "(cached) " >&6
6427 if test -n "$ac_ct_LIPO"; then
6428 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_ac_ct_LIPO="lipo"
6438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6448 if test -n "$ac_ct_LIPO"; then
6449 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6450 $as_echo "$ac_ct_LIPO" >&6; }
6452 { $as_echo "$as_me:$LINENO: result: no" >&5
6453 $as_echo "no" >&6; }
6456 if test "x$ac_ct_LIPO" = x; then
6459 case $cross_compiling:$ac_tool_warned in
6461 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6468 LIPO="$ac_cv_prog_LIPO"
6471 if test -n "$ac_tool_prefix"; then
6472 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}otool; ac_word=$2
6474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if test "${ac_cv_prog_OTOOL+set}" = set; then
6477 $as_echo_n "(cached) " >&6
6479 if test -n "$OTOOL"; then
6480 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6490 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 OTOOL=$ac_cv_prog_OTOOL
6500 if test -n "$OTOOL"; then
6501 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6502 $as_echo "$OTOOL" >&6; }
6504 { $as_echo "$as_me:$LINENO: result: no" >&5
6505 $as_echo "no" >&6; }
6510 if test -z "$ac_cv_prog_OTOOL"; then
6512 # Extract the first word of "otool", so it can be a program name with args.
6513 set dummy otool; ac_word=$2
6514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6517 $as_echo_n "(cached) " >&6
6519 if test -n "$ac_ct_OTOOL"; then
6520 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_ac_ct_OTOOL="otool"
6530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6540 if test -n "$ac_ct_OTOOL"; then
6541 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6542 $as_echo "$ac_ct_OTOOL" >&6; }
6544 { $as_echo "$as_me:$LINENO: result: no" >&5
6545 $as_echo "no" >&6; }
6548 if test "x$ac_ct_OTOOL" = x; then
6551 case $cross_compiling:$ac_tool_warned in
6553 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6560 OTOOL="$ac_cv_prog_OTOOL"
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6569 $as_echo_n "(cached) " >&6
6571 if test -n "$OTOOL64"; then
6572 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 OTOOL64=$ac_cv_prog_OTOOL64
6592 if test -n "$OTOOL64"; then
6593 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6594 $as_echo "$OTOOL64" >&6; }
6596 { $as_echo "$as_me:$LINENO: result: no" >&5
6597 $as_echo "no" >&6; }
6602 if test -z "$ac_cv_prog_OTOOL64"; then
6603 ac_ct_OTOOL64=$OTOOL64
6604 # Extract the first word of "otool64", so it can be a program name with args.
6605 set dummy otool64; ac_word=$2
6606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$ac_ct_OTOOL64"; then
6612 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_ac_ct_OTOOL64="otool64"
6622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6632 if test -n "$ac_ct_OTOOL64"; then
6633 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6634 $as_echo "$ac_ct_OTOOL64" >&6; }
6636 { $as_echo "$as_me:$LINENO: result: no" >&5
6637 $as_echo "no" >&6; }
6640 if test "x$ac_ct_OTOOL64" = x; then
6643 case $cross_compiling:$ac_tool_warned in
6645 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6647 ac_tool_warned=yes ;;
6649 OTOOL64=$ac_ct_OTOOL64
6652 OTOOL64="$ac_cv_prog_OTOOL64"
6681 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6682 $as_echo_n "checking for -single_module linker flag... " >&6; }
6683 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6686 lt_cv_apple_cc_single_mod=no
6687 if test -z "${LT_MULTI_MODULE}"; then
6688 # By default we will add the -single_module flag. You can override
6689 # by either setting the environment variable LT_MULTI_MODULE
6690 # non-empty at configure time, or by adding -multi_module to the
6692 rm -rf libconftest.dylib*
6693 echo "int foo(void){return 1;}" > conftest.c
6694 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6695 -dynamiclib -Wl,-single_module conftest.c" >&5
6696 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6697 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6699 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6700 lt_cv_apple_cc_single_mod=yes
6702 cat conftest.err >&5
6704 rm -rf libconftest.dylib*
6708 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6709 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6710 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6711 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6712 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6713 $as_echo_n "(cached) " >&6
6715 lt_cv_ld_exported_symbols_list=no
6716 save_LDFLAGS=$LDFLAGS
6717 echo "_main" > conftest.sym
6718 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (ac_try="$ac_link"
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6741 $as_echo "$ac_try_echo") >&5
6742 (eval "$ac_link") 2>conftest.er1
6744 grep -v '^ *+' conftest.er1 >conftest.err
6746 cat conftest.err >&5
6747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } && {
6749 test -z "$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 } && test -s conftest$ac_exeext && {
6752 test "$cross_compiling" = yes ||
6753 $as_test_x conftest$ac_exeext
6755 lt_cv_ld_exported_symbols_list=yes
6757 $as_echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 lt_cv_ld_exported_symbols_list=no
6763 rm -rf conftest.dSYM
6764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6765 conftest$ac_exeext conftest.$ac_ext
6766 LDFLAGS="$save_LDFLAGS"
6769 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6770 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6772 rhapsody* | darwin1.[012])
6773 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6775 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6776 darwin*) # darwin 5.x on
6777 # if running on 10.5 or later, the deployment target defaults
6778 # to the OS version, if on x86, and 10.4, the deployment
6779 # target defaults to 10.4. Don't you love it?
6780 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6781 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6782 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6784 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6786 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6790 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6791 _lt_dar_single_mod='$single_module'
6793 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6794 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6796 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6798 if test "$DSYMUTIL" != ":"; then
6799 _lt_dsymutil='~$DSYMUTIL $lib || :'
6807 ac_cpp='$CPP $CPPFLAGS'
6808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6813 # On Suns, sometimes $CPP names a directory.
6814 if test -n "$CPP" && test -d "$CPP"; then
6817 if test -z "$CPP"; then
6818 if test "${ac_cv_prog_CPP+set}" = set; then
6819 $as_echo_n "(cached) " >&6
6821 # Double quotes because CPP needs to be expanded
6822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6825 for ac_c_preproc_warn_flag in '' yes
6827 # Use a header file that comes with gcc, so configuring glibc
6828 # with a fresh cross-compiler works.
6829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6830 # <limits.h> exists even on freestanding compilers.
6831 # On the NeXT, cc -E runs the code through the compiler's parser,
6832 # not just through cpp. "Syntax error" is here to catch this case.
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6840 # include <limits.h>
6842 # include <assert.h>
6846 if { (ac_try="$ac_cpp conftest.$ac_ext"
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } >/dev/null && {
6860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6865 $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 # Broken: fails on valid input.
6872 rm -f conftest.err conftest.$ac_ext
6874 # OK, works on sane cases. Now check whether nonexistent headers
6875 # can be detected and how.
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 #include <ac_nonexistent.h>
6884 if { (ac_try="$ac_cpp conftest.$ac_ext"
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } >/dev/null && {
6898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6901 # Broken: success on invalid input.
6904 $as_echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 # Passes both tests.
6912 rm -f conftest.err conftest.$ac_ext
6915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6916 rm -f conftest.err conftest.$ac_ext
6917 if $ac_preproc_ok; then
6929 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6930 $as_echo "$CPP" >&6; }
6932 for ac_c_preproc_warn_flag in '' yes
6934 # Use a header file that comes with gcc, so configuring glibc
6935 # with a fresh cross-compiler works.
6936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6937 # <limits.h> exists even on freestanding compilers.
6938 # On the NeXT, cc -E runs the code through the compiler's parser,
6939 # not just through cpp. "Syntax error" is here to catch this case.
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6947 # include <limits.h>
6949 # include <assert.h>
6953 if { (ac_try="$ac_cpp conftest.$ac_ext"
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6959 $as_echo "$ac_try_echo") >&5
6960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } >/dev/null && {
6967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6972 $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 # Broken: fails on valid input.
6979 rm -f conftest.err conftest.$ac_ext
6981 # OK, works on sane cases. Now check whether nonexistent headers
6982 # can be detected and how.
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <ac_nonexistent.h>
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } >/dev/null && {
7005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7008 # Broken: success on invalid input.
7011 $as_echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 # Passes both tests.
7019 rm -f conftest.err conftest.$ac_ext
7022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7023 rm -f conftest.err conftest.$ac_ext
7024 if $ac_preproc_ok; then
7027 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7029 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7030 See \`config.log' for more details." >&5
7031 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7032 See \`config.log' for more details." >&2;}
7033 { (exit 1); exit 1; }; }; }
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7044 $as_echo_n "checking for ANSI C header files... " >&6; }
7045 if test "${ac_cv_header_stdc+set}" = set; then
7046 $as_echo_n "(cached) " >&6
7048 cat >conftest.$ac_ext <<_ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7067 rm -f conftest.$ac_objext
7068 if { (ac_try="$ac_compile"
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074 $as_echo "$ac_try_echo") >&5
7075 (eval "$ac_compile") 2>conftest.er1
7077 grep -v '^ *+' conftest.er1 >conftest.err
7079 cat conftest.err >&5
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
7085 ac_cv_header_stdc=yes
7087 $as_echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_header_stdc=no
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 if test $ac_cv_header_stdc = yes; then
7096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7107 $EGREP "memchr" >/dev/null 2>&1; then
7110 ac_cv_header_stdc=no
7116 if test $ac_cv_header_stdc = yes; then
7117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7128 $EGREP "free" >/dev/null 2>&1; then
7131 ac_cv_header_stdc=no
7137 if test $ac_cv_header_stdc = yes; then
7138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7139 if test "$cross_compiling" = yes; then
7142 cat >conftest.$ac_ext <<_ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7150 #if ((' ' & 0x0FF) == 0x020)
7151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7154 # define ISLOWER(c) \
7155 (('a' <= (c) && (c) <= 'i') \
7156 || ('j' <= (c) && (c) <= 'r') \
7157 || ('s' <= (c) && (c) <= 'z'))
7158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7166 for (i = 0; i < 256; i++)
7167 if (XOR (islower (i), ISLOWER (i))
7168 || toupper (i) != TOUPPER (i))
7173 rm -f conftest$ac_exeext
7174 if { (ac_try="$ac_link"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7180 $as_echo "$ac_try_echo") >&5
7181 (eval "$ac_link") 2>&5
7183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7185 { (case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7190 $as_echo "$ac_try_echo") >&5
7191 (eval "$ac_try") 2>&5
7193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7197 $as_echo "$as_me: program exited with status $ac_status" >&5
7198 $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_header_stdc=no
7204 rm -rf conftest.dSYM
7205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7212 $as_echo "$ac_cv_header_stdc" >&6; }
7213 if test $ac_cv_header_stdc = yes; then
7215 cat >>confdefs.h <<\_ACEOF
7216 #define STDC_HEADERS 1
7221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7232 inttypes.h stdint.h unistd.h
7234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7236 $as_echo_n "checking for $ac_header... " >&6; }
7237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7238 $as_echo_n "(cached) " >&6
7240 cat >conftest.$ac_ext <<_ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 $ac_includes_default
7248 #include <$ac_header>
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7257 $as_echo "$ac_try_echo") >&5
7258 (eval "$ac_compile") 2>conftest.er1
7260 grep -v '^ *+' conftest.er1 >conftest.err
7262 cat conftest.err >&5
7263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && {
7265 test -z "$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7267 } && test -s conftest.$ac_objext; then
7268 eval "$as_ac_Header=yes"
7270 $as_echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7273 eval "$as_ac_Header=no"
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 ac_res=`eval 'as_val=${'$as_ac_Header'}
7279 $as_echo "$as_val"'`
7280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7281 $as_echo "$ac_res" >&6; }
7282 as_val=`eval 'as_val=${'$as_ac_Header'}
7283 $as_echo "$as_val"'`
7284 if test "x$as_val" = x""yes; then
7285 cat >>confdefs.h <<_ACEOF
7286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 for ac_header in dlfcn.h
7297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 $as_echo_n "checking for $ac_header... " >&6; }
7300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7301 $as_echo_n "(cached) " >&6
7303 cat >conftest.$ac_ext <<_ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7311 #include <$ac_header>
7313 rm -f conftest.$ac_objext
7314 if { (ac_try="$ac_compile"
7316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317 *) ac_try_echo=$ac_try;;
7319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7320 $as_echo "$ac_try_echo") >&5
7321 (eval "$ac_compile") 2>conftest.er1
7323 grep -v '^ *+' conftest.er1 >conftest.err
7325 cat conftest.err >&5
7326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } && {
7328 test -z "$ac_c_werror_flag" ||
7329 test ! -s conftest.err
7330 } && test -s conftest.$ac_objext; then
7331 eval "$as_ac_Header=yes"
7333 $as_echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 eval "$as_ac_Header=no"
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341 ac_res=`eval 'as_val=${'$as_ac_Header'}
7342 $as_echo "$as_val"'`
7343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7344 $as_echo "$ac_res" >&6; }
7345 as_val=`eval 'as_val=${'$as_ac_Header'}
7346 $as_echo "$as_val"'`
7347 if test "x$as_val" = x""yes; then
7348 cat >>confdefs.h <<_ACEOF
7349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7368 # Check whether --enable-shared was given.
7369 if test "${enable_shared+set}" = set; then
7370 enableval=$enable_shared; p=${PACKAGE-default}
7372 yes) enable_shared=yes ;;
7373 no) enable_shared=no ;;
7376 # Look at the argument we got. We use all the common list separators.
7377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378 for pkg in $enableval; do
7380 if test "X$pkg" = "X$p"; then
7399 # Check whether --enable-static was given.
7400 if test "${enable_static+set}" = set; then
7401 enableval=$enable_static; p=${PACKAGE-default}
7403 yes) enable_static=yes ;;
7404 no) enable_static=no ;;
7407 # Look at the argument we got. We use all the common list separators.
7408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409 for pkg in $enableval; do
7411 if test "X$pkg" = "X$p"; then
7431 # Check whether --with-pic was given.
7432 if test "${with_pic+set}" = set; then
7433 withval=$with_pic; pic_mode="$withval"
7439 test -z "$pic_mode" && pic_mode=default
7447 # Check whether --enable-fast-install was given.
7448 if test "${enable_fast_install+set}" = set; then
7449 enableval=$enable_fast_install; p=${PACKAGE-default}
7451 yes) enable_fast_install=yes ;;
7452 no) enable_fast_install=no ;;
7454 enable_fast_install=no
7455 # Look at the argument we got. We use all the common list separators.
7456 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7457 for pkg in $enableval; do
7459 if test "X$pkg" = "X$p"; then
7460 enable_fast_install=yes
7467 enable_fast_install=yes
7480 # This can be used to rebuild libtool when needed
7481 LIBTOOL_DEPS="$ltmain"
7483 # Always use our own libtool.
7484 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7510 test -z "$LN_S" && LN_S="ln -s"
7525 if test -n "${ZSH_VERSION+set}" ; then
7526 setopt NO_GLOB_SUBST
7529 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7530 $as_echo_n "checking for objdir... " >&6; }
7531 if test "${lt_cv_objdir+set}" = set; then
7532 $as_echo_n "(cached) " >&6
7534 rm -f .libs 2>/dev/null
7535 mkdir .libs 2>/dev/null
7536 if test -d .libs; then
7539 # MS-DOS does not allow filenames that begin with a dot.
7542 rmdir .libs 2>/dev/null
7544 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7545 $as_echo "$lt_cv_objdir" >&6; }
7546 objdir=$lt_cv_objdir
7552 cat >>confdefs.h <<_ACEOF
7553 #define LT_OBJDIR "$lt_cv_objdir/"
7574 # AIX sometimes has problems with the GCC collect2 program. For some
7575 # reason, if we set the COLLECT_NAMES environment variable, the problems
7576 # vanish in a puff of smoke.
7577 if test "X${COLLECT_NAMES+set}" != Xset; then
7579 export COLLECT_NAMES
7584 # Sed substitution that helps us do robust quoting. It backslashifies
7585 # metacharacters that are still active within double-quoted strings.
7586 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7588 # Same as above, but do not quote variable references.
7589 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7591 # Sed substitution to delay expansion of an escaped shell variable in a
7592 # double_quote_subst'ed string.
7593 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7595 # Sed substitution to delay expansion of an escaped single quote.
7596 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7598 # Sed substitution to avoid accidental globbing in evaled expressions
7599 no_glob_subst='s/\*/\\\*/g'
7603 can_build_shared=yes
7605 # All known linkers require a `.a' archive for static linking (except MSVC,
7606 # which needs '.lib').
7609 with_gnu_ld="$lt_cv_prog_gnu_ld"
7612 old_CFLAGS="$CFLAGS"
7614 # Set sane defaults for various variables
7615 test -z "$CC" && CC=cc
7616 test -z "$LTCC" && LTCC=$CC
7617 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7618 test -z "$LD" && LD=ld
7619 test -z "$ac_objext" && ac_objext=o
7621 for cc_temp in $compiler""; do
7623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7629 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7632 # Only perform the check for file, if the check method requires it
7633 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7634 case $deplibs_check_method in
7636 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7637 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7638 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7639 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7640 $as_echo_n "(cached) " >&6
7644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7647 lt_save_MAGIC_CMD="$MAGIC_CMD"
7648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7650 for ac_dir in $ac_dummy; do
7652 test -z "$ac_dir" && ac_dir=.
7653 if test -f $ac_dir/${ac_tool_prefix}file; then
7654 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7655 if test -n "$file_magic_test_file"; then
7656 case $deplibs_check_method in
7658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7661 $EGREP "$file_magic_regex" > /dev/null; then
7666 *** Warning: the command libtool uses to detect shared libraries,
7667 *** $file_magic_cmd, produces output that libtool cannot recognize.
7668 *** The result is that libtool may fail to recognize shared libraries
7669 *** as such. This will affect the creation of libtool libraries that
7670 *** depend on shared libraries, but programs linked with such libtool
7671 *** libraries will work regardless of this problem. Nevertheless, you
7672 *** may want to report the problem to your system manager and/or to
7673 *** bug-libtool@gnu.org
7683 MAGIC_CMD="$lt_save_MAGIC_CMD"
7688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7689 if test -n "$MAGIC_CMD"; then
7690 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7691 $as_echo "$MAGIC_CMD" >&6; }
7693 { $as_echo "$as_me:$LINENO: result: no" >&5
7694 $as_echo "no" >&6; }
7701 if test -z "$lt_cv_path_MAGIC_CMD"; then
7702 if test -n "$ac_tool_prefix"; then
7703 { $as_echo "$as_me:$LINENO: checking for file" >&5
7704 $as_echo_n "checking for file... " >&6; }
7705 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7706 $as_echo_n "(cached) " >&6
7710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7713 lt_save_MAGIC_CMD="$MAGIC_CMD"
7714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7716 for ac_dir in $ac_dummy; do
7718 test -z "$ac_dir" && ac_dir=.
7719 if test -f $ac_dir/file; then
7720 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7721 if test -n "$file_magic_test_file"; then
7722 case $deplibs_check_method in
7724 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7727 $EGREP "$file_magic_regex" > /dev/null; then
7732 *** Warning: the command libtool uses to detect shared libraries,
7733 *** $file_magic_cmd, produces output that libtool cannot recognize.
7734 *** The result is that libtool may fail to recognize shared libraries
7735 *** as such. This will affect the creation of libtool libraries that
7736 *** depend on shared libraries, but programs linked with such libtool
7737 *** libraries will work regardless of this problem. Nevertheless, you
7738 *** may want to report the problem to your system manager and/or to
7739 *** bug-libtool@gnu.org
7749 MAGIC_CMD="$lt_save_MAGIC_CMD"
7754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755 if test -n "$MAGIC_CMD"; then
7756 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7757 $as_echo "$MAGIC_CMD" >&6; }
7759 { $as_echo "$as_me:$LINENO: result: no" >&5
7760 $as_echo "no" >&6; }
7773 # Use C for the default configuration in the libtool script
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783 # Source file extension for C test sources.
7786 # Object file extension for compiled C test sources.
7790 # Code to be used in simple compile tests
7791 lt_simple_compile_test_code="int some_variable = 0;"
7793 # Code to be used in simple link tests
7794 lt_simple_link_test_code='int main(){return(0);}'
7802 # If no C compiler was specified, use CC.
7805 # If no C compiler flags were specified, use CFLAGS.
7806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7808 # Allow CC to be a program name with arguments.
7811 # Save the default compiler, since it gets overwritten when the other
7812 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7813 compiler_DEFAULT=$CC
7815 # save warnings/boilerplate of simple test code
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7819 _lt_compiler_boilerplate=`cat conftest.err`
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825 _lt_linker_boilerplate=`cat conftest.err`
7830 ## There is no encapsulation within the following macros, do not change
7831 ## the running order or otherwise move them around unless you know exactly
7832 ## what you are doing...
7833 if test -n "$compiler"; then
7835 lt_prog_compiler_no_builtin_flag=
7837 if test "$GCC" = yes; then
7838 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7840 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7841 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7842 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7843 $as_echo_n "(cached) " >&6
7845 lt_cv_prog_compiler_rtti_exceptions=no
7846 ac_outfile=conftest.$ac_objext
7847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7848 lt_compiler_flag="-fno-rtti -fno-exceptions"
7849 # Insert the option either (1) after the last *FLAGS variable, or
7850 # (2) before a word containing "conftest.", or (3) at the end.
7851 # Note that $ac_compile itself does not contain backslashes and begins
7852 # with a dollar sign (not a hyphen), so the echo should work correctly.
7853 # The option is referenced via a variable to avoid confusing sed.
7854 lt_compile=`echo "$ac_compile" | $SED \
7855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857 -e 's:$: $lt_compiler_flag:'`
7858 (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859 (eval "$lt_compile" 2>conftest.err)
7861 cat conftest.err >&5
7862 echo "$as_me:7862: \$? = $ac_status" >&5
7863 if (exit $ac_status) && test -s "$ac_outfile"; then
7864 # The compiler can only warn and ignore the option if not recognized
7865 # So say no if there are warnings other than the usual output.
7866 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7869 lt_cv_prog_compiler_rtti_exceptions=yes
7875 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7876 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7878 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7879 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7891 lt_prog_compiler_wl=
7892 lt_prog_compiler_pic=
7893 lt_prog_compiler_static=
7895 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7896 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7898 if test "$GCC" = yes; then
7899 lt_prog_compiler_wl='-Wl,'
7900 lt_prog_compiler_static='-static'
7904 # All AIX code is PIC.
7905 if test "$host_cpu" = ia64; then
7906 # AIX 5 now supports IA64 processor
7907 lt_prog_compiler_static='-Bstatic'
7914 # see comment about AmigaOS4 .so support
7915 lt_prog_compiler_pic='-fPIC'
7918 # FIXME: we need at least 68020 code to build shared libraries, but
7919 # adding the `-m68020' flag to GCC prevents building anything better,
7921 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7926 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7927 # PIC is the default for these OSes.
7930 mingw* | cygwin* | pw32* | os2* | cegcc*)
7931 # This hack is so that the source file can tell whether it is being
7932 # built for inclusion in a dll (and should export symbols for example).
7933 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7934 # (--disable-auto-import) libraries
7935 lt_prog_compiler_pic='-DDLL_EXPORT'
7938 darwin* | rhapsody*)
7939 # PIC is the default on this platform
7940 # Common symbols not allowed in MH_DYLIB files
7941 lt_prog_compiler_pic='-fno-common'
7945 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7946 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7947 # sets the default TLS model and affects inlining.
7953 lt_prog_compiler_pic='-fPIC'
7959 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7960 # Instead, we relocate shared libraries at runtime.
7964 # Just because we use GCC doesn't mean we suddenly get shared libraries
7965 # on systems that don't support them.
7966 lt_prog_compiler_can_build_shared=no
7971 # QNX uses GNU C++, but need to define -shared option too, otherwise
7973 lt_prog_compiler_pic='-fPIC -shared'
7977 if test -d /usr/nec; then
7978 lt_prog_compiler_pic=-Kconform_pic
7983 lt_prog_compiler_pic='-fPIC'
7987 # PORTME Check for flag to pass linker flags through the system compiler.
7990 lt_prog_compiler_wl='-Wl,'
7991 if test "$host_cpu" = ia64; then
7992 # AIX 5 now supports IA64 processor
7993 lt_prog_compiler_static='-Bstatic'
7995 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7999 mingw* | cygwin* | pw32* | os2* | cegcc*)
8000 # This hack is so that the source file can tell whether it is being
8001 # built for inclusion in a dll (and should export symbols for example).
8002 lt_prog_compiler_pic='-DDLL_EXPORT'
8005 hpux9* | hpux10* | hpux11*)
8006 lt_prog_compiler_wl='-Wl,'
8007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8014 lt_prog_compiler_pic='+Z'
8017 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8018 lt_prog_compiler_static='${wl}-a ${wl}archive'
8021 irix5* | irix6* | nonstopux*)
8022 lt_prog_compiler_wl='-Wl,'
8023 # PIC (with -KPIC) is the default.
8024 lt_prog_compiler_static='-non_shared'
8027 linux* | k*bsd*-gnu)
8028 case $cc_basename in
8029 # old Intel for x86_64 which still supported -KPIC.
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-KPIC'
8033 lt_prog_compiler_static='-static'
8035 # icc used to be incompatible with GCC.
8036 # ICC 10 doesn't accept -KPIC any more.
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_pic='-fPIC'
8040 lt_prog_compiler_static='-static'
8042 # Lahey Fortran 8.1.
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='--shared'
8046 lt_prog_compiler_static='--static'
8048 pgcc* | pgf77* | pgf90* | pgf95*)
8049 # Portland Group compilers (*not* the Pentium gcc compiler,
8050 # which looks to be a dead project)
8051 lt_prog_compiler_wl='-Wl,'
8052 lt_prog_compiler_pic='-fpic'
8053 lt_prog_compiler_static='-Bstatic'
8056 lt_prog_compiler_wl='-Wl,'
8057 # All Alpha code is PIC.
8058 lt_prog_compiler_static='-non_shared'
8061 # IBM XL C 8.0/Fortran 10.1 on PPC
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_pic='-qpic'
8064 lt_prog_compiler_static='-qstaticlink'
8067 case `$CC -V 2>&1 | sed 5q` in
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8072 lt_prog_compiler_wl='-Wl,'
8075 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-Bstatic'
8078 lt_prog_compiler_wl=''
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-Bstatic'
8091 # QNX uses GNU C++, but need to define -shared option too, otherwise
8093 lt_prog_compiler_pic='-fPIC -shared'
8096 osf3* | osf4* | osf5*)
8097 lt_prog_compiler_wl='-Wl,'
8098 # All OSF/1 code is PIC.
8099 lt_prog_compiler_static='-non_shared'
8103 lt_prog_compiler_static='-non_shared'
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 case $cc_basename in
8111 lt_prog_compiler_wl='-Qoption ld ';;
8113 lt_prog_compiler_wl='-Wl,';;
8118 lt_prog_compiler_wl='-Qoption ld '
8119 lt_prog_compiler_pic='-PIC'
8120 lt_prog_compiler_static='-Bstatic'
8123 sysv4 | sysv4.2uw2* | sysv4.3*)
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8130 if test -d /usr/nec ;then
8131 lt_prog_compiler_pic='-Kconform_pic'
8132 lt_prog_compiler_static='-Bstatic'
8136 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8137 lt_prog_compiler_wl='-Wl,'
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_can_build_shared=no
8148 lt_prog_compiler_pic='-pic'
8149 lt_prog_compiler_static='-Bstatic'
8153 lt_prog_compiler_can_build_shared=no
8159 # For platforms which do not support PIC, -DPIC is meaningless:
8161 lt_prog_compiler_pic=
8164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8167 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8168 $as_echo "$lt_prog_compiler_pic" >&6; }
8176 # Check to make sure the PIC flag actually works.
8178 if test -n "$lt_prog_compiler_pic"; then
8179 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8181 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8182 $as_echo_n "(cached) " >&6
8184 lt_cv_prog_compiler_pic_works=no
8185 ac_outfile=conftest.$ac_objext
8186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8188 # Insert the option either (1) after the last *FLAGS variable, or
8189 # (2) before a word containing "conftest.", or (3) at the end.
8190 # Note that $ac_compile itself does not contain backslashes and begins
8191 # with a dollar sign (not a hyphen), so the echo should work correctly.
8192 # The option is referenced via a variable to avoid confusing sed.
8193 lt_compile=`echo "$ac_compile" | $SED \
8194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8196 -e 's:$: $lt_compiler_flag:'`
8197 (eval echo "\"\$as_me:8197: $lt_compile\"" >&5)
8198 (eval "$lt_compile" 2>conftest.err)
8200 cat conftest.err >&5
8201 echo "$as_me:8201: \$? = $ac_status" >&5
8202 if (exit $ac_status) && test -s "$ac_outfile"; then
8203 # The compiler can only warn and ignore the option if not recognized
8204 # So say no if there are warnings other than the usual output.
8205 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8208 lt_cv_prog_compiler_pic_works=yes
8214 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8217 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8218 case $lt_prog_compiler_pic in
8220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8223 lt_prog_compiler_pic=
8224 lt_prog_compiler_can_build_shared=no
8235 # Check to make sure the static flag actually works.
8237 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8238 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8239 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8240 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8241 $as_echo_n "(cached) " >&6
8243 lt_cv_prog_compiler_static_works=no
8244 save_LDFLAGS="$LDFLAGS"
8245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8248 # The linker can only warn and ignore the option if not recognized
8249 # So say no if there are warnings
8250 if test -s conftest.err; then
8251 # Append any errors to the config.log.
8252 cat conftest.err 1>&5
8253 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255 if diff conftest.exp conftest.er2 >/dev/null; then
8256 lt_cv_prog_compiler_static_works=yes
8259 lt_cv_prog_compiler_static_works=yes
8263 LDFLAGS="$save_LDFLAGS"
8266 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8269 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8272 lt_prog_compiler_static=
8281 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8283 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8284 $as_echo_n "(cached) " >&6
8286 lt_cv_prog_compiler_c_o=no
8287 $RM -r conftest 2>/dev/null
8291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8293 lt_compiler_flag="-o out/conftest2.$ac_objext"
8294 # Insert the option either (1) after the last *FLAGS variable, or
8295 # (2) before a word containing "conftest.", or (3) at the end.
8296 # Note that $ac_compile itself does not contain backslashes and begins
8297 # with a dollar sign (not a hyphen), so the echo should work correctly.
8298 lt_compile=`echo "$ac_compile" | $SED \
8299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301 -e 's:$: $lt_compiler_flag:'`
8302 (eval echo "\"\$as_me:8302: $lt_compile\"" >&5)
8303 (eval "$lt_compile" 2>out/conftest.err)
8305 cat out/conftest.err >&5
8306 echo "$as_me:8306: \$? = $ac_status" >&5
8307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8309 # The compiler can only warn and ignore the option if not recognized
8310 # So say no if there are warnings
8311 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314 lt_cv_prog_compiler_c_o=yes
8319 # SGI C++ compiler will create directory out/ii_files/ for
8320 # template instantiation
8321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8322 $RM out/* && rmdir out
8328 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8329 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8336 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8338 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8339 $as_echo_n "(cached) " >&6
8341 lt_cv_prog_compiler_c_o=no
8342 $RM -r conftest 2>/dev/null
8346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348 lt_compiler_flag="-o out/conftest2.$ac_objext"
8349 # Insert the option either (1) after the last *FLAGS variable, or
8350 # (2) before a word containing "conftest.", or (3) at the end.
8351 # Note that $ac_compile itself does not contain backslashes and begins
8352 # with a dollar sign (not a hyphen), so the echo should work correctly.
8353 lt_compile=`echo "$ac_compile" | $SED \
8354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8356 -e 's:$: $lt_compiler_flag:'`
8357 (eval echo "\"\$as_me:8357: $lt_compile\"" >&5)
8358 (eval "$lt_compile" 2>out/conftest.err)
8360 cat out/conftest.err >&5
8361 echo "$as_me:8361: \$? = $ac_status" >&5
8362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364 # The compiler can only warn and ignore the option if not recognized
8365 # So say no if there are warnings
8366 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8369 lt_cv_prog_compiler_c_o=yes
8374 # SGI C++ compiler will create directory out/ii_files/ for
8375 # template instantiation
8376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8377 $RM out/* && rmdir out
8383 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391 # do not overwrite the value of need_locks provided by the user
8392 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8393 $as_echo_n "checking if we can lock with hard links... " >&6; }
8396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8398 ln conftest.a conftest.b 2>&5 || hard_links=no
8399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8401 $as_echo "$hard_links" >&6; }
8402 if test "$hard_links" = no; then
8403 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8416 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8417 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8420 allow_undefined_flag=
8421 always_export_symbols=no
8423 archive_expsym_cmds=
8424 compiler_needs_object=no
8425 enable_shared_with_static_runtimes=no
8426 export_dynamic_flag_spec=
8427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8428 hardcode_automatic=no
8430 hardcode_direct_absolute=no
8431 hardcode_libdir_flag_spec=
8432 hardcode_libdir_flag_spec_ld=
8433 hardcode_libdir_separator=
8435 hardcode_shlibpath_var=unsupported
8437 link_all_deplibs=unknown
8440 old_archive_from_new_cmds=
8441 old_archive_from_expsyms_cmds=
8442 thread_safe_flag_spec=
8443 whole_archive_flag_spec=
8444 # include_expsyms should be a list of space-separated symbols to be *always*
8445 # included in the symbol list
8447 # exclude_expsyms can be an extended regexp of symbols to exclude
8448 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450 # as well as any symbol that contains `d'.
8451 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453 # platforms (ab)use it in PIC code, but their linkers get confused if
8454 # the symbol is explicitly referenced. Since portable code cannot
8455 # rely on this symbol name, it's probably fine to never include it in
8456 # preloaded symbol tables.
8457 # Exclude shared library initialization/finalization symbols.
8458 extract_expsyms_cmds=
8461 cygwin* | mingw* | pw32* | cegcc*)
8462 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463 # When not using gcc, we currently assume that we are using
8464 # Microsoft Visual C++.
8465 if test "$GCC" != yes; then
8470 # we just hope/assume this is gcc and not c89 (= MSVC++)
8479 if test "$with_gnu_ld" = yes; then
8480 # If archive_cmds runs LD, not CC, wlarc should be empty
8483 # Set some defaults for GNU ld with shared library support. These
8484 # are reset later if shared libraries are not supported. Putting them
8485 # here allows them to be overridden if necessary.
8486 runpath_var=LD_RUN_PATH
8487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8488 export_dynamic_flag_spec='${wl}--export-dynamic'
8489 # ancient GNU ld didn't support --whole-archive et. al.
8490 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8491 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8493 whole_archive_flag_spec=
8495 supports_anon_versioning=no
8496 case `$LD -v 2>&1` in
8497 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8498 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8499 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8500 *\ 2.11.*) ;; # other 2.11 versions
8501 *) supports_anon_versioning=yes ;;
8504 # See if GNU ld supports shared libraries.
8507 # On AIX/PPC, the GNU linker is very broken
8508 if test "$host_cpu" != ia64; then
8512 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8513 *** to be unable to reliably create shared libraries on AIX.
8514 *** Therefore, libtool is disabling shared libraries support. If you
8515 *** really care for shared libraries, you may want to modify your PATH
8516 *** so that a non-GNU linker is found, and then restart.
8525 # see comment about AmigaOS4 .so support
8526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8527 archive_expsym_cmds=''
8530 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)'
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_minus_L=yes
8538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8539 allow_undefined_flag=unsupported
8540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8541 # support --undefined. This deserves some investigation. FIXME
8542 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548 cygwin* | mingw* | pw32* | cegcc*)
8549 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8550 # as there is no search path for DLLs.
8551 hardcode_libdir_flag_spec='-L$libdir'
8552 allow_undefined_flag=unsupported
8553 always_export_symbols=no
8554 enable_shared_with_static_runtimes=yes
8555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8557 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559 # If the export-symbols file already is a .def file (1st line
8560 # is EXPORTS), use it as is; otherwise, prepend...
8561 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8562 cp $export_symbols $output_objdir/$soname.def;
8564 echo EXPORTS > $output_objdir/$soname.def;
8565 cat $export_symbols >> $output_objdir/$soname.def;
8567 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8575 hardcode_shlibpath_var=no
8576 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8577 export_dynamic_flag_spec='${wl}-E'
8578 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8579 # Instead, shared libraries are loaded at an image base (0x10000000 by
8580 # default) and relocated if they conflict, which is a slow very memory
8581 # consuming and fragmenting process. To avoid this, we pick a random,
8582 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8583 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8584 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8585 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'
8588 gnu* | linux* | tpf* | k*bsd*-gnu)
8590 if test "$host_os" = linux-dietlibc; then
8591 case $cc_basename in
8592 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8595 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8596 && test "$tmp_diet" = no
8599 tmp_sharedflag='-shared'
8600 case $cc_basename,$host_cpu in
8601 pgcc*) # Portland Group C compiler
8602 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'
8603 tmp_addflag=' $pic_flag'
8605 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8606 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'
8607 tmp_addflag=' $pic_flag -Mnomain' ;;
8608 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8609 tmp_addflag=' -i_dynamic' ;;
8610 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8611 tmp_addflag=' -i_dynamic -nofor_main' ;;
8612 ifc* | ifort*) # Intel Fortran compiler
8613 tmp_addflag=' -nofor_main' ;;
8614 lf95*) # Lahey Fortran 8.1
8615 whole_archive_flag_spec=
8616 tmp_sharedflag='--shared' ;;
8617 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8618 tmp_sharedflag='-qmkshrobj'
8621 case `$CC -V 2>&1 | sed 5q` in
8622 *Sun\ C*) # Sun C 5.9
8623 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'
8624 compiler_needs_object=yes
8625 tmp_sharedflag='-G' ;;
8626 *Sun\ F*) # Sun Fortran 8.3
8627 tmp_sharedflag='-G' ;;
8629 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631 if test "x$supports_anon_versioning" = xyes; then
8632 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8633 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8634 echo "local: *; };" >> $output_objdir/$libname.ver~
8635 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8638 case $cc_basename in
8640 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8641 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8642 hardcode_libdir_flag_spec=
8643 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8644 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8645 if test "x$supports_anon_versioning" = xyes; then
8646 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8647 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8648 echo "local: *; };" >> $output_objdir/$libname.ver~
8649 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8659 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8660 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8669 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8673 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8674 *** create shared libraries on Solaris systems. Therefore, libtool
8675 *** is disabling shared libraries support. We urge you to upgrade GNU
8676 *** binutils to release 2.9.1 or newer. Another option is to modify
8677 *** your PATH or compiler configuration so that the native linker is
8678 *** used, and then restart.
8681 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8690 case `$LD -v 2>&1` in
8691 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8695 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8696 *** reliably create shared libraries on SCO systems. Therefore, libtool
8697 *** is disabling shared libraries support. We urge you to upgrade GNU
8698 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8699 *** your PATH or compiler configuration so that the native linker is
8700 *** used, and then restart.
8705 # For security reasons, it is highly recommended that you always
8706 # use absolute paths for naming shared libraries, and exclude the
8707 # DT_RUNPATH tag from executables and libraries. But doing so
8708 # requires that you compile everything twice, which is a pain.
8709 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8721 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8724 hardcode_shlibpath_var=no
8728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8737 if test "$ld_shlibs" = no; then
8739 hardcode_libdir_flag_spec=
8740 export_dynamic_flag_spec=
8741 whole_archive_flag_spec=
8744 # PORTME fill in a description of your system's linker (not GNU ld)
8747 allow_undefined_flag=unsupported
8748 always_export_symbols=yes
8749 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'
8750 # Note: this linker hardcodes the directories in LIBPATH if there
8751 # are no directories specified by -L.
8752 hardcode_minus_L=yes
8753 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8754 # Neither direct hardcoding nor static linking is supported with a
8756 hardcode_direct=unsupported
8761 if test "$host_cpu" = ia64; then
8762 # On IA64, the linker does run time linking by default, so we don't
8763 # have to do anything special.
8764 aix_use_runtimelinking=no
8765 exp_sym_flag='-Bexport'
8768 # If we're using GNU nm, then we don't want the "-C" option.
8769 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8770 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8771 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'
8773 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'
8775 aix_use_runtimelinking=no
8777 # Test if we are trying to use run time linking or normal
8778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8779 # need to do runtime linking.
8780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8781 for ld_flag in $LDFLAGS; do
8782 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8783 aix_use_runtimelinking=yes
8790 exp_sym_flag='-bexport'
8791 no_entry_flag='-bnoentry'
8794 # When large executables or shared objects are built, AIX ld can
8795 # have problems creating the table of contents. If linking a library
8796 # or program results in "error TOC overflow" add -mminimal-toc to
8797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8802 hardcode_direct_absolute=yes
8803 hardcode_libdir_separator=':'
8804 link_all_deplibs=yes
8805 file_list_spec='${wl}-f,'
8807 if test "$GCC" = yes; then
8808 case $host_os in aix4.[012]|aix4.[012].*)
8809 # We only want to do this on AIX 4.2 and lower, the check
8810 # below for broken collect2 doesn't work under 4.3+
8811 collect2name=`${CC} -print-prog-name=collect2`
8812 if test -f "$collect2name" &&
8813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8815 # We have reworked collect2
8818 # We have old collect2
8819 hardcode_direct=unsupported
8820 # It fails to find uninstalled libraries when the uninstalled
8821 # path is not listed in the libpath. Setting hardcode_minus_L
8822 # to unsupported forces relinking
8823 hardcode_minus_L=yes
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_libdir_separator=
8829 shared_flag='-shared'
8830 if test "$aix_use_runtimelinking" = yes; then
8831 shared_flag="$shared_flag "'${wl}-G'
8835 if test "$host_cpu" = ia64; then
8836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8837 # chokes on -Wl,-G. The following line is correct:
8840 if test "$aix_use_runtimelinking" = yes; then
8841 shared_flag='${wl}-G'
8843 shared_flag='${wl}-bM:SRE'
8848 export_dynamic_flag_spec='${wl}-bexpall'
8849 # It seems that -bexpall does not export symbols beginning with
8850 # underscore (_), so it is better to generate a list of symbols to export.
8851 always_export_symbols=yes
8852 if test "$aix_use_runtimelinking" = yes; then
8853 # Warning - without using the other runtime loading flags (-brtl),
8854 # -berok will link without error, but may produce a broken library.
8855 allow_undefined_flag='-berok'
8856 # Determine the default libpath from the value encoded in an
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8873 rm -f conftest.$ac_objext conftest$ac_exeext
8874 if { (ac_try="$ac_link"
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8880 $as_echo "$ac_try_echo") >&5
8881 (eval "$ac_link") 2>conftest.er1
8883 grep -v '^ *+' conftest.er1 >conftest.err
8885 cat conftest.err >&5
8886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } && {
8888 test -z "$ac_c_werror_flag" ||
8889 test ! -s conftest.err
8890 } && test -s conftest$ac_exeext && {
8891 test "$cross_compiling" = yes ||
8892 $as_test_x conftest$ac_exeext
8895 lt_aix_libpath_sed='
8896 /Import File Strings/,/^$/ {
8902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8903 # Check for a 64-bit object if we didn't find anything.
8904 if test -z "$aix_libpath"; then
8905 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8908 $as_echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8914 rm -rf conftest.dSYM
8915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8916 conftest$ac_exeext conftest.$ac_ext
8917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8920 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"
8922 if test "$host_cpu" = ia64; then
8923 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8924 allow_undefined_flag="-z nodefs"
8925 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"
8927 # Determine the default libpath from the value encoded in an
8929 cat >conftest.$ac_ext <<_ACEOF
8932 cat confdefs.h >>conftest.$ac_ext
8933 cat >>conftest.$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (ac_try="$ac_link"
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8951 $as_echo "$ac_try_echo") >&5
8952 (eval "$ac_link") 2>conftest.er1
8954 grep -v '^ *+' conftest.er1 >conftest.err
8956 cat conftest.err >&5
8957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest$ac_exeext && {
8962 test "$cross_compiling" = yes ||
8963 $as_test_x conftest$ac_exeext
8966 lt_aix_libpath_sed='
8967 /Import File Strings/,/^$/ {
8973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8974 # Check for a 64-bit object if we didn't find anything.
8975 if test -z "$aix_libpath"; then
8976 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979 $as_echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8985 rm -rf conftest.dSYM
8986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8987 conftest$ac_exeext conftest.$ac_ext
8988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8990 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8991 # Warning - without using the other run time loading flags,
8992 # -berok will link without error, but may produce a broken library.
8993 no_undefined_flag=' ${wl}-bernotok'
8994 allow_undefined_flag=' ${wl}-berok'
8995 # Exported symbols can be pulled into shared objects from archives
8996 whole_archive_flag_spec='$convenience'
8997 archive_cmds_need_lc=yes
8998 # This is similar to how AIX traditionally builds its shared libraries.
8999 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'
9007 # see comment about AmigaOS4 .so support
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds=''
9012 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)'
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_minus_L=yes
9020 export_dynamic_flag_spec=-rdynamic
9023 cygwin* | mingw* | pw32* | cegcc*)
9024 # When not using gcc, we currently assume that we are using
9025 # Microsoft Visual C++.
9026 # hardcode_libdir_flag_spec is actually meaningless, as there is
9027 # no search path for DLLs.
9028 hardcode_libdir_flag_spec=' '
9029 allow_undefined_flag=unsupported
9030 # Tell ltmain to make .lib files, not .a files.
9032 # Tell ltmain to make .dll files, not .so files.
9034 # FIXME: Setting linknames here is a bad hack.
9035 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9036 # The linker will automatically build a .lib file if we build a DLL.
9037 old_archive_from_new_cmds='true'
9038 # FIXME: Should let the user specify the lib program.
9039 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9040 fix_srcfile_path='`cygpath -w "$srcfile"`'
9041 enable_shared_with_static_runtimes=yes
9044 darwin* | rhapsody*)
9047 archive_cmds_need_lc=no
9049 hardcode_automatic=yes
9050 hardcode_shlibpath_var=unsupported
9051 whole_archive_flag_spec=''
9052 link_all_deplibs=yes
9053 allow_undefined_flag="$_lt_dar_allow_undefined"
9054 case $cc_basename in
9055 ifort*) _lt_dar_can_shared=yes ;;
9056 *) _lt_dar_can_shared=$GCC ;;
9058 if test "$_lt_dar_can_shared" = "yes"; then
9059 output_verbose_link_cmd=echo
9060 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9061 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9062 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}"
9063 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}"
9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_libdir_flag_spec='-L$libdir'
9074 hardcode_shlibpath_var=no
9081 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9082 # support. Future versions do this automatically, but an explicit c++rt0.o
9083 # does not break anything, and helps significantly (at the cost of a little
9086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9087 hardcode_libdir_flag_spec='-R$libdir'
9089 hardcode_shlibpath_var=no
9092 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9094 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9096 hardcode_minus_L=yes
9097 hardcode_shlibpath_var=no
9100 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9101 freebsd* | dragonfly*)
9102 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9103 hardcode_libdir_flag_spec='-R$libdir'
9105 hardcode_shlibpath_var=no
9109 if test "$GCC" = yes; then
9110 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'
9112 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'
9114 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9115 hardcode_libdir_separator=:
9118 # hardcode_minus_L: Not really in the search PATH,
9119 # but as the default location of the library.
9120 hardcode_minus_L=yes
9121 export_dynamic_flag_spec='${wl}-E'
9125 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9126 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9128 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9130 if test "$with_gnu_ld" = no; then
9131 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9132 hardcode_libdir_flag_spec_ld='+b $libdir'
9133 hardcode_libdir_separator=:
9135 hardcode_direct_absolute=yes
9136 export_dynamic_flag_spec='${wl}-E'
9137 # hardcode_minus_L: Not really in the search PATH,
9138 # but as the default location of the library.
9139 hardcode_minus_L=yes
9144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9147 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9153 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9159 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9165 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9169 if test "$with_gnu_ld" = no; then
9170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_separator=:
9176 hardcode_shlibpath_var=no
9180 hardcode_direct_absolute=yes
9181 export_dynamic_flag_spec='${wl}-E'
9183 # hardcode_minus_L: Not really in the search PATH,
9184 # but as the default location of the library.
9185 hardcode_minus_L=yes
9191 irix5* | irix6* | nonstopux*)
9192 if test "$GCC" = yes; then
9193 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'
9194 # Try to use the -exported_symbol ld option, if it does not
9195 # work, assume that -exports_file does not work either and
9196 # implicitly export all symbols.
9197 save_LDFLAGS="$LDFLAGS"
9198 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9199 cat >conftest.$ac_ext <<_ACEOF
9202 rm -f conftest.$ac_objext conftest$ac_exeext
9203 if { (ac_try="$ac_link"
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9209 $as_echo "$ac_try_echo") >&5
9210 (eval "$ac_link") 2>conftest.er1
9212 grep -v '^ *+' conftest.er1 >conftest.err
9214 cat conftest.err >&5
9215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } && {
9217 test -z "$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9219 } && test -s conftest$ac_exeext && {
9220 test "$cross_compiling" = yes ||
9221 $as_test_x conftest$ac_exeext
9223 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'
9226 $as_echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9232 rm -rf conftest.dSYM
9233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9234 conftest$ac_exeext conftest.$ac_ext
9235 LDFLAGS="$save_LDFLAGS"
9237 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'
9238 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'
9240 archive_cmds_need_lc='no'
9241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9242 hardcode_libdir_separator=:
9244 link_all_deplibs=yes
9248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9251 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9253 hardcode_libdir_flag_spec='-R$libdir'
9255 hardcode_shlibpath_var=no
9259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9262 hardcode_libdir_separator=:
9263 hardcode_shlibpath_var=no
9270 if test -f /usr/libexec/ld.so; then
9272 hardcode_shlibpath_var=no
9273 hardcode_direct_absolute=yes
9274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9276 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9278 export_dynamic_flag_spec='${wl}-E'
9281 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9283 hardcode_libdir_flag_spec='-R$libdir'
9286 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9297 hardcode_libdir_flag_spec='-L$libdir'
9298 hardcode_minus_L=yes
9299 allow_undefined_flag=unsupported
9300 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'
9301 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9305 if test "$GCC" = yes; then
9306 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9307 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'
9309 allow_undefined_flag=' -expect_unresolved \*'
9310 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'
9312 archive_cmds_need_lc='no'
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 hardcode_libdir_separator=:
9317 osf4* | osf5*) # as osf3* with the addition of -msym flag
9318 if test "$GCC" = yes; then
9319 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9320 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'
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323 allow_undefined_flag=' -expect_unresolved \*'
9324 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'
9325 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~
9326 $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'
9328 # Both c and cxx compiler support -rpath directly
9329 hardcode_libdir_flag_spec='-rpath $libdir'
9331 archive_cmds_need_lc='no'
9332 hardcode_libdir_separator=:
9336 no_undefined_flag=' -z defs'
9337 if test "$GCC" = yes; then
9339 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9343 case `$CC -V 2>&1` in
9346 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9347 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9348 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9352 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9354 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9358 hardcode_libdir_flag_spec='-R$libdir'
9359 hardcode_shlibpath_var=no
9361 solaris2.[0-5] | solaris2.[0-5].*) ;;
9363 # The compiler driver will combine and reorder linker options,
9364 # but understands `-z linker_flag'. GCC discards it without `$wl',
9365 # but is careful enough not to reorder.
9366 # Supported since Solaris 2.6 (maybe 2.5.1?)
9367 if test "$GCC" = yes; then
9368 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9370 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9374 link_all_deplibs=yes
9378 if test "x$host_vendor" = xsequent; then
9379 # Use $CC to link under sequent, because it throws in some extra .o
9380 # files that make .init and .fini sections work.
9381 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9383 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_minus_L=yes
9388 hardcode_shlibpath_var=no
9392 case $host_vendor in
9394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9395 hardcode_direct=yes # is this really true???
9398 ## LD is ld it makes a PLAMLIB
9399 ## CC just makes a GrossModule.
9400 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9401 reload_cmds='$CC -r -o $output$reload_objs'
9405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9409 runpath_var='LD_RUN_PATH'
9410 hardcode_shlibpath_var=no
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_shlibpath_var=no
9416 export_dynamic_flag_spec='-Bexport'
9420 if test -d /usr/nec; then
9421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_shlibpath_var=no
9423 runpath_var=LD_RUN_PATH
9424 hardcode_runpath_var=yes
9429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9430 no_undefined_flag='${wl}-z,text'
9431 archive_cmds_need_lc=no
9432 hardcode_shlibpath_var=no
9433 runpath_var='LD_RUN_PATH'
9435 if test "$GCC" = yes; then
9436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444 sysv5* | sco3.2v5* | sco5v6*)
9445 # Note: We can NOT use -z defs as we might desire, because we do not
9446 # link with -lc, and that would cause any symbols used from libc to
9447 # always be unresolved, which means just about no library would
9448 # ever link correctly. If we're not using GNU ld we use -z text
9449 # though, which does catch some bad symbols but isn't as heavy-handed
9451 no_undefined_flag='${wl}-z,text'
9452 allow_undefined_flag='${wl}-z,nodefs'
9453 archive_cmds_need_lc=no
9454 hardcode_shlibpath_var=no
9455 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9456 hardcode_libdir_separator=':'
9457 link_all_deplibs=yes
9458 export_dynamic_flag_spec='${wl}-Bexport'
9459 runpath_var='LD_RUN_PATH'
9461 if test "$GCC" = yes; then
9462 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9463 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472 hardcode_libdir_flag_spec='-L$libdir'
9473 hardcode_shlibpath_var=no
9481 if test x$host_vendor = xsni; then
9483 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9484 export_dynamic_flag_spec='${wl}-Blargedynsym'
9490 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9491 $as_echo "$ld_shlibs" >&6; }
9492 test "$ld_shlibs" = no && can_build_shared=no
9494 with_gnu_ld=$with_gnu_ld
9511 # Do we need to explicitly link libc?
9513 case "x$archive_cmds_need_lc" in
9515 # Assume -lc should be added
9516 archive_cmds_need_lc=yes
9518 if test "$enable_shared" = yes && test "$GCC" = yes; then
9519 case $archive_cmds in
9521 # FIXME: we may have to deal with multi-command sequences.
9524 # Test whether the compiler implicitly links with -lc since on some
9525 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9526 # to ld, don't add -lc before -lgcc.
9527 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9528 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533 (eval $ac_compile) 2>&5
9535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } 2>conftest.err; then
9539 libobjs=conftest.$ac_objext
9541 wl=$lt_prog_compiler_wl
9542 pic_flag=$lt_prog_compiler_pic
9548 lt_save_allow_undefined_flag=$allow_undefined_flag
9549 allow_undefined_flag=
9550 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9551 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }
9556 archive_cmds_need_lc=no
9558 archive_cmds_need_lc=yes
9560 allow_undefined_flag=$lt_save_allow_undefined_flag
9562 cat conftest.err 1>&5
9565 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9566 $as_echo "$archive_cmds_need_lc" >&6; }
9729 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9730 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9732 if test "$GCC" = yes; then
9734 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9735 *) lt_awk_arg="/^libraries:/" ;;
9737 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9738 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9739 # if the path contains ";" then we assume it to be the separator
9740 # otherwise default to the standard path separator (i.e. ":") - it is
9741 # assumed that no part of a normal pathname contains ";" but that should
9742 # okay in the real world where ";" in dirpaths is itself problematic.
9743 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9747 # Ok, now we have the path, separated by spaces, we can step through it
9748 # and add multilib dir if necessary.
9749 lt_tmp_lt_search_path_spec=
9750 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9751 for lt_sys_path in $lt_search_path_spec; do
9752 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9753 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9755 test -d "$lt_sys_path" && \
9756 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9759 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9760 BEGIN {RS=" "; FS="/|\n";} {
9763 for (lt_i = NF; lt_i > 0; lt_i--) {
9764 if ($lt_i != "" && $lt_i != ".") {
9765 if ($lt_i == "..") {
9768 if (lt_count == 0) {
9769 lt_foo="/" $lt_i lt_foo;
9776 if (lt_foo != "") { lt_freq[lt_foo]++; }
9777 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9779 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9781 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9784 libname_spec='lib$name'
9792 shlibpath_overrides_runpath=unknown
9794 dynamic_linker="$host_os ld.so"
9795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9796 need_lib_prefix=unknown
9797 hardcode_into_libs=no
9799 # when you set need_version to no, make sure it does not cause -set_version
9800 # flags to be left without arguments
9801 need_version=unknown
9806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9807 shlibpath_var=LIBPATH
9809 # AIX 3 has no versioning support, so we append a major version to the name.
9810 soname_spec='${libname}${release}${shared_ext}$major'
9817 hardcode_into_libs=yes
9818 if test "$host_cpu" = ia64; then
9819 # AIX 5 supports IA64
9820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9821 shlibpath_var=LD_LIBRARY_PATH
9823 # With GCC up to 2.95.x, collect2 would create an import file
9824 # for dependence libraries. The import file would start with
9825 # the line `#! .'. This would cause the generated library to
9826 # depend on `.', always an invalid library. This was fixed in
9827 # development snapshots of GCC prior to 3.0.
9829 aix4 | aix4.[01] | aix4.[01].*)
9830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9832 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9840 # soname into executable. Probably we can add versioning support to
9841 # collect2, so additional links can be useful in future.
9842 if test "$aix_use_runtimelinking" = yes; then
9843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9844 # instead of lib<name>.a to let people know that these are not
9845 # typical AIX shared libraries.
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848 # We preserve .a as extension for shared libraries through AIX4.2
9849 # and later when we are not doing run time linking.
9850 library_names_spec='${libname}${release}.a $libname.a'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9853 shlibpath_var=LIBPATH
9860 # Since July 2007 AmigaOS4 officially supports .so libraries.
9861 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 library_names_spec='$libname.ixlibrary $libname.a'
9866 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9867 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'
9873 library_names_spec='${libname}${shared_ext}'
9874 dynamic_linker="$host_os ld.so"
9875 shlibpath_var=LIBRARY_PATH
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9884 shlibpath_var=LD_LIBRARY_PATH
9885 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9886 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9887 # the default ld.so.conf also contains /usr/contrib/lib and
9888 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9889 # libtool to hard-code these into programs
9892 cygwin* | mingw* | pw32* | cegcc*)
9893 version_type=windows
9898 case $GCC,$host_os in
9899 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9900 library_names_spec='$libname.dll.a'
9901 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9902 postinstall_cmds='base_file=`basename \${file}`~
9903 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9904 dldir=$destdir/`dirname \$dlpath`~
9905 test -d \$dldir || mkdir -p \$dldir~
9906 $install_prog $dir/$dlname \$dldir/$dlname~
9907 chmod a+x \$dldir/$dlname~
9908 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9909 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9912 dlpath=$dir/\$dldll~
9914 shlibpath_overrides_runpath=yes
9918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9923 # MinGW DLLs use traditional 'lib' prefix
9924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9925 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9926 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9927 # It is most probably a Windows format PATH printed by
9928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9929 # path with ; separators, and with drive letters. We can handle the
9930 # drive letters (cygwin fileutils understands them), so leave them,
9931 # especially as we might pass files found there to a mingw objdump,
9932 # which wouldn't understand a cygwinified path. Ahh.
9933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9935 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9939 # pw32 DLLs use 'pw' prefix rather than 'lib'
9940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9949 dynamic_linker='Win32 ld.exe'
9950 # FIXME: first we should search . and the directory the executable is in
9954 darwin* | rhapsody*)
9955 dynamic_linker="$host_os dyld"
9959 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9960 soname_spec='${libname}${release}${major}$shared_ext'
9961 shlibpath_overrides_runpath=yes
9962 shlibpath_var=DYLD_LIBRARY_PATH
9963 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9965 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 shlibpath_var=LD_LIBRARY_PATH
9982 freebsd* | dragonfly*)
9983 # DragonFly does not have aout. When/if they implement a new
9984 # versioning mechanism, adjust this.
9985 if test -x /usr/bin/objformat; then
9986 objformat=`/usr/bin/objformat`
9989 freebsd[123]*) objformat=aout ;;
9993 version_type=freebsd-$objformat
9994 case $version_type in
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10005 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=yes
10010 freebsd3.[01]* | freebsdelf3.[01]*)
10011 shlibpath_overrides_runpath=yes
10012 hardcode_into_libs=yes
10014 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10015 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10016 shlibpath_overrides_runpath=no
10017 hardcode_into_libs=yes
10019 *) # from 4.6 on, and DragonFly
10020 shlibpath_overrides_runpath=yes
10021 hardcode_into_libs=yes
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 hardcode_into_libs=yes
10036 hpux9* | hpux10* | hpux11*)
10037 # Give a soname corresponding to the major version so that dld.sl refuses to
10038 # link against other versions.
10045 hardcode_into_libs=yes
10046 dynamic_linker="$host_os dld.so"
10047 shlibpath_var=LD_LIBRARY_PATH
10048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 if test "X$HPUX_IA64_MODE" = X32; then
10052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10060 hardcode_into_libs=yes
10061 dynamic_linker="$host_os dld.sl"
10062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065 soname_spec='${libname}${release}${shared_ext}$major'
10066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10071 dynamic_linker="$host_os dld.sl"
10072 shlibpath_var=SHLIB_PATH
10073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10078 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10079 postinstall_cmds='chmod 555 $lib'
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10089 shlibpath_var=LD_LIBRARY_PATH
10090 shlibpath_overrides_runpath=no
10091 hardcode_into_libs=yes
10094 irix5* | irix6* | nonstopux*)
10096 nonstopux*) version_type=nonstopux ;;
10098 if test "$lt_cv_prog_gnu_ld" = yes; then
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10109 irix5* | nonstopux*)
10110 libsuff= shlibsuff=
10113 case $LD in # libtool.m4 will add one of these switches to LD
10114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10115 libsuff= shlibsuff= libmagic=32-bit;;
10116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10117 libsuff=32 shlibsuff=N32 libmagic=N32;;
10118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10119 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10120 *) libsuff= shlibsuff= libmagic=never-match;;
10124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10125 shlibpath_overrides_runpath=no
10126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10128 hardcode_into_libs=yes
10131 # No shared lib support for Linux oldld, aout, or coff.
10132 linux*oldld* | linux*aout* | linux*coff*)
10136 # This must be Linux ELF.
10137 linux* | k*bsd*-gnu)
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=no
10146 # Some binutils ld are patched to set DT_RUNPATH
10147 save_LDFLAGS=$LDFLAGS
10148 save_libdir=$libdir
10149 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10150 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (ac_try="$ac_link"
10168 case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10173 $as_echo "$ac_try_echo") >&5
10174 (eval "$ac_link") 2>conftest.er1
10176 grep -v '^ *+' conftest.er1 >conftest.err
10178 cat conftest.err >&5
10179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest$ac_exeext && {
10184 test "$cross_compiling" = yes ||
10185 $as_test_x conftest$ac_exeext
10187 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10188 shlibpath_overrides_runpath=yes
10192 $as_echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10198 rm -rf conftest.dSYM
10199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10200 conftest$ac_exeext conftest.$ac_ext
10201 LDFLAGS=$save_LDFLAGS
10202 libdir=$save_libdir
10204 # This implies no fast_install, which is unacceptable.
10205 # Some rework will be needed to allow for fast_install
10206 # before this can be enabled.
10207 hardcode_into_libs=yes
10209 # Add ABI-specific directories to the system library path.
10210 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10212 # Append ld.so.conf contents to the search path
10213 if test -f /etc/ld.so.conf; then
10214 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' ' '`
10215 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10218 # We used to test for /lib/ld.so.1 and disable shared libraries on
10219 # powerpc, because MkLinux only supported shared libraries with the
10220 # GNU dynamic linker. Since this was broken with cross compilers,
10221 # most powerpc-linux boxes support dynamic linking these days and
10222 # people can always --disable-shared, the test was removed, and we
10223 # assume the GNU/Linux dynamic linker is in use.
10224 dynamic_linker='GNU/Linux ld.so'
10231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10234 dynamic_linker='NetBSD (a.out) ld.so'
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 dynamic_linker='NetBSD ld.elf_so'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=yes
10242 hardcode_into_libs=yes
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=no
10260 hardcode_into_libs=yes
10261 dynamic_linker='ldqnx.so'
10266 sys_lib_dlsearch_path_spec="/usr/lib"
10268 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10270 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10271 *) need_version=no ;;
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10278 openbsd2.[89] | openbsd2.[89].*)
10279 shlibpath_overrides_runpath=no
10282 shlibpath_overrides_runpath=yes
10286 shlibpath_overrides_runpath=yes
10291 libname_spec='$name'
10294 library_names_spec='$libname${shared_ext} $libname.a'
10295 dynamic_linker='OS/2 ld.exe'
10296 shlibpath_var=LIBPATH
10299 osf3* | osf4* | osf5*)
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10307 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 shlibpath_overrides_runpath=yes
10322 hardcode_into_libs=yes
10323 # ldd complains unless libraries are executable
10324 postinstall_cmds='chmod +x $lib'
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10330 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=yes
10333 if test "$with_gnu_ld" = yes; then
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 shlibpath_var=LD_LIBRARY_PATH
10344 case $host_vendor in
10346 shlibpath_overrides_runpath=no
10348 runpath_var=LD_RUN_PATH
10356 shlibpath_overrides_runpath=no
10357 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10363 if test -d /usr/nec ;then
10365 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10366 soname_spec='$libname${shared_ext}.$major'
10367 shlibpath_var=LD_LIBRARY_PATH
10371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10372 version_type=freebsd-elf
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10379 hardcode_into_libs=yes
10380 if test "$with_gnu_ld" = yes; then
10381 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10383 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10390 sys_lib_dlsearch_path_spec='/usr/lib'
10394 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 shlibpath_overrides_runpath=no
10401 hardcode_into_libs=yes
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10415 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10416 $as_echo "$dynamic_linker" >&6; }
10417 test "$dynamic_linker" = no && can_build_shared=no
10419 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10420 if test "$GCC" = yes; then
10421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10424 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10425 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10427 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10428 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10517 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10518 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10520 if test -n "$hardcode_libdir_flag_spec" ||
10521 test -n "$runpath_var" ||
10522 test "X$hardcode_automatic" = "Xyes" ; then
10524 # We can hardcode non-existent directories.
10525 if test "$hardcode_direct" != no &&
10526 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10527 # have to relink, otherwise we might link with an installed library
10528 # when we should be linking with a yet-to-be-installed one
10529 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10530 test "$hardcode_minus_L" != no; then
10531 # Linking always hardcodes the temporary library directory.
10532 hardcode_action=relink
10534 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10535 hardcode_action=immediate
10538 # We cannot hardcode anything, or else we can only hardcode existing
10540 hardcode_action=unsupported
10542 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10543 $as_echo "$hardcode_action" >&6; }
10545 if test "$hardcode_action" = relink ||
10546 test "$inherit_rpath" = yes; then
10547 # Fast installation is not supported
10548 enable_fast_install=no
10549 elif test "$shlibpath_overrides_runpath" = yes ||
10550 test "$enable_shared" = no; then
10551 # Fast installation is not necessary
10552 enable_fast_install=needless
10560 if test "x$enable_dlopen" != xyes; then
10561 enable_dlopen=unknown
10562 enable_dlopen_self=unknown
10563 enable_dlopen_self_static=unknown
10570 lt_cv_dlopen="load_add_on"
10572 lt_cv_dlopen_self=yes
10575 mingw* | pw32* | cegcc*)
10576 lt_cv_dlopen="LoadLibrary"
10581 lt_cv_dlopen="dlopen"
10586 # if libdl is installed we need to link against it
10587 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10590 $as_echo_n "(cached) " >&6
10592 ac_check_lib_save_LIBS=$LIBS
10594 cat >conftest.$ac_ext <<_ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10601 /* Override any GCC internal prototype to avoid an error.
10602 Use char because int might match the return type of a GCC
10603 builtin and then its argument prototype would still apply. */
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (ac_try="$ac_link"
10618 case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10623 $as_echo "$ac_try_echo") >&5
10624 (eval "$ac_link") 2>conftest.er1
10626 grep -v '^ *+' conftest.er1 >conftest.err
10628 cat conftest.err >&5
10629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && {
10631 test -z "$ac_c_werror_flag" ||
10632 test ! -s conftest.err
10633 } && test -s conftest$ac_exeext && {
10634 test "$cross_compiling" = yes ||
10635 $as_test_x conftest$ac_exeext
10637 ac_cv_lib_dl_dlopen=yes
10639 $as_echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ac_cv_lib_dl_dlopen=no
10645 rm -rf conftest.dSYM
10646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS=$ac_check_lib_save_LIBS
10650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10652 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10656 lt_cv_dlopen="dyld"
10658 lt_cv_dlopen_self=yes
10665 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10666 $as_echo_n "checking for shl_load... " >&6; }
10667 if test "${ac_cv_func_shl_load+set}" = set; then
10668 $as_echo_n "(cached) " >&6
10670 cat >conftest.$ac_ext <<_ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10678 #define shl_load innocuous_shl_load
10680 /* System header to define __stub macros and hopefully few prototypes,
10681 which can conflict with char shl_load (); below.
10682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10683 <limits.h> exists even on freestanding compilers. */
10686 # include <limits.h>
10688 # include <assert.h>
10693 /* Override any GCC internal prototype to avoid an error.
10694 Use char because int might match the return type of a GCC
10695 builtin and then its argument prototype would still apply. */
10700 /* The GNU C library defines this for functions which it implements
10701 to always fail with ENOSYS. Some functions are actually named
10702 something starting with __ and the normal name is an alias. */
10703 #if defined __stub_shl_load || defined __stub___shl_load
10710 return shl_load ();
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10722 $as_echo "$ac_try_echo") >&5
10723 (eval "$ac_link") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 } && test -s conftest$ac_exeext && {
10733 test "$cross_compiling" = yes ||
10734 $as_test_x conftest$ac_exeext
10736 ac_cv_func_shl_load=yes
10738 $as_echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_func_shl_load=no
10744 rm -rf conftest.dSYM
10745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10746 conftest$ac_exeext conftest.$ac_ext
10748 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10749 $as_echo "$ac_cv_func_shl_load" >&6; }
10750 if test "x$ac_cv_func_shl_load" = x""yes; then
10751 lt_cv_dlopen="shl_load"
10753 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10754 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10756 $as_echo_n "(cached) " >&6
10758 ac_check_lib_save_LIBS=$LIBS
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10767 /* Override any GCC internal prototype to avoid an error.
10768 Use char because int might match the return type of a GCC
10769 builtin and then its argument prototype would still apply. */
10777 return shl_load ();
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789 $as_echo "$ac_try_echo") >&5
10790 (eval "$ac_link") 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } && {
10797 test -z "$ac_c_werror_flag" ||
10798 test ! -s conftest.err
10799 } && test -s conftest$ac_exeext && {
10800 test "$cross_compiling" = yes ||
10801 $as_test_x conftest$ac_exeext
10803 ac_cv_lib_dld_shl_load=yes
10805 $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_cv_lib_dld_shl_load=no
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10816 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10817 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10818 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10819 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10821 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10822 $as_echo_n "checking for dlopen... " >&6; }
10823 if test "${ac_cv_func_dlopen+set}" = set; then
10824 $as_echo_n "(cached) " >&6
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10834 #define dlopen innocuous_dlopen
10836 /* System header to define __stub macros and hopefully few prototypes,
10837 which can conflict with char dlopen (); below.
10838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10839 <limits.h> exists even on freestanding compilers. */
10842 # include <limits.h>
10844 # include <assert.h>
10849 /* Override any GCC internal prototype to avoid an error.
10850 Use char because int might match the return type of a GCC
10851 builtin and then its argument prototype would still apply. */
10856 /* The GNU C library defines this for functions which it implements
10857 to always fail with ENOSYS. Some functions are actually named
10858 something starting with __ and the normal name is an alias. */
10859 #if defined __stub_dlopen || defined __stub___dlopen
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10878 $as_echo "$ac_try_echo") >&5
10879 (eval "$ac_link") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1 >conftest.err
10883 cat conftest.err >&5
10884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest$ac_exeext && {
10889 test "$cross_compiling" = yes ||
10890 $as_test_x conftest$ac_exeext
10892 ac_cv_func_dlopen=yes
10894 $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_cv_func_dlopen=no
10900 rm -rf conftest.dSYM
10901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10902 conftest$ac_exeext conftest.$ac_ext
10904 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10905 $as_echo "$ac_cv_func_dlopen" >&6; }
10906 if test "x$ac_cv_func_dlopen" = x""yes; then
10907 lt_cv_dlopen="dlopen"
10909 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10910 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10912 $as_echo_n "(cached) " >&6
10914 ac_check_lib_save_LIBS=$LIBS
10916 cat >conftest.$ac_ext <<_ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10923 /* Override any GCC internal prototype to avoid an error.
10924 Use char because int might match the return type of a GCC
10925 builtin and then its argument prototype would still apply. */
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (ac_try="$ac_link"
10940 case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10945 $as_echo "$ac_try_echo") >&5
10946 (eval "$ac_link") 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } && {
10953 test -z "$ac_c_werror_flag" ||
10954 test ! -s conftest.err
10955 } && test -s conftest$ac_exeext && {
10956 test "$cross_compiling" = yes ||
10957 $as_test_x conftest$ac_exeext
10959 ac_cv_lib_dl_dlopen=yes
10961 $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_lib_dl_dlopen=no
10967 rm -rf conftest.dSYM
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10972 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10973 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10974 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10975 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10977 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10978 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10979 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10980 $as_echo_n "(cached) " >&6
10982 ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-lsvld $LIBS"
10984 cat >conftest.$ac_ext <<_ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10991 /* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (ac_try="$ac_link"
11008 case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11013 $as_echo "$ac_try_echo") >&5
11014 (eval "$ac_link") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } && {
11021 test -z "$ac_c_werror_flag" ||
11022 test ! -s conftest.err
11023 } && test -s conftest$ac_exeext && {
11024 test "$cross_compiling" = yes ||
11025 $as_test_x conftest$ac_exeext
11027 ac_cv_lib_svld_dlopen=yes
11029 $as_echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_cv_lib_svld_dlopen=no
11035 rm -rf conftest.dSYM
11036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LIBS=$ac_check_lib_save_LIBS
11040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11041 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11042 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11045 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11046 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11047 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11048 $as_echo_n "(cached) " >&6
11050 ac_check_lib_save_LIBS=$LIBS
11052 cat >conftest.$ac_ext <<_ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11059 /* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
11069 return dld_link ();
11074 rm -f conftest.$ac_objext conftest$ac_exeext
11075 if { (ac_try="$ac_link"
11076 case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11081 $as_echo "$ac_try_echo") >&5
11082 (eval "$ac_link") 2>conftest.er1
11084 grep -v '^ *+' conftest.er1 >conftest.err
11086 cat conftest.err >&5
11087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest$ac_exeext && {
11092 test "$cross_compiling" = yes ||
11093 $as_test_x conftest$ac_exeext
11095 ac_cv_lib_dld_dld_link=yes
11097 $as_echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 ac_cv_lib_dld_dld_link=no
11103 rm -rf conftest.dSYM
11104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11105 conftest$ac_exeext conftest.$ac_ext
11106 LIBS=$ac_check_lib_save_LIBS
11108 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11109 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11110 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11111 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11132 if test "x$lt_cv_dlopen" != xno; then
11138 case $lt_cv_dlopen in
11140 save_CPPFLAGS="$CPPFLAGS"
11141 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11143 save_LDFLAGS="$LDFLAGS"
11144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11147 LIBS="$lt_cv_dlopen_libs $LIBS"
11149 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11150 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11151 if test "${lt_cv_dlopen_self+set}" = set; then
11152 $as_echo_n "(cached) " >&6
11154 if test "$cross_compiling" = yes; then :
11155 lt_cv_dlopen_self=cross
11157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11158 lt_status=$lt_dlunknown
11159 cat > conftest.$ac_ext <<_LT_EOF
11160 #line 11160 "configure"
11161 #include "confdefs.h"
11170 # define LT_DLGLOBAL RTLD_GLOBAL
11173 # define LT_DLGLOBAL DL_GLOBAL
11175 # define LT_DLGLOBAL 0
11179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11180 find out it does not work in some platform. */
11181 #ifndef LT_DLLAZY_OR_NOW
11183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11186 # define LT_DLLAZY_OR_NOW DL_LAZY
11189 # define LT_DLLAZY_OR_NOW RTLD_NOW
11192 # define LT_DLLAZY_OR_NOW DL_NOW
11194 # define LT_DLLAZY_OR_NOW 0
11201 void fnord() { int i=42;}
11204 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11205 int status = $lt_dlunknown;
11209 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11210 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11211 /* dlclose (self); */
11219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11220 (eval $ac_link) 2>&5
11222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11224 (./conftest; exit; ) >&5 2>/dev/null
11226 case x$lt_status in
11227 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11228 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11229 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11232 # compilation failed
11233 lt_cv_dlopen_self=no
11240 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11241 $as_echo "$lt_cv_dlopen_self" >&6; }
11243 if test "x$lt_cv_dlopen_self" = xyes; then
11244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11245 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11246 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11247 if test "${lt_cv_dlopen_self_static+set}" = set; then
11248 $as_echo_n "(cached) " >&6
11250 if test "$cross_compiling" = yes; then :
11251 lt_cv_dlopen_self_static=cross
11253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11254 lt_status=$lt_dlunknown
11255 cat > conftest.$ac_ext <<_LT_EOF
11256 #line 11256 "configure"
11257 #include "confdefs.h"
11266 # define LT_DLGLOBAL RTLD_GLOBAL
11269 # define LT_DLGLOBAL DL_GLOBAL
11271 # define LT_DLGLOBAL 0
11275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11276 find out it does not work in some platform. */
11277 #ifndef LT_DLLAZY_OR_NOW
11279 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11282 # define LT_DLLAZY_OR_NOW DL_LAZY
11285 # define LT_DLLAZY_OR_NOW RTLD_NOW
11288 # define LT_DLLAZY_OR_NOW DL_NOW
11290 # define LT_DLLAZY_OR_NOW 0
11297 void fnord() { int i=42;}
11300 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11301 int status = $lt_dlunknown;
11305 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11306 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11307 /* dlclose (self); */
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>&5
11318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11320 (./conftest; exit; ) >&5 2>/dev/null
11322 case x$lt_status in
11323 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11324 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11325 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11328 # compilation failed
11329 lt_cv_dlopen_self_static=no
11336 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11337 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11340 CPPFLAGS="$save_CPPFLAGS"
11341 LDFLAGS="$save_LDFLAGS"
11346 case $lt_cv_dlopen_self in
11347 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11348 *) enable_dlopen_self=unknown ;;
11351 case $lt_cv_dlopen_self_static in
11352 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11353 *) enable_dlopen_self_static=unknown ;;
11375 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11376 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11377 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11378 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11379 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11380 { $as_echo "$as_me:$LINENO: result: yes" >&5
11381 $as_echo "yes" >&6; }
11383 # FIXME - insert some real tests, host_os isn't really good enough
11386 if test -n "$STRIP" ; then
11387 striplib="$STRIP -x"
11388 old_striplib="$STRIP -S"
11389 { $as_echo "$as_me:$LINENO: result: yes" >&5
11390 $as_echo "yes" >&6; }
11392 { $as_echo "$as_me:$LINENO: result: no" >&5
11393 $as_echo "no" >&6; }
11397 { $as_echo "$as_me:$LINENO: result: no" >&5
11398 $as_echo "no" >&6; }
11414 # Report which library types will actually be built
11415 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11416 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11417 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11418 $as_echo "$can_build_shared" >&6; }
11420 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11421 $as_echo_n "checking whether to build shared libraries... " >&6; }
11422 test "$can_build_shared" = "no" && enable_shared=no
11424 # On AIX, shared libraries and static libraries use the same namespace, and
11425 # are all built from PIC.
11428 test "$enable_shared" = yes && enable_static=no
11429 if test -n "$RANLIB"; then
11430 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11431 postinstall_cmds='$RANLIB $lib'
11436 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11437 test "$enable_shared" = yes && enable_static=no
11441 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11442 $as_echo "$enable_shared" >&6; }
11444 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11445 $as_echo_n "checking whether to build static libraries... " >&6; }
11446 # Make sure either enable_shared or enable_static is yes.
11447 test "$enable_shared" = yes || enable_static=yes
11448 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11449 $as_echo "$enable_static" >&6; }
11456 ac_cpp='$CPP $CPPFLAGS'
11457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11475 ac_config_commands="$ac_config_commands libtool"
11480 # Only expand once:
11486 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11487 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11488 # Check whether --enable-maintainer-mode was given.
11489 if test "${enable_maintainer_mode+set}" = set; then
11490 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11492 USE_MAINTAINER_MODE=no
11495 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11496 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11497 if test $USE_MAINTAINER_MODE = yes; then
11498 MAINTAINER_MODE_TRUE=
11499 MAINTAINER_MODE_FALSE='#'
11501 MAINTAINER_MODE_TRUE='#'
11502 MAINTAINER_MODE_FALSE=
11505 MAINT=$MAINTAINER_MODE_TRUE
11510 for ac_header in sys/mman.h
11512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11515 $as_echo_n "checking for $ac_header... " >&6; }
11516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517 $as_echo_n "(cached) " >&6
11519 ac_res=`eval 'as_val=${'$as_ac_Header'}
11520 $as_echo "$as_val"'`
11521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11522 $as_echo "$ac_res" >&6; }
11524 # Is the header compilable?
11525 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 $as_echo_n "checking $ac_header usability... " >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header>
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11543 $as_echo "$ac_try_echo") >&5
11544 (eval "$ac_compile") 2>conftest.er1
11546 grep -v '^ *+' conftest.er1 >conftest.err
11548 cat conftest.err >&5
11549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest.$ac_objext; then
11554 ac_header_compiler=yes
11556 $as_echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_header_compiler=no
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11564 $as_echo "$ac_header_compiler" >&6; }
11566 # Is the header present?
11567 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11568 $as_echo_n "checking $ac_header presence... " >&6; }
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 #include <$ac_header>
11577 if { (ac_try="$ac_cpp conftest.$ac_ext"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11583 $as_echo "$ac_try_echo") >&5
11584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11586 grep -v '^ *+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } >/dev/null && {
11591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11592 test ! -s conftest.err
11594 ac_header_preproc=yes
11596 $as_echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11599 ac_header_preproc=no
11602 rm -f conftest.err conftest.$ac_ext
11603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11604 $as_echo "$ac_header_preproc" >&6; }
11606 # So? What about this header?
11607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11610 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11613 ac_header_preproc=yes
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11625 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11629 ## ------------------------------------------- ##
11630 ## Report this to http://gcc.gnu.org/bugs.html ##
11631 ## ------------------------------------------- ##
11633 ) | sed "s/^/$as_me: WARNING: /" >&2
11636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 $as_echo_n "checking for $ac_header... " >&6; }
11638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11639 $as_echo_n "(cached) " >&6
11641 eval "$as_ac_Header=\$ac_header_preproc"
11643 ac_res=`eval 'as_val=${'$as_ac_Header'}
11644 $as_echo "$as_val"'`
11645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11646 $as_echo "$ac_res" >&6; }
11649 as_val=`eval 'as_val=${'$as_ac_Header'}
11650 $as_echo "$as_val"'`
11651 if test "x$as_val" = x""yes; then
11652 cat >>confdefs.h <<_ACEOF
11653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11661 for ac_func in mmap
11663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11664 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11665 $as_echo_n "checking for $ac_func... " >&6; }
11666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11667 $as_echo_n "(cached) " >&6
11669 cat >conftest.$ac_ext <<_ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11677 #define $ac_func innocuous_$ac_func
11679 /* System header to define __stub macros and hopefully few prototypes,
11680 which can conflict with char $ac_func (); below.
11681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11682 <limits.h> exists even on freestanding compilers. */
11685 # include <limits.h>
11687 # include <assert.h>
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11699 /* The GNU C library defines this for functions which it implements
11700 to always fail with ENOSYS. Some functions are actually named
11701 something starting with __ and the normal name is an alias. */
11702 #if defined __stub_$ac_func || defined __stub___$ac_func
11709 return $ac_func ();
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (ac_try="$ac_link"
11716 case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11721 $as_echo "$ac_try_echo") >&5
11722 (eval "$ac_link") 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } && {
11729 test -z "$ac_c_werror_flag" ||
11730 test ! -s conftest.err
11731 } && test -s conftest$ac_exeext && {
11732 test "$cross_compiling" = yes ||
11733 $as_test_x conftest$ac_exeext
11735 eval "$as_ac_var=yes"
11737 $as_echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11740 eval "$as_ac_var=no"
11743 rm -rf conftest.dSYM
11744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11745 conftest$ac_exeext conftest.$ac_ext
11747 ac_res=`eval 'as_val=${'$as_ac_var'}
11748 $as_echo "$as_val"'`
11749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11750 $as_echo "$ac_res" >&6; }
11751 as_val=`eval 'as_val=${'$as_ac_var'}
11752 $as_echo "$as_val"'`
11753 if test "x$as_val" = x""yes; then
11754 cat >>confdefs.h <<_ACEOF
11755 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11762 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11763 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11764 $as_echo_n "checking for sys/mman.h... " >&6; }
11765 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11766 $as_echo_n "(cached) " >&6
11768 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11769 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11771 # Is the header compilable?
11772 { $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
11773 $as_echo_n "checking sys/mman.h usability... " >&6; }
11774 cat >conftest.$ac_ext <<_ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11781 #include <sys/mman.h>
11783 rm -f conftest.$ac_objext
11784 if { (ac_try="$ac_compile"
11785 case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11790 $as_echo "$ac_try_echo") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && {
11798 test -z "$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 } && test -s conftest.$ac_objext; then
11801 ac_header_compiler=yes
11803 $as_echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 ac_header_compiler=no
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 $as_echo "$ac_header_compiler" >&6; }
11813 # Is the header present?
11814 { $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
11815 $as_echo_n "checking sys/mman.h presence... " >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 #include <sys/mman.h>
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } >/dev/null && {
11838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11839 test ! -s conftest.err
11841 ac_header_preproc=yes
11843 $as_echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 ac_header_preproc=no
11849 rm -f conftest.err conftest.$ac_ext
11850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11851 $as_echo "$ac_header_preproc" >&6; }
11853 # So? What about this header?
11854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11856 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
11857 $as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11858 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
11859 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
11860 ac_header_preproc=yes
11863 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
11864 $as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
11865 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
11866 $as_echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
11867 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
11868 $as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
11869 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
11870 $as_echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
11871 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
11872 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
11873 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
11874 $as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
11876 ## ------------------------------------------- ##
11877 ## Report this to http://gcc.gnu.org/bugs.html ##
11878 ## ------------------------------------------- ##
11880 ) | sed "s/^/$as_me: WARNING: /" >&2
11883 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11884 $as_echo_n "checking for sys/mman.h... " >&6; }
11885 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11886 $as_echo_n "(cached) " >&6
11888 ac_cv_header_sys_mman_h=$ac_header_preproc
11890 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11891 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11894 if test "x$ac_cv_header_sys_mman_h" = x""yes; then
11895 libffi_header_sys_mman_h=yes
11897 libffi_header_sys_mman_h=no
11901 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
11902 $as_echo_n "checking for mmap... " >&6; }
11903 if test "${ac_cv_func_mmap+set}" = set; then
11904 $as_echo_n "(cached) " >&6
11906 cat >conftest.$ac_ext <<_ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11914 #define mmap innocuous_mmap
11916 /* System header to define __stub macros and hopefully few prototypes,
11917 which can conflict with char mmap (); below.
11918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11919 <limits.h> exists even on freestanding compilers. */
11922 # include <limits.h>
11924 # include <assert.h>
11929 /* Override any GCC internal prototype to avoid an error.
11930 Use char because int might match the return type of a GCC
11931 builtin and then its argument prototype would still apply. */
11936 /* The GNU C library defines this for functions which it implements
11937 to always fail with ENOSYS. Some functions are actually named
11938 something starting with __ and the normal name is an alias. */
11939 #if defined __stub_mmap || defined __stub___mmap
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (ac_try="$ac_link"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11958 $as_echo "$ac_try_echo") >&5
11959 (eval "$ac_link") 2>conftest.er1
11961 grep -v '^ *+' conftest.er1 >conftest.err
11963 cat conftest.err >&5
11964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } && {
11966 test -z "$ac_c_werror_flag" ||
11967 test ! -s conftest.err
11968 } && test -s conftest$ac_exeext && {
11969 test "$cross_compiling" = yes ||
11970 $as_test_x conftest$ac_exeext
11972 ac_cv_func_mmap=yes
11974 $as_echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11980 rm -rf conftest.dSYM
11981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11982 conftest$ac_exeext conftest.$ac_ext
11984 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11985 $as_echo "$ac_cv_func_mmap" >&6; }
11986 if test "x$ac_cv_func_mmap" = x""yes; then
11987 libffi_func_mmap=yes
11989 libffi_func_mmap=no
11992 if test "$libffi_header_sys_mman_h" != yes \
11993 || test "$libffi_func_mmap" != yes; then
11994 ac_cv_func_mmap_file=no
11995 ac_cv_func_mmap_dev_zero=no
11996 ac_cv_func_mmap_anon=no
11998 { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11999 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
12000 if test "${ac_cv_func_mmap_file+set}" = set; then
12001 $as_echo_n "(cached) " >&6
12003 # Add a system to this blacklist if
12004 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
12005 # memory area containing the same data that you'd get if you applied
12006 # read() to the same fd. The only system known to have a problem here
12007 # is VMS, where text files have record structure.
12010 ac_cv_func_mmap_file=no ;;
12012 ac_cv_func_mmap_file=yes;;
12015 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12016 $as_echo "$ac_cv_func_mmap_file" >&6; }
12017 { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12018 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12019 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12020 $as_echo_n "(cached) " >&6
12022 # Add a system to this blacklist if it has mmap() but /dev/zero
12023 # does not exist, or if mmapping /dev/zero does not give anonymous
12024 # zeroed pages with both the following properties:
12025 # 1. If you map N consecutive pages in with one call, and then
12026 # unmap any subset of those pages, the pages that were not
12027 # explicitly unmapped remain accessible.
12028 # 2. If you map two adjacent blocks of memory and then unmap them
12029 # both at once, they must both go away.
12030 # Systems known to be in this category are Windows (all variants),
12033 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12034 ac_cv_func_mmap_dev_zero=no ;;
12036 ac_cv_func_mmap_dev_zero=yes;;
12039 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12040 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12042 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12043 { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12044 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12045 if test "${ac_cv_decl_map_anon+set}" = set; then
12046 $as_echo_n "(cached) " >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 #include <sys/types.h>
12055 #include <sys/mman.h>
12056 #include <unistd.h>
12058 #ifndef MAP_ANONYMOUS
12059 #define MAP_ANONYMOUS MAP_ANON
12065 int n = MAP_ANONYMOUS;
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12077 $as_echo "$ac_try_echo") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12080 grep -v '^ *+' conftest.er1 >conftest.err
12082 cat conftest.err >&5
12083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
12088 ac_cv_decl_map_anon=yes
12090 $as_echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_cv_decl_map_anon=no
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12099 $as_echo "$ac_cv_decl_map_anon" >&6; }
12101 if test $ac_cv_decl_map_anon = no; then
12102 ac_cv_func_mmap_anon=no
12104 { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12105 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12106 if test "${ac_cv_func_mmap_anon+set}" = set; then
12107 $as_echo_n "(cached) " >&6
12109 # Add a system to this blacklist if it has mmap() and MAP_ANON or
12110 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12111 # doesn't give anonymous zeroed pages with the same properties listed
12112 # above for use of /dev/zero.
12113 # Systems known to be in this category are Windows, VMS, and SCO Unix.
12115 vms* | cygwin* | pe | mingw* | sco* | udk* )
12116 ac_cv_func_mmap_anon=no ;;
12118 ac_cv_func_mmap_anon=yes;;
12121 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12122 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12126 if test $ac_cv_func_mmap_file = yes; then
12128 cat >>confdefs.h <<\_ACEOF
12129 #define HAVE_MMAP_FILE 1
12133 if test $ac_cv_func_mmap_dev_zero = yes; then
12135 cat >>confdefs.h <<\_ACEOF
12136 #define HAVE_MMAP_DEV_ZERO 1
12140 if test $ac_cv_func_mmap_anon = yes; then
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_MMAP_ANON 1
12149 if test -d $srcdir/testsuite; then
12151 TESTSUBDIR_FALSE='#'
12153 TESTSUBDIR_TRUE='#'
12158 TARGETDIR="unknown"
12161 TARGET=ALPHA; TARGETDIR=alpha;
12162 # Support 128-bit long double, changeable via command-line switch.
12163 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12167 TARGET=ARM; TARGETDIR=arm
12170 amd64-*-freebsd* | amd64-*-openbsd*)
12171 TARGET=X86_64; TARGETDIR=x86
12175 TARGET=X86_64; TARGETDIR=x86
12179 TARGET=AVR32; TARGETDIR=avr32
12183 TARGET=LIBFFI_CRIS; TARGETDIR=cris
12187 TARGET=FRV; TARGETDIR=frv
12190 hppa*-*-linux* | parisc*-*-linux*)
12191 TARGET=PA_LINUX; TARGETDIR=pa
12194 TARGET=PA64_HPUX; TARGETDIR=pa
12197 TARGET=PA_HPUX; TARGETDIR=pa
12200 i?86-*-freebsd* | i?86-*-openbsd*)
12201 TARGET=X86_FREEBSD; TARGETDIR=x86
12203 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*)
12204 TARGET=X86_WIN32; TARGETDIR=x86
12205 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12206 # We must also check with_cross_host to decide if this is a native
12207 # or cross-build and select where to install dlls appropriately.
12208 if test -n "$with_cross_host" &&
12209 test x"$with_cross_host" != x"no"; then
12210 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12212 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12216 TARGET=X86_DARWIN; TARGETDIR=x86
12218 i?86-*-solaris2.1[0-9]*)
12219 TARGET=X86_64; TARGETDIR=x86
12222 TARGET=X86; TARGETDIR=x86
12226 TARGET=IA64; TARGETDIR=ia64
12230 TARGET=M32R; TARGETDIR=m32r
12234 TARGET=M68K; TARGETDIR=m68k
12237 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
12238 TARGET=MIPS; TARGETDIR=mips
12241 # Support 128-bit long double for NewABI.
12242 HAVE_LONG_DOUBLE='defined(__mips64)'
12243 TARGET=MIPS; TARGETDIR=mips
12246 powerpc*-*-linux* | powerpc-*-sysv*)
12247 TARGET=POWERPC; TARGETDIR=powerpc
12250 TARGET=POWERPC; TARGETDIR=powerpc
12253 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12255 powerpc-*-aix* | rs6000-*-aix*)
12256 TARGET=POWERPC_AIX; TARGETDIR=powerpc
12258 powerpc-*-freebsd*)
12259 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12261 powerpc64-*-freebsd*)
12262 TARGET=POWERPC; TARGETDIR=powerpc
12265 TARGET=POWERPC; TARGETDIR=powerpc
12268 s390-*-* | s390x-*-*)
12269 TARGET=S390; TARGETDIR=s390
12272 sh-*-* | sh[34]*-*-*)
12273 TARGET=SH; TARGETDIR=sh
12275 sh64-*-* | sh5*-*-*)
12276 TARGET=SH64; TARGETDIR=sh64
12280 TARGET=SPARC; TARGETDIR=sparc
12284 TARGET=X86_DARWIN; TARGETDIR=x86
12287 x86_64-*-cygwin* | x86_64-*-mingw*)
12288 TARGET=X86_WIN64; TARGETDIR=x86
12292 TARGET=X86_64; TARGETDIR=x86
12299 if test $TARGETDIR = unknown; then
12300 { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
12301 $as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
12302 { (exit 1); exit 1; }; }
12305 if test x$TARGET = xMIPS; then
12313 if test x$TARGET = xSPARC; then
12321 if test x$TARGET = xX86; then
12329 if test x$TARGET = xX86_FREEBSD; then
12331 X86_FREEBSD_FALSE='#'
12333 X86_FREEBSD_TRUE='#'
12337 if test x$TARGET = xX86_WIN32; then
12339 X86_WIN32_FALSE='#'
12345 if test x$TARGET = xX86_WIN64; then
12347 X86_WIN64_FALSE='#'
12353 if test x$TARGET = xX86_DARWIN; then
12355 X86_DARWIN_FALSE='#'
12357 X86_DARWIN_TRUE='#'
12361 if test x$TARGET = xALPHA; then
12369 if test x$TARGET = xIA64; then
12377 if test x$TARGET = xM32R; then
12385 if test x$TARGET = xM68K; then
12393 if test x$TARGET = xMOXIE; then
12401 if test x$TARGET = xPOWERPC; then
12409 if test x$TARGET = xPOWERPC_AIX; then
12411 POWERPC_AIX_FALSE='#'
12413 POWERPC_AIX_TRUE='#'
12417 if test x$TARGET = xPOWERPC_DARWIN; then
12418 POWERPC_DARWIN_TRUE=
12419 POWERPC_DARWIN_FALSE='#'
12421 POWERPC_DARWIN_TRUE='#'
12422 POWERPC_DARWIN_FALSE=
12425 if test x$TARGET = xPOWERPC_FREEBSD; then
12426 POWERPC_FREEBSD_TRUE=
12427 POWERPC_FREEBSD_FALSE='#'
12429 POWERPC_FREEBSD_TRUE='#'
12430 POWERPC_FREEBSD_FALSE=
12433 if test x$TARGET = xARM; then
12441 if test x$TARGET = xAVR32; then
12449 if test x$TARGET = xLIBFFI_CRIS; then
12451 LIBFFI_CRIS_FALSE='#'
12453 LIBFFI_CRIS_TRUE='#'
12457 if test x$TARGET = xFRV; then
12465 if test x$TARGET = xS390; then
12473 if test x$TARGET = xX86_64; then
12481 if test x$TARGET = xSH; then
12489 if test x$TARGET = xSH64; then
12497 if test x$TARGET = xPA_LINUX; then
12505 if test x$TARGET = xPA_HPUX; then
12513 if test x$TARGET = xPA64_HPUX; then
12515 PA64_HPUX_FALSE='#'
12522 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12523 $as_echo_n "checking for ANSI C header files... " >&6; }
12524 if test "${ac_cv_header_stdc+set}" = set; then
12525 $as_echo_n "(cached) " >&6
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #include <stdlib.h>
12534 #include <stdarg.h>
12535 #include <string.h>
12546 rm -f conftest.$ac_objext
12547 if { (ac_try="$ac_compile"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12553 $as_echo "$ac_try_echo") >&5
12554 (eval "$ac_compile") 2>conftest.er1
12556 grep -v '^ *+' conftest.er1 >conftest.err
12558 cat conftest.err >&5
12559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } && {
12561 test -z "$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12563 } && test -s conftest.$ac_objext; then
12564 ac_cv_header_stdc=yes
12566 $as_echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_header_stdc=no
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574 if test $ac_cv_header_stdc = yes; then
12575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12576 cat >conftest.$ac_ext <<_ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <string.h>
12585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12586 $EGREP "memchr" >/dev/null 2>&1; then
12589 ac_cv_header_stdc=no
12595 if test $ac_cv_header_stdc = yes; then
12596 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12597 cat >conftest.$ac_ext <<_ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 #include <stdlib.h>
12606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12607 $EGREP "free" >/dev/null 2>&1; then
12610 ac_cv_header_stdc=no
12616 if test $ac_cv_header_stdc = yes; then
12617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12618 if test "$cross_compiling" = yes; then
12621 cat >conftest.$ac_ext <<_ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12628 #include <stdlib.h>
12629 #if ((' ' & 0x0FF) == 0x020)
12630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12633 # define ISLOWER(c) \
12634 (('a' <= (c) && (c) <= 'i') \
12635 || ('j' <= (c) && (c) <= 'r') \
12636 || ('s' <= (c) && (c) <= 'z'))
12637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12645 for (i = 0; i < 256; i++)
12646 if (XOR (islower (i), ISLOWER (i))
12647 || toupper (i) != TOUPPER (i))
12652 rm -f conftest$ac_exeext
12653 if { (ac_try="$ac_link"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12659 $as_echo "$ac_try_echo") >&5
12660 (eval "$ac_link") 2>&5
12662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12669 $as_echo "$ac_try_echo") >&5
12670 (eval "$ac_try") 2>&5
12672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12676 $as_echo "$as_me: program exited with status $ac_status" >&5
12677 $as_echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 ( exit $ac_status )
12681 ac_cv_header_stdc=no
12683 rm -rf conftest.dSYM
12684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12691 $as_echo "$ac_cv_header_stdc" >&6; }
12692 if test $ac_cv_header_stdc = yes; then
12694 cat >>confdefs.h <<\_ACEOF
12695 #define STDC_HEADERS 1
12701 for ac_func in memcpy
12703 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12704 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12705 $as_echo_n "checking for $ac_func... " >&6; }
12706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12707 $as_echo_n "(cached) " >&6
12709 cat >conftest.$ac_ext <<_ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12717 #define $ac_func innocuous_$ac_func
12719 /* System header to define __stub macros and hopefully few prototypes,
12720 which can conflict with char $ac_func (); below.
12721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12722 <limits.h> exists even on freestanding compilers. */
12725 # include <limits.h>
12727 # include <assert.h>
12732 /* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply. */
12739 /* The GNU C library defines this for functions which it implements
12740 to always fail with ENOSYS. Some functions are actually named
12741 something starting with __ and the normal name is an alias. */
12742 #if defined __stub_$ac_func || defined __stub___$ac_func
12749 return $ac_func ();
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (ac_try="$ac_link"
12756 case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12761 $as_echo "$ac_try_echo") >&5
12762 (eval "$ac_link") 2>conftest.er1
12764 grep -v '^ *+' conftest.er1 >conftest.err
12766 cat conftest.err >&5
12767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && {
12769 test -z "$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 } && test -s conftest$ac_exeext && {
12772 test "$cross_compiling" = yes ||
12773 $as_test_x conftest$ac_exeext
12775 eval "$as_ac_var=yes"
12777 $as_echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 eval "$as_ac_var=no"
12783 rm -rf conftest.dSYM
12784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785 conftest$ac_exeext conftest.$ac_ext
12787 ac_res=`eval 'as_val=${'$as_ac_var'}
12788 $as_echo "$as_val"'`
12789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12790 $as_echo "$ac_res" >&6; }
12791 as_val=`eval 'as_val=${'$as_ac_var'}
12792 $as_echo "$as_val"'`
12793 if test "x$as_val" = x""yes; then
12794 cat >>confdefs.h <<_ACEOF
12795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12802 # for constant arguments. Useless!
12803 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12804 $as_echo_n "checking for working alloca.h... " >&6; }
12805 if test "${ac_cv_working_alloca_h+set}" = set; then
12806 $as_echo_n "(cached) " >&6
12808 cat >conftest.$ac_ext <<_ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 #include <alloca.h>
12818 char *p = (char *) alloca (2 * sizeof (int));
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (ac_try="$ac_link"
12826 case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12831 $as_echo "$ac_try_echo") >&5
12832 (eval "$ac_link") 2>conftest.er1
12834 grep -v '^ *+' conftest.er1 >conftest.err
12836 cat conftest.err >&5
12837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } && {
12839 test -z "$ac_c_werror_flag" ||
12840 test ! -s conftest.err
12841 } && test -s conftest$ac_exeext && {
12842 test "$cross_compiling" = yes ||
12843 $as_test_x conftest$ac_exeext
12845 ac_cv_working_alloca_h=yes
12847 $as_echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12850 ac_cv_working_alloca_h=no
12853 rm -rf conftest.dSYM
12854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12855 conftest$ac_exeext conftest.$ac_ext
12857 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12858 $as_echo "$ac_cv_working_alloca_h" >&6; }
12859 if test $ac_cv_working_alloca_h = yes; then
12861 cat >>confdefs.h <<\_ACEOF
12862 #define HAVE_ALLOCA_H 1
12867 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12868 $as_echo_n "checking for alloca... " >&6; }
12869 if test "${ac_cv_func_alloca_works+set}" = set; then
12870 $as_echo_n "(cached) " >&6
12872 cat >conftest.$ac_ext <<_ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12879 # define alloca __builtin_alloca
12882 # include <malloc.h>
12883 # define alloca _alloca
12885 # ifdef HAVE_ALLOCA_H
12886 # include <alloca.h>
12891 # ifndef alloca /* predefined by HP cc +Olibcalls */
12902 char *p = (char *) alloca (1);
12908 rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (ac_try="$ac_link"
12910 case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12915 $as_echo "$ac_try_echo") >&5
12916 (eval "$ac_link") 2>conftest.er1
12918 grep -v '^ *+' conftest.er1 >conftest.err
12920 cat conftest.err >&5
12921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } && {
12923 test -z "$ac_c_werror_flag" ||
12924 test ! -s conftest.err
12925 } && test -s conftest$ac_exeext && {
12926 test "$cross_compiling" = yes ||
12927 $as_test_x conftest$ac_exeext
12929 ac_cv_func_alloca_works=yes
12931 $as_echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_cv_func_alloca_works=no
12937 rm -rf conftest.dSYM
12938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12939 conftest$ac_exeext conftest.$ac_ext
12941 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12942 $as_echo "$ac_cv_func_alloca_works" >&6; }
12944 if test $ac_cv_func_alloca_works = yes; then
12946 cat >>confdefs.h <<\_ACEOF
12947 #define HAVE_ALLOCA 1
12951 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12952 # that cause trouble. Some versions do not even contain alloca or
12953 # contain a buggy version. If you still want to use their alloca,
12954 # use ar to extract alloca.o from them instead of compiling alloca.c.
12956 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12958 cat >>confdefs.h <<\_ACEOF
12963 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12964 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12965 if test "${ac_cv_os_cray+set}" = set; then
12966 $as_echo_n "(cached) " >&6
12968 cat >conftest.$ac_ext <<_ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12974 #if defined CRAY && ! defined CRAY2
12981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12982 $EGREP "webecray" >/dev/null 2>&1; then
12990 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12991 $as_echo "$ac_cv_os_cray" >&6; }
12992 if test $ac_cv_os_cray = yes; then
12993 for ac_func in _getb67 GETB67 getb67; do
12994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12995 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12996 $as_echo_n "checking for $ac_func... " >&6; }
12997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12998 $as_echo_n "(cached) " >&6
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13008 #define $ac_func innocuous_$ac_func
13010 /* System header to define __stub macros and hopefully few prototypes,
13011 which can conflict with char $ac_func (); below.
13012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13013 <limits.h> exists even on freestanding compilers. */
13016 # include <limits.h>
13018 # include <assert.h>
13023 /* Override any GCC internal prototype to avoid an error.
13024 Use char because int might match the return type of a GCC
13025 builtin and then its argument prototype would still apply. */
13030 /* The GNU C library defines this for functions which it implements
13031 to always fail with ENOSYS. Some functions are actually named
13032 something starting with __ and the normal name is an alias. */
13033 #if defined __stub_$ac_func || defined __stub___$ac_func
13040 return $ac_func ();
13045 rm -f conftest.$ac_objext conftest$ac_exeext
13046 if { (ac_try="$ac_link"
13047 case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13052 $as_echo "$ac_try_echo") >&5
13053 (eval "$ac_link") 2>conftest.er1
13055 grep -v '^ *+' conftest.er1 >conftest.err
13057 cat conftest.err >&5
13058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } && {
13060 test -z "$ac_c_werror_flag" ||
13061 test ! -s conftest.err
13062 } && test -s conftest$ac_exeext && {
13063 test "$cross_compiling" = yes ||
13064 $as_test_x conftest$ac_exeext
13066 eval "$as_ac_var=yes"
13068 $as_echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 eval "$as_ac_var=no"
13074 rm -rf conftest.dSYM
13075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13076 conftest$ac_exeext conftest.$ac_ext
13078 ac_res=`eval 'as_val=${'$as_ac_var'}
13079 $as_echo "$as_val"'`
13080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13081 $as_echo "$ac_res" >&6; }
13082 as_val=`eval 'as_val=${'$as_ac_var'}
13083 $as_echo "$as_val"'`
13084 if test "x$as_val" = x""yes; then
13086 cat >>confdefs.h <<_ACEOF
13087 #define CRAY_STACKSEG_END $ac_func
13096 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13097 $as_echo_n "checking stack direction for C alloca... " >&6; }
13098 if test "${ac_cv_c_stack_direction+set}" = set; then
13099 $as_echo_n "(cached) " >&6
13101 if test "$cross_compiling" = yes; then
13102 ac_cv_c_stack_direction=0
13104 cat >conftest.$ac_ext <<_ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 $ac_includes_default
13112 find_stack_direction ()
13114 static char *addr = 0;
13119 return find_stack_direction ();
13122 return (&dummy > addr) ? 1 : -1;
13128 return find_stack_direction () < 0;
13131 rm -f conftest$ac_exeext
13132 if { (ac_try="$ac_link"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13138 $as_echo "$ac_try_echo") >&5
13139 (eval "$ac_link") 2>&5
13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13148 $as_echo "$ac_try_echo") >&5
13149 (eval "$ac_try") 2>&5
13151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_cv_c_stack_direction=1
13155 $as_echo "$as_me: program exited with status $ac_status" >&5
13156 $as_echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ( exit $ac_status )
13160 ac_cv_c_stack_direction=-1
13162 rm -rf conftest.dSYM
13163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13168 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13169 $as_echo "$ac_cv_c_stack_direction" >&6; }
13171 cat >>confdefs.h <<_ACEOF
13172 #define STACK_DIRECTION $ac_cv_c_stack_direction
13179 # The cast to long int works around a bug in the HP C Compiler
13180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13182 # This bug is HP SR number 8606223364.
13183 { $as_echo "$as_me:$LINENO: checking size of double" >&5
13184 $as_echo_n "checking size of double... " >&6; }
13185 if test "${ac_cv_sizeof_double+set}" = set; then
13186 $as_echo_n "(cached) " >&6
13188 if test "$cross_compiling" = yes; then
13189 # Depending upon the size, compute the lo and hi bounds.
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 $ac_includes_default
13200 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13207 rm -f conftest.$ac_objext
13208 if { (ac_try="$ac_compile"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13214 $as_echo "$ac_try_echo") >&5
13215 (eval "$ac_compile") 2>conftest.er1
13217 grep -v '^ *+' conftest.er1 >conftest.err
13219 cat conftest.err >&5
13220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } && {
13222 test -z "$ac_c_werror_flag" ||
13223 test ! -s conftest.err
13224 } && test -s conftest.$ac_objext; then
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 $ac_includes_default
13237 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13244 rm -f conftest.$ac_objext
13245 if { (ac_try="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13251 $as_echo "$ac_try_echo") >&5
13252 (eval "$ac_compile") 2>conftest.er1
13254 grep -v '^ *+' conftest.er1 >conftest.err
13256 cat conftest.err >&5
13257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } && {
13259 test -z "$ac_c_werror_flag" ||
13260 test ! -s conftest.err
13261 } && test -s conftest.$ac_objext; then
13262 ac_hi=$ac_mid; break
13264 $as_echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_lo=`expr $ac_mid + 1`
13268 if test $ac_lo -le $ac_mid; then
13272 ac_mid=`expr 2 '*' $ac_mid + 1`
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 $as_echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 $ac_includes_default
13291 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306 (eval "$ac_compile") 2>conftest.er1
13308 grep -v '^ *+' conftest.er1 >conftest.err
13310 cat conftest.err >&5
13311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && {
13313 test -z "$ac_c_werror_flag" ||
13314 test ! -s conftest.err
13315 } && test -s conftest.$ac_objext; then
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 $ac_includes_default
13328 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13335 rm -f conftest.$ac_objext
13336 if { (ac_try="$ac_compile"
13337 case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13342 $as_echo "$ac_try_echo") >&5
13343 (eval "$ac_compile") 2>conftest.er1
13345 grep -v '^ *+' conftest.er1 >conftest.err
13347 cat conftest.err >&5
13348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } && {
13350 test -z "$ac_c_werror_flag" ||
13351 test ! -s conftest.err
13352 } && test -s conftest.$ac_objext; then
13353 ac_lo=$ac_mid; break
13355 $as_echo "$as_me: failed program was:" >&5
13356 sed 's/^/| /' conftest.$ac_ext >&5
13358 ac_hi=`expr '(' $ac_mid ')' - 1`
13359 if test $ac_mid -le $ac_hi; then
13363 ac_mid=`expr 2 '*' $ac_mid`
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 $as_echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 # Binary search between lo and hi bounds.
13380 while test "x$ac_lo" != "x$ac_hi"; do
13381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 $ac_includes_default
13392 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13399 rm -f conftest.$ac_objext
13400 if { (ac_try="$ac_compile"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13406 $as_echo "$ac_try_echo") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13409 grep -v '^ *+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && {
13414 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest.$ac_objext; then
13419 $as_echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13422 ac_lo=`expr '(' $ac_mid ')' + 1`
13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13428 ?*) ac_cv_sizeof_double=$ac_lo;;
13429 '') if test "$ac_cv_type_double" = yes; then
13430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13432 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13433 See \`config.log' for more details." >&5
13434 $as_echo "$as_me: error: cannot compute sizeof (double)
13435 See \`config.log' for more details." >&2;}
13436 { (exit 77); exit 77; }; }; }
13438 ac_cv_sizeof_double=0
13442 cat >conftest.$ac_ext <<_ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 $ac_includes_default
13449 static long int longval () { return (long int) (sizeof (double)); }
13450 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13452 #include <stdlib.h>
13457 FILE *f = fopen ("conftest.val", "w");
13460 if (((long int) (sizeof (double))) < 0)
13462 long int i = longval ();
13463 if (i != ((long int) (sizeof (double))))
13465 fprintf (f, "%ld", i);
13469 unsigned long int i = ulongval ();
13470 if (i != ((long int) (sizeof (double))))
13472 fprintf (f, "%lu", i);
13474 /* Do not output a trailing newline, as this causes \r\n confusion
13475 on some platforms. */
13476 return ferror (f) || fclose (f) != 0;
13482 rm -f conftest$ac_exeext
13483 if { (ac_try="$ac_link"
13484 case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13489 $as_echo "$ac_try_echo") >&5
13490 (eval "$ac_link") 2>&5
13492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13494 { (case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13499 $as_echo "$ac_try_echo") >&5
13500 (eval "$ac_try") 2>&5
13502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13504 ac_cv_sizeof_double=`cat conftest.val`
13506 $as_echo "$as_me: program exited with status $ac_status" >&5
13507 $as_echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13510 ( exit $ac_status )
13511 if test "$ac_cv_type_double" = yes; then
13512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13514 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13515 See \`config.log' for more details." >&5
13516 $as_echo "$as_me: error: cannot compute sizeof (double)
13517 See \`config.log' for more details." >&2;}
13518 { (exit 77); exit 77; }; }; }
13520 ac_cv_sizeof_double=0
13523 rm -rf conftest.dSYM
13524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13528 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
13529 $as_echo "$ac_cv_sizeof_double" >&6; }
13533 cat >>confdefs.h <<_ACEOF
13534 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13538 # The cast to long int works around a bug in the HP C Compiler
13539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13541 # This bug is HP SR number 8606223364.
13542 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
13543 $as_echo_n "checking size of long double... " >&6; }
13544 if test "${ac_cv_sizeof_long_double+set}" = set; then
13545 $as_echo_n "(cached) " >&6
13547 if test "$cross_compiling" = yes; then
13548 # Depending upon the size, compute the lo and hi bounds.
13549 cat >conftest.$ac_ext <<_ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 $ac_includes_default
13559 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
13566 rm -f conftest.$ac_objext
13567 if { (ac_try="$ac_compile"
13568 case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13573 $as_echo "$ac_try_echo") >&5
13574 (eval "$ac_compile") 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
13578 cat conftest.err >&5
13579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && {
13581 test -z "$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 } && test -s conftest.$ac_objext; then
13586 cat >conftest.$ac_ext <<_ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 $ac_includes_default
13596 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13603 rm -f conftest.$ac_objext
13604 if { (ac_try="$ac_compile"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13610 $as_echo "$ac_try_echo") >&5
13611 (eval "$ac_compile") 2>conftest.er1
13613 grep -v '^ *+' conftest.er1 >conftest.err
13615 cat conftest.err >&5
13616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && {
13618 test -z "$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest.$ac_objext; then
13621 ac_hi=$ac_mid; break
13623 $as_echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13626 ac_lo=`expr $ac_mid + 1`
13627 if test $ac_lo -le $ac_mid; then
13631 ac_mid=`expr 2 '*' $ac_mid + 1`
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 $as_echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 $ac_includes_default
13650 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
13657 rm -f conftest.$ac_objext
13658 if { (ac_try="$ac_compile"
13659 case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13664 $as_echo "$ac_try_echo") >&5
13665 (eval "$ac_compile") 2>conftest.er1
13667 grep -v '^ *+' conftest.er1 >conftest.err
13669 cat conftest.err >&5
13670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } && {
13672 test -z "$ac_c_werror_flag" ||
13673 test ! -s conftest.err
13674 } && test -s conftest.$ac_objext; then
13677 cat >conftest.$ac_ext <<_ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 $ac_includes_default
13687 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
13694 rm -f conftest.$ac_objext
13695 if { (ac_try="$ac_compile"
13696 case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13701 $as_echo "$ac_try_echo") >&5
13702 (eval "$ac_compile") 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && {
13709 test -z "$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13711 } && test -s conftest.$ac_objext; then
13712 ac_lo=$ac_mid; break
13714 $as_echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13717 ac_hi=`expr '(' $ac_mid ')' - 1`
13718 if test $ac_mid -le $ac_hi; then
13722 ac_mid=`expr 2 '*' $ac_mid`
13725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 $as_echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13738 # Binary search between lo and hi bounds.
13739 while test "x$ac_lo" != "x$ac_hi"; do
13740 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13741 cat >conftest.$ac_ext <<_ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 $ac_includes_default
13751 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13758 rm -f conftest.$ac_objext
13759 if { (ac_try="$ac_compile"
13760 case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13765 $as_echo "$ac_try_echo") >&5
13766 (eval "$ac_compile") 2>conftest.er1
13768 grep -v '^ *+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && {
13773 test -z "$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13775 } && test -s conftest.$ac_objext; then
13778 $as_echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13781 ac_lo=`expr '(' $ac_mid ')' + 1`
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 ?*) ac_cv_sizeof_long_double=$ac_lo;;
13788 '') if test "$ac_cv_type_long_double" = yes; then
13789 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13791 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13792 See \`config.log' for more details." >&5
13793 $as_echo "$as_me: error: cannot compute sizeof (long double)
13794 See \`config.log' for more details." >&2;}
13795 { (exit 77); exit 77; }; }; }
13797 ac_cv_sizeof_long_double=0
13801 cat >conftest.$ac_ext <<_ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 $ac_includes_default
13808 static long int longval () { return (long int) (sizeof (long double)); }
13809 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
13811 #include <stdlib.h>
13816 FILE *f = fopen ("conftest.val", "w");
13819 if (((long int) (sizeof (long double))) < 0)
13821 long int i = longval ();
13822 if (i != ((long int) (sizeof (long double))))
13824 fprintf (f, "%ld", i);
13828 unsigned long int i = ulongval ();
13829 if (i != ((long int) (sizeof (long double))))
13831 fprintf (f, "%lu", i);
13833 /* Do not output a trailing newline, as this causes \r\n confusion
13834 on some platforms. */
13835 return ferror (f) || fclose (f) != 0;
13841 rm -f conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13848 $as_echo "$ac_try_echo") >&5
13849 (eval "$ac_link") 2>&5
13851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13858 $as_echo "$ac_try_echo") >&5
13859 (eval "$ac_try") 2>&5
13861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_sizeof_long_double=`cat conftest.val`
13865 $as_echo "$as_me: program exited with status $ac_status" >&5
13866 $as_echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13869 ( exit $ac_status )
13870 if test "$ac_cv_type_long_double" = yes; then
13871 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13873 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13874 See \`config.log' for more details." >&5
13875 $as_echo "$as_me: error: cannot compute sizeof (long double)
13876 See \`config.log' for more details." >&2;}
13877 { (exit 77); exit 77; }; }; }
13879 ac_cv_sizeof_long_double=0
13882 rm -rf conftest.dSYM
13883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13887 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
13888 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13892 cat >>confdefs.h <<_ACEOF
13893 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13898 # Also AC_SUBST this variable for ffi.h.
13899 if test -z "$HAVE_LONG_DOUBLE"; then
13901 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13902 if test $ac_cv_sizeof_long_double != 0; then
13905 cat >>confdefs.h <<\_ACEOF
13906 #define HAVE_LONG_DOUBLE 1
13915 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13916 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13917 if test "${ac_cv_c_bigendian+set}" = set; then
13918 $as_echo_n "(cached) " >&6
13920 ac_cv_c_bigendian=unknown
13921 # See if we're dealing with a universal compiler.
13922 cat >conftest.$ac_ext <<_ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 #ifndef __APPLE_CC__
13929 not a universal capable compiler
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13941 $as_echo "$ac_try_echo") >&5
13942 (eval "$ac_compile") 2>conftest.er1
13944 grep -v '^ *+' conftest.er1 >conftest.err
13946 cat conftest.err >&5
13947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && {
13949 test -z "$ac_c_werror_flag" ||
13950 test ! -s conftest.err
13951 } && test -s conftest.$ac_objext; then
13953 # Check for potential -arch flags. It is not universal unless
13954 # there are some -arch flags. Note that *ppc* also matches
13955 # ppc64. This check is also rather less than ideal.
13956 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13957 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13960 $as_echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13967 if test $ac_cv_c_bigendian = unknown; then
13968 # See if sys/param.h defines the BYTE_ORDER macro.
13969 cat >conftest.$ac_ext <<_ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 #include <sys/types.h>
13976 #include <sys/param.h>
13981 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13982 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13984 bogus endian macros
13991 rm -f conftest.$ac_objext
13992 if { (ac_try="$ac_compile"
13993 case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13998 $as_echo "$ac_try_echo") >&5
13999 (eval "$ac_compile") 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } && {
14006 test -z "$ac_c_werror_flag" ||
14007 test ! -s conftest.err
14008 } && test -s conftest.$ac_objext; then
14009 # It does; now see whether it defined to BIG_ENDIAN or not.
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 #include <sys/types.h>
14017 #include <sys/param.h>
14022 #if BYTE_ORDER != BIG_ENDIAN
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14037 $as_echo "$ac_try_echo") >&5
14038 (eval "$ac_compile") 2>conftest.er1
14040 grep -v '^ *+' conftest.er1 >conftest.err
14042 cat conftest.err >&5
14043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } && {
14045 test -z "$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14047 } && test -s conftest.$ac_objext; then
14048 ac_cv_c_bigendian=yes
14050 $as_echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14053 ac_cv_c_bigendian=no
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 $as_echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 if test $ac_cv_c_bigendian = unknown; then
14067 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 #include <limits.h>
14079 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14080 bogus endian macros
14087 rm -f conftest.$ac_objext
14088 if { (ac_try="$ac_compile"
14089 case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14094 $as_echo "$ac_try_echo") >&5
14095 (eval "$ac_compile") 2>conftest.er1
14097 grep -v '^ *+' conftest.er1 >conftest.err
14099 cat conftest.err >&5
14100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && {
14102 test -z "$ac_c_werror_flag" ||
14103 test ! -s conftest.err
14104 } && test -s conftest.$ac_objext; then
14105 # It does; now see whether it defined to _BIG_ENDIAN or not.
14106 cat >conftest.$ac_ext <<_ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14112 #include <limits.h>
14117 #ifndef _BIG_ENDIAN
14125 rm -f conftest.$ac_objext
14126 if { (ac_try="$ac_compile"
14127 case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14132 $as_echo "$ac_try_echo") >&5
14133 (eval "$ac_compile") 2>conftest.er1
14135 grep -v '^ *+' conftest.er1 >conftest.err
14137 cat conftest.err >&5
14138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && {
14140 test -z "$ac_c_werror_flag" ||
14141 test ! -s conftest.err
14142 } && test -s conftest.$ac_objext; then
14143 ac_cv_c_bigendian=yes
14145 $as_echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14148 ac_cv_c_bigendian=no
14151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153 $as_echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161 if test $ac_cv_c_bigendian = unknown; then
14162 # Compile a test program.
14163 if test "$cross_compiling" = yes; then
14164 # Try to guess by grepping values from an object file.
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 short int ascii_mm[] =
14172 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14173 short int ascii_ii[] =
14174 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14175 int use_ascii (int i) {
14176 return ascii_mm[i] + ascii_ii[i];
14178 short int ebcdic_ii[] =
14179 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14180 short int ebcdic_mm[] =
14181 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14182 int use_ebcdic (int i) {
14183 return ebcdic_mm[i] + ebcdic_ii[i];
14190 return use_ascii (foo) == use_ebcdic (foo);
14195 rm -f conftest.$ac_objext
14196 if { (ac_try="$ac_compile"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14202 $as_echo "$ac_try_echo") >&5
14203 (eval "$ac_compile") 2>conftest.er1
14205 grep -v '^ *+' conftest.er1 >conftest.err
14207 cat conftest.err >&5
14208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } && {
14210 test -z "$ac_c_werror_flag" ||
14211 test ! -s conftest.err
14212 } && test -s conftest.$ac_objext; then
14213 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14214 ac_cv_c_bigendian=yes
14216 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14217 if test "$ac_cv_c_bigendian" = unknown; then
14218 ac_cv_c_bigendian=no
14220 # finding both strings is unlikely to happen, but who knows?
14221 ac_cv_c_bigendian=unknown
14225 $as_echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14244 /* Are we little or big endian? From Harbison&Steele. */
14248 char c[sizeof (long int)];
14251 return u.c[sizeof (long int) - 1] == 1;
14257 rm -f conftest$ac_exeext
14258 if { (ac_try="$ac_link"
14259 case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14264 $as_echo "$ac_try_echo") >&5
14265 (eval "$ac_link") 2>&5
14267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14269 { (case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14274 $as_echo "$ac_try_echo") >&5
14275 (eval "$ac_try") 2>&5
14277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_c_bigendian=no
14281 $as_echo "$as_me: program exited with status $ac_status" >&5
14282 $as_echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ( exit $ac_status )
14286 ac_cv_c_bigendian=yes
14288 rm -rf conftest.dSYM
14289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14295 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14296 $as_echo "$ac_cv_c_bigendian" >&6; }
14297 case $ac_cv_c_bigendian in #(
14299 cat >>confdefs.h <<\_ACEOF
14300 #define WORDS_BIGENDIAN 1
14307 cat >>confdefs.h <<\_ACEOF
14308 #define AC_APPLE_UNIVERSAL_BUILD 1
14313 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14314 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14315 $as_echo "$as_me: error: unknown endianness
14316 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14317 { (exit 1); exit 1; }; } ;;
14321 { $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14322 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14323 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14324 $as_echo_n "(cached) " >&6
14327 libffi_cv_as_cfi_pseudo_op=unknown
14328 cat >conftest.$ac_ext <<_ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14334 asm (".cfi_startproc\n\t.cfi_endproc");
14343 rm -f conftest.$ac_objext
14344 if { (ac_try="$ac_compile"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14350 $as_echo "$ac_try_echo") >&5
14351 (eval "$ac_compile") 2>conftest.er1
14353 grep -v '^ *+' conftest.er1 >conftest.err
14355 cat conftest.err >&5
14356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } && {
14358 test -z "$ac_c_werror_flag" ||
14359 test ! -s conftest.err
14360 } && test -s conftest.$ac_objext; then
14361 libffi_cv_as_cfi_pseudo_op=yes
14363 $as_echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14366 libffi_cv_as_cfi_pseudo_op=no
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14373 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14374 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14376 cat >>confdefs.h <<\_ACEOF
14377 #define HAVE_AS_CFI_PSEUDO_OP 1
14382 if test x$TARGET = xSPARC; then
14383 { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14384 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14385 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14386 $as_echo_n "(cached) " >&6
14389 save_CFLAGS="$CFLAGS"
14390 save_LDFLAGS="$LDFLAGS"
14391 CFLAGS="$CFLAGS -fpic"
14392 LDFLAGS="$LDFLAGS -shared"
14393 cat >conftest.$ac_ext <<_ACEOF
14396 cat confdefs.h >>conftest.$ac_ext
14397 cat >>conftest.$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14408 rm -f conftest.$ac_objext conftest$ac_exeext
14409 if { (ac_try="$ac_link"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14415 $as_echo "$ac_try_echo") >&5
14416 (eval "$ac_link") 2>conftest.er1
14418 grep -v '^ *+' conftest.er1 >conftest.err
14420 cat conftest.err >&5
14421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && {
14423 test -z "$ac_c_werror_flag" ||
14424 test ! -s conftest.err
14425 } && test -s conftest$ac_exeext && {
14426 test "$cross_compiling" = yes ||
14427 $as_test_x conftest$ac_exeext
14429 libffi_cv_as_sparc_ua_pcrel=yes
14431 $as_echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 libffi_cv_as_sparc_ua_pcrel=no
14437 rm -rf conftest.dSYM
14438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14439 conftest$ac_exeext conftest.$ac_ext
14440 CFLAGS="$save_CFLAGS"
14441 LDFLAGS="$save_LDFLAGS"
14443 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14444 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14445 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14447 cat >>confdefs.h <<\_ACEOF
14448 #define HAVE_AS_SPARC_UA_PCREL 1
14453 { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14454 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14455 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14456 $as_echo_n "(cached) " >&6
14459 libffi_cv_as_register_pseudo_op=unknown
14460 # Check if we have .register
14461 cat >conftest.$ac_ext <<_ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 asm (".register %g2, #scratch");
14476 rm -f conftest.$ac_objext
14477 if { (ac_try="$ac_compile"
14478 case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14483 $as_echo "$ac_try_echo") >&5
14484 (eval "$ac_compile") 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } && {
14491 test -z "$ac_c_werror_flag" ||
14492 test ! -s conftest.err
14493 } && test -s conftest.$ac_objext; then
14494 libffi_cv_as_register_pseudo_op=yes
14496 $as_echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 libffi_cv_as_register_pseudo_op=no
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
14506 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14507 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14509 cat >>confdefs.h <<\_ACEOF
14510 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14516 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14517 { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
14518 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14519 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
14520 $as_echo_n "(cached) " >&6
14523 libffi_cv_as_x86_pcrel=no
14524 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14525 if $CC $CFLAGS -c conftest.s > /dev/null; then
14526 libffi_cv_as_x86_pcrel=yes
14530 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
14531 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14532 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14534 cat >>confdefs.h <<\_ACEOF
14535 #define HAVE_AS_X86_PCREL 1
14540 { $as_echo "$as_me:$LINENO: checking assembler .ascii pseudo-op support" >&5
14541 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14542 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then
14543 $as_echo_n "(cached) " >&6
14546 libffi_cv_as_ascii_pseudo_op=unknown
14547 # Check if we have .ascii
14548 cat >conftest.$ac_ext <<_ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 asm (".ascii \\"string\\"");
14563 rm -f conftest.$ac_objext
14564 if { (ac_try="$ac_compile"
14565 case "(($ac_try" in
14566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14570 $as_echo "$ac_try_echo") >&5
14571 (eval "$ac_compile") 2>conftest.er1
14573 grep -v '^ *+' conftest.er1 >conftest.err
14575 cat conftest.err >&5
14576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest.$ac_objext; then
14581 libffi_cv_as_ascii_pseudo_op=yes
14583 $as_echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 libffi_cv_as_ascii_pseudo_op=no
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_ascii_pseudo_op" >&5
14593 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14594 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_AS_ASCII_PSEUDO_OP 1
14602 { $as_echo "$as_me:$LINENO: checking assembler .string pseudo-op support" >&5
14603 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14604 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then
14605 $as_echo_n "(cached) " >&6
14608 libffi_cv_as_string_pseudo_op=unknown
14609 # Check if we have .string
14610 cat >conftest.$ac_ext <<_ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 asm (".string \\"string\\"");
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14632 $as_echo "$ac_try_echo") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest.$ac_objext; then
14643 libffi_cv_as_string_pseudo_op=yes
14645 $as_echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 libffi_cv_as_string_pseudo_op=no
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_string_pseudo_op" >&5
14655 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14656 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14658 cat >>confdefs.h <<\_ACEOF
14659 #define HAVE_AS_STRING_PSEUDO_OP 1
14665 if test x$TARGET = xX86_WIN64; then
14666 { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
14667 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14668 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
14669 $as_echo_n "(cached) " >&6
14671 lt_cv_sys_symbol_underscore=no
14672 cat > conftest.$ac_ext <<_LT_EOF
14673 void nm_test_func(){}
14674 int main(){nm_test_func;return 0;}
14676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14677 (eval $ac_compile) 2>&5
14679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; then
14681 # Now try to grab the symbols.
14682 ac_nlist=conftest.nm
14683 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
14684 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } && test -s "$ac_nlist"; then
14688 # See whether the symbols have a leading underscore.
14689 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14690 lt_cv_sys_symbol_underscore=yes
14692 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14695 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14699 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14702 echo "configure: failed program was:" >&5
14708 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
14709 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14710 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14713 if test "x$sys_symbol_underscore" = xyes; then
14715 cat >>confdefs.h <<\_ACEOF
14716 #define SYMBOL_UNDERSCORE 1
14723 FFI_EXEC_TRAMPOLINE_TABLE=0
14725 *arm*-apple-darwin*)
14726 FFI_EXEC_TRAMPOLINE_TABLE=1
14728 cat >>confdefs.h <<\_ACEOF
14729 #define FFI_EXEC_TRAMPOLINE_TABLE 1
14733 *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14735 cat >>confdefs.h <<\_ACEOF
14736 #define FFI_MMAP_EXEC_WRIT 1
14741 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14742 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14743 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14745 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14746 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14751 if test x$TARGET = xX86_64; then
14752 { $as_echo "$as_me:$LINENO: checking assembler supports unwind section type" >&5
14753 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14754 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then
14755 $as_echo_n "(cached) " >&6
14758 libffi_cv_as_x86_64_unwind_section_type=yes
14759 echo '.section .eh_frame,"a",@unwind' > conftest.s
14760 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14761 libffi_cv_as_x86_64_unwind_section_type=no
14765 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14766 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14767 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14769 cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1
14776 { $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
14777 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14778 if test "${libffi_cv_ro_eh_frame+set}" = set; then
14779 $as_echo_n "(cached) " >&6
14782 libffi_cv_ro_eh_frame=no
14783 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14784 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14785 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14786 libffi_cv_ro_eh_frame=yes
14787 elif grep '.section.*eh_frame.*#alloc' conftest.c \
14788 | grep -v '#write' > /dev/null; then
14789 libffi_cv_ro_eh_frame=yes
14795 { $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
14796 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14797 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_RO_EH_FRAME 1
14804 cat >>confdefs.h <<\_ACEOF
14805 #define EH_FRAME_FLAGS "a"
14810 cat >>confdefs.h <<\_ACEOF
14811 #define EH_FRAME_FLAGS "aw"
14816 { $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
14817 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14818 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
14819 $as_echo_n "(cached) " >&6
14822 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
14823 libffi_cv_hidden_visibility_attribute=no
14824 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }; then
14830 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14831 libffi_cv_hidden_visibility_attribute=yes
14837 { $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
14838 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14839 if test $libffi_cv_hidden_visibility_attribute = yes; then
14841 cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
14855 # Check whether --enable-debug was given.
14856 if test "${enable_debug+set}" = set; then
14857 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14859 cat >>confdefs.h <<\_ACEOF
14860 #define FFI_DEBUG 1
14866 if test "$enable_debug" = "yes"; then
14868 FFI_DEBUG_FALSE='#'
14875 # Check whether --enable-structs was given.
14876 if test "${enable_structs+set}" = set; then
14877 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14879 cat >>confdefs.h <<\_ACEOF
14880 #define FFI_NO_STRUCTS 1
14887 # Check whether --enable-raw-api was given.
14888 if test "${enable_raw_api+set}" = set; then
14889 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14891 cat >>confdefs.h <<\_ACEOF
14892 #define FFI_NO_RAW_API 1
14899 # Check whether --enable-purify-safety was given.
14900 if test "${enable_purify_safety+set}" = set; then
14901 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14903 cat >>confdefs.h <<\_ACEOF
14904 #define USING_PURIFY 1
14911 if test -n "$with_cross_host" &&
14912 test x"$with_cross_host" != x"no"; then
14913 toolexecdir='$(exec_prefix)/$(target_alias)'
14914 toolexeclibdir='$(toolexecdir)/lib'
14916 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14917 toolexeclibdir='$(libdir)'
14919 multi_os_directory=`$CC -print-multi-os-directory`
14920 case $multi_os_directory in
14921 .) ;; # Avoid trailing /.
14922 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14927 if test "${multilib}" = "yes"; then
14928 multilib_arg="--enable-multilib"
14933 ac_config_commands="$ac_config_commands include"
14935 ac_config_commands="$ac_config_commands src"
14938 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14941 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14944 cat >confcache <<\_ACEOF
14945 # This file is a shell script that caches the results of configure
14946 # tests run on this system so they can be shared between configure
14947 # scripts and configure runs, see configure's option --config-cache.
14948 # It is not useful on other systems. If it contains results you don't
14949 # want to keep, you may remove or edit it.
14951 # config.status only pays attention to the cache file if you give it
14952 # the --recheck option to rerun configure.
14954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14956 # following values.
14960 # The following way of writing the cache mishandles newlines in values,
14961 # but we know of no workaround that is simple, portable, and efficient.
14962 # So, we kill variables containing newlines.
14963 # Ultrix sh set writes to stderr and can't be redirected directly,
14964 # and sets the high bit in the cache file unless we assign to the vars.
14966 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14967 eval ac_val=\$$ac_var
14971 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14975 _ | IFS | as_nl) ;; #(
14976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14977 *) $as_unset $ac_var ;;
14983 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14984 *${as_nl}ac_space=\ *)
14985 # `set' does not quote correctly, so add quotes (double-quote
14986 # substitution turns \\\\ into \\, and sed turns \\ into \).
14989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14992 # `set' quotes correctly as required by POSIX, so do not add quotes.
14993 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15002 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15004 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15006 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15007 if test -w "$cache_file"; then
15008 test "x$cache_file" != "x/dev/null" &&
15009 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15010 $as_echo "$as_me: updating cache $cache_file" >&6;}
15011 cat confcache >$cache_file
15013 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15014 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15020 # Let make expand exec_prefix.
15021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15023 DEFS=-DHAVE_CONFIG_H
15027 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15028 # 1. Remove the extension, and $U if already installed.
15029 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15030 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15031 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15032 # will be set to the directory where LIBOBJS objects are built.
15033 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15034 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15036 LIBOBJS=$ac_libobjs
15038 LTLIBOBJS=$ac_ltlibobjs
15041 if test -n "$EXEEXT"; then
15043 am__EXEEXT_FALSE='#'
15045 am__EXEEXT_TRUE='#'
15049 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15050 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15051 Usually this means the macro was only invoked conditionally." >&5
15052 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
15053 Usually this means the macro was only invoked conditionally." >&2;}
15054 { (exit 1); exit 1; }; }
15056 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15057 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15058 Usually this means the macro was only invoked conditionally." >&5
15059 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15060 Usually this means the macro was only invoked conditionally." >&2;}
15061 { (exit 1); exit 1; }; }
15063 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15064 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
15065 Usually this means the macro was only invoked conditionally." >&5
15066 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
15067 Usually this means the macro was only invoked conditionally." >&2;}
15068 { (exit 1); exit 1; }; }
15070 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15071 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15072 Usually this means the macro was only invoked conditionally." >&5
15073 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15074 Usually this means the macro was only invoked conditionally." >&2;}
15075 { (exit 1); exit 1; }; }
15077 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15078 { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15079 Usually this means the macro was only invoked conditionally." >&5
15080 $as_echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15081 Usually this means the macro was only invoked conditionally." >&2;}
15082 { (exit 1); exit 1; }; }
15084 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15085 { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
15086 Usually this means the macro was only invoked conditionally." >&5
15087 $as_echo "$as_me: error: conditional \"MIPS\" was never defined.
15088 Usually this means the macro was only invoked conditionally." >&2;}
15089 { (exit 1); exit 1; }; }
15091 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15092 { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
15093 Usually this means the macro was only invoked conditionally." >&5
15094 $as_echo "$as_me: error: conditional \"SPARC\" was never defined.
15095 Usually this means the macro was only invoked conditionally." >&2;}
15096 { (exit 1); exit 1; }; }
15098 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15099 { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
15100 Usually this means the macro was only invoked conditionally." >&5
15101 $as_echo "$as_me: error: conditional \"X86\" was never defined.
15102 Usually this means the macro was only invoked conditionally." >&2;}
15103 { (exit 1); exit 1; }; }
15105 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15106 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
15107 Usually this means the macro was only invoked conditionally." >&5
15108 $as_echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
15109 Usually this means the macro was only invoked conditionally." >&2;}
15110 { (exit 1); exit 1; }; }
15112 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15113 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
15114 Usually this means the macro was only invoked conditionally." >&5
15115 $as_echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
15116 Usually this means the macro was only invoked conditionally." >&2;}
15117 { (exit 1); exit 1; }; }
15119 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15120 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
15121 Usually this means the macro was only invoked conditionally." >&5
15122 $as_echo "$as_me: error: conditional \"X86_WIN64\" was never defined.
15123 Usually this means the macro was only invoked conditionally." >&2;}
15124 { (exit 1); exit 1; }; }
15126 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15127 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
15128 Usually this means the macro was only invoked conditionally." >&5
15129 $as_echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
15130 Usually this means the macro was only invoked conditionally." >&2;}
15131 { (exit 1); exit 1; }; }
15133 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15134 { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
15135 Usually this means the macro was only invoked conditionally." >&5
15136 $as_echo "$as_me: error: conditional \"ALPHA\" was never defined.
15137 Usually this means the macro was only invoked conditionally." >&2;}
15138 { (exit 1); exit 1; }; }
15140 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15141 { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
15142 Usually this means the macro was only invoked conditionally." >&5
15143 $as_echo "$as_me: error: conditional \"IA64\" was never defined.
15144 Usually this means the macro was only invoked conditionally." >&2;}
15145 { (exit 1); exit 1; }; }
15147 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15148 { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
15149 Usually this means the macro was only invoked conditionally." >&5
15150 $as_echo "$as_me: error: conditional \"M32R\" was never defined.
15151 Usually this means the macro was only invoked conditionally." >&2;}
15152 { (exit 1); exit 1; }; }
15154 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15155 { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
15156 Usually this means the macro was only invoked conditionally." >&5
15157 $as_echo "$as_me: error: conditional \"M68K\" was never defined.
15158 Usually this means the macro was only invoked conditionally." >&2;}
15159 { (exit 1); exit 1; }; }
15161 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15162 { { $as_echo "$as_me:$LINENO: error: conditional \"MOXIE\" was never defined.
15163 Usually this means the macro was only invoked conditionally." >&5
15164 $as_echo "$as_me: error: conditional \"MOXIE\" was never defined.
15165 Usually this means the macro was only invoked conditionally." >&2;}
15166 { (exit 1); exit 1; }; }
15168 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15169 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
15170 Usually this means the macro was only invoked conditionally." >&5
15171 $as_echo "$as_me: error: conditional \"POWERPC\" was never defined.
15172 Usually this means the macro was only invoked conditionally." >&2;}
15173 { (exit 1); exit 1; }; }
15175 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15176 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
15177 Usually this means the macro was only invoked conditionally." >&5
15178 $as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
15179 Usually this means the macro was only invoked conditionally." >&2;}
15180 { (exit 1); exit 1; }; }
15182 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15183 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
15184 Usually this means the macro was only invoked conditionally." >&5
15185 $as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
15186 Usually this means the macro was only invoked conditionally." >&2;}
15187 { (exit 1); exit 1; }; }
15189 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15190 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
15191 Usually this means the macro was only invoked conditionally." >&5
15192 $as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
15193 Usually this means the macro was only invoked conditionally." >&2;}
15194 { (exit 1); exit 1; }; }
15196 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15197 { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
15198 Usually this means the macro was only invoked conditionally." >&5
15199 $as_echo "$as_me: error: conditional \"ARM\" was never defined.
15200 Usually this means the macro was only invoked conditionally." >&2;}
15201 { (exit 1); exit 1; }; }
15203 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15204 { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
15205 Usually this means the macro was only invoked conditionally." >&5
15206 $as_echo "$as_me: error: conditional \"AVR32\" was never defined.
15207 Usually this means the macro was only invoked conditionally." >&2;}
15208 { (exit 1); exit 1; }; }
15210 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15211 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
15212 Usually this means the macro was only invoked conditionally." >&5
15213 $as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
15214 Usually this means the macro was only invoked conditionally." >&2;}
15215 { (exit 1); exit 1; }; }
15217 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15218 { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
15219 Usually this means the macro was only invoked conditionally." >&5
15220 $as_echo "$as_me: error: conditional \"FRV\" was never defined.
15221 Usually this means the macro was only invoked conditionally." >&2;}
15222 { (exit 1); exit 1; }; }
15224 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15225 { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
15226 Usually this means the macro was only invoked conditionally." >&5
15227 $as_echo "$as_me: error: conditional \"S390\" was never defined.
15228 Usually this means the macro was only invoked conditionally." >&2;}
15229 { (exit 1); exit 1; }; }
15231 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15232 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
15233 Usually this means the macro was only invoked conditionally." >&5
15234 $as_echo "$as_me: error: conditional \"X86_64\" was never defined.
15235 Usually this means the macro was only invoked conditionally." >&2;}
15236 { (exit 1); exit 1; }; }
15238 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15239 { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
15240 Usually this means the macro was only invoked conditionally." >&5
15241 $as_echo "$as_me: error: conditional \"SH\" was never defined.
15242 Usually this means the macro was only invoked conditionally." >&2;}
15243 { (exit 1); exit 1; }; }
15245 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15246 { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
15247 Usually this means the macro was only invoked conditionally." >&5
15248 $as_echo "$as_me: error: conditional \"SH64\" was never defined.
15249 Usually this means the macro was only invoked conditionally." >&2;}
15250 { (exit 1); exit 1; }; }
15252 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15253 { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
15254 Usually this means the macro was only invoked conditionally." >&5
15255 $as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
15256 Usually this means the macro was only invoked conditionally." >&2;}
15257 { (exit 1); exit 1; }; }
15259 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15260 { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
15261 Usually this means the macro was only invoked conditionally." >&5
15262 $as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
15263 Usually this means the macro was only invoked conditionally." >&2;}
15264 { (exit 1); exit 1; }; }
15266 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15267 { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
15268 Usually this means the macro was only invoked conditionally." >&5
15269 $as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
15270 Usually this means the macro was only invoked conditionally." >&2;}
15271 { (exit 1); exit 1; }; }
15274 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15275 { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15276 Usually this means the macro was only invoked conditionally." >&5
15277 $as_echo "$as_me: error: conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15278 Usually this means the macro was only invoked conditionally." >&2;}
15279 { (exit 1); exit 1; }; }
15281 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15282 { { $as_echo "$as_me:$LINENO: error: conditional \"FFI_DEBUG\" was never defined.
15283 Usually this means the macro was only invoked conditionally." >&5
15284 $as_echo "$as_me: error: conditional \"FFI_DEBUG\" was never defined.
15285 Usually this means the macro was only invoked conditionally." >&2;}
15286 { (exit 1); exit 1; }; }
15289 : ${CONFIG_STATUS=./config.status}
15291 ac_clean_files_save=$ac_clean_files
15292 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15293 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15294 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15295 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15297 # Generated by $as_me.
15298 # Run this file to recreate the current configuration.
15299 # Compiler output produced by configure, useful for debugging
15300 # configure, is in config.log if it exists.
15303 ac_cs_recheck=false
15305 SHELL=\${CONFIG_SHELL-$SHELL}
15308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15309 ## --------------------- ##
15310 ## M4sh Initialization. ##
15311 ## --------------------- ##
15313 # Be more Bourne compatible
15314 DUALCASE=1; export DUALCASE # for MKS sh
15315 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15318 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15319 # is contrary to our usage. Disable this feature.
15320 alias -g '${1+"$@"}'='"$@"'
15321 setopt NO_GLOB_SUBST
15323 case `(set -o) 2>/dev/null` in
15324 *posix*) set -o posix ;;
15333 # Avoid depending upon Character Ranges.
15334 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15335 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15336 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15337 as_cr_digits='0123456789'
15338 as_cr_alnum=$as_cr_Letters$as_cr_digits
15343 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15344 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15345 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15346 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15347 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15348 as_echo='printf %s\n'
15349 as_echo_n='printf %s'
15351 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15352 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15353 as_echo_n='/usr/ucb/echo -n'
15355 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15356 as_echo_n_body='eval
15360 expr "X$arg" : "X\\(.*\\)$as_nl";
15361 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15363 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15365 export as_echo_n_body
15366 as_echo_n='sh -c $as_echo_n_body as_echo'
15368 export as_echo_body
15369 as_echo='sh -c $as_echo_body as_echo'
15372 # The user is always right.
15373 if test "${PATH_SEPARATOR+set}" != set; then
15375 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15376 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15381 # Support unset when possible.
15382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15390 # We need space, tab and new line, in precisely that order. Quoting is
15391 # there to prevent editors from complaining about space-tab.
15392 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15393 # splitting by setting IFS to empty value.)
15396 # Find who we are. Look in the path if we contain no directory separator.
15398 *[\\/]* ) as_myself=$0 ;;
15399 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400 for as_dir in $PATH
15403 test -z "$as_dir" && as_dir=.
15404 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15410 # We did not find ourselves, most probably we were run as `sh COMMAND'
15411 # in which case we are not to be found in the path.
15412 if test "x$as_myself" = x; then
15415 if test ! -f "$as_myself"; then
15416 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15417 { (exit 1); exit 1; }
15420 # Work around bugs in pre-3.0 UWIN ksh.
15421 for as_var in ENV MAIL MAILPATH
15422 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15434 # Required to use basename.
15435 if expr a : '\(a\)' >/dev/null 2>&1 &&
15436 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15442 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15443 as_basename=basename
15449 # Name of the executable.
15450 as_me=`$as_basename -- "$0" ||
15451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15452 X"$0" : 'X\(//\)$' \| \
15453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15455 sed '/^.*\/\([^/][^/]*\)\/*$/{
15474 as_lineno_1=$LINENO
15475 as_lineno_2=$LINENO
15476 test "x$as_lineno_1" != "x$as_lineno_2" &&
15477 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15479 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15480 # uniformly replaced by the line number. The first 'sed' inserts a
15481 # line-number line after each line using $LINENO; the second 'sed'
15482 # does the real work. The second script uses 'N' to pair each
15483 # line-number line with the line containing $LINENO, and appends
15484 # trailing '-' during substitution so that $LINENO is not a special
15485 # case at line end.
15486 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15487 # scripts with optimization help from Paolo Bonzini. Blame Lee
15488 # E. McMahon (1931-1989) for sed's syntax. :-)
15500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15503 ' >$as_me.lineno &&
15504 chmod +x "$as_me.lineno" ||
15505 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15506 { (exit 1); exit 1; }; }
15508 # Don't try to exec as it changes $[0], causing all sort of problems
15509 # (the dirname of $[0] is not the place where we might find the
15510 # original and so on. Autoconf is especially sensitive to this).
15511 . "./$as_me.lineno"
15512 # Exit status is that of the last command.
15517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15523 ECHO_C= ECHO_N= ECHO_T=
15524 case `echo -n x` in
15526 case `echo 'x\c'` in
15527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15533 if expr a : '\(a\)' >/dev/null 2>&1 &&
15534 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15540 rm -f conf$$ conf$$.exe conf$$.file
15541 if test -d conf$$.dir; then
15542 rm -f conf$$.dir/conf$$.file
15545 mkdir conf$$.dir 2>/dev/null
15547 if (echo >conf$$.file) 2>/dev/null; then
15548 if ln -s conf$$.file conf$$ 2>/dev/null; then
15550 # ... but there are two gotchas:
15551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15553 # In both cases, we have to default to `cp -p'.
15554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15556 elif ln conf$$.file conf$$ 2>/dev/null; then
15564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15565 rmdir conf$$.dir 2>/dev/null
15567 if mkdir -p . 2>/dev/null; then
15570 test -d ./-p && rmdir ./-p
15574 if test -x / >/dev/null 2>&1; then
15575 as_test_x='test -x'
15577 if ls -dL / >/dev/null 2>&1; then
15584 if test -d "$1"; then
15590 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15591 ???[sx]*):;;*)false;;esac;fi
15595 as_executable_p=$as_test_x
15597 # Sed expression to map a string onto a valid CPP name.
15598 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15600 # Sed expression to map a string onto a valid variable name.
15601 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15606 # Save the log message, to keep $[0] and so on meaningful, and to
15607 # report actual input values of CONFIG_FILES etc. instead of their
15608 # values after options handling.
15610 This file was extended by libffi $as_me 3.0.10rc2, which was
15611 generated by GNU Autoconf 2.63. Invocation command line was
15613 CONFIG_FILES = $CONFIG_FILES
15614 CONFIG_HEADERS = $CONFIG_HEADERS
15615 CONFIG_LINKS = $CONFIG_LINKS
15616 CONFIG_COMMANDS = $CONFIG_COMMANDS
15619 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15624 case $ac_config_files in *"
15625 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15628 case $ac_config_headers in *"
15629 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15634 # Files that config.status was made for.
15635 config_files="$ac_config_files"
15636 config_headers="$ac_config_headers"
15637 config_links="$ac_config_links"
15638 config_commands="$ac_config_commands"
15642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15644 \`$as_me' instantiates files from templates according to the
15645 current configuration.
15647 Usage: $0 [OPTION]... [FILE]...
15649 -h, --help print this help, then exit
15650 -V, --version print version number and configuration settings, then exit
15651 -q, --quiet, --silent
15652 do not print progress messages
15653 -d, --debug don't remove temporary files
15654 --recheck update $as_me by reconfiguring in the same conditions
15655 --file=FILE[:TEMPLATE]
15656 instantiate the configuration file FILE
15657 --header=FILE[:TEMPLATE]
15658 instantiate the configuration header FILE
15660 Configuration files:
15663 Configuration headers:
15666 Configuration links:
15669 Configuration commands:
15672 Report bugs to <bug-autoconf@gnu.org>."
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15677 libffi config.status 3.0.10rc2
15678 configured by $0, generated by GNU Autoconf 2.63,
15679 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15681 Copyright (C) 2008 Free Software Foundation, Inc.
15682 This config.status script is free software; the Free Software Foundation
15683 gives unlimited permission to copy, distribute and modify it."
15690 test -n "\$AWK" || AWK=awk
15693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15694 # The default lists apply if the user does not specify any file.
15700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15712 # Handling of the options.
15713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15716 $as_echo "$ac_cs_version"; exit ;;
15717 --debug | --debu | --deb | --de | --d | -d )
15719 --file | --fil | --fi | --f )
15722 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15724 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15725 ac_need_defaults=false;;
15726 --header | --heade | --head | --hea )
15729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15731 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15732 ac_need_defaults=false;;
15734 # Conflict between --help and --header
15735 { $as_echo "$as_me: error: ambiguous option: $1
15736 Try \`$0 --help' for more information." >&2
15737 { (exit 1); exit 1; }; };;
15738 --help | --hel | -h )
15739 $as_echo "$ac_cs_usage"; exit ;;
15740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15741 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15744 # This is an error.
15745 -*) { $as_echo "$as_me: error: unrecognized option: $1
15746 Try \`$0 --help' for more information." >&2
15747 { (exit 1); exit 1; }; } ;;
15749 *) ac_config_targets="$ac_config_targets $1"
15750 ac_need_defaults=false ;;
15756 ac_configure_extra_args=
15758 if $ac_cs_silent; then
15760 ac_configure_extra_args="$ac_configure_extra_args --silent"
15764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15765 if \$ac_cs_recheck; then
15766 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15768 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15769 CONFIG_SHELL='$SHELL'
15770 export CONFIG_SHELL
15775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15779 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15780 ## Running $as_me. ##
15786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15790 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15793 # The HP-UX ksh and POSIX shell print the target directory to stdout
15794 # if CDPATH is set.
15795 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15797 sed_quote_subst='$sed_quote_subst'
15798 double_quote_subst='$double_quote_subst'
15799 delay_variable_subst='$delay_variable_subst'
15800 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15801 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15802 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15803 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15804 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15805 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15806 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15807 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15808 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15809 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15810 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15811 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15812 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15813 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15814 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15815 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15816 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15817 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15818 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15819 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15820 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15821 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15822 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15823 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15824 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15825 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15826 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15827 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15828 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15829 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15830 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15831 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15832 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15833 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15834 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15835 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15836 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15837 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15838 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15839 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15840 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15841 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15842 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15843 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15844 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"`'
15845 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"`'
15846 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15847 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15848 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15849 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15850 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15851 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15852 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15853 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15854 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15855 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15856 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15857 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15858 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15859 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15860 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15861 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15862 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15863 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15864 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15865 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15866 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15867 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15868 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15869 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15870 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15871 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15872 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15873 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15874 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15875 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15876 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15877 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15878 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15879 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15880 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15881 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15882 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15883 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15884 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15885 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15886 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15887 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15888 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15889 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15890 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15891 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15892 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15893 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15894 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15895 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15896 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15897 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15898 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15899 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15900 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15901 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15902 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15903 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15904 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15905 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15906 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15907 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15908 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15909 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15910 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15911 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15912 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15913 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15914 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15915 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15916 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15917 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15920 LTCFLAGS='$LTCFLAGS'
15921 compiler='$compiler_DEFAULT'
15923 # Quote evaled strings.
15935 deplibs_check_method \
15944 lt_cv_sys_global_symbol_pipe \
15945 lt_cv_sys_global_symbol_to_cdecl \
15946 lt_cv_sys_global_symbol_to_c_name_address \
15947 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15950 lt_prog_compiler_no_builtin_flag \
15951 lt_prog_compiler_wl \
15952 lt_prog_compiler_pic \
15953 lt_prog_compiler_static \
15954 lt_cv_prog_compiler_c_o \
15962 export_dynamic_flag_spec \
15963 whole_archive_flag_spec \
15964 compiler_needs_object \
15966 allow_undefined_flag \
15967 no_undefined_flag \
15968 hardcode_libdir_flag_spec \
15969 hardcode_libdir_flag_spec_ld \
15970 hardcode_libdir_separator \
15975 variables_saved_for_relink \
15977 library_names_spec \
15982 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15983 *[\\\\\\\`\\"\\\$]*)
15984 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15987 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15992 # Double-quote double-evaled strings.
15993 for var in reload_cmds \
15994 old_postinstall_cmds \
15995 old_postuninstall_cmds \
15997 extract_expsyms_cmds \
15998 old_archive_from_new_cmds \
15999 old_archive_from_expsyms_cmds \
16001 archive_expsym_cmds \
16003 module_expsym_cmds \
16004 export_symbols_cmds \
16007 postuninstall_cmds \
16009 sys_lib_search_path_spec \
16010 sys_lib_dlsearch_path_spec; do
16011 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16012 *[\\\\\\\`\\"\\\$]*)
16013 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16016 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16021 # Fix-up fallback echo if it was mangled by the above quoting rules.
16023 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16027 ac_aux_dir='$ac_aux_dir'
16028 xsi_shell='$xsi_shell'
16029 lt_shell_append='$lt_shell_append'
16031 # See if we are running on zsh, and set the options which allow our
16032 # commands through without removal of \ escapes INIT.
16033 if test -n "\${ZSH_VERSION+set}" ; then
16034 setopt NO_GLOB_SUBST
16040 TIMESTAMP='$TIMESTAMP'
16046 TARGETDIR="$TARGETDIR"
16050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16052 # Handling of arguments.
16053 for ac_config_target in $ac_config_targets
16055 case $ac_config_target in
16056 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16057 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16058 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16059 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16060 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16061 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16062 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16063 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16064 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16065 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16066 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16067 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16069 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16070 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16071 { (exit 1); exit 1; }; };;
16076 # If the user did not use the arguments to specify the items to instantiate,
16077 # then the envvar interface is used. Set only those that are not.
16078 # We use the long form for the default assignment because of an extremely
16079 # bizarre bug on SunOS 4.1.3.
16080 if $ac_need_defaults; then
16081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16083 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16084 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16087 # Have a temporary directory for convenience. Make it in the build tree
16088 # simply because there is no reason against having it here, and in addition,
16089 # creating and moving files from /tmp can sometimes cause problems.
16090 # Hook for its removal unless debugging.
16091 # Note that there is a small window in which the directory will not be cleaned:
16092 # after its creation but before its name has been assigned to `$tmp'.
16096 trap 'exit_status=$?
16097 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16099 trap '{ (exit 1); exit 1; }' 1 2 13 15
16101 # Create a (secure) tmp directory for tmp files.
16104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16105 test -n "$tmp" && test -d "$tmp"
16108 tmp=./conf$$-$RANDOM
16109 (umask 077 && mkdir "$tmp")
16112 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16113 { (exit 1); exit 1; }
16116 # Set up the scripts for CONFIG_FILES section.
16117 # No need to generate them if there are no CONFIG_FILES.
16118 # This happens for instance with `./config.status config.h'.
16119 if test -n "$CONFIG_FILES"; then
16123 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16124 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16127 ac_cs_awk_cr=$ac_cr
16130 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16135 echo "cat >conf$$subs.awk <<_ACEOF" &&
16136 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16138 } >conf$$subs.sh ||
16139 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16140 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16141 { (exit 1); exit 1; }; }
16142 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16144 for ac_last_try in false false false false false :; do
16145 . ./conf$$subs.sh ||
16146 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16147 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16148 { (exit 1); exit 1; }; }
16150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16151 if test $ac_delim_n = $ac_delim_num; then
16153 elif $ac_last_try; then
16154 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16155 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16156 { (exit 1); exit 1; }; }
16158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16161 rm -f conf$$subs.sh
16163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16168 s/^/S["/; s/!.*/"]=/
16178 s/\(.\{148\}\).*/\1/
16180 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16185 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16192 s/\(.\{148\}\).*/\1/
16194 s/["\\]/\\&/g; s/^/"/; s/$/"/
16198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16203 ' <conf$$subs.awk | sed '
16208 ' >>$CONFIG_STATUS || ac_write_fail=1
16209 rm -f conf$$subs.awk
16210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16213 for (key in S) S_is_set[key] = 1
16219 nfields = split(line, field, "@")
16221 len = length(field[1])
16222 for (i = 2; i < nfields; i++) {
16224 keylen = length(key)
16225 if (S_is_set[key]) {
16227 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16228 len += length(value) + length(field[++i])
16239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16240 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16241 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16244 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16245 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16246 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16247 { (exit 1); exit 1; }; }
16250 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16251 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16252 # trailing colons and then remove the whole line if VPATH becomes empty
16253 # (actually we leave an empty line to preserve line numbers).
16254 if test "x$srcdir" = x.; then
16255 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16256 s/:*\$(srcdir):*/:/
16257 s/:*\${srcdir}:*/:/
16259 s/^\([^=]*=[ ]*\):*/\1/
16265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16266 fi # test -n "$CONFIG_FILES"
16268 # Set up the scripts for CONFIG_HEADERS section.
16269 # No need to generate them if there are no CONFIG_HEADERS.
16270 # This happens for instance with `./config.status Makefile'.
16271 if test -n "$CONFIG_HEADERS"; then
16272 cat >"$tmp/defines.awk" <<\_ACAWK ||
16276 # Transform confdefs.h into an awk script `defines.awk', embedded as
16277 # here-document in config.status, that substitutes the proper values into
16278 # config.h.in to produce config.h.
16280 # Create a delimiter string that does not exist in confdefs.h, to ease
16281 # handling of long lines.
16283 for ac_last_try in false false :; do
16284 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16285 if test -z "$ac_t"; then
16287 elif $ac_last_try; then
16288 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16289 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16290 { (exit 1); exit 1; }; }
16292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16296 # For the awk script, D is an array of macro values keyed by name,
16297 # likewise P contains macro parameters if any. Preserve backslash
16298 # newline sequences.
16300 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16302 s/.\{148\}/&'"$ac_delim"'/g
16305 s/^[ ]*#[ ]*define[ ][ ]*/ /
16312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16314 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16318 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16319 D["\1"]=" \3\\\\\\n"\\/p
16321 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16326 s/.\{148\}/&'"$ac_delim"'/g
16331 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16334 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16336 ' <confdefs.h | sed '
16337 s/'"$ac_delim"'/"\\\
16338 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341 for (key in D) D_is_set[key] = 1
16344 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16346 split(line, arg, " ")
16347 if (arg[1] == "#") {
16351 defundef = substr(arg[1], 2)
16354 split(mac1, mac2, "(") #)
16356 prefix = substr(line, 1, index(line, defundef) - 1)
16357 if (D_is_set[macro]) {
16358 # Preserve the white space surrounding the "#".
16359 print prefix "define", macro P[macro] D[macro]
16362 # Replace #undef with comments. This is necessary, for example,
16363 # in the case of _POSIX_SOURCE, which is predefined and required
16364 # on some systems where configure will not decide to define it.
16365 if (defundef == "undef") {
16366 print "/*", prefix defundef, macro, "*/"
16374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16375 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16376 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16377 { (exit 1); exit 1; }; }
16378 fi # test -n "$CONFIG_HEADERS"
16381 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16386 :[FHLC]) ac_mode=$ac_tag; continue;;
16388 case $ac_mode$ac_tag in
16390 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16391 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16392 { (exit 1); exit 1; }; };;
16393 :[FH]-) ac_tag=-:-;;
16394 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16411 -) ac_f="$tmp/stdin";;
16412 *) # Look for the file first in the build tree, then in the source tree
16413 # (if the path is not absolute). The absolute path cannot be DOS-style,
16414 # because $ac_f cannot contain `:'.
16418 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16420 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16421 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16422 { (exit 1); exit 1; }; };;
16424 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16425 ac_file_inputs="$ac_file_inputs '$ac_f'"
16428 # Let's still pretend it is `configure' which instantiates (i.e., don't
16429 # use $as_me), people would be surprised to read:
16430 # /* config.h. Generated by config.status. */
16431 configure_input='Generated from '`
16432 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16434 if test x"$ac_file" != x-; then
16435 configure_input="$ac_file. $configure_input"
16436 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16437 $as_echo "$as_me: creating $ac_file" >&6;}
16439 # Neutralize special characters interpreted by sed in replacement strings.
16440 case $configure_input in #(
16441 *\&* | *\|* | *\\* )
16442 ac_sed_conf_input=`$as_echo "$configure_input" |
16443 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16444 *) ac_sed_conf_input=$configure_input;;
16448 *:-:* | *:-) cat >"$tmp/stdin" \
16449 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16451 { (exit 1); exit 1; }; } ;;
16456 ac_dir=`$as_dirname -- "$ac_file" ||
16457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16458 X"$ac_file" : 'X\(//\)[^/]' \| \
16459 X"$ac_file" : 'X\(//\)$' \| \
16460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16461 $as_echo X"$ac_file" |
16462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16466 /^X\(\/\/\)[^/].*/{
16481 -*) as_dir=./$as_dir;;
16483 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16487 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16488 *) as_qdir=$as_dir;;
16490 as_dirs="'$as_qdir' $as_dirs"
16491 as_dir=`$as_dirname -- "$as_dir" ||
16492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16493 X"$as_dir" : 'X\(//\)[^/]' \| \
16494 X"$as_dir" : 'X\(//\)$' \| \
16495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16496 $as_echo X"$as_dir" |
16497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16501 /^X\(\/\/\)[^/].*/{
16514 test -d "$as_dir" && break
16516 test -z "$as_dirs" || eval "mkdir $as_dirs"
16517 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16518 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16519 { (exit 1); exit 1; }; }; }
16523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16526 # A ".." for each directory in $ac_dir_suffix.
16527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16528 case $ac_top_builddir_sub in
16529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16533 ac_abs_top_builddir=$ac_pwd
16534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16535 # for backward compatibility:
16536 ac_top_builddir=$ac_top_build_prefix
16539 .) # We are building in place.
16541 ac_top_srcdir=$ac_top_builddir_sub
16542 ac_abs_top_srcdir=$ac_pwd ;;
16543 [\\/]* | ?:[\\/]* ) # Absolute name.
16544 ac_srcdir=$srcdir$ac_dir_suffix;
16545 ac_top_srcdir=$srcdir
16546 ac_abs_top_srcdir=$srcdir ;;
16547 *) # Relative name.
16548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16549 ac_top_srcdir=$ac_top_build_prefix$srcdir
16550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16562 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16563 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16565 ac_MKDIR_P=$MKDIR_P
16567 [\\/$]* | ?:[\\/]* ) ;;
16568 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16573 # If the template does not know about datarootdir, expand it.
16574 # FIXME: This hack should be removed a few years after 2.60.
16575 ac_datarootdir_hack=; ac_datarootdir_seen=
16588 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16589 *datarootdir*) ac_datarootdir_seen=yes;;
16590 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16591 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16592 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595 ac_datarootdir_hack='
16596 s&@datadir@&$datadir&g
16597 s&@docdir@&$docdir&g
16598 s&@infodir@&$infodir&g
16599 s&@localedir@&$localedir&g
16600 s&@mandir@&$mandir&g
16601 s&\\\${datarootdir}&$datarootdir&g' ;;
16605 # Neutralize VPATH when `$srcdir' = `.'.
16606 # Shell code in configure.ac might set extrasub.
16607 # FIXME: do we really want to maintain this feature?
16608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16609 ac_sed_extra="$ac_vpsub
16612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16615 s|@configure_input@|$ac_sed_conf_input|;t t
16616 s&@top_builddir@&$ac_top_builddir_sub&;t t
16617 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16618 s&@srcdir@&$ac_srcdir&;t t
16619 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16620 s&@top_srcdir@&$ac_top_srcdir&;t t
16621 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16622 s&@builddir@&$ac_builddir&;t t
16623 s&@abs_builddir@&$ac_abs_builddir&;t t
16624 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16625 s&@INSTALL@&$ac_INSTALL&;t t
16626 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16627 $ac_datarootdir_hack
16629 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16630 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16631 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16632 { (exit 1); exit 1; }; }
16634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16635 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16637 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16638 which seems to be undefined. Please make sure it is defined." >&5
16639 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16640 which seems to be undefined. Please make sure it is defined." >&2;}
16644 -) cat "$tmp/out" && rm -f "$tmp/out";;
16645 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16647 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16648 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16649 { (exit 1); exit 1; }; }
16655 if test x"$ac_file" != x-; then
16657 $as_echo "/* $configure_input */" \
16658 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16659 } >"$tmp/config.h" \
16660 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16661 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16662 { (exit 1); exit 1; }; }
16663 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16664 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16665 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16668 mv "$tmp/config.h" "$ac_file" \
16669 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16670 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16671 { (exit 1); exit 1; }; }
16674 $as_echo "/* $configure_input */" \
16675 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16676 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16677 $as_echo "$as_me: error: could not create -" >&2;}
16678 { (exit 1); exit 1; }; }
16680 # Compute "$ac_file"'s index in $config_headers.
16683 for _am_header in $config_headers :; do
16684 case $_am_header in
16685 $_am_arg | $_am_arg:* )
16688 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16691 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16692 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16693 X"$_am_arg" : 'X\(//\)[^/]' \| \
16694 X"$_am_arg" : 'X\(//\)$' \| \
16695 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16696 $as_echo X"$_am_arg" |
16697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16701 /^X\(\/\/\)[^/].*/{
16713 s/.*/./; q'`/stamp-h$_am_stamp_count
16720 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16723 # Prefer the file from the source tree if names are identical.
16724 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16725 ac_source=$srcdir/$ac_source
16728 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16729 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16731 if test ! -r "$ac_source"; then
16732 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16733 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
16734 { (exit 1); exit 1; }; }
16738 # Try a relative symlink, then a hard link, then a copy.
16740 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16741 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16743 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16744 ln "$ac_source" "$ac_file" 2>/dev/null ||
16745 cp -p "$ac_source" "$ac_file" ||
16746 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16747 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16748 { (exit 1); exit 1; }; }
16751 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16752 $as_echo "$as_me: executing $ac_file commands" >&6;}
16757 case $ac_file$ac_mode in
16758 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16759 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16760 # are listed without --file. Let's play safe and only enable the eval
16761 # if we detect the quoting.
16762 case $CONFIG_FILES in
16763 *\'*) eval set x "$CONFIG_FILES" ;;
16764 *) set x $CONFIG_FILES ;;
16769 # Strip MF so we end up with the name of the file.
16770 mf=`echo "$mf" | sed -e 's/:.*$//'`
16771 # Check whether this is an Automake generated Makefile or not.
16772 # We used to match only the files named `Makefile.in', but
16773 # some people rename them; so instead we look at the file content.
16774 # Grep'ing the first line is not enough: some people post-process
16775 # each Makefile.in and add a new line on top of each file to say so.
16776 # Grep'ing the whole file is not good either: AIX grep has a line
16777 # limit of 2048, but all sed's we know have understand at least 4000.
16778 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16779 dirpart=`$as_dirname -- "$mf" ||
16780 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16781 X"$mf" : 'X\(//\)[^/]' \| \
16782 X"$mf" : 'X\(//\)$' \| \
16783 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16789 /^X\(\/\/\)[^/].*/{
16805 # Extract the definition of DEPDIR, am__include, and am__quote
16806 # from the Makefile without running `make'.
16807 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16808 test -z "$DEPDIR" && continue
16809 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16810 test -z "am__include" && continue
16811 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16812 # When using ansi2knr, U may be empty or an underscore; expand it
16813 U=`sed -n 's/^U = //p' < "$mf"`
16814 # Find all dependency output files, they are included files with
16815 # $(DEPDIR) in their names. We invoke sed twice because it is the
16816 # simplest approach to changing $(DEPDIR) to its actual value in the
16818 for file in `sed -n "
16819 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16820 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16821 # Make sure the directory exists.
16822 test -f "$dirpart/$file" && continue
16823 fdir=`$as_dirname -- "$file" ||
16824 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16825 X"$file" : 'X\(//\)[^/]' \| \
16826 X"$file" : 'X\(//\)$' \| \
16827 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16828 $as_echo X"$file" |
16829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16833 /^X\(\/\/\)[^/].*/{
16846 { as_dir=$dirpart/$fdir
16848 -*) as_dir=./$as_dir;;
16850 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16854 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16855 *) as_qdir=$as_dir;;
16857 as_dirs="'$as_qdir' $as_dirs"
16858 as_dir=`$as_dirname -- "$as_dir" ||
16859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16860 X"$as_dir" : 'X\(//\)[^/]' \| \
16861 X"$as_dir" : 'X\(//\)$' \| \
16862 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16863 $as_echo X"$as_dir" |
16864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16868 /^X\(\/\/\)[^/].*/{
16881 test -d "$as_dir" && break
16883 test -z "$as_dirs" || eval "mkdir $as_dirs"
16884 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16885 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16886 { (exit 1); exit 1; }; }; }
16887 # echo "creating $dirpart/$file"
16888 echo '# dummy' > "$dirpart/$file"
16895 # See if we are running on zsh, and set the options which allow our
16896 # commands through without removal of \ escapes.
16897 if test -n "${ZSH_VERSION+set}" ; then
16898 setopt NO_GLOB_SUBST
16901 cfgfile="${ofile}T"
16902 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16905 cat <<_LT_EOF >> "$cfgfile"
16908 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16909 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16910 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16911 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16913 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16914 # 2006, 2007, 2008 Free Software Foundation, Inc.
16915 # Written by Gordon Matzigkeit, 1996
16917 # This file is part of GNU Libtool.
16919 # GNU Libtool is free software; you can redistribute it and/or
16920 # modify it under the terms of the GNU General Public License as
16921 # published by the Free Software Foundation; either version 2 of
16922 # the License, or (at your option) any later version.
16924 # As a special exception to the GNU General Public License,
16925 # if you distribute this file as part of a program or library that
16926 # is built using GNU Libtool, you may include this file under the
16927 # same distribution terms that you use for the rest of that program.
16929 # GNU Libtool is distributed in the hope that it will be useful,
16930 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16931 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16932 # GNU General Public License for more details.
16934 # You should have received a copy of the GNU General Public License
16935 # along with GNU Libtool; see the file COPYING. If not, a copy
16936 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16937 # obtained by writing to the Free Software Foundation, Inc.,
16938 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16941 # The names of the tagged configurations supported by this script.
16944 # ### BEGIN LIBTOOL CONFIG
16946 # Which release of libtool.m4 was used?
16947 macro_version=$macro_version
16948 macro_revision=$macro_revision
16950 # Whether or not to build shared libraries.
16951 build_libtool_libs=$enable_shared
16953 # Whether or not to build static libraries.
16954 build_old_libs=$enable_static
16956 # What type of objects to build.
16959 # Whether or not to optimize for fast installation.
16960 fast_install=$enable_fast_install
16963 host_alias=$host_alias
16967 # The build system.
16968 build_alias=$build_alias
16972 # A sed program that does not truncate output.
16975 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16976 Xsed="\$SED -e 1s/^X//"
16978 # A grep program that handles long lines.
16984 # A literal string matcher.
16987 # A BSD- or MS-compatible name lister.
16990 # Whether we need soft or hard links.
16993 # What is the maximum length of a command?
16994 max_cmd_len=$max_cmd_len
16996 # Object file suffix (normally "o").
16999 # Executable file suffix (normally "").
17002 # whether the shell understands "unset".
17005 # turn spaces into newlines.
17008 # turn newlines into spaces.
17011 # How to create reloadable object files.
17012 reload_flag=$lt_reload_flag
17013 reload_cmds=$lt_reload_cmds
17015 # An object symbol dumper.
17016 OBJDUMP=$lt_OBJDUMP
17018 # Method to check whether dependent libraries are shared objects.
17019 deplibs_check_method=$lt_deplibs_check_method
17021 # Command to use when deplibs_check_method == "file_magic".
17022 file_magic_cmd=$lt_file_magic_cmd
17026 AR_FLAGS=$lt_AR_FLAGS
17028 # A symbol stripping program.
17031 # Commands used to install an old-style archive.
17033 old_postinstall_cmds=$lt_old_postinstall_cmds
17034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17039 # LTCC compiler flags.
17040 LTCFLAGS=$lt_CFLAGS
17042 # Take the output of nm and produce a listing of raw symbols and C names.
17043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17045 # Transform the output of nm in a proper C declaration.
17046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17048 # Transform the output of nm in a C name address pair.
17049 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17051 # Transform the output of nm in a C name address pair when lib prefix is needed.
17052 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17054 # The name of the directory that contains temporary libtool files.
17057 # Shell to use when invoking shell scripts.
17060 # An echo program that does not interpret backslashes.
17063 # Used to examine libraries when file_magic_cmd begins with "file".
17064 MAGIC_CMD=$MAGIC_CMD
17066 # Must we lock files when doing compilation?
17067 need_locks=$lt_need_locks
17069 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17070 DSYMUTIL=$lt_DSYMUTIL
17072 # Tool to change global to local symbols on Mac OS X.
17075 # Tool to manipulate fat objects and archives on Mac OS X.
17078 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17081 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17082 OTOOL64=$lt_OTOOL64
17084 # Old archive suffix (normally "a").
17087 # Shared library suffix (normally ".so").
17088 shrext_cmds=$lt_shrext_cmds
17090 # The commands to extract the exported symbol list from a shared archive.
17091 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17093 # Variables whose values should be saved in libtool wrapper scripts and
17094 # restored at link time.
17095 variables_saved_for_relink=$lt_variables_saved_for_relink
17097 # Do we need the "lib" prefix for modules?
17098 need_lib_prefix=$need_lib_prefix
17100 # Do we need a version for libraries?
17101 need_version=$need_version
17103 # Library versioning type.
17104 version_type=$version_type
17106 # Shared library runtime path variable.
17107 runpath_var=$runpath_var
17109 # Shared library path variable.
17110 shlibpath_var=$shlibpath_var
17112 # Is shlibpath searched before the hard-coded library search path?
17113 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17115 # Format of library name prefix.
17116 libname_spec=$lt_libname_spec
17118 # List of archive names. First name is the real one, the rest are links.
17119 # The last name is the one that the linker finds with -lNAME
17120 library_names_spec=$lt_library_names_spec
17122 # The coded name of the library, if different from the real name.
17123 soname_spec=$lt_soname_spec
17125 # Command to use after installation of a shared archive.
17126 postinstall_cmds=$lt_postinstall_cmds
17128 # Command to use after uninstallation of a shared archive.
17129 postuninstall_cmds=$lt_postuninstall_cmds
17131 # Commands used to finish a libtool library installation in a directory.
17132 finish_cmds=$lt_finish_cmds
17134 # As "finish_cmds", except a single script fragment to be evaled but
17136 finish_eval=$lt_finish_eval
17138 # Whether we should hardcode library paths into libraries.
17139 hardcode_into_libs=$hardcode_into_libs
17141 # Compile-time system search path for libraries.
17142 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17144 # Run-time system search path for libraries.
17145 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17147 # Whether dlopen is supported.
17148 dlopen_support=$enable_dlopen
17150 # Whether dlopen of programs is supported.
17151 dlopen_self=$enable_dlopen_self
17153 # Whether dlopen of statically linked programs is supported.
17154 dlopen_self_static=$enable_dlopen_self_static
17156 # Commands to strip libraries.
17157 old_striplib=$lt_old_striplib
17158 striplib=$lt_striplib
17161 # The linker used to build libraries.
17164 # Commands used to build an old-style archive.
17165 old_archive_cmds=$lt_old_archive_cmds
17167 # A language specific compiler.
17170 # Is the compiler the GNU compiler?
17173 # Compiler flag to turn off builtin functions.
17174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17176 # How to pass a linker flag through the compiler.
17177 wl=$lt_lt_prog_compiler_wl
17179 # Additional compiler flags for building library objects.
17180 pic_flag=$lt_lt_prog_compiler_pic
17182 # Compiler flag to prevent dynamic linking.
17183 link_static_flag=$lt_lt_prog_compiler_static
17185 # Does compiler simultaneously support -c and -o options?
17186 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17188 # Whether or not to add -lc for building shared libraries.
17189 build_libtool_need_lc=$archive_cmds_need_lc
17191 # Whether or not to disallow shared libs when runtime libs are static.
17192 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17194 # Compiler flag to allow reflexive dlopens.
17195 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17197 # Compiler flag to generate shared objects directly from archives.
17198 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17200 # Whether the compiler copes with passing no objects directly.
17201 compiler_needs_object=$lt_compiler_needs_object
17203 # Create an old-style archive from a shared archive.
17204 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17206 # Create a temporary old-style archive to link instead of a shared archive.
17207 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17209 # Commands used to build a shared archive.
17210 archive_cmds=$lt_archive_cmds
17211 archive_expsym_cmds=$lt_archive_expsym_cmds
17213 # Commands used to build a loadable module if different from building
17214 # a shared archive.
17215 module_cmds=$lt_module_cmds
17216 module_expsym_cmds=$lt_module_expsym_cmds
17218 # Whether we are building with GNU ld or not.
17219 with_gnu_ld=$lt_with_gnu_ld
17221 # Flag that allows shared libraries with undefined symbols to be built.
17222 allow_undefined_flag=$lt_allow_undefined_flag
17224 # Flag that enforces no undefined symbols.
17225 no_undefined_flag=$lt_no_undefined_flag
17227 # Flag to hardcode \$libdir into a binary during linking.
17228 # This must work even if \$libdir does not exist
17229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17231 # If ld is used when linking, flag to hardcode \$libdir into a binary
17232 # during linking. This must work even if \$libdir does not exist.
17233 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17235 # Whether we need a single "-rpath" flag with a separated argument.
17236 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17239 # DIR into the resulting binary.
17240 hardcode_direct=$hardcode_direct
17242 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17243 # DIR into the resulting binary and the resulting library dependency is
17244 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17245 # library is relocated.
17246 hardcode_direct_absolute=$hardcode_direct_absolute
17248 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17249 # into the resulting binary.
17250 hardcode_minus_L=$hardcode_minus_L
17252 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17253 # into the resulting binary.
17254 hardcode_shlibpath_var=$hardcode_shlibpath_var
17256 # Set to "yes" if building a shared library automatically hardcodes DIR
17257 # into the library and all subsequent libraries and executables linked
17259 hardcode_automatic=$hardcode_automatic
17261 # Set to yes if linker adds runtime paths of dependent libraries
17262 # to runtime path list.
17263 inherit_rpath=$inherit_rpath
17265 # Whether libtool must link a program against all its dependency libraries.
17266 link_all_deplibs=$link_all_deplibs
17268 # Fix the shell variable \$srcfile for the compiler.
17269 fix_srcfile_path=$lt_fix_srcfile_path
17271 # Set to "yes" if exported symbols are required.
17272 always_export_symbols=$always_export_symbols
17274 # The commands to list exported symbols.
17275 export_symbols_cmds=$lt_export_symbols_cmds
17277 # Symbols that should not be listed in the preloaded symbols.
17278 exclude_expsyms=$lt_exclude_expsyms
17280 # Symbols that must always be exported.
17281 include_expsyms=$lt_include_expsyms
17283 # Commands necessary for linking programs (against libraries) with templates.
17284 prelink_cmds=$lt_prelink_cmds
17286 # Specify filename containing input files.
17287 file_list_spec=$lt_file_list_spec
17289 # How to hardcode a shared library path into an executable.
17290 hardcode_action=$hardcode_action
17292 # ### END LIBTOOL CONFIG
17298 cat <<\_LT_EOF >> "$cfgfile"
17299 # AIX sometimes has problems with the GCC collect2 program. For some
17300 # reason, if we set the COLLECT_NAMES environment variable, the problems
17301 # vanish in a puff of smoke.
17302 if test "X${COLLECT_NAMES+set}" != Xset; then
17304 export COLLECT_NAMES
17311 ltmain="$ac_aux_dir/ltmain.sh"
17314 # We use sed instead of cat because bash on DJGPP gets confused if
17315 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17316 # text mode, it properly converts lines to CR/LF. This bash problem
17317 # is reportedly fixed, but why not run on old versions too?
17318 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17319 || (rm -f "$cfgfile"; exit 1)
17323 cat << \_LT_EOF >> "$cfgfile"
17325 # func_dirname file append nondir_replacement
17326 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17327 # otherwise set result to NONDIR_REPLACEMENT.
17331 */*) func_dirname_result="${1%/*}${2}" ;;
17332 * ) func_dirname_result="${3}" ;;
17336 # func_basename file
17339 func_basename_result="${1##*/}"
17342 # func_dirname_and_basename file append nondir_replacement
17343 # perform func_basename and func_dirname in a single function
17345 # dirname: Compute the dirname of FILE. If nonempty,
17346 # add APPEND to the result, otherwise set result
17347 # to NONDIR_REPLACEMENT.
17348 # value returned in "$func_dirname_result"
17349 # basename: Compute filename of FILE.
17350 # value retuned in "$func_basename_result"
17351 # Implementation must be kept synchronized with func_dirname
17352 # and func_basename. For efficiency, we do not delegate to
17353 # those functions but instead duplicate the functionality here.
17354 func_dirname_and_basename ()
17357 */*) func_dirname_result="${1%/*}${2}" ;;
17358 * ) func_dirname_result="${3}" ;;
17360 func_basename_result="${1##*/}"
17363 # func_stripname prefix suffix name
17364 # strip PREFIX and SUFFIX off of NAME.
17365 # PREFIX and SUFFIX must not contain globbing or regex special
17366 # characters, hashes, percent signs, but SUFFIX may contain a leading
17367 # dot (in which case that matches only a dot).
17370 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17371 # positional parameters, so assign one to ordinary parameter first.
17372 func_stripname_result=${3}
17373 func_stripname_result=${func_stripname_result#"${1}"}
17374 func_stripname_result=${func_stripname_result%"${2}"}
17380 func_opt_split_opt=${1%%=*}
17381 func_opt_split_arg=${1#*=}
17388 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17389 *) func_lo2o_result=${1} ;;
17393 # func_xform libobj-or-source
17396 func_xform_result=${1%.*}.lo
17399 # func_arith arithmetic-term...
17402 func_arith_result=$(( $* ))
17406 # STRING may not start with a hyphen.
17409 func_len_result=${#1}
17414 *) # Bourne compatible functions.
17415 cat << \_LT_EOF >> "$cfgfile"
17417 # func_dirname file append nondir_replacement
17418 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17419 # otherwise set result to NONDIR_REPLACEMENT.
17422 # Extract subdirectory from the argument.
17423 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17424 if test "X$func_dirname_result" = "X${1}"; then
17425 func_dirname_result="${3}"
17427 func_dirname_result="$func_dirname_result${2}"
17431 # func_basename file
17434 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17438 # func_stripname prefix suffix name
17439 # strip PREFIX and SUFFIX off of NAME.
17440 # PREFIX and SUFFIX must not contain globbing or regex special
17441 # characters, hashes, percent signs, but SUFFIX may contain a leading
17442 # dot (in which case that matches only a dot).
17443 # func_strip_suffix prefix name
17447 .*) func_stripname_result=`$ECHO "X${3}" \
17448 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17449 *) func_stripname_result=`$ECHO "X${3}" \
17450 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17455 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17456 my_sed_long_arg='1s/^-[^=]*=//'
17461 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17462 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17468 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17471 # func_xform libobj-or-source
17474 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17477 # func_arith arithmetic-term...
17480 func_arith_result=`expr "$@"`
17484 # STRING may not start with a hyphen.
17487 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17493 case $lt_shell_append in
17495 cat << \_LT_EOF >> "$cfgfile"
17497 # func_append var value
17498 # Append VALUE to the end of shell variable VAR.
17506 cat << \_LT_EOF >> "$cfgfile"
17508 # func_append var value
17509 # Append VALUE to the end of shell variable VAR.
17520 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17521 || (rm -f "$cfgfile"; exit 1)
17523 mv -f "$cfgfile" "$ofile" ||
17524 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17528 "include":C) test -d include || mkdir include ;;
17530 test -d src || mkdir src
17531 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17538 { (exit 0); exit 0; }
17540 chmod +x $CONFIG_STATUS
17541 ac_clean_files=$ac_clean_files_save
17543 test $ac_write_fail = 0 ||
17544 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17545 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17546 { (exit 1); exit 1; }; }
17549 # configure is writing to config.log, and then calls config.status.
17550 # config.status does its own redirection, appending to config.log.
17551 # Unfortunately, on DOS this fails, as config.log is still kept open
17552 # by configure, so config.status won't be able to write to it; its
17553 # output is simply discarded. So we exec the FD to /dev/null,
17554 # effectively closing config.log, so it can be properly (re)opened and
17555 # appended to by config.status. When coming back to configure, we
17556 # need to make the FD available again.
17557 if test "$no_create" != yes; then
17559 ac_config_status_args=
17560 test "$silent" = yes &&
17561 ac_config_status_args="$ac_config_status_args --quiet"
17563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17566 # would make configure fail if this is the last instruction.
17567 $ac_cs_success || { (exit 1); exit 1; }
17569 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17570 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17571 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}