2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libffi 3.0.10rc3.
5 # Report bugs to <http://sourceware.org/libffi.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.10rc3'
749 PACKAGE_STRING='libffi 3.0.10rc3'
750 PACKAGE_BUGREPORT='http://sourceware.org/libffi.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.10rc3 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.10rc3:";;
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://sourceware.org/libffi.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.10rc3
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.10rc3, 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"&nb