2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libffi 3.0.9.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='libffi'
747 PACKAGE_TARNAME='libffi'
748 PACKAGE_VERSION='3.0.9'
749 PACKAGE_STRING='libffi 3.0.9'
750 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
752 # Factoring default headers for most tests.
753 ac_includes_default="\
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
765 # ifdef HAVE_STDLIB_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
788 ac_subst_vars='am__EXEEXT_FALSE
820 POWERPC_FREEBSD_FALSE
855 MAINTAINER_MODE_FALSE
877 am__fastdepCCAS_FALSE
906 INSTALL_STRIP_PROGRAM
960 program_transform_name
972 enable_option_checking
973 enable_dependency_tracking
980 enable_maintainer_mode
986 ac_precious_vars='build_alias
995 # Initialize some variables set by options.
997 ac_init_version=false
998 ac_unrecognized_opts=
1000 # The variables have the same names as the options, with
1001 # dashes changed to underlines.
1002 cache_file=/dev/null
1009 program_transform_name=s,x,x,
1017 # Installation directory options.
1018 # These are left unexpanded so users can "make install exec_prefix=/foo"
1019 # and all the variables that are supposed to be based on exec_prefix
1020 # by default will actually change.
1021 # Use braces instead of parens because sh, perl, etc. also accept them.
1022 # (The list follows the same order as the GNU Coding Standards.)
1023 bindir='${exec_prefix}/bin'
1024 sbindir='${exec_prefix}/sbin'
1025 libexecdir='${exec_prefix}/libexec'
1026 datarootdir='${prefix}/share'
1027 datadir='${datarootdir}'
1028 sysconfdir='${prefix}/etc'
1029 sharedstatedir='${prefix}/com'
1030 localstatedir='${prefix}/var'
1031 includedir='${prefix}/include'
1032 oldincludedir='/usr/include'
1033 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1034 infodir='${datarootdir}/info'
1039 libdir='${exec_prefix}/lib'
1040 localedir='${datarootdir}/locale'
1041 mandir='${datarootdir}/man'
1047 # If the previous option needs an argument, assign it.
1048 if test -n "$ac_prev"; then
1049 eval $ac_prev=\$ac_option
1055 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1059 # Accept the important Cygnus configure options, so we can diagnose typos.
1061 case $ac_dashdash$ac_option in
1065 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1067 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1068 bindir=$ac_optarg ;;
1070 -build | --build | --buil | --bui | --bu)
1071 ac_prev=build_alias ;;
1072 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1073 build_alias=$ac_optarg ;;
1075 -cache-file | --cache-file | --cache-fil | --cache-fi \
1076 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1077 ac_prev=cache_file ;;
1078 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1079 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1080 cache_file=$ac_optarg ;;
1082 --config-cache | -C)
1083 cache_file=config.cache ;;
1085 -datadir | --datadir | --datadi | --datad)
1087 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1088 datadir=$ac_optarg ;;
1090 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1091 | --dataroo | --dataro | --datar)
1092 ac_prev=datarootdir ;;
1093 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1094 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1095 datarootdir=$ac_optarg ;;
1097 -disable-* | --disable-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "enable_$ac_useropt"
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1112 eval enable_$ac_useropt=no ;;
1114 -docdir | --docdir | --docdi | --doc | --do)
1116 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1117 docdir=$ac_optarg ;;
1119 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1121 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1122 dvidir=$ac_optarg ;;
1124 -enable-* | --enable-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1129 { (exit 1); exit 1; }; }
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "enable_$ac_useropt"
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval enable_$ac_useropt=\$ac_optarg ;;
1141 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1142 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1143 | --exec | --exe | --ex)
1144 ac_prev=exec_prefix ;;
1145 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1146 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1147 | --exec=* | --exe=* | --ex=*)
1148 exec_prefix=$ac_optarg ;;
1150 -gas | --gas | --ga | --g)
1151 # Obsolete; use --with-gas.
1154 -help | --help | --hel | --he | -h)
1155 ac_init_help=long ;;
1156 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1157 ac_init_help=recursive ;;
1158 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1159 ac_init_help=short ;;
1161 -host | --host | --hos | --ho)
1162 ac_prev=host_alias ;;
1163 -host=* | --host=* | --hos=* | --ho=*)
1164 host_alias=$ac_optarg ;;
1166 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1168 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1170 htmldir=$ac_optarg ;;
1172 -includedir | --includedir | --includedi | --included | --include \
1173 | --includ | --inclu | --incl | --inc)
1174 ac_prev=includedir ;;
1175 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1176 | --includ=* | --inclu=* | --incl=* | --inc=*)
1177 includedir=$ac_optarg ;;
1179 -infodir | --infodir | --infodi | --infod | --info | --inf)
1181 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1182 infodir=$ac_optarg ;;
1184 -libdir | --libdir | --libdi | --libd)
1186 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1187 libdir=$ac_optarg ;;
1189 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1190 | --libexe | --libex | --libe)
1191 ac_prev=libexecdir ;;
1192 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1193 | --libexe=* | --libex=* | --libe=*)
1194 libexecdir=$ac_optarg ;;
1196 -localedir | --localedir | --localedi | --localed | --locale)
1197 ac_prev=localedir ;;
1198 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1199 localedir=$ac_optarg ;;
1201 -localstatedir | --localstatedir | --localstatedi | --localstated \
1202 | --localstate | --localstat | --localsta | --localst | --locals)
1203 ac_prev=localstatedir ;;
1204 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1205 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1206 localstatedir=$ac_optarg ;;
1208 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1210 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1211 mandir=$ac_optarg ;;
1213 -nfp | --nfp | --nf)
1214 # Obsolete; use --without-fp.
1217 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1218 | --no-cr | --no-c | -n)
1221 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1222 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1225 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1226 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1227 | --oldin | --oldi | --old | --ol | --o)
1228 ac_prev=oldincludedir ;;
1229 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1230 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1231 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1232 oldincludedir=$ac_optarg ;;
1234 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1236 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1237 prefix=$ac_optarg ;;
1239 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1240 | --program-pre | --program-pr | --program-p)
1241 ac_prev=program_prefix ;;
1242 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1243 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1244 program_prefix=$ac_optarg ;;
1246 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1247 | --program-suf | --program-su | --program-s)
1248 ac_prev=program_suffix ;;
1249 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1250 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1251 program_suffix=$ac_optarg ;;
1253 -program-transform-name | --program-transform-name \
1254 | --program-transform-nam | --program-transform-na \
1255 | --program-transform-n | --program-transform- \
1256 | --program-transform | --program-transfor \
1257 | --program-transfo | --program-transf \
1258 | --program-trans | --program-tran \
1259 | --progr-tra | --program-tr | --program-t)
1260 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1270 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1272 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1273 pdfdir=$ac_optarg ;;
1275 -psdir | --psdir | --psdi | --psd | --ps)
1277 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281 | -silent | --silent | --silen | --sile | --sil)
1284 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1286 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1288 sbindir=$ac_optarg ;;
1290 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1291 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1292 | --sharedst | --shareds | --shared | --share | --shar \
1294 ac_prev=sharedstatedir ;;
1295 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1296 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1297 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1299 sharedstatedir=$ac_optarg ;;
1301 -site | --site | --sit)
1303 -site=* | --site=* | --sit=*)
1306 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1308 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1309 srcdir=$ac_optarg ;;
1311 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1312 | --syscon | --sysco | --sysc | --sys | --sy)
1313 ac_prev=sysconfdir ;;
1314 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1315 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1316 sysconfdir=$ac_optarg ;;
1318 -target | --target | --targe | --targ | --tar | --ta | --t)
1319 ac_prev=target_alias ;;
1320 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1321 target_alias=$ac_optarg ;;
1323 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1326 -version | --version | --versio | --versi | --vers | -V)
1327 ac_init_version=: ;;
1330 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1334 { (exit 1); exit 1; }; }
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1344 eval with_$ac_useropt=\$ac_optarg ;;
1346 -without-* | --without-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1351 { (exit 1); exit 1; }; }
1352 ac_useropt_orig=$ac_useropt
1353 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354 case $ac_user_opts in
1358 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1359 ac_unrecognized_sep=', ';;
1361 eval with_$ac_useropt=no ;;
1364 # Obsolete; use --with-x.
1367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1368 | --x-incl | --x-inc | --x-in | --x-i)
1369 ac_prev=x_includes ;;
1370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1372 x_includes=$ac_optarg ;;
1374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1376 ac_prev=x_libraries ;;
1377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1379 x_libraries=$ac_optarg ;;
1381 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1382 Try \`$0 --help' for more information." >&2
1383 { (exit 1); exit 1; }; }
1387 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1388 # Reject names that are not valid shell variable names.
1389 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1390 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1391 { (exit 1); exit 1; }; }
1392 eval $ac_envvar=\$ac_optarg
1393 export $ac_envvar ;;
1396 # FIXME: should be removed in autoconf 3.0.
1397 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1398 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1399 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1400 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1406 if test -n "$ac_prev"; then
1407 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1408 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1409 { (exit 1); exit 1; }; }
1412 if test -n "$ac_unrecognized_opts"; then
1413 case $enable_option_checking in
1415 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1416 { (exit 1); exit 1; }; } ;;
1417 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421 # Check all directory arguments for consistency.
1422 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1423 datadir sysconfdir sharedstatedir localstatedir includedir \
1424 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1425 libdir localedir mandir
1427 eval ac_val=\$$ac_var
1428 # Remove trailing slashes.
1431 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1432 eval $ac_var=\$ac_val;;
1434 # Be sure to have absolute directory names.
1436 [\\/$]* | ?:[\\/]* ) continue;;
1437 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1439 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1440 { (exit 1); exit 1; }; }
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1448 target=$target_alias
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x; then
1452 if test "x$build_alias" = x; then
1453 cross_compiling=maybe
1454 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1455 If a cross compiler is detected then cross compile mode will be used." >&2
1456 elif test "x$build_alias" != "x$host_alias"; then
1462 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1464 test "$silent" = yes && exec 6>/dev/null
1467 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1468 ac_ls_di=`ls -di .` &&
1469 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1470 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1471 { (exit 1); exit 1; }; }
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1474 { (exit 1); exit 1; }; }
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479 ac_srcdir_defaulted=yes
1480 # Try the directory containing this script, then the parent directory.
1481 ac_confdir=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483 X"$as_myself" : 'X\(//\)[^/]' \| \
1484 X"$as_myself" : 'X\(//\)$' \| \
1485 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1509 ac_srcdir_defaulted=no
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1514 { (exit 1); exit 1; }; }
1516 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1518 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1519 { (exit 1); exit 1; }; }
1521 # When building in place, set srcdir=.
1522 if test "$ac_abs_confdir" = "$ac_pwd"; then
1525 # Remove unnecessary trailing slashes from srcdir.
1526 # Double slashes in file names in object file debugging info
1527 # mess up M-x gdb in Emacs.
1529 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1531 for ac_var in $ac_precious_vars; do
1532 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1533 eval ac_env_${ac_var}_value=\$${ac_var}
1534 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1535 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1539 # Report the --help message.
1541 if test "$ac_init_help" = "long"; then
1542 # Omit some internal or obsolete options to make the list less imposing.
1543 # This message is too long to be a string in the A/UX 3.1 sh.
1545 \`configure' configures libffi 3.0.9 to adapt to many kinds of systems.
1547 Usage: $0 [OPTION]... [VAR=VALUE]...
1549 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1550 VAR=VALUE. See below for descriptions of some of the useful variables.
1552 Defaults for the options are specified in brackets.
1555 -h, --help display this help and exit
1556 --help=short display options specific to this package
1557 --help=recursive display the short help of all the included packages
1558 -V, --version display version information and exit
1559 -q, --quiet, --silent do not print \`checking...' messages
1560 --cache-file=FILE cache test results in FILE [disabled]
1561 -C, --config-cache alias for \`--cache-file=config.cache'
1562 -n, --no-create do not create output files
1563 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1565 Installation directories:
1566 --prefix=PREFIX install architecture-independent files in PREFIX
1567 [$ac_default_prefix]
1568 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1571 By default, \`make install' will install all the files in
1572 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1573 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1574 for instance \`--prefix=\$HOME'.
1576 For better control, use the options below.
1578 Fine tuning of the installation directories:
1579 --bindir=DIR user executables [EPREFIX/bin]
1580 --sbindir=DIR system admin executables [EPREFIX/sbin]
1581 --libexecdir=DIR program executables [EPREFIX/libexec]
1582 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1583 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1584 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1585 --libdir=DIR object code libraries [EPREFIX/lib]
1586 --includedir=DIR C header files [PREFIX/include]
1587 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1588 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1589 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1590 --infodir=DIR info documentation [DATAROOTDIR/info]
1591 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1592 --mandir=DIR man documentation [DATAROOTDIR/man]
1593 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1594 --htmldir=DIR html documentation [DOCDIR]
1595 --dvidir=DIR dvi documentation [DOCDIR]
1596 --pdfdir=DIR pdf documentation [DOCDIR]
1597 --psdir=DIR ps documentation [DOCDIR]
1603 --program-prefix=PREFIX prepend PREFIX to installed program names
1604 --program-suffix=SUFFIX append SUFFIX to installed program names
1605 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1608 --build=BUILD configure for building on BUILD [guessed]
1609 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1610 --target=TARGET configure for building compilers for TARGET [HOST]
1614 if test -n "$ac_init_help"; then
1615 case $ac_init_help in
1616 short | recursive ) echo "Configuration of libffi 3.0.9:";;
1621 --disable-option-checking ignore unrecognized --enable/--with options
1622 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1623 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1624 --disable-dependency-tracking speeds up one-time build
1625 --enable-dependency-tracking do not reject slow dependency extractors
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-maintainer-mode enable make rules and dependencies not useful
1632 (and sometimes confusing) to the casual installer
1633 --enable-debug debugging mode
1634 --disable-structs omit code for struct support
1635 --disable-raw-api make the raw api unavailable
1636 --enable-purify-safety purify-safe mode
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-pic try to use only PIC/non-PIC objects [default=use
1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1645 Some influential environment variables:
1646 CC C compiler command
1647 CFLAGS C compiler flags
1648 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1649 nonstandard directory <lib dir>
1650 LIBS libraries to pass to the linker, e.g. -l<library>
1651 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1652 you have headers in a nonstandard directory <include dir>
1653 CCAS assembler compiler command (defaults to CC)
1654 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1657 Use these variables to override the choices made by `configure' or to help
1658 it to find libraries and programs with nonstandard names/locations.
1660 Report bugs to <http://gcc.gnu.org/bugs.html>.
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1690 .) # We are building in place.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1723 libffi configure 3.0.9
1724 generated by GNU Autoconf 2.63
1726 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1733 cat >config.log <<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1737 It was created by libffi $as_me 3.0.9, which was
1738 generated by GNU Autoconf 2.63. Invocation command line was
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir=.
1774 $as_echo "PATH: $as_dir"
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_must_keep_next=false
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827 -* ) ac_must_keep_next=true ;;
1830 ac_configure_args="$ac_configure_args '$ac_arg'"
1835 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1854 # The following way of writing the cache mishandles newlines in values,
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865 _ | IFS | as_nl) ;; #(
1866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867 *) $as_unset $ac_var ;;
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887 ## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##
1892 for ac_var in $ac_subst_vars
1894 eval ac_val=\$$ac_var
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898 $as_echo "$ac_var='\''$ac_val'\''"
1902 if test -n "$ac_subst_files"; then
1904 ## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##
1909 for ac_var in $ac_subst_files
1911 eval ac_val=\$$ac_var
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915 $as_echo "$ac_var='\''$ac_val'\''"
1920 if test -s confdefs.h; then
1930 test "$ac_signal" != 0 &&
1931 $as_echo "$as_me: caught signal $ac_signal"
1932 $as_echo "$as_me: exit $exit_status"
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1938 for ac_signal in 1 2 13 15; do
1939 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1946 # Predefined preprocessor variables.
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_STRING "$PACKAGE_STRING"
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1977 if test -n "$CONFIG_SITE"; then
1978 ac_site_file1=$CONFIG_SITE
1979 elif test "x$prefix" != xNONE; then
1980 ac_site_file1=$prefix/share/config.site
1981 ac_site_file2=$prefix/etc/config.site
1983 ac_site_file1=$ac_default_prefix/share/config.site
1984 ac_site_file2=$ac_default_prefix/etc/config.site
1986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1988 test "x$ac_site_file" = xNONE && continue
1989 if test -r "$ac_site_file"; then
1990 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992 sed 's/^/| /' "$ac_site_file" >&5
1997 if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special
1999 # files actually), so we avoid doing that.
2000 if test -f "$cache_file"; then
2001 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002 $as_echo "$as_me: loading cache $cache_file" >&6;}
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2009 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010 $as_echo "$as_me: creating cache $cache_file" >&6;}
2014 # Check that the precious variables saved in the cache have kept the same
2016 ac_cache_corrupted=false
2017 for ac_var in $ac_precious_vars; do
2018 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019 eval ac_new_set=\$ac_env_${ac_var}_set
2020 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021 eval ac_new_val=\$ac_env_${ac_var}_value
2022 case $ac_old_set,$ac_new_set in
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2033 if test "x$ac_old_val" != "x$ac_new_val"; then
2034 # differences in whitespace do not lead to failure.
2035 ac_old_val_w=`echo x $ac_old_val`
2036 ac_new_val_w=`echo x $ac_new_val`
2037 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040 ac_cache_corrupted=:
2042 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044 eval $ac_var=\$ac_old_val
2046 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2047 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2048 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2049 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2052 # Pass precious variables to config.status.
2053 if test "$ac_new_set" = set; then
2055 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 *) ac_arg=$ac_var=$ac_new_val ;;
2058 case " $ac_configure_args " in
2059 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2060 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2064 if $ac_cache_corrupted; then
2065 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071 { (exit 1); exit 1; }; }
2099 ac_cpp='$CPP $CPPFLAGS'
2100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 ac_config_headers="$ac_config_headers fficonfig.h"
2109 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2110 if test -f "$ac_dir/install-sh"; then
2112 ac_install_sh="$ac_aux_dir/install-sh -c"
2114 elif test -f "$ac_dir/install.sh"; then
2116 ac_install_sh="$ac_aux_dir/install.sh -c"
2118 elif test -f "$ac_dir/shtool"; then
2120 ac_install_sh="$ac_aux_dir/shtool install -c"
2124 if test -z "$ac_aux_dir"; then
2125 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2126 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2127 { (exit 1); exit 1; }; }
2130 # These three variables are undocumented and unsupported,
2131 # and are intended to be withdrawn in a future Autoconf release.
2132 # They can cause serious problems if a builder's source tree is in a directory
2133 # whose full name contains unusual characters.
2134 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2135 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2136 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2139 # Make sure we can run config.sub.
2140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2141 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2142 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2143 { (exit 1); exit 1; }; }
2145 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2146 $as_echo_n "checking build system type... " >&6; }
2147 if test "${ac_cv_build+set}" = set; then
2148 $as_echo_n "(cached) " >&6
2150 ac_build_alias=$build_alias
2151 test "x$ac_build_alias" = x &&
2152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2153 test "x$ac_build_alias" = x &&
2154 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2155 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2156 { (exit 1); exit 1; }; }
2157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2158 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2159 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2160 { (exit 1); exit 1; }; }
2163 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2164 $as_echo "$ac_cv_build" >&6; }
2165 case $ac_cv_build in
2167 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2168 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2169 { (exit 1); exit 1; }; };;
2172 ac_save_IFS=$IFS; IFS='-'
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2185 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2186 $as_echo_n "checking host system type... " >&6; }
2187 if test "${ac_cv_host+set}" = set; then
2188 $as_echo_n "(cached) " >&6
2190 if test "x$host_alias" = x; then
2191 ac_cv_host=$ac_cv_build
2193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2194 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2195 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2196 { (exit 1); exit 1; }; }
2200 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2201 $as_echo "$ac_cv_host" >&6; }
2204 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2205 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2206 { (exit 1); exit 1; }; };;
2209 ac_save_IFS=$IFS; IFS='-'
2215 # Remember, the first character of IFS is used to create $*,
2216 # except with old shells:
2219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2222 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2223 $as_echo_n "checking target system type... " >&6; }
2224 if test "${ac_cv_target+set}" = set; then
2225 $as_echo_n "(cached) " >&6
2227 if test "x$target_alias" = x; then
2228 ac_cv_target=$ac_cv_host
2230 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2231 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2232 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2233 { (exit 1); exit 1; }; }
2237 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2238 $as_echo "$ac_cv_target" >&6; }
2239 case $ac_cv_target in
2241 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2242 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2243 { (exit 1); exit 1; }; };;
2245 target=$ac_cv_target
2246 ac_save_IFS=$IFS; IFS='-'
2252 # Remember, the first character of IFS is used to create $*,
2253 # except with old shells:
2256 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2259 # The aliases save the names the user supplied, while $host etc.
2260 # will get canonicalized.
2261 test -n "$target_alias" &&
2262 test "$program_prefix$program_suffix$program_transform_name" = \
2264 program_prefix=${target_alias}-
2265 target_alias=${target_alias-$host_alias}
2267 . ${srcdir}/configure.host
2269 am__api_version='1.11'
2271 # Find a good install program. We prefer a C program (faster),
2272 # so one script is as good as another. But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 # Reject install programs that cannot install multiple files.
2285 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2287 if test -z "$INSTALL"; then
2288 if test "${ac_cv_path_install+set}" = set; then
2289 $as_echo_n "(cached) " >&6
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 # Account for people who put trailing slashes in PATH elements.
2298 ./ | .// | /cC/* | \
2299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2303 # OSF1 and SCO ODT 3.0 have their own names for install.
2304 # Don't use installbsd from OSF since it installs stuff as root
2306 for ac_prog in ginstall scoinst install; do
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2309 if test $ac_prog = install &&
2310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # AIX install. It has an incompatible calling convention.
2313 elif test $ac_prog = install &&
2314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315 # program-specific install script used by HP pwplus--don't use.
2318 rm -rf conftest.one conftest.two conftest.dir
2319 echo one > conftest.one
2320 echo two > conftest.two
2322 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2323 test -s conftest.one && test -s conftest.two &&
2324 test -s conftest.dir/conftest.one &&
2325 test -s conftest.dir/conftest.two
2327 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2340 rm -rf conftest.one conftest.two conftest.dir
2343 if test "${ac_cv_path_install+set}" = set; then
2344 INSTALL=$ac_cv_path_install
2346 # As a last resort, use the slow shell script. Don't cache a
2347 # value for INSTALL within a source directory, because that will
2348 # break other packages using the cache if that directory is
2349 # removed, or if the value is a relative name.
2350 INSTALL=$ac_install_sh
2353 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2354 $as_echo "$INSTALL" >&6; }
2356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2357 # It thinks the first close brace ends the variable substitution.
2358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2364 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2365 $as_echo_n "checking whether build environment is sane... " >&6; }
2368 echo timestamp > conftest.file
2369 # Reject unsafe characters in $srcdir or the absolute working directory
2370 # name. Accept space and tab only in the latter.
2374 *[\\\"\#\$\&\'\`$am_lf]*)
2375 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2376 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2377 { (exit 1); exit 1; }; };;
2380 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2381 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2382 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2383 { (exit 1); exit 1; }; };;
2386 # Do `set' in a subshell so we don't clobber the current shell's
2387 # arguments. Must try -L first in case configure is actually a
2388 # symlink; some systems play weird games with the mod time of symlinks
2389 # (eg FreeBSD returns the mod time of the symlink's containing
2392 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2393 if test "$*" = "X"; then
2395 set X `ls -t "$srcdir/configure" conftest.file`
2398 if test "$*" != "X $srcdir/configure conftest.file" \
2399 && test "$*" != "X conftest.file $srcdir/configure"; then
2401 # If neither matched, then we have a broken ls. This can happen
2402 # if, for instance, CONFIG_SHELL is bash and it inherits a
2403 # broken ls alias from the environment. This has actually
2404 # happened. Such a system could not be considered "sane".
2405 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2406 alias in your environment" >&5
2407 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2408 alias in your environment" >&2;}
2409 { (exit 1); exit 1; }; }
2412 test "$2" = conftest.file
2418 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2419 Check your system clock" >&5
2420 $as_echo "$as_me: error: newly created file is older than distributed files!
2421 Check your system clock" >&2;}
2422 { (exit 1); exit 1; }; }
2424 { $as_echo "$as_me:$LINENO: result: yes" >&5
2425 $as_echo "yes" >&6; }
2426 test "$program_prefix" != NONE &&
2427 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2428 # Use a double $ so make ignores it.
2429 test "$program_suffix" != NONE &&
2430 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2431 # Double any \ or $.
2432 # By default was `s,x,x', remove it if useless.
2433 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2434 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2436 # expand $ac_aux_dir to an absolute path
2437 am_aux_dir=`cd $ac_aux_dir && pwd`
2439 if test x"${MISSING+set}" != xset; then
2442 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2444 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2447 # Use eval to expand $SHELL
2448 if eval "$MISSING --run true"; then
2449 am_missing_run="$MISSING --run "
2452 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2453 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2456 if test x"${install_sh}" != xset; then
2459 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2461 install_sh="\${SHELL} $am_aux_dir/install-sh"
2465 # Installed binaries are usually stripped using `strip' when the user
2466 # run `make install-strip'. However `strip' might not be the right
2467 # tool to use in cross-compilation environments, therefore Automake
2468 # will honor the `STRIP' environment variable to overrule this program.
2469 if test "$cross_compiling" != no; then
2470 if test -n "$ac_tool_prefix"; then
2471 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472 set dummy ${ac_tool_prefix}strip; ac_word=$2
2473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if test "${ac_cv_prog_STRIP+set}" = set; then
2476 $as_echo_n "(cached) " >&6
2478 if test -n "$STRIP"; then
2479 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 STRIP=$ac_cv_prog_STRIP
2499 if test -n "$STRIP"; then
2500 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2501 $as_echo "$STRIP" >&6; }
2503 { $as_echo "$as_me:$LINENO: result: no" >&5
2504 $as_echo "no" >&6; }
2509 if test -z "$ac_cv_prog_STRIP"; then
2511 # Extract the first word of "strip", so it can be a program name with args.
2512 set dummy strip; ac_word=$2
2513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2518 if test -n "$ac_ct_STRIP"; then
2519 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_ac_ct_STRIP="strip"
2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539 if test -n "$ac_ct_STRIP"; then
2540 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541 $as_echo "$ac_ct_STRIP" >&6; }
2543 { $as_echo "$as_me:$LINENO: result: no" >&5
2544 $as_echo "no" >&6; }
2547 if test "x$ac_ct_STRIP" = x; then
2550 case $cross_compiling:$ac_tool_warned in
2552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554 ac_tool_warned=yes ;;
2559 STRIP="$ac_cv_prog_STRIP"
2563 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2565 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2566 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2567 if test -z "$MKDIR_P"; then
2568 if test "${ac_cv_path_mkdir+set}" = set; then
2569 $as_echo_n "(cached) " >&6
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2575 test -z "$as_dir" && as_dir=.
2576 for ac_prog in mkdir gmkdir; do
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2579 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2580 'mkdir (GNU coreutils) '* | \
2581 'mkdir (coreutils) '* | \
2582 'mkdir (fileutils) '4.1*)
2583 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2593 if test "${ac_cv_path_mkdir+set}" = set; then
2594 MKDIR_P="$ac_cv_path_mkdir -p"
2596 # As a last resort, use the slow shell script. Don't cache a
2597 # value for MKDIR_P within a source directory, because that will
2598 # break other packages using the cache if that directory is
2599 # removed, or if the value is a relative name.
2600 test -d ./--version && rmdir ./--version
2601 MKDIR_P="$ac_install_sh -d"
2604 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2605 $as_echo "$MKDIR_P" >&6; }
2609 [\\/$]* | ?:[\\/]*) ;;
2610 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2613 for ac_prog in gawk mawk nawk awk
2615 # Extract the first word of "$ac_prog", so it can be a program name with args.
2616 set dummy $ac_prog; ac_word=$2
2617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if test "${ac_cv_prog_AWK+set}" = set; then
2620 $as_echo_n "(cached) " >&6
2622 if test -n "$AWK"; then
2623 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_AWK="$ac_prog"
2633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 if test -n "$AWK"; then
2644 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2645 $as_echo "$AWK" >&6; }
2647 { $as_echo "$as_me:$LINENO: result: no" >&5
2648 $as_echo "no" >&6; }
2652 test -n "$AWK" && break
2655 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2656 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2658 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2659 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2660 $as_echo_n "(cached) " >&6
2662 cat >conftest.make <<\_ACEOF
2665 @echo '@@@%%%=$(MAKE)=@@@%%%'
2667 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2668 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2670 eval ac_cv_prog_make_${ac_make}_set=yes;;
2672 eval ac_cv_prog_make_${ac_make}_set=no;;
2676 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2677 { $as_echo "$as_me:$LINENO: result: yes" >&5
2678 $as_echo "yes" >&6; }
2681 { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2683 SET_MAKE="MAKE=${MAKE-make}"
2686 rm -rf .tst 2>/dev/null
2687 mkdir .tst 2>/dev/null
2688 if test -d .tst; then
2693 rmdir .tst 2>/dev/null
2695 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2696 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2697 # is not polluted with repeated "-I."
2698 am__isrc=' -I$(srcdir)'
2699 # test to see if srcdir already configured
2700 if test -f $srcdir/config.status; then
2701 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2702 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2703 { (exit 1); exit 1; }; }
2707 # test whether we have cygpath
2708 if test -z "$CYGPATH_W"; then
2709 if (cygpath --version) >/dev/null 2>/dev/null; then
2710 CYGPATH_W='cygpath -w'
2717 # Define the identity of the package.
2722 cat >>confdefs.h <<_ACEOF
2723 #define PACKAGE "$PACKAGE"
2727 cat >>confdefs.h <<_ACEOF
2728 #define VERSION "$VERSION"
2731 # Some tools Automake needs.
2733 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2736 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2739 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2742 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2745 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2747 # We need awk for the "check" target. The system "awk" is bad on
2749 # Always define AMTAR for backward compatibility.
2751 AMTAR=${AMTAR-"${am_missing_run}tar"}
2753 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2760 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2761 # We must force CC to /not/ be precious variables; otherwise
2762 # the wrong, non-multilib-adjusted value will be used in multilibs.
2763 # As a side effect, we have to subst CFLAGS ourselves.
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_CC+set}" = set; then
2778 $as_echo_n "(cached) " >&6
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2805 { $as_echo "$as_me:$LINENO: result: no" >&5
2806 $as_echo "no" >&6; }
2811 if test -z "$ac_cv_prog_CC"; then
2813 # Extract the first word of "gcc", so it can be a program name with args.
2814 set dummy gcc; ac_word=$2
2815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_CC="gcc"
2831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2845 { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2849 if test "x$ac_ct_CC" = x; then
2852 case $cross_compiling:$ac_tool_warned in
2854 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2864 if test -z "$CC"; then
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}cc; ac_word=$2
2868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if test "${ac_cv_prog_CC+set}" = set; then
2871 $as_echo_n "(cached) " >&6
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_CC="${ac_tool_prefix}cc"
2884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 if test -n "$CC"; then
2895 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2896 $as_echo "$CC" >&6; }
2898 { $as_echo "$as_me:$LINENO: result: no" >&5
2899 $as_echo "no" >&6; }
2905 if test -z "$CC"; then
2906 # Extract the first word of "cc", so it can be a program name with args.
2907 set dummy cc; ac_word=$2
2908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911 $as_echo_n "(cached) " >&6
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2925 ac_prog_rejected=yes
2929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test $ac_prog_rejected = yes; then
2937 # We found a bogon in the path, so make sure we never use it.
2938 set dummy $ac_cv_prog_CC
2940 if test $# != 0; then
2941 # We chose a different compiler from the bogus one.
2942 # However, it has the same basename, so the bogon will be chosen
2943 # first if we set CC to just the basename; use the full file name.
2945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2955 { $as_echo "$as_me:$LINENO: result: no" >&5
2956 $as_echo "no" >&6; }
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 for ac_prog in cl.exe
2965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_CC+set}" = set; then
2970 $as_echo_n "(cached) " >&6
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2983 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 if test -n "$CC"; then
2994 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2997 { $as_echo "$as_me:$LINENO: result: no" >&5
2998 $as_echo "no" >&6; }
3002 test -n "$CC" && break
3005 if test -z "$CC"; then
3007 for ac_prog in cl.exe
3009 # Extract the first word of "$ac_prog", so it can be a program name with args.
3010 set dummy $ac_prog; ac_word=$2
3011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3014 $as_echo_n "(cached) " >&6
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_ac_ct_CC="$ac_prog"
3027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037 if test -n "$ac_ct_CC"; then
3038 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3039 $as_echo "$ac_ct_CC" >&6; }
3041 { $as_echo "$as_me:$LINENO: result: no" >&5
3042 $as_echo "no" >&6; }
3046 test -n "$ac_ct_CC" && break
3049 if test "x$ac_ct_CC" = x; then
3052 case $cross_compiling:$ac_tool_warned in
3054 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3065 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3068 See \`config.log' for more details." >&5
3069 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3070 See \`config.log' for more details." >&2;}
3071 { (exit 1); exit 1; }; }; }
3073 # Provide some information about the compiler.
3074 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3077 { (ac_try="$ac_compiler --version >&5"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084 (eval "$ac_compiler --version >&5") 2>&5
3086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088 { (ac_try="$ac_compiler -v >&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 -v >&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); }
3111 cat >conftest.$ac_ext <<_ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3126 ac_clean_files_save=$ac_clean_files
3127 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3128 # Try to create an executable without -o first, disregard a.out.
3129 # It will help us diagnose broken compilers, and finding out an intuition
3131 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3132 $as_echo_n "checking for C compiler default output file name... " >&6; }
3133 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3135 # The possible output files:
3136 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3139 for ac_file in $ac_files
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3148 if { (ac_try="$ac_link_default"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155 (eval "$ac_link_default") 2>&5
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; then
3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3162 # so that the user can short-circuit this test for compilers unknown to
3164 for ac_file in $ac_files ''
3166 test -f "$ac_file" || continue
3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3171 # We found the default executable, but exeext='' is most
3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 # We set ac_cv_exeext here because the later test for it is not
3180 # safe: cross compilers may not add the suffix if given an `-o'
3181 # argument, so we may need to know it at that point already.
3182 # Even if this section looks crufty: it has the advantage of
3189 test "$ac_cv_exeext" = no && ac_cv_exeext=
3195 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3196 $as_echo "$ac_file" >&6; }
3197 if test -z "$ac_file"; then
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3201 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3204 See \`config.log' for more details." >&5
3205 $as_echo "$as_me: error: C compiler cannot create executables
3206 See \`config.log' for more details." >&2;}
3207 { (exit 77); exit 77; }; }; }
3210 ac_exeext=$ac_cv_exeext
3212 # Check that the compiler produces executables we can run. If not, either
3213 # the compiler is broken, or we cross compile.
3214 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3215 $as_echo_n "checking whether the C compiler works... " >&6; }
3216 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3217 # If not cross compiling, check that we can run a simple program.
3218 if test "$cross_compiling" != yes; then
3219 if { ac_try='./$ac_file'
3220 { (case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3225 $as_echo "$ac_try_echo") >&5
3226 (eval "$ac_try") 2>&5
3228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }; }; then
3232 if test "$cross_compiling" = maybe; then
3235 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3238 If you meant to cross compile, use \`--host'.
3239 See \`config.log' for more details." >&5
3240 $as_echo "$as_me: error: cannot run C compiled programs.
3241 If you meant to cross compile, use \`--host'.
3242 See \`config.log' for more details." >&2;}
3243 { (exit 1); exit 1; }; }; }
3247 { $as_echo "$as_me:$LINENO: result: yes" >&5
3248 $as_echo "yes" >&6; }
3250 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3251 ac_clean_files=$ac_clean_files_save
3252 # Check that the compiler produces executables we can run. If not, either
3253 # the compiler is broken, or we cross compile.
3254 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3255 $as_echo_n "checking whether we are cross compiling... " >&6; }
3256 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3257 $as_echo "$cross_compiling" >&6; }
3259 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3260 $as_echo_n "checking for suffix of executables... " >&6; }
3261 if { (ac_try="$ac_link"
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267 $as_echo "$ac_try_echo") >&5
3268 (eval "$ac_link") 2>&5
3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; then
3272 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3273 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3274 # work properly (i.e., refer to `conftest.exe'), while it won't with
3276 for ac_file in conftest.exe conftest conftest.*; do
3277 test -f "$ac_file" || continue
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3286 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3289 See \`config.log' for more details." >&5
3290 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3291 See \`config.log' for more details." >&2;}
3292 { (exit 1); exit 1; }; }; }
3295 rm -f conftest$ac_cv_exeext
3296 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3297 $as_echo "$ac_cv_exeext" >&6; }
3299 rm -f conftest.$ac_ext
3300 EXEEXT=$ac_cv_exeext
3302 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3303 $as_echo_n "checking for suffix of object files... " >&6; }
3304 if test "${ac_cv_objext+set}" = set; then
3305 $as_echo_n "(cached) " >&6
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3322 rm -f conftest.o conftest.obj
3323 if { (ac_try="$ac_compile"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329 $as_echo "$ac_try_echo") >&5
3330 (eval "$ac_compile") 2>&5
3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; then
3334 for ac_file in conftest.o conftest.obj conftest.*; do
3335 test -f "$ac_file" || continue;
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3343 $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3349 See \`config.log' for more details." >&5
3350 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3351 See \`config.log' for more details." >&2;}
3352 { (exit 1); exit 1; }; }; }
3355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3357 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3358 $as_echo "$ac_cv_objext" >&6; }
3359 OBJEXT=$ac_cv_objext
3361 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3362 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3363 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3364 $as_echo_n "(cached) " >&6
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392 (eval "$ac_compile") 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } && {
3399 test -z "$ac_c_werror_flag" ||
3400 test ! -s conftest.err
3401 } && test -s conftest.$ac_objext; then
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3415 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3416 if test $ac_compiler_gnu = yes; then
3421 ac_test_CFLAGS=${CFLAGS+set}
3422 ac_save_CFLAGS=$CFLAGS
3423 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3424 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3425 if test "${ac_cv_prog_cc_g+set}" = set; then
3426 $as_echo_n "(cached) " >&6
3428 ac_save_c_werror_flag=$ac_c_werror_flag
3429 ac_c_werror_flag=yes
3432 cat >conftest.$ac_ext <<_ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3454 $as_echo "$ac_try_echo") >&5
3455 (eval "$ac_compile") 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } && {
3462 test -z "$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3464 } && test -s conftest.$ac_objext; then
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3486 rm -f conftest.$ac_objext
3487 if { (ac_try="$ac_compile"
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494 (eval "$ac_compile") 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && {
3501 test -z "$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 } && test -s conftest.$ac_objext; then
3506 $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 ac_c_werror_flag=$ac_save_c_werror_flag
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3526 rm -f conftest.$ac_objext
3527 if { (ac_try="$ac_compile"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3533 $as_echo "$ac_try_echo") >&5
3534 (eval "$ac_compile") 2>conftest.er1
3536 grep -v '^ *+' conftest.er1 >conftest.err
3538 cat conftest.err >&5
3539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } && {
3541 test -z "$ac_c_werror_flag" ||
3542 test ! -s conftest.err
3543 } && test -s conftest.$ac_objext; then
3546 $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_c_werror_flag=$ac_save_c_werror_flag
3561 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3562 $as_echo "$ac_cv_prog_cc_g" >&6; }
3563 if test "$ac_test_CFLAGS" = set; then
3564 CFLAGS=$ac_save_CFLAGS
3565 elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
3572 if test "$GCC" = yes; then
3578 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580 if test "${ac_cv_prog_cc_c89+set}" = set; then
3581 $as_echo_n "(cached) " >&6
3583 ac_cv_prog_cc_c89=no
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3593 #include <sys/types.h>
3594 #include <sys/stat.h>
3595 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3596 struct buf { int x; };
3597 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3598 static char *e (p, i)
3604 static char *f (char * (*g) (char **, int), char **p, ...)
3609 s = g (p, va_arg (v,int));
3614 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3615 function prototypes and stuff, but not '\xHH' hex character constants.
3616 These don't provoke an error unfortunately, instead are silently treated
3617 as 'x'. The following induces an error, until -std is added to get
3618 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3619 array size at least. It's necessary to write '\x00'==0 to get something
3620 that's true only with -std. */
3621 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3623 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3624 inside strings and character constants. */
3626 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3628 int test (int i, double x);
3629 struct s1 {int (*f) (int a);};
3630 struct s2 {int (*f) (double a);};
3631 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3637 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3642 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3643 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3645 CC="$ac_save_CC $ac_arg"
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3653 $as_echo "$ac_try_echo") >&5
3654 (eval "$ac_compile") 2>conftest.er1
3656 grep -v '^ *+' conftest.er1 >conftest.err
3658 cat conftest.err >&5
3659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && {
3661 test -z "$ac_c_werror_flag" ||
3662 test ! -s conftest.err
3663 } && test -s conftest.$ac_objext; then
3664 ac_cv_prog_cc_c89=$ac_arg
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3672 rm -f core conftest.err conftest.$ac_objext
3673 test "x$ac_cv_prog_cc_c89" != "xno" && break
3675 rm -f conftest.$ac_ext
3680 case "x$ac_cv_prog_cc_c89" in
3682 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3683 $as_echo "none needed" >&6; } ;;
3685 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3686 $as_echo "unsupported" >&6; } ;;
3688 CC="$CC $ac_cv_prog_cc_c89"
3689 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3690 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699 DEPDIR="${am__leading_dot}deps"
3701 ac_config_commands="$ac_config_commands depfiles"
3704 am_make=${MAKE-make}
3705 cat > confinc << 'END'
3707 @echo this is the am__doit target
3710 # If we don't find an include directive, just comment out the code.
3711 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3712 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3716 # First try GNU make style include.
3717 echo "include confinc" > confmf
3718 # Ignore all kinds of additional output from `make'.
3719 case `$am_make -s -f confmf 2> /dev/null` in #(
3720 *the\ am__doit\ target*)
3726 # Now try BSD make style include.
3727 if test "$am__include" = "#"; then
3728 echo '.include "confinc"' > confmf
3729 case `$am_make -s -f confmf 2> /dev/null` in #(
3730 *the\ am__doit\ target*)
3731 am__include=.include
3739 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3740 $as_echo "$_am_result" >&6; }
3741 rm -f confinc confmf
3743 # Check whether --enable-dependency-tracking was given.
3744 if test "${enable_dependency_tracking+set}" = set; then
3745 enableval=$enable_dependency_tracking;
3748 if test "x$enable_dependency_tracking" != xno; then
3749 am_depcomp="$ac_aux_dir/depcomp"
3752 if test "x$enable_dependency_tracking" != xno; then
3762 depcc="$CC" am_compiler_list=
3764 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3765 $as_echo_n "checking dependency style of $depcc... " >&6; }
3766 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3767 $as_echo_n "(cached) " >&6
3769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3770 # We make a subdir and do the tests there. Otherwise we can end up
3771 # making bogus files that we don't know about and never remove. For
3772 # instance it was reported that on HP-UX the gcc test will end up
3773 # making a dummy file named `D' -- because `-MD' means `put the output
3776 # Copy depcomp to subdir because otherwise we won't find it if we're
3777 # using a relative directory.
3778 cp "$am_depcomp" conftest.dir
3780 # We will build objects and dependencies in a subdirectory because
3781 # it helps to detect inapplicable dependency modes. For instance
3782 # both Tru64's cc and ICC support -MD to output dependencies as a
3783 # side effect of compilation, but ICC will put the dependencies in
3784 # the current directory while Tru64 will put them in the object
3788 am_cv_CC_dependencies_compiler_type=none
3789 if test "$am_compiler_list" = ""; then
3790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3793 case " $depcc " in #(
3794 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3797 for depmode in $am_compiler_list; do
3798 # Setup a source with many dependencies, because some compilers
3799 # like to wrap large dependency lists on column 80 (with \), and
3800 # we should not choose a depcomp mode which is confused by this.
3802 # We need to recreate these files for each test, as the compiler may
3803 # overwrite some of them when testing with obscure command lines.
3804 # This happens at least with the AIX C compiler.
3806 for i in 1 2 3 4 5 6; do
3807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3809 # Solaris 8's {/usr,}/bin/sh.
3810 touch sub/conftst$i.h
3812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3815 # mode. It turns out that the SunPro C++ compiler does not properly
3816 # handle `-M -o', and we need to detect this. Also, some Intel
3817 # versions had trouble with output in subdirs
3818 am__obj=sub/conftest.${OBJEXT-o}
3819 am__minus_obj="-o $am__obj"
3822 # This depmode causes a compiler race in universal mode.
3823 test "$am__universal" = false || continue
3826 # after this tag, mechanisms are not by side-effect, so they'll
3827 # only be used when explicitly requested
3828 if test "x$enable_dependency_tracking" = xyes; then
3834 msvisualcpp | msvcmsys)
3835 # This compiler won't grok `-c -o', but also, the minuso test has
3836 # not run yet. These depmodes are late enough in the game, and
3837 # so weak that their functioning should not be impacted.
3838 am__obj=conftest.${OBJEXT-o}
3843 if depmode=$depmode \
3844 source=sub/conftest.c object=$am__obj \
3845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3847 >/dev/null 2>conftest.err &&
3848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3852 # icc doesn't choke on unknown options, it will just issue warnings
3853 # or remarks (even with -Werror). So we grep stderr for any message
3854 # that says an option was ignored or not supported.
3855 # When given -MP, icc 7.0 and 7.1 complain thusly:
3856 # icc: Command line warning: ignoring option '-M'; no argument required
3857 # The diagnosis changed in icc 8.0:
3858 # icc: Command line remark: option '-MP' not supported
3859 if (grep 'ignoring option' conftest.err ||
3860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3861 am_cv_CC_dependencies_compiler_type=$depmode
3870 am_cv_CC_dependencies_compiler_type=none
3874 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3875 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3876 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3879 test "x$enable_dependency_tracking" != xno \
3880 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3882 am__fastdepCC_FALSE='#'
3884 am__fastdepCC_TRUE='#'
3885 am__fastdepCC_FALSE=
3894 # By default we simply use the C compiler to build assembly code.
3896 test "${CCAS+set}" = set || CCAS=$CC
3897 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3901 depcc="$CCAS" am_compiler_list=
3903 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3904 $as_echo_n "checking dependency style of $depcc... " >&6; }
3905 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3906 $as_echo_n "(cached) " >&6
3908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3909 # We make a subdir and do the tests there. Otherwise we can end up
3910 # making bogus files that we don't know about and never remove. For
3911 # instance it was reported that on HP-UX the gcc test will end up
3912 # making a dummy file named `D' -- because `-MD' means `put the output
3915 # Copy depcomp to subdir because otherwise we won't find it if we're
3916 # using a relative directory.
3917 cp "$am_depcomp" conftest.dir
3919 # We will build objects and dependencies in a subdirectory because
3920 # it helps to detect inapplicable dependency modes. For instance
3921 # both Tru64's cc and ICC support -MD to output dependencies as a
3922 # side effect of compilation, but ICC will put the dependencies in
3923 # the current directory while Tru64 will put them in the object
3927 am_cv_CCAS_dependencies_compiler_type=none
3928 if test "$am_compiler_list" = ""; then
3929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3934 for depmode in $am_compiler_list; do
3935 # Setup a source with many dependencies, because some compilers
3936 # like to wrap large dependency lists on column 80 (with \), and
3937 # we should not choose a depcomp mode which is confused by this.
3939 # We need to recreate these files for each test, as the compiler may
3940 # overwrite some of them when testing with obscure command lines.
3941 # This happens at least with the AIX C compiler.
3943 for i in 1 2 3 4 5 6; do
3944 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3945 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3946 # Solaris 8's {/usr,}/bin/sh.
3947 touch sub/conftst$i.h
3949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3951 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3952 # mode. It turns out that the SunPro C++ compiler does not properly
3953 # handle `-M -o', and we need to detect this. Also, some Intel
3954 # versions had trouble with output in subdirs
3955 am__obj=sub/conftest.${OBJEXT-o}
3956 am__minus_obj="-o $am__obj"
3959 # This depmode causes a compiler race in universal mode.
3960 test "$am__universal" = false || continue
3963 # after this tag, mechanisms are not by side-effect, so they'll
3964 # only be used when explicitly requested
3965 if test "x$enable_dependency_tracking" = xyes; then
3971 msvisualcpp | msvcmsys)
3972 # This compiler won't grok `-c -o', but also, the minuso test has
3973 # not run yet. These depmodes are late enough in the game, and
3974 # so weak that their functioning should not be impacted.
3975 am__obj=conftest.${OBJEXT-o}
3980 if depmode=$depmode \
3981 source=sub/conftest.c object=$am__obj \
3982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3983 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3984 >/dev/null 2>conftest.err &&
3985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3987 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3989 # icc doesn't choke on unknown options, it will just issue warnings
3990 # or remarks (even with -Werror). So we grep stderr for any message
3991 # that says an option was ignored or not supported.
3992 # When given -MP, icc 7.0 and 7.1 complain thusly:
3993 # icc: Command line warning: ignoring option '-M'; no argument required
3994 # The diagnosis changed in icc 8.0:
3995 # icc: Command line remark: option '-MP' not supported
3996 if (grep 'ignoring option' conftest.err ||
3997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3998 am_cv_CCAS_dependencies_compiler_type=$depmode
4007 am_cv_CCAS_dependencies_compiler_type=none
4011 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4012 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4013 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4016 test "x$enable_dependency_tracking" != xno \
4017 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4018 am__fastdepCCAS_TRUE=
4019 am__fastdepCCAS_FALSE='#'
4021 am__fastdepCCAS_TRUE='#'
4022 am__fastdepCCAS_FALSE=
4026 if test "x$CC" != xcc; then
4027 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4028 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4030 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4031 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4033 set dummy $CC; ac_cc=`$as_echo "$2" |
4034 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4035 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4036 $as_echo_n "(cached) " >&6
4038 cat >conftest.$ac_ext <<_ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4053 # Make sure it works both with $CC and with simple cc.
4054 # We do the test twice because some compilers refuse to overwrite an
4055 # existing .o file with -o, though they will create one.
4056 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4058 if { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4063 $as_echo "$ac_try_echo") >&5
4064 (eval "$ac_try") 2>&5
4066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073 $as_echo "$ac_try_echo") >&5
4074 (eval "$ac_try") 2>&5
4076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); };
4079 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4080 if test "x$CC" != xcc; then
4081 # Test first that cc exists at all.
4082 if { ac_try='cc -c conftest.$ac_ext >&5'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088 $as_echo "$ac_try_echo") >&5
4089 (eval "$ac_try") 2>&5
4091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4095 if { (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); } &&
4105 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111 (eval "$ac_try") 2>&5
4113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); };
4119 # cc exists but doesn't like -o.
4120 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4125 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4127 rm -f core conftest*
4130 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4131 { $as_echo "$as_me:$LINENO: result: yes" >&5
4132 $as_echo "yes" >&6; }
4134 { $as_echo "$as_me:$LINENO: result: no" >&5
4135 $as_echo "no" >&6; }
4137 cat >>confdefs.h <<\_ACEOF
4138 #define NO_MINUS_C_MINUS_O 1
4143 # FIXME: we rely on the cache variable name because
4144 # there is no other way.
4146 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4147 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4148 if test "$am_t" != yes; then
4149 # Losing compiler, so override with the script.
4150 # FIXME: It is wrong to rewrite CC.
4151 # But if we don't then we get into trouble of one sort or another.
4152 # A longer-term fix would be to have automake use am__CC in this case,
4153 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4154 CC="$am_aux_dir/compile $CC"
4160 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4161 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4166 macro_version='2.2.6'
4167 macro_revision='1.3012'
4181 ltmain="$ac_aux_dir/ltmain.sh"
4183 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4184 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4185 if test "${ac_cv_path_SED+set}" = set; then
4186 $as_echo_n "(cached) " >&6
4188 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4189 for ac_i in 1 2 3 4 5 6 7; do
4190 ac_script="$ac_script$as_nl$ac_script"
4192 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4193 $as_unset ac_script || ac_script=
4194 if test -z "$SED"; then
4195 ac_path_SED_found=false
4196 # Loop through the user's path and test for each of PROGNAME-LIST
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in sed gsed; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4205 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4206 # Check for GNU ac_path_SED and select it if it is found.
4207 # Check for GNU $ac_path_SED
4208 case `"$ac_path_SED" --version 2>&1` in
4210 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4213 $as_echo_n 0123456789 >"conftest.in"
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
4219 $as_echo '' >> "conftest.nl"
4220 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222 ac_count=`expr $ac_count + 1`
4223 if test $ac_count -gt ${ac_path_SED_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_SED="$ac_path_SED"
4226 ac_path_SED_max=$ac_count
4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 $ac_path_SED_found && break 3
4239 if test -z "$ac_cv_path_SED"; then
4240 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4241 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4242 { (exit 1); exit 1; }; }
4249 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4250 $as_echo "$ac_cv_path_SED" >&6; }
4251 SED="$ac_cv_path_SED"
4254 test -z "$SED" && SED=sed
4255 Xsed="$SED -e 1s/^X//"
4267 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4268 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4269 if test "${ac_cv_path_GREP+set}" = set; then
4270 $as_echo_n "(cached) " >&6
4272 if test -z "$GREP"; then
4273 ac_path_GREP_found=false
4274 # Loop through the user's path and test for each of PROGNAME-LIST
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4279 test -z "$as_dir" && as_dir=.
4280 for ac_prog in grep ggrep; do
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4283 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4284 # Check for GNU ac_path_GREP and select it if it is found.
4285 # Check for GNU $ac_path_GREP
4286 case `"$ac_path_GREP" --version 2>&1` in
4288 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4291 $as_echo_n 0123456789 >"conftest.in"
4294 cat "conftest.in" "conftest.in" >"conftest.tmp"
4295 mv "conftest.tmp" "conftest.in"
4296 cp "conftest.in" "conftest.nl"
4297 $as_echo 'GREP' >> "conftest.nl"
4298 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4300 ac_count=`expr $ac_count + 1`
4301 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4302 # Best one so far, save it but keep looking for a better one
4303 ac_cv_path_GREP="$ac_path_GREP"
4304 ac_path_GREP_max=$ac_count
4306 # 10*(2^10) chars as input seems more than enough
4307 test $ac_count -gt 10 && break
4309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312 $ac_path_GREP_found && break 3
4317 if test -z "$ac_cv_path_GREP"; then
4318 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4319 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4320 { (exit 1); exit 1; }; }
4323 ac_cv_path_GREP=$GREP
4327 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4328 $as_echo "$ac_cv_path_GREP" >&6; }
4329 GREP="$ac_cv_path_GREP"
4332 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4333 $as_echo_n "checking for egrep... " >&6; }
4334 if test "${ac_cv_path_EGREP+set}" = set; then
4335 $as_echo_n "(cached) " >&6
4337 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4338 then ac_cv_path_EGREP="$GREP -E"
4340 if test -z "$EGREP"; then
4341 ac_path_EGREP_found=false
4342 # Loop through the user's path and test for each of PROGNAME-LIST
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 test -z "$as_dir" && as_dir=.
4348 for ac_prog in egrep; do
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4351 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4352 # Check for GNU ac_path_EGREP and select it if it is found.
4353 # Check for GNU $ac_path_EGREP
4354 case `"$ac_path_EGREP" --version 2>&1` in
4356 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4359 $as_echo_n 0123456789 >"conftest.in"
4362 cat "conftest.in" "conftest.in" >"conftest.tmp"
4363 mv "conftest.tmp" "conftest.in"
4364 cp "conftest.in" "conftest.nl"
4365 $as_echo 'EGREP' >> "conftest.nl"
4366 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4368 ac_count=`expr $ac_count + 1`
4369 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4370 # Best one so far, save it but keep looking for a better one
4371 ac_cv_path_EGREP="$ac_path_EGREP"
4372 ac_path_EGREP_max=$ac_count
4374 # 10*(2^10) chars as input seems more than enough
4375 test $ac_count -gt 10 && break
4377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 $ac_path_EGREP_found && break 3
4385 if test -z "$ac_cv_path_EGREP"; then
4386 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4387 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4388 { (exit 1); exit 1; }; }
4391 ac_cv_path_EGREP=$EGREP
4396 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4397 $as_echo "$ac_cv_path_EGREP" >&6; }
4398 EGREP="$ac_cv_path_EGREP"
4401 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4402 $as_echo_n "checking for fgrep... " >&6; }
4403 if test "${ac_cv_path_FGREP+set}" = set; then
4404 $as_echo_n "(cached) " >&6
4406 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4407 then ac_cv_path_FGREP="$GREP -F"
4409 if test -z "$FGREP"; then
4410 ac_path_FGREP_found=false
4411 # Loop through the user's path and test for each of PROGNAME-LIST
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4416 test -z "$as_dir" && as_dir=.
4417 for ac_prog in fgrep; do
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4420 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4421 # Check for GNU ac_path_FGREP and select it if it is found.
4422 # Check for GNU $ac_path_FGREP
4423 case `"$ac_path_FGREP" --version 2>&1` in
4425 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4428 $as_echo_n 0123456789 >"conftest.in"
4431 cat "conftest.in" "conftest.in" >"conftest.tmp"
4432 mv "conftest.tmp" "conftest.in"
4433 cp "conftest.in" "conftest.nl"
4434 $as_echo 'FGREP' >> "conftest.nl"
4435 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4437 ac_count=`expr $ac_count + 1`
4438 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4439 # Best one so far, save it but keep looking for a better one
4440 ac_cv_path_FGREP="$ac_path_FGREP"
4441 ac_path_FGREP_max=$ac_count
4443 # 10*(2^10) chars as input seems more than enough
4444 test $ac_count -gt 10 && break
4446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449 $ac_path_FGREP_found && break 3
4454 if test -z "$ac_cv_path_FGREP"; then
4455 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4456 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4457 { (exit 1); exit 1; }; }
4460 ac_cv_path_FGREP=$FGREP
4465 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4466 $as_echo "$ac_cv_path_FGREP" >&6; }
4467 FGREP="$ac_cv_path_FGREP"
4470 test -z "$GREP" && GREP=grep
4490 # Check whether --with-gnu-ld was given.
4491 if test "${with_gnu_ld+set}" = set; then
4492 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4498 if test "$GCC" = yes; then
4499 # Check if gcc -print-prog-name=ld gives a path.
4500 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4501 $as_echo_n "checking for ld used by $CC... " >&6; }
4504 # gcc leaves a trailing carriage return which upsets mingw
4505 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4507 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4510 # Accept absolute paths.
4512 re_direlt='/[^/][^/]*/\.\./'
4513 # Canonicalize the pathname of ld
4514 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4515 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4516 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4518 test -z "$LD" && LD="$ac_prog"
4521 # If it fails, then pretend we aren't using GCC.
4525 # If it is relative, then search for the first ld in PATH.
4529 elif test "$with_gnu_ld" = yes; then
4530 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4531 $as_echo_n "checking for GNU ld... " >&6; }
4533 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4534 $as_echo_n "checking for non-GNU ld... " >&6; }
4536 if test "${lt_cv_path_LD+set}" = set; then
4537 $as_echo_n "(cached) " >&6
4539 if test -z "$LD"; then
4540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4541 for ac_dir in $PATH; do
4543 test -z "$ac_dir" && ac_dir=.
4544 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4545 lt_cv_path_LD="$ac_dir/$ac_prog"
4546 # Check to see if the program is GNU ld. I'd rather use --version,
4547 # but apparently some variants of GNU ld only accept -v.
4548 # Break only if it was the GNU/non-GNU ld that we prefer.
4549 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4550 *GNU* | *'with BFD'*)
4551 test "$with_gnu_ld" != no && break
4554 test "$with_gnu_ld" != yes && break
4561 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4566 if test -n "$LD"; then
4567 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4568 $as_echo "$LD" >&6; }
4570 { $as_echo "$as_me:$LINENO: result: no" >&5
4571 $as_echo "no" >&6; }
4573 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4574 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4575 { (exit 1); exit 1; }; }
4576 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4578 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4579 $as_echo_n "(cached) " >&6
4581 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4582 case `$LD -v 2>&1 </dev/null` in
4583 *GNU* | *'with BFD'*)
4584 lt_cv_prog_gnu_ld=yes
4587 lt_cv_prog_gnu_ld=no
4591 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4592 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4593 with_gnu_ld=$lt_cv_prog_gnu_ld
4603 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4604 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4605 if test "${lt_cv_path_NM+set}" = set; then
4606 $as_echo_n "(cached) " >&6
4608 if test -n "$NM"; then
4609 # Let the user override the test.
4612 lt_nm_to_check="${ac_tool_prefix}nm"
4613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4614 lt_nm_to_check="$lt_nm_to_check nm"
4616 for lt_tmp_nm in $lt_nm_to_check; do
4617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4620 test -z "$ac_dir" && ac_dir=.
4621 tmp_nm="$ac_dir/$lt_tmp_nm"
4622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623 # Check to see if the nm accepts a BSD-compat flag.
4624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625 # nm: unknown option "B" ignored
4626 # Tru64's nm complains that /dev/null is an invalid object file
4627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628 */dev/null* | *'Invalid file or object type'*)
4629 lt_cv_path_NM="$tmp_nm -B"
4633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4635 lt_cv_path_NM="$tmp_nm -p"
4639 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640 continue # so that we can try to find one that supports BSD flags
4649 : ${lt_cv_path_NM=no}
4652 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4653 $as_echo "$lt_cv_path_NM" >&6; }
4654 if test "$lt_cv_path_NM" != "no"; then
4657 # Didn't find any BSD compatible name lister, look for dumpbin.
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4666 $as_echo_n "(cached) " >&6
4668 if test -n "$DUMPBIN"; then
4669 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 DUMPBIN=$ac_cv_prog_DUMPBIN
4689 if test -n "$DUMPBIN"; then
4690 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4691 $as_echo "$DUMPBIN" >&6; }
4693 { $as_echo "$as_me:$LINENO: result: no" >&5
4694 $as_echo "no" >&6; }
4698 test -n "$DUMPBIN" && break
4701 if test -z "$DUMPBIN"; then
4702 ac_ct_DUMPBIN=$DUMPBIN
4703 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4710 $as_echo_n "(cached) " >&6
4712 if test -n "$ac_ct_DUMPBIN"; then
4713 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4733 if test -n "$ac_ct_DUMPBIN"; then
4734 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4735 $as_echo "$ac_ct_DUMPBIN" >&6; }
4737 { $as_echo "$as_me:$LINENO: result: no" >&5
4738 $as_echo "no" >&6; }
4742 test -n "$ac_ct_DUMPBIN" && break
4745 if test "x$ac_ct_DUMPBIN" = x; then
4748 case $cross_compiling:$ac_tool_warned in
4750 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4752 ac_tool_warned=yes ;;
4754 DUMPBIN=$ac_ct_DUMPBIN
4759 if test "$DUMPBIN" != ":"; then
4763 test -z "$NM" && NM=nm
4770 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4771 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4772 if test "${lt_cv_nm_interface+set}" = set; then
4773 $as_echo_n "(cached) " >&6
4775 lt_cv_nm_interface="BSD nm"
4776 echo "int some_variable = 0;" > conftest.$ac_ext
4777 (eval echo "\"\$as_me:4777: $ac_compile\"" >&5)
4778 (eval "$ac_compile" 2>conftest.err)
4779 cat conftest.err >&5
4780 (eval echo "\"\$as_me:4780: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4781 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4782 cat conftest.err >&5
4783 (eval echo "\"\$as_me:4783: output\"" >&5)
4784 cat conftest.out >&5
4785 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4786 lt_cv_nm_interface="MS dumpbin"
4790 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4791 $as_echo "$lt_cv_nm_interface" >&6; }
4793 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4794 $as_echo_n "checking whether ln -s works... " >&6; }
4796 if test "$LN_S" = "ln -s"; then
4797 { $as_echo "$as_me:$LINENO: result: yes" >&5
4798 $as_echo "yes" >&6; }
4800 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4801 $as_echo "no, using $LN_S" >&6; }
4804 # find the maximum length of command line arguments
4805 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4806 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4807 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4808 $as_echo_n "(cached) " >&6
4815 # On DJGPP, this test can blow up pretty badly due to problems in libc
4816 # (any single argument exceeding 2000 bytes causes a buffer overrun
4817 # during glob expansion). Even if it were fixed, the result of this
4818 # check would be larger than it should be.
4819 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4823 # Under GNU Hurd, this test is not required because there is
4824 # no limit to the length of command line arguments.
4825 # Libtool will interpret -1 as no limit whatsoever
4826 lt_cv_sys_max_cmd_len=-1;
4829 cygwin* | mingw* | cegcc*)
4830 # On Win9x/ME, this test blows up -- it succeeds, but takes
4831 # about 5 minutes as the teststring grows exponentially.
4832 # Worse, since 9x/ME are not pre-emptively multitasking,
4833 # you end up with a "frozen" computer, even though with patience
4834 # the test eventually succeeds (with a max line length of 256k).
4835 # Instead, let's just punt: use the minimum linelength reported by
4836 # all of the supported platforms: 8192 (on NT/2K/XP).
4837 lt_cv_sys_max_cmd_len=8192;
4841 # On AmigaOS with pdksh, this test takes hours, literally.
4842 # So we just punt and use a minimum line length of 8192.
4843 lt_cv_sys_max_cmd_len=8192;
4846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4847 # This has been around since 386BSD, at least. Likely further.
4848 if test -x /sbin/sysctl; then
4849 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4850 elif test -x /usr/sbin/sysctl; then
4851 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4855 # And add a safety zone
4856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4861 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4862 lt_cv_sys_max_cmd_len=196608
4866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4868 # nice to cause kernel panics so lets avoid the loop below.
4869 # First set a reasonable default.
4870 lt_cv_sys_max_cmd_len=16384
4872 if test -x /sbin/sysconfig; then
4873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4879 lt_cv_sys_max_cmd_len=102400
4881 sysv5* | sco5v6* | sysv4.2uw2*)
4882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4883 if test -n "$kargmax"; then
4884 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4886 lt_cv_sys_max_cmd_len=32768
4890 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4891 if test -n "$lt_cv_sys_max_cmd_len"; then
4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4895 # Make teststring a little bigger before we do anything with it.
4896 # a 1K string should be a reasonable start.
4897 for i in 1 2 3 4 5 6 7 8 ; do
4898 teststring=$teststring$teststring
4900 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4901 # If test is not a shell built-in, we'll probably end up computing a
4902 # maximum length that is only half of the actual maximum length, but
4904 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4905 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4906 test $i != 17 # 1/2 MB should be enough
4909 teststring=$teststring$teststring
4911 # Only check the string length outside the loop.
4912 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4914 # Add a significant safety factor because C++ compilers can tack on
4915 # massive amounts of additional arguments before passing them to the
4916 # linker. It appears as though 1/2 is a usable value.
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4924 if test -n $lt_cv_sys_max_cmd_len ; then
4925 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4926 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4928 { $as_echo "$as_me:$LINENO: result: none" >&5
4929 $as_echo "none" >&6; }
4931 max_cmd_len=$lt_cv_sys_max_cmd_len
4942 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4943 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4944 # Try some XSI features
4947 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4949 && eval 'test $(( 1 + 1 )) -eq 2 \
4950 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4952 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4953 $as_echo "$xsi_shell" >&6; }
4956 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4957 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4959 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4961 && lt_shell_append=yes
4962 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4963 $as_echo "$lt_shell_append" >&6; }
4966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4976 # test EBCDIC or ASCII
4977 case `echo X|tr X '\101'` in
4978 A) # ASCII based system
4979 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4980 lt_SP2NL='tr \040 \012'
4981 lt_NL2SP='tr \015\012 \040\040'
4983 *) # EBCDIC based system
4984 lt_SP2NL='tr \100 \n'
4985 lt_NL2SP='tr \r\n \100\100'
4997 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4998 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4999 if test "${lt_cv_ld_reload_flag+set}" = set; then
5000 $as_echo_n "(cached) " >&6
5002 lt_cv_ld_reload_flag='-r'
5004 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5005 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5006 reload_flag=$lt_cv_ld_reload_flag
5007 case $reload_flag in
5009 *) reload_flag=" $reload_flag" ;;
5011 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5014 if test "$GCC" = yes; then
5015 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5017 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5030 if test -n "$ac_tool_prefix"; then
5031 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5032 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5036 $as_echo_n "(cached) " >&6
5038 if test -n "$OBJDUMP"; then
5039 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 OBJDUMP=$ac_cv_prog_OBJDUMP
5059 if test -n "$OBJDUMP"; then
5060 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5061 $as_echo "$OBJDUMP" >&6; }
5063 { $as_echo "$as_me:$LINENO: result: no" >&5
5064 $as_echo "no" >&6; }
5069 if test -z "$ac_cv_prog_OBJDUMP"; then
5070 ac_ct_OBJDUMP=$OBJDUMP
5071 # Extract the first word of "objdump", so it can be a program name with args.
5072 set dummy objdump; ac_word=$2
5073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5076 $as_echo_n "(cached) " >&6
5078 if test -n "$ac_ct_OBJDUMP"; then
5079 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5099 if test -n "$ac_ct_OBJDUMP"; then
5100 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5101 $as_echo "$ac_ct_OBJDUMP" >&6; }
5103 { $as_echo "$as_me:$LINENO: result: no" >&5
5104 $as_echo "no" >&6; }
5107 if test "x$ac_ct_OBJDUMP" = x; then
5110 case $cross_compiling:$ac_tool_warned in
5112 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114 ac_tool_warned=yes ;;
5116 OBJDUMP=$ac_ct_OBJDUMP
5119 OBJDUMP="$ac_cv_prog_OBJDUMP"
5122 test -z "$OBJDUMP" && OBJDUMP=objdump
5132 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5133 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5134 if test "${lt_cv_deplibs_check_method+set}" = set; then
5135 $as_echo_n "(cached) " >&6
5137 lt_cv_file_magic_cmd='$MAGIC_CMD'
5138 lt_cv_file_magic_test_file=
5139 lt_cv_deplibs_check_method='unknown'
5140 # Need to set the preceding variable on all platforms that support
5141 # interlibrary dependencies.
5142 # 'none' -- dependencies not supported.
5143 # `unknown' -- same as none, but documents that we really don't know.
5144 # 'pass_all' -- all dependencies passed with no checks.
5145 # 'test_compile' -- check by making test program.
5146 # 'file_magic [[regex]]' -- check by looking for files in library path
5147 # which responds to the $file_magic_cmd with a given extended regex.
5148 # If you have `file' or equivalent on your system and you're not sure
5149 # whether `pass_all' will *always* work, you probably want this one.
5153 lt_cv_deplibs_check_method=pass_all
5157 lt_cv_deplibs_check_method=pass_all
5161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5162 lt_cv_file_magic_cmd='/usr/bin/file -L'
5163 lt_cv_file_magic_test_file=/shlib/libc.so
5167 # func_win32_libid is a shell function defined in ltmain.sh
5168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5169 lt_cv_file_magic_cmd='func_win32_libid'
5173 # Base MSYS/MinGW do not provide the 'file' command needed by
5174 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5175 # unless we find 'file', for example because we are cross-compiling.
5176 if ( file / ) >/dev/null 2>&1; then
5177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5178 lt_cv_file_magic_cmd='func_win32_libid'
5180 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5181 lt_cv_file_magic_cmd='$OBJDUMP -f'
5186 # use the weaker test based on 'objdump'. See mingw*.
5187 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5188 lt_cv_file_magic_cmd='$OBJDUMP -f'
5191 darwin* | rhapsody*)
5192 lt_cv_deplibs_check_method=pass_all
5195 freebsd* | dragonfly*)
5196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5199 # Not sure whether the presence of OpenBSD here was a mistake.
5200 # Let's accept both of them until this is cleared up.
5201 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5202 lt_cv_file_magic_cmd=/usr/bin/file
5203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5207 lt_cv_deplibs_check_method=pass_all
5212 lt_cv_deplibs_check_method=pass_all
5215 hpux10.20* | hpux11*)
5216 lt_cv_file_magic_cmd=/usr/bin/file
5219 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5220 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5223 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5224 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5228 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5234 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5238 irix5* | irix6* | nonstopux*)
5240 *-32|*"-32 ") libmagic=32-bit;;
5241 *-n32|*"-n32 ") libmagic=N32;;
5242 *-64|*"-64 ") libmagic=64-bit;;
5243 *) libmagic=never-match;;
5245 lt_cv_deplibs_check_method=pass_all
5248 # This must be Linux ELF.
5249 linux* | k*bsd*-gnu)
5250 lt_cv_deplibs_check_method=pass_all
5254 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5263 lt_cv_file_magic_cmd=/usr/bin/file
5264 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5268 lt_cv_deplibs_check_method=pass_all
5272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5279 osf3* | osf4* | osf5*)
5280 lt_cv_deplibs_check_method=pass_all
5284 lt_cv_deplibs_check_method=pass_all
5288 lt_cv_deplibs_check_method=pass_all
5291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5292 lt_cv_deplibs_check_method=pass_all
5296 case $host_vendor in
5298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5302 lt_cv_deplibs_check_method=pass_all
5305 lt_cv_file_magic_cmd='/bin/file'
5306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5309 lt_cv_file_magic_cmd='/bin/file'
5310 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5311 lt_cv_file_magic_test_file=/lib/libc.so
5314 lt_cv_deplibs_check_method=pass_all
5317 lt_cv_deplibs_check_method=pass_all
5323 lt_cv_deplibs_check_method=pass_all
5328 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5329 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5330 file_magic_cmd=$lt_cv_file_magic_cmd
5331 deplibs_check_method=$lt_cv_deplibs_check_method
5332 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}ar; ac_word=$2
5348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if test "${ac_cv_prog_AR+set}" = set; then
5351 $as_echo_n "(cached) " >&6
5353 if test -n "$AR"; then
5354 ac_cv_prog_AR="$AR" # Let the user override the test.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_AR="${ac_tool_prefix}ar"
5364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 if test -n "$AR"; then
5375 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5376 $as_echo "$AR" >&6; }
5378 { $as_echo "$as_me:$LINENO: result: no" >&5
5379 $as_echo "no" >&6; }
5384 if test -z "$ac_cv_prog_AR"; then
5386 # Extract the first word of "ar", so it can be a program name with args.
5387 set dummy ar; ac_word=$2
5388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5391 $as_echo_n "(cached) " >&6
5393 if test -n "$ac_ct_AR"; then
5394 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_ac_ct_AR="ar"
5404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5414 if test -n "$ac_ct_AR"; then
5415 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5416 $as_echo "$ac_ct_AR" >&6; }
5418 { $as_echo "$as_me:$LINENO: result: no" >&5
5419 $as_echo "no" >&6; }
5422 if test "x$ac_ct_AR" = x; then
5425 case $cross_compiling:$ac_tool_warned in
5427 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5437 test -z "$AR" && AR=ar
5438 test -z "$AR_FLAGS" && AR_FLAGS=cru
5450 if test -n "$ac_tool_prefix"; then
5451 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5452 set dummy ${ac_tool_prefix}strip; ac_word=$2
5453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if test "${ac_cv_prog_STRIP+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5458 if test -n "$STRIP"; then
5459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 STRIP=$ac_cv_prog_STRIP
5479 if test -n "$STRIP"; then
5480 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5481 $as_echo "$STRIP" >&6; }
5483 { $as_echo "$as_me:$LINENO: result: no" >&5
5484 $as_echo "no" >&6; }
5489 if test -z "$ac_cv_prog_STRIP"; then
5491 # Extract the first word of "strip", so it can be a program name with args.
5492 set dummy strip; ac_word=$2
5493 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5496 $as_echo_n "(cached) " >&6
5498 if test -n "$ac_ct_STRIP"; then
5499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_prog_ac_ct_STRIP="strip"
5509 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5519 if test -n "$ac_ct_STRIP"; then
5520 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5521 $as_echo "$ac_ct_STRIP" >&6; }
5523 { $as_echo "$as_me:$LINENO: result: no" >&5
5524 $as_echo "no" >&6; }
5527 if test "x$ac_ct_STRIP" = x; then
5530 case $cross_compiling:$ac_tool_warned in
5532 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5534 ac_tool_warned=yes ;;
5539 STRIP="$ac_cv_prog_STRIP"
5542 test -z "$STRIP" && STRIP=:
5549 if test -n "$ac_tool_prefix"; then
5550 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5551 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5552 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if test "${ac_cv_prog_RANLIB+set}" = set; then
5555 $as_echo_n "(cached) " >&6
5557 if test -n "$RANLIB"; then
5558 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 RANLIB=$ac_cv_prog_RANLIB
5578 if test -n "$RANLIB"; then
5579 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5580 $as_echo "$RANLIB" >&6; }
5582 { $as_echo "$as_me:$LINENO: result: no" >&5
5583 $as_echo "no" >&6; }
5588 if test -z "$ac_cv_prog_RANLIB"; then
5589 ac_ct_RANLIB=$RANLIB
5590 # Extract the first word of "ranlib", so it can be a program name with args.
5591 set dummy ranlib; ac_word=$2
5592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5595 $as_echo_n "(cached) " >&6
5597 if test -n "$ac_ct_RANLIB"; then
5598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_prog_ac_ct_RANLIB="ranlib"
5608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5618 if test -n "$ac_ct_RANLIB"; then
5619 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5620 $as_echo "$ac_ct_RANLIB" >&6; }
5622 { $as_echo "$as_me:$LINENO: result: no" >&5
5623 $as_echo "no" >&6; }
5626 if test "x$ac_ct_RANLIB" = x; then
5629 case $cross_compiling:$ac_tool_warned in
5631 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5633 ac_tool_warned=yes ;;
5635 RANLIB=$ac_ct_RANLIB
5638 RANLIB="$ac_cv_prog_RANLIB"
5641 test -z "$RANLIB" && RANLIB=:
5648 # Determine commands to create old-style static archives.
5649 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5650 old_postinstall_cmds='chmod 644 $oldlib'
5651 old_postuninstall_cmds=
5653 if test -n "$RANLIB"; then
5656 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5659 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5662 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5698 # If no C compiler was specified, use CC.
5701 # If no C compiler flags were specified, use CFLAGS.
5702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5704 # Allow CC to be a program name with arguments.
5708 # Check for command to grab the raw symbol name followed by C symbol from nm.
5709 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5710 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5711 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5712 $as_echo_n "(cached) " >&6
5715 # These are sane defaults that work on at least a few old systems.
5716 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5718 # Character class describing NM global symbol codes.
5719 symcode='[BCDEGRST]'
5721 # Regexp to match symbols that can be accessed directly from C.
5722 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5724 # Define system-specific variables.
5729 cygwin* | mingw* | pw32* | cegcc*)
5730 symcode='[ABCDGISTW]'
5733 if test "$host_cpu" = ia64; then
5734 symcode='[ABCDEGRST]'
5738 symcode='[BCDEGRST]'
5741 symcode='[BCDEGQRST]'
5752 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5760 # If we're using GNU nm, then use its standard symbol codes.
5761 case `$NM -V 2>&1` in
5762 *GNU* | *'with BFD'*)
5763 symcode='[ABCDGIRSTW]' ;;
5766 # Transform an extracted symbol line into a proper C declaration.
5767 # Some systems (esp. on ia64) link data and code symbols differently,
5768 # so use this general approach.
5769 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5771 # Transform an extracted symbol line into symbol name and symbol address
5772 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5773 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5775 # Handle CRLF in mingw tool chain
5779 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5783 # Try without a prefix underscore, then with it.
5784 for ac_symprfx in "" "_"; do
5786 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5787 symxfrm="\\1 $ac_symprfx\\2 \\2"
5789 # Write the raw and C identifiers.
5790 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5791 # Fake it for dumpbin and say T for any non-static function
5792 # and D for any global variable.
5793 # Also find C++ and __fastcall symbols from MSVC++,
5794 # which start with @ or ?.
5795 lt_cv_sys_global_symbol_pipe="$AWK '"\
5796 " {last_section=section; section=\$ 3};"\
5797 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5798 " \$ 0!~/External *\|/{next};"\
5799 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5800 " {if(hide[section]) next};"\
5801 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5802 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5803 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5804 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5805 " ' prfx=^$ac_symprfx"
5807 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5810 # Check to see that the pipe works correctly.
5814 cat > conftest.$ac_ext <<_LT_EOF
5819 void nm_test_func(void);
5820 void nm_test_func(void){}
5824 int main(){nm_test_var='a';nm_test_func();return(0);}
5827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828 (eval $ac_compile) 2>&5
5830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; then
5832 # Now try to grab the symbols.
5834 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5835 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } && test -s "$nlist"; then
5839 # Try sorting and uniquifying the output.
5840 if sort "$nlist" | uniq > "$nlist"T; then
5841 mv -f "$nlist"T "$nlist"
5846 # Make sure that we snagged all the symbols we need.
5847 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5848 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5849 cat <<_LT_EOF > conftest.$ac_ext
5855 # Now generate the symbol file.
5856 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5858 cat <<_LT_EOF >> conftest.$ac_ext
5860 /* The mapping between symbol names and symbols. */
5865 lt__PROGRAM__LTX_preloaded_symbols[] =
5867 { "@PROGRAM@", (void *) 0 },
5869 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5870 cat <<\_LT_EOF >> conftest.$ac_ext
5874 /* This works around a problem in FreeBSD linker */
5875 #ifdef FREEBSD_WORKAROUND
5876 static const void *lt_preloaded_setup() {
5877 return lt__PROGRAM__LTX_preloaded_symbols;
5885 # Now try linking the two files.
5886 mv conftest.$ac_objext conftstm.$ac_objext
5887 lt_save_LIBS="$LIBS"
5888 lt_save_CFLAGS="$CFLAGS"
5889 LIBS="conftstm.$ac_objext"
5890 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892 (eval $ac_link) 2>&5
5894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5898 LIBS="$lt_save_LIBS"
5899 CFLAGS="$lt_save_CFLAGS"
5901 echo "cannot find nm_test_func in $nlist" >&5
5904 echo "cannot find nm_test_var in $nlist" >&5
5907 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5910 echo "$progname: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5913 rm -rf conftest* conftst*
5915 # Do not use the global_symbol_pipe unless it works.
5916 if test "$pipe_works" = yes; then
5919 lt_cv_sys_global_symbol_pipe=
5925 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5926 lt_cv_sys_global_symbol_to_cdecl=
5928 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5929 { $as_echo "$as_me:$LINENO: result: failed" >&5
5930 $as_echo "failed" >&6; }
5932 { $as_echo "$as_me:$LINENO: result: ok" >&5
5933 $as_echo "ok" >&6; }
5958 # Check whether --enable-libtool-lock was given.
5959 if test "${enable_libtool_lock+set}" = set; then
5960 enableval=$enable_libtool_lock;
5963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5965 # Some flags need to be propagated to the compiler or linker for good
5969 # Find out which ABI we are using.
5970 echo 'int i;' > conftest.$ac_ext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 (eval $ac_compile) 2>&5
5974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; then
5976 case `/usr/bin/file conftest.$ac_objext` in
5988 # Find out which ABI we are using.
5989 echo '#line 5989 "configure"' > conftest.$ac_ext
5990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; then
5995 if test "$lt_cv_prog_gnu_ld" = yes; then
5996 case `/usr/bin/file conftest.$ac_objext` in
5998 LD="${LD-ld} -melf32bsmip"
6001 LD="${LD-ld} -melf32bmipn32"
6004 LD="${LD-ld} -melf64bmip"
6008 case `/usr/bin/file conftest.$ac_objext` in
6024 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6025 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6026 # Find out which ABI we are using.
6027 echo 'int i;' > conftest.$ac_ext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>&5
6031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; then
6033 case `/usr/bin/file conftest.o` in
6036 x86_64-*kfreebsd*-gnu)
6037 LD="${LD-ld} -m elf_i386_fbsd"
6040 LD="${LD-ld} -m elf_i386"
6042 ppc64-*linux*|powerpc64-*linux*)
6043 LD="${LD-ld} -m elf32ppclinux"
6046 LD="${LD-ld} -m elf_s390"
6049 LD="${LD-ld} -m elf32_sparc"
6055 x86_64-*kfreebsd*-gnu)
6056 LD="${LD-ld} -m elf_x86_64_fbsd"
6059 LD="${LD-ld} -m elf_x86_64"
6061 ppc*-*linux*|powerpc*-*linux*)
6062 LD="${LD-ld} -m elf64ppc"
6064 s390*-*linux*|s390*-*tpf*)
6065 LD="${LD-ld} -m elf64_s390"
6068 LD="${LD-ld} -m elf64_sparc"
6078 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6079 SAVE_CFLAGS="$CFLAGS"
6080 CFLAGS="$CFLAGS -belf"
6081 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6082 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6083 if test "${lt_cv_cc_needs_belf+set}" = set; then
6084 $as_echo_n "(cached) " >&6
6087 ac_cpp='$CPP $CPPFLAGS'
6088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6092 cat >conftest.$ac_ext <<_ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (ac_try="$ac_link"
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6114 $as_echo "$ac_try_echo") >&5
6115 (eval "$ac_link") 2>conftest.er1
6117 grep -v '^ *+' conftest.er1 >conftest.err
6119 cat conftest.err >&5
6120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } && {
6122 test -z "$ac_c_werror_flag" ||
6123 test ! -s conftest.err
6124 } && test -s conftest$ac_exeext && {
6125 test "$cross_compiling" = yes ||
6126 $as_test_x conftest$ac_exeext
6128 lt_cv_cc_needs_belf=yes
6130 $as_echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6133 lt_cv_cc_needs_belf=no
6136 rm -rf conftest.dSYM
6137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6138 conftest$ac_exeext conftest.$ac_ext
6140 ac_cpp='$CPP $CPPFLAGS'
6141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6147 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6148 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6149 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6150 CFLAGS="$SAVE_CFLAGS"
6154 # Find out which ABI we are using.
6155 echo 'int i;' > conftest.$ac_ext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157 (eval $ac_compile) 2>&5
6159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; then
6161 case `/usr/bin/file conftest.o` in
6163 case $lt_cv_prog_gnu_ld in
6164 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6166 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6178 need_locks="$enable_libtool_lock"
6182 rhapsody* | darwin*)
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6189 $as_echo_n "(cached) " >&6
6191 if test -n "$DSYMUTIL"; then
6192 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6212 if test -n "$DSYMUTIL"; then
6213 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6214 $as_echo "$DSYMUTIL" >&6; }
6216 { $as_echo "$as_me:$LINENO: result: no" >&5
6217 $as_echo "no" >&6; }
6222 if test -z "$ac_cv_prog_DSYMUTIL"; then
6223 ac_ct_DSYMUTIL=$DSYMUTIL
6224 # Extract the first word of "dsymutil", so it can be a program name with args.
6225 set dummy dsymutil; ac_word=$2
6226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6229 $as_echo_n "(cached) " >&6
6231 if test -n "$ac_ct_DSYMUTIL"; then
6232 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6252 if test -n "$ac_ct_DSYMUTIL"; then
6253 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6254 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6256 { $as_echo "$as_me:$LINENO: result: no" >&5
6257 $as_echo "no" >&6; }
6260 if test "x$ac_ct_DSYMUTIL" = x; then
6263 case $cross_compiling:$ac_tool_warned in
6265 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6269 DSYMUTIL=$ac_ct_DSYMUTIL
6272 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6275 if test -n "$ac_tool_prefix"; then
6276 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6277 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6281 $as_echo_n "(cached) " >&6
6283 if test -n "$NMEDIT"; then
6284 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 NMEDIT=$ac_cv_prog_NMEDIT
6304 if test -n "$NMEDIT"; then
6305 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6306 $as_echo "$NMEDIT" >&6; }
6308 { $as_echo "$as_me:$LINENO: result: no" >&5
6309 $as_echo "no" >&6; }
6314 if test -z "$ac_cv_prog_NMEDIT"; then
6315 ac_ct_NMEDIT=$NMEDIT
6316 # Extract the first word of "nmedit", so it can be a program name with args.
6317 set dummy nmedit; ac_word=$2
6318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6321 $as_echo_n "(cached) " >&6
6323 if test -n "$ac_ct_NMEDIT"; then
6324 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6344 if test -n "$ac_ct_NMEDIT"; then
6345 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6346 $as_echo "$ac_ct_NMEDIT" >&6; }
6348 { $as_echo "$as_me:$LINENO: result: no" >&5
6349 $as_echo "no" >&6; }
6352 if test "x$ac_ct_NMEDIT" = x; then
6355 case $cross_compiling:$ac_tool_warned in
6357 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6359 ac_tool_warned=yes ;;
6361 NMEDIT=$ac_ct_NMEDIT
6364 NMEDIT="$ac_cv_prog_NMEDIT"
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_prog_LIPO+set}" = set; then
6373 $as_echo_n "(cached) " >&6
6375 if test -n "$LIPO"; then
6376 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 LIPO=$ac_cv_prog_LIPO
6396 if test -n "$LIPO"; then
6397 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6398 $as_echo "$LIPO" >&6; }
6400 { $as_echo "$as_me:$LINENO: result: no" >&5
6401 $as_echo "no" >&6; }
6406 if test -z "$ac_cv_prog_LIPO"; then
6408 # Extract the first word of "lipo", so it can be a program name with args.
6409 set dummy lipo; ac_word=$2
6410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6413 $as_echo_n "(cached) " >&6
6415 if test -n "$ac_ct_LIPO"; then
6416 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6425 ac_cv_prog_ac_ct_LIPO="lipo"
6426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6436 if test -n "$ac_ct_LIPO"; then
6437 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6438 $as_echo "$ac_ct_LIPO" >&6; }
6440 { $as_echo "$as_me:$LINENO: result: no" >&5
6441 $as_echo "no" >&6; }
6444 if test "x$ac_ct_LIPO" = x; then
6447 case $cross_compiling:$ac_tool_warned in
6449 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6456 LIPO="$ac_cv_prog_LIPO"
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}otool; ac_word=$2
6462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if test "${ac_cv_prog_OTOOL+set}" = set; then
6465 $as_echo_n "(cached) " >&6
6467 if test -n "$OTOOL"; then
6468 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 OTOOL=$ac_cv_prog_OTOOL
6488 if test -n "$OTOOL"; then
6489 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6490 $as_echo "$OTOOL" >&6; }
6492 { $as_echo "$as_me:$LINENO: result: no" >&5
6493 $as_echo "no" >&6; }
6498 if test -z "$ac_cv_prog_OTOOL"; then
6500 # Extract the first word of "otool", so it can be a program name with args.
6501 set dummy otool; ac_word=$2
6502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6505 $as_echo_n "(cached) " >&6
6507 if test -n "$ac_ct_OTOOL"; then
6508 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_ac_ct_OTOOL="otool"
6518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6528 if test -n "$ac_ct_OTOOL"; then
6529 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6530 $as_echo "$ac_ct_OTOOL" >&6; }
6532 { $as_echo "$as_me:$LINENO: result: no" >&5
6533 $as_echo "no" >&6; }
6536 if test "x$ac_ct_OTOOL" = x; then
6539 case $cross_compiling:$ac_tool_warned in
6541 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6548 OTOOL="$ac_cv_prog_OTOOL"
6551 if test -n "$ac_tool_prefix"; then
6552 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6553 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6557 $as_echo_n "(cached) " >&6
6559 if test -n "$OTOOL64"; then
6560 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 OTOOL64=$ac_cv_prog_OTOOL64
6580 if test -n "$OTOOL64"; then
6581 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6582 $as_echo "$OTOOL64" >&6; }
6584 { $as_echo "$as_me:$LINENO: result: no" >&5
6585 $as_echo "no" >&6; }
6590 if test -z "$ac_cv_prog_OTOOL64"; then
6591 ac_ct_OTOOL64=$OTOOL64
6592 # Extract the first word of "otool64", so it can be a program name with args.
6593 set dummy otool64; ac_word=$2
6594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6597 $as_echo_n "(cached) " >&6
6599 if test -n "$ac_ct_OTOOL64"; then
6600 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609 ac_cv_prog_ac_ct_OTOOL64="otool64"
6610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6620 if test -n "$ac_ct_OTOOL64"; then
6621 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6622 $as_echo "$ac_ct_OTOOL64" >&6; }
6624 { $as_echo "$as_me:$LINENO: result: no" >&5
6625 $as_echo "no" >&6; }
6628 if test "x$ac_ct_OTOOL64" = x; then
6631 case $cross_compiling:$ac_tool_warned in
6633 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6635 ac_tool_warned=yes ;;
6637 OTOOL64=$ac_ct_OTOOL64
6640 OTOOL64="$ac_cv_prog_OTOOL64"
6669 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6670 $as_echo_n "checking for -single_module linker flag... " >&6; }
6671 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6672 $as_echo_n "(cached) " >&6
6674 lt_cv_apple_cc_single_mod=no
6675 if test -z "${LT_MULTI_MODULE}"; then
6676 # By default we will add the -single_module flag. You can override
6677 # by either setting the environment variable LT_MULTI_MODULE
6678 # non-empty at configure time, or by adding -multi_module to the
6680 rm -rf libconftest.dylib*
6681 echo "int foo(void){return 1;}" > conftest.c
6682 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6683 -dynamiclib -Wl,-single_module conftest.c" >&5
6684 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6685 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6687 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6688 lt_cv_apple_cc_single_mod=yes
6690 cat conftest.err >&5
6692 rm -rf libconftest.dylib*
6696 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6697 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6698 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6699 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6700 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6701 $as_echo_n "(cached) " >&6
6703 lt_cv_ld_exported_symbols_list=no
6704 save_LDFLAGS=$LDFLAGS
6705 echo "_main" > conftest.sym
6706 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6722 rm -f conftest.$ac_objext conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6729 $as_echo "$ac_try_echo") >&5
6730 (eval "$ac_link") 2>conftest.er1
6732 grep -v '^ *+' conftest.er1 >conftest.err
6734 cat conftest.err >&5
6735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest$ac_exeext && {
6740 test "$cross_compiling" = yes ||
6741 $as_test_x conftest$ac_exeext
6743 lt_cv_ld_exported_symbols_list=yes
6745 $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 lt_cv_ld_exported_symbols_list=no
6751 rm -rf conftest.dSYM
6752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6753 conftest$ac_exeext conftest.$ac_ext
6754 LDFLAGS="$save_LDFLAGS"
6757 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6758 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6760 rhapsody* | darwin1.[012])
6761 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6763 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6764 darwin*) # darwin 5.x on
6765 # if running on 10.5 or later, the deployment target defaults
6766 # to the OS version, if on x86, and 10.4, the deployment
6767 # target defaults to 10.4. Don't you love it?
6768 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6769 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6770 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6772 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6774 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6778 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6779 _lt_dar_single_mod='$single_module'
6781 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6782 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6784 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6786 if test "$DSYMUTIL" != ":"; then
6787 _lt_dsymutil='~$DSYMUTIL $lib || :'
6795 ac_cpp='$CPP $CPPFLAGS'
6796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6799 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6800 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6801 # On Suns, sometimes $CPP names a directory.
6802 if test -n "$CPP" && test -d "$CPP"; then
6805 if test -z "$CPP"; then
6806 if test "${ac_cv_prog_CPP+set}" = set; then
6807 $as_echo_n "(cached) " >&6
6809 # Double quotes because CPP needs to be expanded
6810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6813 for ac_c_preproc_warn_flag in '' yes
6815 # Use a header file that comes with gcc, so configuring glibc
6816 # with a fresh cross-compiler works.
6817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6818 # <limits.h> exists even on freestanding compilers.
6819 # On the NeXT, cc -E runs the code through the compiler's parser,
6820 # not just through cpp. "Syntax error" is here to catch this case.
6821 cat >conftest.$ac_ext <<_ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6828 # include <limits.h>
6830 # include <assert.h>
6834 if { (ac_try="$ac_cpp conftest.$ac_ext"
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840 $as_echo "$ac_try_echo") >&5
6841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6843 grep -v '^ *+' conftest.er1 >conftest.err
6845 cat conftest.err >&5
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } >/dev/null && {
6848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6853 $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 # Broken: fails on valid input.
6860 rm -f conftest.err conftest.$ac_ext
6862 # OK, works on sane cases. Now check whether nonexistent headers
6863 # can be detected and how.
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 #include <ac_nonexistent.h>
6872 if { (ac_try="$ac_cpp conftest.$ac_ext"
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } >/dev/null && {
6886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6889 # Broken: success on invalid input.
6892 $as_echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6895 # Passes both tests.
6900 rm -f conftest.err conftest.$ac_ext
6903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6904 rm -f conftest.err conftest.$ac_ext
6905 if $ac_preproc_ok; then
6917 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6918 $as_echo "$CPP" >&6; }
6920 for ac_c_preproc_warn_flag in '' yes
6922 # Use a header file that comes with gcc, so configuring glibc
6923 # with a fresh cross-compiler works.
6924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6925 # <limits.h> exists even on freestanding compilers.
6926 # On the NeXT, cc -E runs the code through the compiler's parser,
6927 # not just through cpp. "Syntax error" is here to catch this case.
6928 cat >conftest.$ac_ext <<_ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6935 # include <limits.h>
6937 # include <assert.h>
6941 if { (ac_try="$ac_cpp conftest.$ac_ext"
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6947 $as_echo "$ac_try_echo") >&5
6948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6950 grep -v '^ *+' conftest.er1 >conftest.err
6952 cat conftest.err >&5
6953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } >/dev/null && {
6955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6956 test ! -s conftest.err
6960 $as_echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 # Broken: fails on valid input.
6967 rm -f conftest.err conftest.$ac_ext
6969 # OK, works on sane cases. Now check whether nonexistent headers
6970 # can be detected and how.
6971 cat >conftest.$ac_ext <<_ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 #include <ac_nonexistent.h>
6979 if { (ac_try="$ac_cpp conftest.$ac_ext"
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6985 $as_echo "$ac_try_echo") >&5
6986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6988 grep -v '^ *+' conftest.er1 >conftest.err
6990 cat conftest.err >&5
6991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } >/dev/null && {
6993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6996 # Broken: success on invalid input.
6999 $as_echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 # Passes both tests.
7007 rm -f conftest.err conftest.$ac_ext
7010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7011 rm -f conftest.err conftest.$ac_ext
7012 if $ac_preproc_ok; then
7015 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7017 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7018 See \`config.log' for more details." >&5
7019 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7020 See \`config.log' for more details." >&2;}
7021 { (exit 1); exit 1; }; }; }
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7032 $as_echo_n "checking for ANSI C header files... " >&6; }
7033 if test "${ac_cv_header_stdc+set}" = set; then
7034 $as_echo_n "(cached) " >&6
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7055 rm -f conftest.$ac_objext
7056 if { (ac_try="$ac_compile"
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7062 $as_echo "$ac_try_echo") >&5
7063 (eval "$ac_compile") 2>conftest.er1
7065 grep -v '^ *+' conftest.er1 >conftest.err
7067 cat conftest.err >&5
7068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_c_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest.$ac_objext; then
7073 ac_cv_header_stdc=yes
7075 $as_echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_cv_header_stdc=no
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 if test $ac_cv_header_stdc = yes; then
7084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 $EGREP "memchr" >/dev/null 2>&1; then
7098 ac_cv_header_stdc=no
7104 if test $ac_cv_header_stdc = yes; then
7105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116 $EGREP "free" >/dev/null 2>&1; then
7119 ac_cv_header_stdc=no
7125 if test $ac_cv_header_stdc = yes; then
7126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7127 if test "$cross_compiling" = yes; then
7130 cat >conftest.$ac_ext <<_ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7138 #if ((' ' & 0x0FF) == 0x020)
7139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7142 # define ISLOWER(c) \
7143 (('a' <= (c) && (c) <= 'i') \
7144 || ('j' <= (c) && (c) <= 'r') \
7145 || ('s' <= (c) && (c) <= 'z'))
7146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7154 for (i = 0; i < 256; i++)
7155 if (XOR (islower (i), ISLOWER (i))
7156 || toupper (i) != TOUPPER (i))
7161 rm -f conftest$ac_exeext
7162 if { (ac_try="$ac_link"
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7168 $as_echo "$ac_try_echo") >&5
7169 (eval "$ac_link") 2>&5
7171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7173 { (case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7178 $as_echo "$ac_try_echo") >&5
7179 (eval "$ac_try") 2>&5
7181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7185 $as_echo "$as_me: program exited with status $ac_status" >&5
7186 $as_echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7190 ac_cv_header_stdc=no
7192 rm -rf conftest.dSYM
7193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7199 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7200 $as_echo "$ac_cv_header_stdc" >&6; }
7201 if test $ac_cv_header_stdc = yes; then
7203 cat >>confdefs.h <<\_ACEOF
7204 #define STDC_HEADERS 1
7209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7220 inttypes.h stdint.h unistd.h
7222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7224 $as_echo_n "checking for $ac_header... " >&6; }
7225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7226 $as_echo_n "(cached) " >&6
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7236 #include <$ac_header>
7238 rm -f conftest.$ac_objext
7239 if { (ac_try="$ac_compile"
7241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242 *) ac_try_echo=$ac_try;;
7244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7245 $as_echo "$ac_try_echo") >&5
7246 (eval "$ac_compile") 2>conftest.er1
7248 grep -v '^ *+' conftest.er1 >conftest.err
7250 cat conftest.err >&5
7251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } && {
7253 test -z "$ac_c_werror_flag" ||
7254 test ! -s conftest.err
7255 } && test -s conftest.$ac_objext; then
7256 eval "$as_ac_Header=yes"
7258 $as_echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7261 eval "$as_ac_Header=no"
7264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 ac_res=`eval 'as_val=${'$as_ac_Header'}
7267 $as_echo "$as_val"'`
7268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7269 $as_echo "$ac_res" >&6; }
7270 as_val=`eval 'as_val=${'$as_ac_Header'}
7271 $as_echo "$as_val"'`
7272 if test "x$as_val" = x""yes; then
7273 cat >>confdefs.h <<_ACEOF
7274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7283 for ac_header in dlfcn.h
7285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7287 $as_echo_n "checking for $ac_header... " >&6; }
7288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7289 $as_echo_n "(cached) " >&6
7291 cat >conftest.$ac_ext <<_ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h. */
7297 $ac_includes_default
7299 #include <$ac_header>
7301 rm -f conftest.$ac_objext
7302 if { (ac_try="$ac_compile"
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7308 $as_echo "$ac_try_echo") >&5
7309 (eval "$ac_compile") 2>conftest.er1
7311 grep -v '^ *+' conftest.er1 >conftest.err
7313 cat conftest.err >&5
7314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest.$ac_objext; then
7319 eval "$as_ac_Header=yes"
7321 $as_echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7324 eval "$as_ac_Header=no"
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 ac_res=`eval 'as_val=${'$as_ac_Header'}
7330 $as_echo "$as_val"'`
7331 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7332 $as_echo "$ac_res" >&6; }
7333 as_val=`eval 'as_val=${'$as_ac_Header'}
7334 $as_echo "$as_val"'`
7335 if test "x$as_val" = x""yes; then
7336 cat >>confdefs.h <<_ACEOF
7337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7356 # Check whether --enable-shared was given.
7357 if test "${enable_shared+set}" = set; then
7358 enableval=$enable_shared; p=${PACKAGE-default}
7360 yes) enable_shared=yes ;;
7361 no) enable_shared=no ;;
7364 # Look at the argument we got. We use all the common list separators.
7365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7366 for pkg in $enableval; do
7368 if test "X$pkg" = "X$p"; then
7387 # Check whether --enable-static was given.
7388 if test "${enable_static+set}" = set; then
7389 enableval=$enable_static; p=${PACKAGE-default}
7391 yes) enable_static=yes ;;
7392 no) enable_static=no ;;
7395 # Look at the argument we got. We use all the common list separators.
7396 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7397 for pkg in $enableval; do
7399 if test "X$pkg" = "X$p"; then
7419 # Check whether --with-pic was given.
7420 if test "${with_pic+set}" = set; then
7421 withval=$with_pic; pic_mode="$withval"
7427 test -z "$pic_mode" && pic_mode=default
7435 # Check whether --enable-fast-install was given.
7436 if test "${enable_fast_install+set}" = set; then
7437 enableval=$enable_fast_install; p=${PACKAGE-default}
7439 yes) enable_fast_install=yes ;;
7440 no) enable_fast_install=no ;;
7442 enable_fast_install=no
7443 # Look at the argument we got. We use all the common list separators.
7444 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7445 for pkg in $enableval; do
7447 if test "X$pkg" = "X$p"; then
7448 enable_fast_install=yes
7455 enable_fast_install=yes
7468 # This can be used to rebuild libtool when needed
7469 LIBTOOL_DEPS="$ltmain"
7471 # Always use our own libtool.
7472 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7498 test -z "$LN_S" && LN_S="ln -s"
7513 if test -n "${ZSH_VERSION+set}" ; then
7514 setopt NO_GLOB_SUBST
7517 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7518 $as_echo_n "checking for objdir... " >&6; }
7519 if test "${lt_cv_objdir+set}" = set; then
7520 $as_echo_n "(cached) " >&6
7522 rm -f .libs 2>/dev/null
7523 mkdir .libs 2>/dev/null
7524 if test -d .libs; then
7527 # MS-DOS does not allow filenames that begin with a dot.
7530 rmdir .libs 2>/dev/null
7532 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7533 $as_echo "$lt_cv_objdir" >&6; }
7534 objdir=$lt_cv_objdir
7540 cat >>confdefs.h <<_ACEOF
7541 #define LT_OBJDIR "$lt_cv_objdir/"
7562 # AIX sometimes has problems with the GCC collect2 program. For some
7563 # reason, if we set the COLLECT_NAMES environment variable, the problems
7564 # vanish in a puff of smoke.
7565 if test "X${COLLECT_NAMES+set}" != Xset; then
7567 export COLLECT_NAMES
7572 # Sed substitution that helps us do robust quoting. It backslashifies
7573 # metacharacters that are still active within double-quoted strings.
7574 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7576 # Same as above, but do not quote variable references.
7577 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7579 # Sed substitution to delay expansion of an escaped shell variable in a
7580 # double_quote_subst'ed string.
7581 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7583 # Sed substitution to delay expansion of an escaped single quote.
7584 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7586 # Sed substitution to avoid accidental globbing in evaled expressions
7587 no_glob_subst='s/\*/\\\*/g'
7591 can_build_shared=yes
7593 # All known linkers require a `.a' archive for static linking (except MSVC,
7594 # which needs '.lib').
7597 with_gnu_ld="$lt_cv_prog_gnu_ld"
7600 old_CFLAGS="$CFLAGS"
7602 # Set sane defaults for various variables
7603 test -z "$CC" && CC=cc
7604 test -z "$LTCC" && LTCC=$CC
7605 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7606 test -z "$LD" && LD=ld
7607 test -z "$ac_objext" && ac_objext=o
7609 for cc_temp in $compiler""; do
7611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7617 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7620 # Only perform the check for file, if the check method requires it
7621 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7622 case $deplibs_check_method in
7624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7625 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7626 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7628 $as_echo_n "(cached) " >&6
7632 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635 lt_save_MAGIC_CMD="$MAGIC_CMD"
7636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7637 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7638 for ac_dir in $ac_dummy; do
7640 test -z "$ac_dir" && ac_dir=.
7641 if test -f $ac_dir/${ac_tool_prefix}file; then
7642 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7643 if test -n "$file_magic_test_file"; then
7644 case $deplibs_check_method in
7646 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7648 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7649 $EGREP "$file_magic_regex" > /dev/null; then
7654 *** Warning: the command libtool uses to detect shared libraries,
7655 *** $file_magic_cmd, produces output that libtool cannot recognize.
7656 *** The result is that libtool may fail to recognize shared libraries
7657 *** as such. This will affect the creation of libtool libraries that
7658 *** depend on shared libraries, but programs linked with such libtool
7659 *** libraries will work regardless of this problem. Nevertheless, you
7660 *** may want to report the problem to your system manager and/or to
7661 *** bug-libtool@gnu.org
7671 MAGIC_CMD="$lt_save_MAGIC_CMD"
7676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7677 if test -n "$MAGIC_CMD"; then
7678 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7679 $as_echo "$MAGIC_CMD" >&6; }
7681 { $as_echo "$as_me:$LINENO: result: no" >&5
7682 $as_echo "no" >&6; }
7689 if test -z "$lt_cv_path_MAGIC_CMD"; then
7690 if test -n "$ac_tool_prefix"; then
7691 { $as_echo "$as_me:$LINENO: checking for file" >&5
7692 $as_echo_n "checking for file... " >&6; }
7693 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7694 $as_echo_n "(cached) " >&6
7698 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701 lt_save_MAGIC_CMD="$MAGIC_CMD"
7702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7704 for ac_dir in $ac_dummy; do
7706 test -z "$ac_dir" && ac_dir=.
7707 if test -f $ac_dir/file; then
7708 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7709 if test -n "$file_magic_test_file"; then
7710 case $deplibs_check_method in
7712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7715 $EGREP "$file_magic_regex" > /dev/null; then
7720 *** Warning: the command libtool uses to detect shared libraries,
7721 *** $file_magic_cmd, produces output that libtool cannot recognize.
7722 *** The result is that libtool may fail to recognize shared libraries
7723 *** as such. This will affect the creation of libtool libraries that
7724 *** depend on shared libraries, but programs linked with such libtool
7725 *** libraries will work regardless of this problem. Nevertheless, you
7726 *** may want to report the problem to your system manager and/or to
7727 *** bug-libtool@gnu.org
7737 MAGIC_CMD="$lt_save_MAGIC_CMD"
7742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743 if test -n "$MAGIC_CMD"; then
7744 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7745 $as_echo "$MAGIC_CMD" >&6; }
7747 { $as_echo "$as_me:$LINENO: result: no" >&5
7748 $as_echo "no" >&6; }
7761 # Use C for the default configuration in the libtool script
7765 ac_cpp='$CPP $CPPFLAGS'
7766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7771 # Source file extension for C test sources.
7774 # Object file extension for compiled C test sources.
7778 # Code to be used in simple compile tests
7779 lt_simple_compile_test_code="int some_variable = 0;"
7781 # Code to be used in simple link tests
7782 lt_simple_link_test_code='int main(){return(0);}'
7790 # If no C compiler was specified, use CC.
7793 # If no C compiler flags were specified, use CFLAGS.
7794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7796 # Allow CC to be a program name with arguments.
7799 # Save the default compiler, since it gets overwritten when the other
7800 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7801 compiler_DEFAULT=$CC
7803 # save warnings/boilerplate of simple test code
7804 ac_outfile=conftest.$ac_objext
7805 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7806 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7807 _lt_compiler_boilerplate=`cat conftest.err`
7810 ac_outfile=conftest.$ac_objext
7811 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7812 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7813 _lt_linker_boilerplate=`cat conftest.err`
7817 if test -n "$compiler"; then
7819 lt_prog_compiler_no_builtin_flag=
7821 if test "$GCC" = yes; then
7822 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7824 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7825 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7826 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7827 $as_echo_n "(cached) " >&6
7829 lt_cv_prog_compiler_rtti_exceptions=no
7830 ac_outfile=conftest.$ac_objext
7831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7832 lt_compiler_flag="-fno-rtti -fno-exceptions"
7833 # Insert the option either (1) after the last *FLAGS variable, or
7834 # (2) before a word containing "conftest.", or (3) at the end.
7835 # Note that $ac_compile itself does not contain backslashes and begins
7836 # with a dollar sign (not a hyphen), so the echo should work correctly.
7837 # The option is referenced via a variable to avoid confusing sed.
7838 lt_compile=`echo "$ac_compile" | $SED \
7839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7841 -e 's:$: $lt_compiler_flag:'`
7842 (eval echo "\"\$as_me:7842: $lt_compile\"" >&5)
7843 (eval "$lt_compile" 2>conftest.err)
7845 cat conftest.err >&5
7846 echo "$as_me:7846: \$? = $ac_status" >&5
7847 if (exit $ac_status) && test -s "$ac_outfile"; then
7848 # The compiler can only warn and ignore the option if not recognized
7849 # So say no if there are warnings other than the usual output.
7850 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7852 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7853 lt_cv_prog_compiler_rtti_exceptions=yes
7859 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7860 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7862 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7863 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7875 lt_prog_compiler_wl=
7876 lt_prog_compiler_pic=
7877 lt_prog_compiler_static=
7879 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7880 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7882 if test "$GCC" = yes; then
7883 lt_prog_compiler_wl='-Wl,'
7884 lt_prog_compiler_static='-static'
7888 # All AIX code is PIC.
7889 if test "$host_cpu" = ia64; then
7890 # AIX 5 now supports IA64 processor
7891 lt_prog_compiler_static='-Bstatic'
7898 # see comment about AmigaOS4 .so support
7899 lt_prog_compiler_pic='-fPIC'
7902 # FIXME: we need at least 68020 code to build shared libraries, but
7903 # adding the `-m68020' flag to GCC prevents building anything better,
7905 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7910 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7911 # PIC is the default for these OSes.
7914 mingw* | cygwin* | pw32* | os2* | cegcc*)
7915 # This hack is so that the source file can tell whether it is being
7916 # built for inclusion in a dll (and should export symbols for example).
7917 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7918 # (--disable-auto-import) libraries
7919 lt_prog_compiler_pic='-DDLL_EXPORT'
7922 darwin* | rhapsody*)
7923 # PIC is the default on this platform
7924 # Common symbols not allowed in MH_DYLIB files
7925 lt_prog_compiler_pic='-fno-common'
7929 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7930 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7931 # sets the default TLS model and affects inlining.
7937 lt_prog_compiler_pic='-fPIC'
7943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7944 # Instead, we relocate shared libraries at runtime.
7948 # Just because we use GCC doesn't mean we suddenly get shared libraries
7949 # on systems that don't support them.
7950 lt_prog_compiler_can_build_shared=no
7955 # QNX uses GNU C++, but need to define -shared option too, otherwise
7957 lt_prog_compiler_pic='-fPIC -shared'
7961 if test -d /usr/nec; then
7962 lt_prog_compiler_pic=-Kconform_pic
7967 lt_prog_compiler_pic='-fPIC'
7971 # PORTME Check for flag to pass linker flags through the system compiler.
7974 lt_prog_compiler_wl='-Wl,'
7975 if test "$host_cpu" = ia64; then
7976 # AIX 5 now supports IA64 processor
7977 lt_prog_compiler_static='-Bstatic'
7979 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7983 mingw* | cygwin* | pw32* | os2* | cegcc*)
7984 # This hack is so that the source file can tell whether it is being
7985 # built for inclusion in a dll (and should export symbols for example).
7986 lt_prog_compiler_pic='-DDLL_EXPORT'
7989 hpux9* | hpux10* | hpux11*)
7990 lt_prog_compiler_wl='-Wl,'
7991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7998 lt_prog_compiler_pic='+Z'
8001 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8002 lt_prog_compiler_static='${wl}-a ${wl}archive'
8005 irix5* | irix6* | nonstopux*)
8006 lt_prog_compiler_wl='-Wl,'
8007 # PIC (with -KPIC) is the default.
8008 lt_prog_compiler_static='-non_shared'
8011 linux* | k*bsd*-gnu)
8012 case $cc_basename in
8013 # old Intel for x86_64 which still supported -KPIC.
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-static'
8019 # icc used to be incompatible with GCC.
8020 # ICC 10 doesn't accept -KPIC any more.
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_pic='-fPIC'
8024 lt_prog_compiler_static='-static'
8026 # Lahey Fortran 8.1.
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_pic='--shared'
8030 lt_prog_compiler_static='--static'
8032 pgcc* | pgf77* | pgf90* | pgf95*)
8033 # Portland Group compilers (*not* the Pentium gcc compiler,
8034 # which looks to be a dead project)
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_pic='-fpic'
8037 lt_prog_compiler_static='-Bstatic'
8040 lt_prog_compiler_wl='-Wl,'
8041 # All Alpha code is PIC.
8042 lt_prog_compiler_static='-non_shared'
8045 # IBM XL C 8.0/Fortran 10.1 on PPC
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='-qpic'
8048 lt_prog_compiler_static='-qstaticlink'
8051 case `$CC -V 2>&1 | sed 5q` in
8054 lt_prog_compiler_pic='-KPIC'
8055 lt_prog_compiler_static='-Bstatic'
8056 lt_prog_compiler_wl='-Wl,'
8059 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8060 lt_prog_compiler_pic='-KPIC'
8061 lt_prog_compiler_static='-Bstatic'
8062 lt_prog_compiler_wl=''
8070 lt_prog_compiler_pic='-KPIC'
8071 lt_prog_compiler_static='-Bstatic'
8075 # QNX uses GNU C++, but need to define -shared option too, otherwise
8077 lt_prog_compiler_pic='-fPIC -shared'
8080 osf3* | osf4* | osf5*)
8081 lt_prog_compiler_wl='-Wl,'
8082 # All OSF/1 code is PIC.
8083 lt_prog_compiler_static='-non_shared'
8087 lt_prog_compiler_static='-non_shared'
8091 lt_prog_compiler_pic='-KPIC'
8092 lt_prog_compiler_static='-Bstatic'
8093 case $cc_basename in
8095 lt_prog_compiler_wl='-Qoption ld ';;
8097 lt_prog_compiler_wl='-Wl,';;
8102 lt_prog_compiler_wl='-Qoption ld '
8103 lt_prog_compiler_pic='-PIC'
8104 lt_prog_compiler_static='-Bstatic'
8107 sysv4 | sysv4.2uw2* | sysv4.3*)
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_pic='-KPIC'
8110 lt_prog_compiler_static='-Bstatic'
8114 if test -d /usr/nec ;then
8115 lt_prog_compiler_pic='-Kconform_pic'
8116 lt_prog_compiler_static='-Bstatic'
8120 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='-KPIC'
8123 lt_prog_compiler_static='-Bstatic'
8127 lt_prog_compiler_wl='-Wl,'
8128 lt_prog_compiler_can_build_shared=no
8132 lt_prog_compiler_pic='-pic'
8133 lt_prog_compiler_static='-Bstatic'
8137 lt_prog_compiler_can_build_shared=no
8143 # For platforms which do not support PIC, -DPIC is meaningless:
8145 lt_prog_compiler_pic=
8148 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8151 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8152 $as_echo "$lt_prog_compiler_pic" >&6; }
8160 # Check to make sure the PIC flag actually works.
8162 if test -n "$lt_prog_compiler_pic"; then
8163 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8164 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8165 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8166 $as_echo_n "(cached) " >&6
8168 lt_cv_prog_compiler_pic_works=no
8169 ac_outfile=conftest.$ac_objext
8170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8171 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8172 # Insert the option either (1) after the last *FLAGS variable, or
8173 # (2) before a word containing "conftest.", or (3) at the end.
8174 # Note that $ac_compile itself does not contain backslashes and begins
8175 # with a dollar sign (not a hyphen), so the echo should work correctly.
8176 # The option is referenced via a variable to avoid confusing sed.
8177 lt_compile=`echo "$ac_compile" | $SED \
8178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180 -e 's:$: $lt_compiler_flag:'`
8181 (eval echo "\"\$as_me:8181: $lt_compile\"" >&5)
8182 (eval "$lt_compile" 2>conftest.err)
8184 cat conftest.err >&5
8185 echo "$as_me:8185: \$? = $ac_status" >&5
8186 if (exit $ac_status) && test -s "$ac_outfile"; then
8187 # The compiler can only warn and ignore the option if not recognized
8188 # So say no if there are warnings other than the usual output.
8189 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8191 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8192 lt_cv_prog_compiler_pic_works=yes
8198 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8199 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8201 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8202 case $lt_prog_compiler_pic in
8204 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8207 lt_prog_compiler_pic=
8208 lt_prog_compiler_can_build_shared=no
8219 # Check to make sure the static flag actually works.
8221 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8222 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8223 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8224 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8225 $as_echo_n "(cached) " >&6
8227 lt_cv_prog_compiler_static_works=no
8228 save_LDFLAGS="$LDFLAGS"
8229 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8230 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8231 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8232 # The linker can only warn and ignore the option if not recognized
8233 # So say no if there are warnings
8234 if test -s conftest.err; then
8235 # Append any errors to the config.log.
8236 cat conftest.err 1>&5
8237 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8239 if diff conftest.exp conftest.er2 >/dev/null; then
8240 lt_cv_prog_compiler_static_works=yes
8243 lt_cv_prog_compiler_static_works=yes
8247 LDFLAGS="$save_LDFLAGS"
8250 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8251 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8253 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8256 lt_prog_compiler_static=
8265 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8266 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8267 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8268 $as_echo_n "(cached) " >&6
8270 lt_cv_prog_compiler_c_o=no
8271 $RM -r conftest 2>/dev/null
8275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8277 lt_compiler_flag="-o out/conftest2.$ac_objext"
8278 # Insert the option either (1) after the last *FLAGS variable, or
8279 # (2) before a word containing "conftest.", or (3) at the end.
8280 # Note that $ac_compile itself does not contain backslashes and begins
8281 # with a dollar sign (not a hyphen), so the echo should work correctly.
8282 lt_compile=`echo "$ac_compile" | $SED \
8283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285 -e 's:$: $lt_compiler_flag:'`
8286 (eval echo "\"\$as_me:8286: $lt_compile\"" >&5)
8287 (eval "$lt_compile" 2>out/conftest.err)
8289 cat out/conftest.err >&5
8290 echo "$as_me:8290: \$? = $ac_status" >&5
8291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8293 # The compiler can only warn and ignore the option if not recognized
8294 # So say no if there are warnings
8295 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8296 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8297 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8298 lt_cv_prog_compiler_c_o=yes
8303 # SGI C++ compiler will create directory out/ii_files/ for
8304 # template instantiation
8305 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8306 $RM out/* && rmdir out
8312 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8313 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8320 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8323 $as_echo_n "(cached) " >&6
8325 lt_cv_prog_compiler_c_o=no
8326 $RM -r conftest 2>/dev/null
8330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8332 lt_compiler_flag="-o out/conftest2.$ac_objext"
8333 # Insert the option either (1) after the last *FLAGS variable, or
8334 # (2) before a word containing "conftest.", or (3) at the end.
8335 # Note that $ac_compile itself does not contain backslashes and begins
8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
8337 lt_compile=`echo "$ac_compile" | $SED \
8338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340 -e 's:$: $lt_compiler_flag:'`
8341 (eval echo "\"\$as_me:8341: $lt_compile\"" >&5)
8342 (eval "$lt_compile" 2>out/conftest.err)
8344 cat out/conftest.err >&5
8345 echo "$as_me:8345: \$? = $ac_status" >&5
8346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8348 # The compiler can only warn and ignore the option if not recognized
8349 # So say no if there are warnings
8350 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8353 lt_cv_prog_compiler_c_o=yes
8358 # SGI C++ compiler will create directory out/ii_files/ for
8359 # template instantiation
8360 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8361 $RM out/* && rmdir out
8367 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8373 hard_links="nottested"
8374 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8375 # do not overwrite the value of need_locks provided by the user
8376 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8377 $as_echo_n "checking if we can lock with hard links... " >&6; }
8380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8382 ln conftest.a conftest.b 2>&5 || hard_links=no
8383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8384 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8385 $as_echo "$hard_links" >&6; }
8386 if test "$hard_links" = no; then
8387 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8388 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8400 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8401 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8404 allow_undefined_flag=
8405 always_export_symbols=no
8407 archive_expsym_cmds=
8408 compiler_needs_object=no
8409 enable_shared_with_static_runtimes=no
8410 export_dynamic_flag_spec=
8411 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8412 hardcode_automatic=no
8414 hardcode_direct_absolute=no
8415 hardcode_libdir_flag_spec=
8416 hardcode_libdir_flag_spec_ld=
8417 hardcode_libdir_separator=
8419 hardcode_shlibpath_var=unsupported
8421 link_all_deplibs=unknown
8424 old_archive_from_new_cmds=
8425 old_archive_from_expsyms_cmds=
8426 thread_safe_flag_spec=
8427 whole_archive_flag_spec=
8428 # include_expsyms should be a list of space-separated symbols to be *always*
8429 # included in the symbol list
8431 # exclude_expsyms can be an extended regexp of symbols to exclude
8432 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8433 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8434 # as well as any symbol that contains `d'.
8435 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8436 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8437 # platforms (ab)use it in PIC code, but their linkers get confused if
8438 # the symbol is explicitly referenced. Since portable code cannot
8439 # rely on this symbol name, it's probably fine to never include it in
8440 # preloaded symbol tables.
8441 # Exclude shared library initialization/finalization symbols.
8442 extract_expsyms_cmds=
8445 cygwin* | mingw* | pw32* | cegcc*)
8446 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8447 # When not using gcc, we currently assume that we are using
8448 # Microsoft Visual C++.
8449 if test "$GCC" != yes; then
8454 # we just hope/assume this is gcc and not c89 (= MSVC++)
8463 if test "$with_gnu_ld" = yes; then
8464 # If archive_cmds runs LD, not CC, wlarc should be empty
8467 # Set some defaults for GNU ld with shared library support. These
8468 # are reset later if shared libraries are not supported. Putting them
8469 # here allows them to be overridden if necessary.
8470 runpath_var=LD_RUN_PATH
8471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8472 export_dynamic_flag_spec='${wl}--export-dynamic'
8473 # ancient GNU ld didn't support --whole-archive et. al.
8474 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8475 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8477 whole_archive_flag_spec=
8479 supports_anon_versioning=no
8480 case `$LD -v 2>&1` in
8481 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8482 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8483 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8484 *\ 2.11.*) ;; # other 2.11 versions
8485 *) supports_anon_versioning=yes ;;
8488 # See if GNU ld supports shared libraries.
8491 # On AIX/PPC, the GNU linker is very broken
8492 if test "$host_cpu" != ia64; then
8496 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8497 *** to be unable to reliably create shared libraries on AIX.
8498 *** Therefore, libtool is disabling shared libraries support. If you
8499 *** really care for shared libraries, you may want to modify your PATH
8500 *** so that a non-GNU linker is found, and then restart.
8509 # see comment about AmigaOS4 .so support
8510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511 archive_expsym_cmds=''
8514 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8515 hardcode_libdir_flag_spec='-L$libdir'
8516 hardcode_minus_L=yes
8522 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8523 allow_undefined_flag=unsupported
8524 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8525 # support --undefined. This deserves some investigation. FIXME
8526 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 cygwin* | mingw* | pw32* | cegcc*)
8533 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8534 # as there is no search path for DLLs.
8535 hardcode_libdir_flag_spec='-L$libdir'
8536 allow_undefined_flag=unsupported
8537 always_export_symbols=no
8538 enable_shared_with_static_runtimes=yes
8539 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8541 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8543 # If the export-symbols file already is a .def file (1st line
8544 # is EXPORTS), use it as is; otherwise, prepend...
8545 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8546 cp $export_symbols $output_objdir/$soname.def;
8548 echo EXPORTS > $output_objdir/$soname.def;
8549 cat $export_symbols >> $output_objdir/$soname.def;
8551 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559 hardcode_shlibpath_var=no
8560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8561 export_dynamic_flag_spec='${wl}-E'
8562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8563 # Instead, shared libraries are loaded at an image base (0x10000000 by
8564 # default) and relocated if they conflict, which is a slow very memory
8565 # consuming and fragmenting process. To avoid this, we pick a random,
8566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8567 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8569 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8572 gnu* | linux* | tpf* | k*bsd*-gnu)
8574 if test "$host_os" = linux-dietlibc; then
8575 case $cc_basename in
8576 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8579 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8580 && test "$tmp_diet" = no
8583 tmp_sharedflag='-shared'
8584 case $cc_basename,$host_cpu in
8585 pgcc*) # Portland Group C compiler
8586 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8587 tmp_addflag=' $pic_flag'
8589 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8590 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8591 tmp_addflag=' $pic_flag -Mnomain' ;;
8592 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8593 tmp_addflag=' -i_dynamic' ;;
8594 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8595 tmp_addflag=' -i_dynamic -nofor_main' ;;
8596 ifc* | ifort*) # Intel Fortran compiler
8597 tmp_addflag=' -nofor_main' ;;
8598 lf95*) # Lahey Fortran 8.1
8599 whole_archive_flag_spec=
8600 tmp_sharedflag='--shared' ;;
8601 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8602 tmp_sharedflag='-qmkshrobj'
8605 case `$CC -V 2>&1 | sed 5q` in
8606 *Sun\ C*) # Sun C 5.9
8607 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8608 compiler_needs_object=yes
8609 tmp_sharedflag='-G' ;;
8610 *Sun\ F*) # Sun Fortran 8.3
8611 tmp_sharedflag='-G' ;;
8613 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615 if test "x$supports_anon_versioning" = xyes; then
8616 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8618 echo "local: *; };" >> $output_objdir/$libname.ver~
8619 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8622 case $cc_basename in
8624 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8625 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8626 hardcode_libdir_flag_spec=
8627 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8628 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8629 if test "x$supports_anon_versioning" = xyes; then
8630 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8631 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8632 echo "local: *; };" >> $output_objdir/$libname.ver~
8633 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8644 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8657 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8658 *** create shared libraries on Solaris systems. Therefore, libtool
8659 *** is disabling shared libraries support. We urge you to upgrade GNU
8660 *** binutils to release 2.9.1 or newer. Another option is to modify
8661 *** your PATH or compiler configuration so that the native linker is
8662 *** used, and then restart.
8665 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8674 case `$LD -v 2>&1` in
8675 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8679 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8680 *** reliably create shared libraries on SCO systems. Therefore, libtool
8681 *** is disabling shared libraries support. We urge you to upgrade GNU
8682 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8683 *** your PATH or compiler configuration so that the native linker is
8684 *** used, and then restart.
8689 # For security reasons, it is highly recommended that you always
8690 # use absolute paths for naming shared libraries, and exclude the
8691 # DT_RUNPATH tag from executables and libraries. But doing so
8692 # requires that you compile everything twice, which is a pain.
8693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8705 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8708 hardcode_shlibpath_var=no
8712 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8721 if test "$ld_shlibs" = no; then
8723 hardcode_libdir_flag_spec=
8724 export_dynamic_flag_spec=
8725 whole_archive_flag_spec=
8728 # PORTME fill in a description of your system's linker (not GNU ld)
8731 allow_undefined_flag=unsupported
8732 always_export_symbols=yes
8733 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8734 # Note: this linker hardcodes the directories in LIBPATH if there
8735 # are no directories specified by -L.
8736 hardcode_minus_L=yes
8737 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8738 # Neither direct hardcoding nor static linking is supported with a
8740 hardcode_direct=unsupported
8745 if test "$host_cpu" = ia64; then
8746 # On IA64, the linker does run time linking by default, so we don't
8747 # have to do anything special.
8748 aix_use_runtimelinking=no
8749 exp_sym_flag='-Bexport'
8752 # If we're using GNU nm, then we don't want the "-C" option.
8753 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8755 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8757 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8759 aix_use_runtimelinking=no
8761 # Test if we are trying to use run time linking or normal
8762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8763 # need to do runtime linking.
8764 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8765 for ld_flag in $LDFLAGS; do
8766 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8767 aix_use_runtimelinking=yes
8774 exp_sym_flag='-bexport'
8775 no_entry_flag='-bnoentry'
8778 # When large executables or shared objects are built, AIX ld can
8779 # have problems creating the table of contents. If linking a library
8780 # or program results in "error TOC overflow" add -mminimal-toc to
8781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8786 hardcode_direct_absolute=yes
8787 hardcode_libdir_separator=':'
8788 link_all_deplibs=yes
8789 file_list_spec='${wl}-f,'
8791 if test "$GCC" = yes; then
8792 case $host_os in aix4.[012]|aix4.[012].*)
8793 # We only want to do this on AIX 4.2 and lower, the check
8794 # below for broken collect2 doesn't work under 4.3+
8795 collect2name=`${CC} -print-prog-name=collect2`
8796 if test -f "$collect2name" &&
8797 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8799 # We have reworked collect2
8802 # We have old collect2
8803 hardcode_direct=unsupported
8804 # It fails to find uninstalled libraries when the uninstalled
8805 # path is not listed in the libpath. Setting hardcode_minus_L
8806 # to unsupported forces relinking
8807 hardcode_minus_L=yes
8808 hardcode_libdir_flag_spec='-L$libdir'
8809 hardcode_libdir_separator=
8813 shared_flag='-shared'
8814 if test "$aix_use_runtimelinking" = yes; then
8815 shared_flag="$shared_flag "'${wl}-G'
8819 if test "$host_cpu" = ia64; then
8820 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8821 # chokes on -Wl,-G. The following line is correct:
8824 if test "$aix_use_runtimelinking" = yes; then
8825 shared_flag='${wl}-G'
8827 shared_flag='${wl}-bM:SRE'
8832 export_dynamic_flag_spec='${wl}-bexpall'
8833 # It seems that -bexpall does not export symbols beginning with
8834 # underscore (_), so it is better to generate a list of symbols to export.
8835 always_export_symbols=yes
8836 if test "$aix_use_runtimelinking" = yes; then
8837 # Warning - without using the other runtime loading flags (-brtl),
8838 # -berok will link without error, but may produce a broken library.
8839 allow_undefined_flag='-berok'
8840 # Determine the default libpath from the value encoded in an
8842 cat >conftest.$ac_ext <<_ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (ac_try="$ac_link"
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8864 $as_echo "$ac_try_echo") >&5
8865 (eval "$ac_link") 2>conftest.er1
8867 grep -v '^ *+' conftest.er1 >conftest.err
8869 cat conftest.err >&5
8870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest$ac_exeext && {
8875 test "$cross_compiling" = yes ||
8876 $as_test_x conftest$ac_exeext
8879 lt_aix_libpath_sed='
8880 /Import File Strings/,/^$/ {
8886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8887 # Check for a 64-bit object if we didn't find anything.
8888 if test -z "$aix_libpath"; then
8889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 $as_echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8898 rm -rf conftest.dSYM
8899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8900 conftest$ac_exeext conftest.$ac_ext
8901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8903 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8904 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8906 if test "$host_cpu" = ia64; then
8907 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8908 allow_undefined_flag="-z nodefs"
8909 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8911 # Determine the default libpath from the value encoded in an
8913 cat >conftest.$ac_ext <<_ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h. */
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8935 $as_echo "$ac_try_echo") >&5
8936 (eval "$ac_link") 2>conftest.er1
8938 grep -v '^ *+' conftest.er1 >conftest.err
8940 cat conftest.err >&5
8941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } && {
8943 test -z "$ac_c_werror_flag" ||
8944 test ! -s conftest.err
8945 } && test -s conftest$ac_exeext && {
8946 test "$cross_compiling" = yes ||
8947 $as_test_x conftest$ac_exeext
8950 lt_aix_libpath_sed='
8951 /Import File Strings/,/^$/ {
8957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8958 # Check for a 64-bit object if we didn't find anything.
8959 if test -z "$aix_libpath"; then
8960 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963 $as_echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.$ac_ext >&5
8969 rm -rf conftest.dSYM
8970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8971 conftest$ac_exeext conftest.$ac_ext
8972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8975 # Warning - without using the other run time loading flags,
8976 # -berok will link without error, but may produce a broken library.
8977 no_undefined_flag=' ${wl}-bernotok'
8978 allow_undefined_flag=' ${wl}-berok'
8979 # Exported symbols can be pulled into shared objects from archives
8980 whole_archive_flag_spec='$convenience'
8981 archive_cmds_need_lc=yes
8982 # This is similar to how AIX traditionally builds its shared libraries.
8983 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8991 # see comment about AmigaOS4 .so support
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993 archive_expsym_cmds=''
8996 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 hardcode_minus_L=yes
9004 export_dynamic_flag_spec=-rdynamic
9007 cygwin* | mingw* | pw32* | cegcc*)
9008 # When not using gcc, we currently assume that we are using
9009 # Microsoft Visual C++.
9010 # hardcode_libdir_flag_spec is actually meaningless, as there is
9011 # no search path for DLLs.
9012 hardcode_libdir_flag_spec=' '
9013 allow_undefined_flag=unsupported
9014 # Tell ltmain to make .lib files, not .a files.
9016 # Tell ltmain to make .dll files, not .so files.
9018 # FIXME: Setting linknames here is a bad hack.
9019 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9020 # The linker will automatically build a .lib file if we build a DLL.
9021 old_archive_from_new_cmds='true'
9022 # FIXME: Should let the user specify the lib program.
9023 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9024 fix_srcfile_path='`cygpath -w "$srcfile"`'
9025 enable_shared_with_static_runtimes=yes
9028 darwin* | rhapsody*)
9031 archive_cmds_need_lc=no
9033 hardcode_automatic=yes
9034 hardcode_shlibpath_var=unsupported
9035 whole_archive_flag_spec=''
9036 link_all_deplibs=yes
9037 allow_undefined_flag="$_lt_dar_allow_undefined"
9038 case $cc_basename in
9039 ifort*) _lt_dar_can_shared=yes ;;
9040 *) _lt_dar_can_shared=$GCC ;;
9042 if test "$_lt_dar_can_shared" = "yes"; then
9043 output_verbose_link_cmd=echo
9044 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9045 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9046 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9047 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057 hardcode_libdir_flag_spec='-L$libdir'
9058 hardcode_shlibpath_var=no
9065 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9066 # support. Future versions do this automatically, but an explicit c++rt0.o
9067 # does not break anything, and helps significantly (at the cost of a little
9070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9071 hardcode_libdir_flag_spec='-R$libdir'
9073 hardcode_shlibpath_var=no
9076 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_minus_L=yes
9081 hardcode_shlibpath_var=no
9084 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9085 freebsd* | dragonfly*)
9086 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9087 hardcode_libdir_flag_spec='-R$libdir'
9089 hardcode_shlibpath_var=no
9093 if test "$GCC" = yes; then
9094 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9096 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9099 hardcode_libdir_separator=:
9102 # hardcode_minus_L: Not really in the search PATH,
9103 # but as the default location of the library.
9104 hardcode_minus_L=yes
9105 export_dynamic_flag_spec='${wl}-E'
9109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9110 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9112 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9114 if test "$with_gnu_ld" = no; then
9115 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9116 hardcode_libdir_flag_spec_ld='+b $libdir'
9117 hardcode_libdir_separator=:
9119 hardcode_direct_absolute=yes
9120 export_dynamic_flag_spec='${wl}-E'
9121 # hardcode_minus_L: Not really in the search PATH,
9122 # but as the default location of the library.
9123 hardcode_minus_L=yes
9128 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9131 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9134 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9137 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9143 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9149 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9153 if test "$with_gnu_ld" = no; then
9154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9155 hardcode_libdir_separator=:
9160 hardcode_shlibpath_var=no
9164 hardcode_direct_absolute=yes
9165 export_dynamic_flag_spec='${wl}-E'
9167 # hardcode_minus_L: Not really in the search PATH,
9168 # but as the default location of the library.
9169 hardcode_minus_L=yes
9175 irix5* | irix6* | nonstopux*)
9176 if test "$GCC" = yes; then
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9178 # Try to use the -exported_symbol ld option, if it does not
9179 # work, assume that -exports_file does not work either and
9180 # implicitly export all symbols.
9181 save_LDFLAGS="$LDFLAGS"
9182 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9183 cat >conftest.$ac_ext <<_ACEOF
9186 rm -f conftest.$ac_objext conftest$ac_exeext
9187 if { (ac_try="$ac_link"
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9193 $as_echo "$ac_try_echo") >&5
9194 (eval "$ac_link") 2>conftest.er1
9196 grep -v '^ *+' conftest.er1 >conftest.err
9198 cat conftest.err >&5
9199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } && {
9201 test -z "$ac_c_werror_flag" ||
9202 test ! -s conftest.err
9203 } && test -s conftest$ac_exeext && {
9204 test "$cross_compiling" = yes ||
9205 $as_test_x conftest$ac_exeext
9207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9210 $as_echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9216 rm -rf conftest.dSYM
9217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9218 conftest$ac_exeext conftest.$ac_ext
9219 LDFLAGS="$save_LDFLAGS"
9221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9224 archive_cmds_need_lc='no'
9225 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9226 hardcode_libdir_separator=:
9228 link_all_deplibs=yes
9232 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9235 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9237 hardcode_libdir_flag_spec='-R$libdir'
9239 hardcode_shlibpath_var=no
9243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246 hardcode_libdir_separator=:
9247 hardcode_shlibpath_var=no
9254 if test -f /usr/libexec/ld.so; then
9256 hardcode_shlibpath_var=no
9257 hardcode_direct_absolute=yes
9258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9260 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9262 export_dynamic_flag_spec='${wl}-E'
9265 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9267 hardcode_libdir_flag_spec='-R$libdir'
9270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9283 allow_undefined_flag=unsupported
9284 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9285 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9289 if test "$GCC" = yes; then
9290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9291 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9293 allow_undefined_flag=' -expect_unresolved \*'
9294 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9296 archive_cmds_need_lc='no'
9297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298 hardcode_libdir_separator=:
9301 osf4* | osf5*) # as osf3* with the addition of -msym flag
9302 if test "$GCC" = yes; then
9303 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9304 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 allow_undefined_flag=' -expect_unresolved \*'
9308 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9309 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9310 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9312 # Both c and cxx compiler support -rpath directly
9313 hardcode_libdir_flag_spec='-rpath $libdir'
9315 archive_cmds_need_lc='no'
9316 hardcode_libdir_separator=:
9320 no_undefined_flag=' -z defs'
9321 if test "$GCC" = yes; then
9323 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9327 case `$CC -V 2>&1` in
9330 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9332 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9336 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9337 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9338 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9342 hardcode_libdir_flag_spec='-R$libdir'
9343 hardcode_shlibpath_var=no
9345 solaris2.[0-5] | solaris2.[0-5].*) ;;
9347 # The compiler driver will combine and reorder linker options,
9348 # but understands `-z linker_flag'. GCC discards it without `$wl',
9349 # but is careful enough not to reorder.
9350 # Supported since Solaris 2.6 (maybe 2.5.1?)
9351 if test "$GCC" = yes; then
9352 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9354 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9358 link_all_deplibs=yes
9362 if test "x$host_vendor" = xsequent; then
9363 # Use $CC to link under sequent, because it throws in some extra .o
9364 # files that make .init and .fini sections work.
9365 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_libdir_flag_spec='-L$libdir'
9371 hardcode_minus_L=yes
9372 hardcode_shlibpath_var=no
9376 case $host_vendor in
9378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379 hardcode_direct=yes # is this really true???
9382 ## LD is ld it makes a PLAMLIB
9383 ## CC just makes a GrossModule.
9384 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9385 reload_cmds='$CC -r -o $output$reload_objs'
9389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9393 runpath_var='LD_RUN_PATH'
9394 hardcode_shlibpath_var=no
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_shlibpath_var=no
9400 export_dynamic_flag_spec='-Bexport'
9404 if test -d /usr/nec; then
9405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406 hardcode_shlibpath_var=no
9407 runpath_var=LD_RUN_PATH
9408 hardcode_runpath_var=yes
9413 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9414 no_undefined_flag='${wl}-z,text'
9415 archive_cmds_need_lc=no
9416 hardcode_shlibpath_var=no
9417 runpath_var='LD_RUN_PATH'
9419 if test "$GCC" = yes; then
9420 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 sysv5* | sco3.2v5* | sco5v6*)
9429 # Note: We can NOT use -z defs as we might desire, because we do not
9430 # link with -lc, and that would cause any symbols used from libc to
9431 # always be unresolved, which means just about no library would
9432 # ever link correctly. If we're not using GNU ld we use -z text
9433 # though, which does catch some bad symbols but isn't as heavy-handed
9435 no_undefined_flag='${wl}-z,text'
9436 allow_undefined_flag='${wl}-z,nodefs'
9437 archive_cmds_need_lc=no
9438 hardcode_shlibpath_var=no
9439 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9440 hardcode_libdir_separator=':'
9441 link_all_deplibs=yes
9442 export_dynamic_flag_spec='${wl}-Bexport'
9443 runpath_var='LD_RUN_PATH'
9445 if test "$GCC" = yes; then
9446 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 hardcode_shlibpath_var=no
9465 if test x$host_vendor = xsni; then
9467 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9468 export_dynamic_flag_spec='${wl}-Blargedynsym'
9474 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9475 $as_echo "$ld_shlibs" >&6; }
9476 test "$ld_shlibs" = no && can_build_shared=no
9478 with_gnu_ld=$with_gnu_ld
9495 # Do we need to explicitly link libc?
9497 case "x$archive_cmds_need_lc" in
9499 # Assume -lc should be added
9500 archive_cmds_need_lc=yes
9502 if test "$enable_shared" = yes && test "$GCC" = yes; then
9503 case $archive_cmds in
9505 # FIXME: we may have to deal with multi-command sequences.
9508 # Test whether the compiler implicitly links with -lc since on some
9509 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9510 # to ld, don't add -lc before -lgcc.
9511 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9512 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>&5
9519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } 2>conftest.err; then
9523 libobjs=conftest.$ac_objext
9525 wl=$lt_prog_compiler_wl
9526 pic_flag=$lt_prog_compiler_pic
9532 lt_save_allow_undefined_flag=$allow_undefined_flag
9533 allow_undefined_flag=
9534 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9535 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }
9540 archive_cmds_need_lc=no
9542 archive_cmds_need_lc=yes
9544 allow_undefined_flag=$lt_save_allow_undefined_flag
9546 cat conftest.err 1>&5
9549 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9550 $as_echo "$archive_cmds_need_lc" >&6; }
9713 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9714 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9716 if test "$GCC" = yes; then
9718 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9719 *) lt_awk_arg="/^libraries:/" ;;
9721 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9722 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9723 # if the path contains ";" then we assume it to be the separator
9724 # otherwise default to the standard path separator (i.e. ":") - it is
9725 # assumed that no part of a normal pathname contains ";" but that should
9726 # okay in the real world where ";" in dirpaths is itself problematic.
9727 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9729 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9731 # Ok, now we have the path, separated by spaces, we can step through it
9732 # and add multilib dir if necessary.
9733 lt_tmp_lt_search_path_spec=
9734 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9735 for lt_sys_path in $lt_search_path_spec; do
9736 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9737 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9739 test -d "$lt_sys_path" && \
9740 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9743 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9744 BEGIN {RS=" "; FS="/|\n";} {
9747 for (lt_i = NF; lt_i > 0; lt_i--) {
9748 if ($lt_i != "" && $lt_i != ".") {
9749 if ($lt_i == "..") {
9752 if (lt_count == 0) {
9753 lt_foo="/" $lt_i lt_foo;
9760 if (lt_foo != "") { lt_freq[lt_foo]++; }
9761 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9763 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9765 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9768 libname_spec='lib$name'
9776 shlibpath_overrides_runpath=unknown
9778 dynamic_linker="$host_os ld.so"
9779 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9780 need_lib_prefix=unknown
9781 hardcode_into_libs=no
9783 # when you set need_version to no, make sure it does not cause -set_version
9784 # flags to be left without arguments
9785 need_version=unknown
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9791 shlibpath_var=LIBPATH
9793 # AIX 3 has no versioning support, so we append a major version to the name.
9794 soname_spec='${libname}${release}${shared_ext}$major'
9801 hardcode_into_libs=yes
9802 if test "$host_cpu" = ia64; then
9803 # AIX 5 supports IA64
9804 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9805 shlibpath_var=LD_LIBRARY_PATH
9807 # With GCC up to 2.95.x, collect2 would create an import file
9808 # for dependence libraries. The import file would start with
9809 # the line `#! .'. This would cause the generated library to
9810 # depend on `.', always an invalid library. This was fixed in
9811 # development snapshots of GCC prior to 3.0.
9813 aix4 | aix4.[01] | aix4.[01].*)
9814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9816 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9823 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9824 # soname into executable. Probably we can add versioning support to
9825 # collect2, so additional links can be useful in future.
9826 if test "$aix_use_runtimelinking" = yes; then
9827 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9828 # instead of lib<name>.a to let people know that these are not
9829 # typical AIX shared libraries.
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832 # We preserve .a as extension for shared libraries through AIX4.2
9833 # and later when we are not doing run time linking.
9834 library_names_spec='${libname}${release}.a $libname.a'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9837 shlibpath_var=LIBPATH
9844 # Since July 2007 AmigaOS4 officially supports .so libraries.
9845 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 library_names_spec='$libname.ixlibrary $libname.a'
9850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9851 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9857 library_names_spec='${libname}${shared_ext}'
9858 dynamic_linker="$host_os ld.so"
9859 shlibpath_var=LIBRARY_PATH
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9870 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9871 # the default ld.so.conf also contains /usr/contrib/lib and
9872 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9873 # libtool to hard-code these into programs
9876 cygwin* | mingw* | pw32* | cegcc*)
9877 version_type=windows
9882 case $GCC,$host_os in
9883 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9884 library_names_spec='$libname.dll.a'
9885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9886 postinstall_cmds='base_file=`basename \${file}`~
9887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9888 dldir=$destdir/`dirname \$dlpath`~
9889 test -d \$dldir || mkdir -p \$dldir~
9890 $install_prog $dir/$dlname \$dldir/$dlname~
9891 chmod a+x \$dldir/$dlname~
9892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9896 dlpath=$dir/\$dldll~
9898 shlibpath_overrides_runpath=yes
9902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9904 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9907 # MinGW DLLs use traditional 'lib' prefix
9908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9909 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9910 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9911 # It is most probably a Windows format PATH printed by
9912 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9913 # path with ; separators, and with drive letters. We can handle the
9914 # drive letters (cygwin fileutils understands them), so leave them,
9915 # especially as we might pass files found there to a mingw objdump,
9916 # which wouldn't understand a cygwinified path. Ahh.
9917 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9919 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9923 # pw32 DLLs use 'pw' prefix rather than 'lib'
9924 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9930 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9933 dynamic_linker='Win32 ld.exe'
9934 # FIXME: first we should search . and the directory the executable is in
9938 darwin* | rhapsody*)
9939 dynamic_linker="$host_os dyld"
9943 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9944 soname_spec='${libname}${release}${major}$shared_ext'
9945 shlibpath_overrides_runpath=yes
9946 shlibpath_var=DYLD_LIBRARY_PATH
9947 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9949 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9950 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9966 freebsd* | dragonfly*)
9967 # DragonFly does not have aout. When/if they implement a new
9968 # versioning mechanism, adjust this.
9969 if test -x /usr/bin/objformat; then
9970 objformat=`/usr/bin/objformat`
9973 freebsd[123]*) objformat=aout ;;
9977 version_type=freebsd-$objformat
9978 case $version_type in
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9989 shlibpath_var=LD_LIBRARY_PATH
9992 shlibpath_overrides_runpath=yes
9994 freebsd3.[01]* | freebsdelf3.[01]*)
9995 shlibpath_overrides_runpath=yes
9996 hardcode_into_libs=yes
9998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10000 shlibpath_overrides_runpath=no
10001 hardcode_into_libs=yes
10003 *) # from 4.6 on, and DragonFly
10004 shlibpath_overrides_runpath=yes
10005 hardcode_into_libs=yes
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LD_LIBRARY_PATH
10017 hardcode_into_libs=yes
10020 hpux9* | hpux10* | hpux11*)
10021 # Give a soname corresponding to the major version so that dld.sl refuses to
10022 # link against other versions.
10029 hardcode_into_libs=yes
10030 dynamic_linker="$host_os dld.so"
10031 shlibpath_var=LD_LIBRARY_PATH
10032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 if test "X$HPUX_IA64_MODE" = X32; then
10036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10038 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10044 hardcode_into_libs=yes
10045 dynamic_linker="$host_os dld.sl"
10046 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10055 dynamic_linker="$host_os dld.sl"
10056 shlibpath_var=SHLIB_PATH
10057 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10062 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10063 postinstall_cmds='chmod 555 $lib'
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10073 shlibpath_var=LD_LIBRARY_PATH
10074 shlibpath_overrides_runpath=no
10075 hardcode_into_libs=yes
10078 irix5* | irix6* | nonstopux*)
10080 nonstopux*) version_type=nonstopux ;;
10082 if test "$lt_cv_prog_gnu_ld" = yes; then
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10093 irix5* | nonstopux*)
10094 libsuff= shlibsuff=
10097 case $LD in # libtool.m4 will add one of these switches to LD
10098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10099 libsuff= shlibsuff= libmagic=32-bit;;
10100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10101 libsuff=32 shlibsuff=N32 libmagic=N32;;
10102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10103 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10104 *) libsuff= shlibsuff= libmagic=never-match;;
10108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10109 shlibpath_overrides_runpath=no
10110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10112 hardcode_into_libs=yes
10115 # No shared lib support for Linux oldld, aout, or coff.
10116 linux*oldld* | linux*aout* | linux*coff*)
10120 # This must be Linux ELF.
10121 linux* | k*bsd*-gnu)
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=no
10130 # Some binutils ld are patched to set DT_RUNPATH
10131 save_LDFLAGS=$LDFLAGS
10132 save_libdir=$libdir
10133 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10134 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10135 cat >conftest.$ac_ext <<_ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10150 rm -f conftest.$ac_objext conftest$ac_exeext
10151 if { (ac_try="$ac_link"
10152 case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10157 $as_echo "$ac_try_echo") >&5
10158 (eval "$ac_link") 2>conftest.er1
10160 grep -v '^ *+' conftest.er1 >conftest.err
10162 cat conftest.err >&5
10163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } && {
10165 test -z "$ac_c_werror_flag" ||
10166 test ! -s conftest.err
10167 } && test -s conftest$ac_exeext && {
10168 test "$cross_compiling" = yes ||
10169 $as_test_x conftest$ac_exeext
10171 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10172 shlibpath_overrides_runpath=yes
10176 $as_echo "$as_me: failed program was:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10182 rm -rf conftest.dSYM
10183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LDFLAGS=$save_LDFLAGS
10186 libdir=$save_libdir
10188 # This implies no fast_install, which is unacceptable.
10189 # Some rework will be needed to allow for fast_install
10190 # before this can be enabled.
10191 hardcode_into_libs=yes
10193 # Add ABI-specific directories to the system library path.
10194 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10196 # Append ld.so.conf contents to the search path
10197 if test -f /etc/ld.so.conf; then
10198 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10199 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10202 # We used to test for /lib/ld.so.1 and disable shared libraries on
10203 # powerpc, because MkLinux only supported shared libraries with the
10204 # GNU dynamic linker. Since this was broken with cross compilers,
10205 # most powerpc-linux boxes support dynamic linking these days and
10206 # people can always --disable-shared, the test was removed, and we
10207 # assume the GNU/Linux dynamic linker is in use.
10208 dynamic_linker='GNU/Linux ld.so'
10215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10218 dynamic_linker='NetBSD (a.out) ld.so'
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 dynamic_linker='NetBSD ld.elf_so'
10224 shlibpath_var=LD_LIBRARY_PATH
10225 shlibpath_overrides_runpath=yes
10226 hardcode_into_libs=yes
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=yes
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=no
10244 hardcode_into_libs=yes
10245 dynamic_linker='ldqnx.so'
10250 sys_lib_dlsearch_path_spec="/usr/lib"
10252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10254 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10255 *) need_version=no ;;
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10262 openbsd2.[89] | openbsd2.[89].*)
10263 shlibpath_overrides_runpath=no
10266 shlibpath_overrides_runpath=yes
10270 shlibpath_overrides_runpath=yes
10275 libname_spec='$name'
10278 library_names_spec='$libname${shared_ext} $libname.a'
10279 dynamic_linker='OS/2 ld.exe'
10280 shlibpath_var=LIBPATH
10283 osf3* | osf4* | osf5*)
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10307 # ldd complains unless libraries are executable
10308 postinstall_cmds='chmod +x $lib'
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10317 if test "$with_gnu_ld" = yes; then
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 case $host_vendor in
10330 shlibpath_overrides_runpath=no
10332 runpath_var=LD_RUN_PATH
10340 shlibpath_overrides_runpath=no
10341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10347 if test -d /usr/nec ;then
10349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10350 soname_spec='$libname${shared_ext}.$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10356 version_type=freebsd-elf
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10364 if test "$with_gnu_ld" = yes; then
10365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10374 sys_lib_dlsearch_path_spec='/usr/lib'
10378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=no
10385 hardcode_into_libs=yes
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10399 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10400 $as_echo "$dynamic_linker" >&6; }
10401 test "$dynamic_linker" = no && can_build_shared=no
10403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10404 if test "$GCC" = yes; then
10405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10408 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10411 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10501 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10502 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10504 if test -n "$hardcode_libdir_flag_spec" ||
10505 test -n "$runpath_var" ||
10506 test "X$hardcode_automatic" = "Xyes" ; then
10508 # We can hardcode non-existent directories.
10509 if test "$hardcode_direct" != no &&
10510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10511 # have to relink, otherwise we might link with an installed library
10512 # when we should be linking with a yet-to-be-installed one
10513 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10514 test "$hardcode_minus_L" != no; then
10515 # Linking always hardcodes the temporary library directory.
10516 hardcode_action=relink
10518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10519 hardcode_action=immediate
10522 # We cannot hardcode anything, or else we can only hardcode existing
10524 hardcode_action=unsupported
10526 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10527 $as_echo "$hardcode_action" >&6; }
10529 if test "$hardcode_action" = relink ||
10530 test "$inherit_rpath" = yes; then
10531 # Fast installation is not supported
10532 enable_fast_install=no
10533 elif test "$shlibpath_overrides_runpath" = yes ||
10534 test "$enable_shared" = no; then
10535 # Fast installation is not necessary
10536 enable_fast_install=needless
10544 if test "x$enable_dlopen" != xyes; then
10545 enable_dlopen=unknown
10546 enable_dlopen_self=unknown
10547 enable_dlopen_self_static=unknown
10554 lt_cv_dlopen="load_add_on"
10556 lt_cv_dlopen_self=yes
10559 mingw* | pw32* | cegcc*)
10560 lt_cv_dlopen="LoadLibrary"
10565 lt_cv_dlopen="dlopen"
10570 # if libdl is installed we need to link against it
10571 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10572 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10574 $as_echo_n "(cached) " >&6
10576 ac_check_lib_save_LIBS=$LIBS
10578 cat >conftest.$ac_ext <<_ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10585 /* Override any GCC internal prototype to avoid an error.
10586 Use char because int might match the return type of a GCC
10587 builtin and then its argument prototype would still apply. */
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10607 $as_echo "$ac_try_echo") >&5
10608 (eval "$ac_link") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext && {
10618 test "$cross_compiling" = yes ||
10619 $as_test_x conftest$ac_exeext
10621 ac_cv_lib_dl_dlopen=yes
10623 $as_echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 ac_cv_lib_dl_dlopen=no
10629 rm -rf conftest.dSYM
10630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10634 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10635 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10636 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10640 lt_cv_dlopen="dyld"
10642 lt_cv_dlopen_self=yes
10649 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10650 $as_echo_n "checking for shl_load... " >&6; }
10651 if test "${ac_cv_func_shl_load+set}" = set; then
10652 $as_echo_n "(cached) " >&6
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10662 #define shl_load innocuous_shl_load
10664 /* System header to define __stub macros and hopefully few prototypes,
10665 which can conflict with char shl_load (); below.
10666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10667 <limits.h> exists even on freestanding compilers. */
10670 # include <limits.h>
10672 # include <assert.h>
10677 /* Override any GCC internal prototype to avoid an error.
10678 Use char because int might match the return type of a GCC
10679 builtin and then its argument prototype would still apply. */
10684 /* The GNU C library defines this for functions which it implements
10685 to always fail with ENOSYS. Some functions are actually named
10686 something starting with __ and the normal name is an alias. */
10687 #if defined __stub_shl_load || defined __stub___shl_load
10694 return shl_load ();
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (ac_try="$ac_link"
10701 case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10706 $as_echo "$ac_try_echo") >&5
10707 (eval "$ac_link") 2>conftest.er1
10709 grep -v '^ *+' conftest.er1 >conftest.err
10711 cat conftest.err >&5
10712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } && {
10714 test -z "$ac_c_werror_flag" ||
10715 test ! -s conftest.err
10716 } && test -s conftest$ac_exeext && {
10717 test "$cross_compiling" = yes ||
10718 $as_test_x conftest$ac_exeext
10720 ac_cv_func_shl_load=yes
10722 $as_echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_func_shl_load=no
10728 rm -rf conftest.dSYM
10729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10730 conftest$ac_exeext conftest.$ac_ext
10732 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10733 $as_echo "$ac_cv_func_shl_load" >&6; }
10734 if test "x$ac_cv_func_shl_load" = x""yes; then
10735 lt_cv_dlopen="shl_load"
10737 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10738 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10739 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10740 $as_echo_n "(cached) " >&6
10742 ac_check_lib_save_LIBS=$LIBS
10744 cat >conftest.$ac_ext <<_ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10761 return shl_load ();
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (ac_try="$ac_link"
10768 case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774 (eval "$ac_link") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && {
10781 test -z "$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 } && test -s conftest$ac_exeext && {
10784 test "$cross_compiling" = yes ||
10785 $as_test_x conftest$ac_exeext
10787 ac_cv_lib_dld_shl_load=yes
10789 $as_echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 ac_cv_lib_dld_shl_load=no
10795 rm -rf conftest.dSYM
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext conftest.$ac_ext
10798 LIBS=$ac_check_lib_save_LIBS
10800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10801 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10802 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10805 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10806 $as_echo_n "checking for dlopen... " >&6; }
10807 if test "${ac_cv_func_dlopen+set}" = set; then
10808 $as_echo_n "(cached) " >&6
10810 cat >conftest.$ac_ext <<_ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h. */
10816 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10818 #define dlopen innocuous_dlopen
10820 /* System header to define __stub macros and hopefully few prototypes,
10821 which can conflict with char dlopen (); below.
10822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10823 <limits.h> exists even on freestanding compilers. */
10826 # include <limits.h>
10828 # include <assert.h>
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10840 /* The GNU C library defines this for functions which it implements
10841 to always fail with ENOSYS. Some functions are actually named
10842 something starting with __ and the normal name is an alias. */
10843 #if defined __stub_dlopen || defined __stub___dlopen
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10862 $as_echo "$ac_try_echo") >&5
10863 (eval "$ac_link") 2>conftest.er1
10865 grep -v '^ *+' conftest.er1 >conftest.err
10867 cat conftest.err >&5
10868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && {
10870 test -z "$ac_c_werror_flag" ||
10871 test ! -s conftest.err
10872 } && test -s conftest$ac_exeext && {
10873 test "$cross_compiling" = yes ||
10874 $as_test_x conftest$ac_exeext
10876 ac_cv_func_dlopen=yes
10878 $as_echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 ac_cv_func_dlopen=no
10884 rm -rf conftest.dSYM
10885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10886 conftest$ac_exeext conftest.$ac_ext
10888 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10889 $as_echo "$ac_cv_func_dlopen" >&6; }
10890 if test "x$ac_cv_func_dlopen" = x""yes; then
10891 lt_cv_dlopen="dlopen"
10893 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10895 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10896 $as_echo_n "(cached) " >&6
10898 ac_check_lib_save_LIBS=$LIBS
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10922 rm -f conftest.$ac_objext conftest$ac_exeext
10923 if { (ac_try="$ac_link"
10924 case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10929 $as_echo "$ac_try_echo") >&5
10930 (eval "$ac_link") 2>conftest.er1
10932 grep -v '^ *+' conftest.er1 >conftest.err
10934 cat conftest.err >&5
10935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } && {
10937 test -z "$ac_c_werror_flag" ||
10938 test ! -s conftest.err
10939 } && test -s conftest$ac_exeext && {
10940 test "$cross_compiling" = yes ||
10941 $as_test_x conftest$ac_exeext
10943 ac_cv_lib_dl_dlopen=yes
10945 $as_echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 ac_cv_lib_dl_dlopen=no
10951 rm -rf conftest.dSYM
10952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10953 conftest$ac_exeext conftest.$ac_ext
10954 LIBS=$ac_check_lib_save_LIBS
10956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10957 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10958 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10961 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10962 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10963 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10964 $as_echo_n "(cached) " >&6
10966 ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-lsvld $LIBS"
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10997 $as_echo "$ac_try_echo") >&5
10998 (eval "$ac_link") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest$ac_exeext && {
11008 test "$cross_compiling" = yes ||
11009 $as_test_x conftest$ac_exeext
11011 ac_cv_lib_svld_dlopen=yes
11013 $as_echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_cv_lib_svld_dlopen=no
11019 rm -rf conftest.dSYM
11020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11026 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11029 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11031 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11032 $as_echo_n "(cached) " >&6
11034 ac_check_lib_save_LIBS=$LIBS
11036 cat >conftest.$ac_ext <<_ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11043 /* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11053 return dld_link ();
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066 (eval "$ac_link") 2>conftest.er1
11068 grep -v '^ *+' conftest.er1 >conftest.err
11070 cat conftest.err >&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_c_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest$ac_exeext && {
11076 test "$cross_compiling" = yes ||
11077 $as_test_x conftest$ac_exeext
11079 ac_cv_lib_dld_dld_link=yes
11081 $as_echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 ac_cv_lib_dld_dld_link=no
11087 rm -rf conftest.dSYM
11088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11093 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11094 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11095 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11116 if test "x$lt_cv_dlopen" != xno; then
11122 case $lt_cv_dlopen in
11124 save_CPPFLAGS="$CPPFLAGS"
11125 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11127 save_LDFLAGS="$LDFLAGS"
11128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11131 LIBS="$lt_cv_dlopen_libs $LIBS"
11133 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11134 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11135 if test "${lt_cv_dlopen_self+set}" = set; then
11136 $as_echo_n "(cached) " >&6
11138 if test "$cross_compiling" = yes; then :
11139 lt_cv_dlopen_self=cross
11141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11142 lt_status=$lt_dlunknown
11143 cat > conftest.$ac_ext <<_LT_EOF
11144 #line 11144 "configure"
11145 #include "confdefs.h"
11154 # define LT_DLGLOBAL RTLD_GLOBAL
11157 # define LT_DLGLOBAL DL_GLOBAL
11159 # define LT_DLGLOBAL 0
11163 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11164 find out it does not work in some platform. */
11165 #ifndef LT_DLLAZY_OR_NOW
11167 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11170 # define LT_DLLAZY_OR_NOW DL_LAZY
11173 # define LT_DLLAZY_OR_NOW RTLD_NOW
11176 # define LT_DLLAZY_OR_NOW DL_NOW
11178 # define LT_DLLAZY_OR_NOW 0
11185 void fnord() { int i=42;}
11188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11189 int status = $lt_dlunknown;
11193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11195 /* dlclose (self); */
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>&5
11206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11208 (./conftest; exit; ) >&5 2>/dev/null
11210 case x$lt_status in
11211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11216 # compilation failed
11217 lt_cv_dlopen_self=no
11224 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11225 $as_echo "$lt_cv_dlopen_self" >&6; }
11227 if test "x$lt_cv_dlopen_self" = xyes; then
11228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11229 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11230 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11231 if test "${lt_cv_dlopen_self_static+set}" = set; then
11232 $as_echo_n "(cached) " >&6
11234 if test "$cross_compiling" = yes; then :
11235 lt_cv_dlopen_self_static=cross
11237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11238 lt_status=$lt_dlunknown
11239 cat > conftest.$ac_ext <<_LT_EOF
11240 #line 11240 "configure"
11241 #include "confdefs.h"
11250 # define LT_DLGLOBAL RTLD_GLOBAL
11253 # define LT_DLGLOBAL DL_GLOBAL
11255 # define LT_DLGLOBAL 0
11259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11260 find out it does not work in some platform. */
11261 #ifndef LT_DLLAZY_OR_NOW
11263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11266 # define LT_DLLAZY_OR_NOW DL_LAZY
11269 # define LT_DLLAZY_OR_NOW RTLD_NOW
11272 # define LT_DLLAZY_OR_NOW DL_NOW
11274 # define LT_DLLAZY_OR_NOW 0
11281 void fnord() { int i=42;}
11284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11285 int status = $lt_dlunknown;
11289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11291 /* dlclose (self); */
11299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300 (eval $ac_link) 2>&5
11302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11304 (./conftest; exit; ) >&5 2>/dev/null
11306 case x$lt_status in
11307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11312 # compilation failed
11313 lt_cv_dlopen_self_static=no
11320 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11321 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11324 CPPFLAGS="$save_CPPFLAGS"
11325 LDFLAGS="$save_LDFLAGS"
11330 case $lt_cv_dlopen_self in
11331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11332 *) enable_dlopen_self=unknown ;;
11335 case $lt_cv_dlopen_self_static in
11336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11337 *) enable_dlopen_self_static=unknown ;;
11359 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11360 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11361 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11362 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11363 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11364 { $as_echo "$as_me:$LINENO: result: yes" >&5
11365 $as_echo "yes" >&6; }
11367 # FIXME - insert some real tests, host_os isn't really good enough
11370 if test -n "$STRIP" ; then
11371 striplib="$STRIP -x"
11372 old_striplib="$STRIP -S"
11373 { $as_echo "$as_me:$LINENO: result: yes" >&5
11374 $as_echo "yes" >&6; }
11376 { $as_echo "$as_me:$LINENO: result: no" >&5
11377 $as_echo "no" >&6; }
11381 { $as_echo "$as_me:$LINENO: result: no" >&5
11382 $as_echo "no" >&6; }
11398 # Report which library types will actually be built
11399 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11400 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11401 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11402 $as_echo "$can_build_shared" >&6; }
11404 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11405 $as_echo_n "checking whether to build shared libraries... " >&6; }
11406 test "$can_build_shared" = "no" && enable_shared=no
11408 # On AIX, shared libraries and static libraries use the same namespace, and
11409 # are all built from PIC.
11412 test "$enable_shared" = yes && enable_static=no
11413 if test -n "$RANLIB"; then
11414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11415 postinstall_cmds='$RANLIB $lib'
11420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11421 test "$enable_shared" = yes && enable_static=no
11425 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11426 $as_echo "$enable_shared" >&6; }
11428 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11429 $as_echo_n "checking whether to build static libraries... " >&6; }
11430 # Make sure either enable_shared or enable_static is yes.
11431 test "$enable_shared" = yes || enable_static=yes
11432 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11433 $as_echo "$enable_static" >&6; }
11440 ac_cpp='$CPP $CPPFLAGS'
11441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11459 ac_config_commands="$ac_config_commands libtool"
11464 # Only expand once:
11470 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11471 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11472 # Check whether --enable-maintainer-mode was given.
11473 if test "${enable_maintainer_mode+set}" = set; then
11474 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11476 USE_MAINTAINER_MODE=no
11479 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11480 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11481 if test $USE_MAINTAINER_MODE = yes; then
11482 MAINTAINER_MODE_TRUE=
11483 MAINTAINER_MODE_FALSE='#'
11485 MAINTAINER_MODE_TRUE='#'
11486 MAINTAINER_MODE_FALSE=
11489 MAINT=$MAINTAINER_MODE_TRUE
11494 for ac_header in sys/mman.h
11496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 $as_echo_n "checking for $ac_header... " >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11503 ac_res=`eval 'as_val=${'$as_ac_Header'}
11504 $as_echo "$as_val"'`
11505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11506 $as_echo "$ac_res" >&6; }
11508 # Is the header compilable?
11509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 $as_echo_n "checking $ac_header usability... " >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <$ac_header>
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 ac_header_compiler=yes
11540 $as_echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_header_compiler=no
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11548 $as_echo "$ac_header_compiler" >&6; }
11550 # Is the header present?
11551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11552 $as_echo_n "checking $ac_header presence... " >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 #include <$ac_header>
11561 if { (ac_try="$ac_cpp conftest.$ac_ext"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null && {
11575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11578 ac_header_preproc=yes
11580 $as_echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_header_preproc=no
11586 rm -f conftest.err conftest.$ac_ext
11587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11588 $as_echo "$ac_header_preproc" >&6; }
11590 # So? What about this header?
11591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11597 ac_header_preproc=yes
11600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11613 ## ------------------------------------------- ##
11614 ## Report this to http://gcc.gnu.org/bugs.html ##
11615 ## ------------------------------------------- ##
11617 ) | sed "s/^/$as_me: WARNING: /" >&2
11620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11621 $as_echo_n "checking for $ac_header... " >&6; }
11622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11623 $as_echo_n "(cached) " >&6
11625 eval "$as_ac_Header=\$ac_header_preproc"
11627 ac_res=`eval 'as_val=${'$as_ac_Header'}
11628 $as_echo "$as_val"'`
11629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11630 $as_echo "$ac_res" >&6; }
11633 as_val=`eval 'as_val=${'$as_ac_Header'}
11634 $as_echo "$as_val"'`
11635 if test "x$as_val" = x""yes; then
11636 cat >>confdefs.h <<_ACEOF
11637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11645 for ac_func in mmap
11647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11649 $as_echo_n "checking for $ac_func... " >&6; }
11650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651 $as_echo_n "(cached) " >&6
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11661 #define $ac_func innocuous_$ac_func
11663 /* System header to define __stub macros and hopefully few prototypes,
11664 which can conflict with char $ac_func (); below.
11665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666 <limits.h> exists even on freestanding compilers. */
11669 # include <limits.h>
11671 # include <assert.h>
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11683 /* The GNU C library defines this for functions which it implements
11684 to always fail with ENOSYS. Some functions are actually named
11685 something starting with __ and the normal name is an alias. */
11686 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 return $ac_func ();
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11705 $as_echo "$ac_try_echo") >&5
11706 (eval "$ac_link") 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && {
11713 test -z "$ac_c_werror_flag" ||
11714 test ! -s conftest.err
11715 } && test -s conftest$ac_exeext && {
11716 test "$cross_compiling" = yes ||
11717 $as_test_x conftest$ac_exeext
11719 eval "$as_ac_var=yes"
11721 $as_echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11724 eval "$as_ac_var=no"
11727 rm -rf conftest.dSYM
11728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11729 conftest$ac_exeext conftest.$ac_ext
11731 ac_res=`eval 'as_val=${'$as_ac_var'}
11732 $as_echo "$as_val"'`
11733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11734 $as_echo "$ac_res" >&6; }
11735 as_val=`eval 'as_val=${'$as_ac_var'}
11736 $as_echo "$as_val"'`
11737 if test "x$as_val" = x""yes; then
11738 cat >>confdefs.h <<_ACEOF
11739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11746 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11747 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11748 $as_echo_n "checking for sys/mman.h... " >&6; }
11749 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11750 $as_echo_n "(cached) " >&6
11752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11753 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11755 # Is the header compilable?
11756 { $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
11757 $as_echo_n "checking sys/mman.h usability... " >&6; }
11758 cat >conftest.$ac_ext <<_ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 $ac_includes_default
11765 #include <sys/mman.h>
11767 rm -f conftest.$ac_objext
11768 if { (ac_try="$ac_compile"
11769 case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774 $as_echo "$ac_try_echo") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_header_compiler=yes
11787 $as_echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_header_compiler=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795 $as_echo "$ac_header_compiler" >&6; }
11797 # Is the header present?
11798 { $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
11799 $as_echo_n "checking sys/mman.h presence... " >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 #include <sys/mman.h>
11808 if { (ac_try="$ac_cpp conftest.$ac_ext"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11814 $as_echo "$ac_try_echo") >&5
11815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11817 grep -v '^ *+' conftest.er1 >conftest.err
11819 cat conftest.err >&5
11820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } >/dev/null && {
11822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11823 test ! -s conftest.err
11825 ac_header_preproc=yes
11827 $as_echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 ac_header_preproc=no
11833 rm -f conftest.err conftest.$ac_ext
11834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11835 $as_echo "$ac_header_preproc" >&6; }
11837 # So? What about this header?
11838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11840 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
11841 $as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11842 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
11843 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
11844 ac_header_preproc=yes
11847 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
11848 $as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
11849 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
11850 $as_echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
11851 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
11852 $as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
11853 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
11854 $as_echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
11855 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
11856 $as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
11857 { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
11858 $as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
11860 ## ------------------------------------------- ##
11861 ## Report this to http://gcc.gnu.org/bugs.html ##
11862 ## ------------------------------------------- ##
11864 ) | sed "s/^/$as_me: WARNING: /" >&2
11867 { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
11868 $as_echo_n "checking for sys/mman.h... " >&6; }
11869 if test "${ac_cv_header_sys_mman_h+set}" = set; then
11870 $as_echo_n "(cached) " >&6
11872 ac_cv_header_sys_mman_h=$ac_header_preproc
11874 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
11875 $as_echo "$ac_cv_header_sys_mman_h" >&6; }
11878 if test "x$ac_cv_header_sys_mman_h" = x""yes; then
11879 libffi_header_sys_mman_h=yes
11881 libffi_header_sys_mman_h=no
11885 { $as_echo "$as_me:$LINENO: checking for mmap" >&5
11886 $as_echo_n "checking for mmap... " >&6; }
11887 if test "${ac_cv_func_mmap+set}" = set; then
11888 $as_echo_n "(cached) " >&6
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11898 #define mmap innocuous_mmap
11900 /* System header to define __stub macros and hopefully few prototypes,
11901 which can conflict with char mmap (); below.
11902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11903 <limits.h> exists even on freestanding compilers. */
11906 # include <limits.h>
11908 # include <assert.h>
11913 /* Override any GCC internal prototype to avoid an error.
11914 Use char because int might match the return type of a GCC
11915 builtin and then its argument prototype would still apply. */
11920 /* The GNU C library defines this for functions which it implements
11921 to always fail with ENOSYS. Some functions are actually named
11922 something starting with __ and the normal name is an alias. */
11923 #if defined __stub_mmap || defined __stub___mmap
11935 rm -f conftest.$ac_objext conftest$ac_exeext
11936 if { (ac_try="$ac_link"
11937 case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11942 $as_echo "$ac_try_echo") >&5
11943 (eval "$ac_link") 2>conftest.er1
11945 grep -v '^ *+' conftest.er1 >conftest.err
11947 cat conftest.err >&5
11948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } && {
11950 test -z "$ac_c_werror_flag" ||
11951 test ! -s conftest.err
11952 } && test -s conftest$ac_exeext && {
11953 test "$cross_compiling" = yes ||
11954 $as_test_x conftest$ac_exeext
11956 ac_cv_func_mmap=yes
11958 $as_echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11964 rm -rf conftest.dSYM
11965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11966 conftest$ac_exeext conftest.$ac_ext
11968 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11969 $as_echo "$ac_cv_func_mmap" >&6; }
11970 if test "x$ac_cv_func_mmap" = x""yes; then
11971 libffi_func_mmap=yes
11973 libffi_func_mmap=no
11976 if test "$libffi_header_sys_mman_h" != yes \
11977 || test "$libffi_func_mmap" != yes; then
11978 ac_cv_func_mmap_file=no
11979 ac_cv_func_mmap_dev_zero=no
11980 ac_cv_func_mmap_anon=no
11982 { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11983 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11984 if test "${ac_cv_func_mmap_file+set}" = set; then
11985 $as_echo_n "(cached) " >&6
11987 # Add a system to this blacklist if
11988 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11989 # memory area containing the same data that you'd get if you applied
11990 # read() to the same fd. The only system known to have a problem here
11991 # is VMS, where text files have record structure.
11994 ac_cv_func_mmap_file=no ;;
11996 ac_cv_func_mmap_file=yes;;
11999 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12000 $as_echo "$ac_cv_func_mmap_file" >&6; }
12001 { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12002 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12003 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12004 $as_echo_n "(cached) " >&6
12006 # Add a system to this blacklist if it has mmap() but /dev/zero
12007 # does not exist, or if mmapping /dev/zero does not give anonymous
12008 # zeroed pages with both the following properties:
12009 # 1. If you map N consecutive pages in with one call, and then
12010 # unmap any subset of those pages, the pages that were not
12011 # explicitly unmapped remain accessible.
12012 # 2. If you map two adjacent blocks of memory and then unmap them
12013 # both at once, they must both go away.
12014 # Systems known to be in this category are Windows (all variants),
12017 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12018 ac_cv_func_mmap_dev_zero=no ;;
12020 ac_cv_func_mmap_dev_zero=yes;;
12023 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12024 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12026 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12027 { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12028 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12029 if test "${ac_cv_decl_map_anon+set}" = set; then
12030 $as_echo_n "(cached) " >&6
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 #include <sys/types.h>
12039 #include <sys/mman.h>
12040 #include <unistd.h>
12042 #ifndef MAP_ANONYMOUS
12043 #define MAP_ANONYMOUS MAP_ANON
12049 int n = MAP_ANONYMOUS;
12054 rm -f conftest.$ac_objext
12055 if { (ac_try="$ac_compile"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12061 $as_echo "$ac_try_echo") >&5
12062 (eval "$ac_compile") 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } && {
12069 test -z "$ac_c_werror_flag" ||
12070 test ! -s conftest.err
12071 } && test -s conftest.$ac_objext; then
12072 ac_cv_decl_map_anon=yes
12074 $as_echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 ac_cv_decl_map_anon=no
12080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12082 { $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12083 $as_echo "$ac_cv_decl_map_anon" >&6; }
12085 if test $ac_cv_decl_map_anon = no; then
12086 ac_cv_func_mmap_anon=no
12088 { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12089 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12090 if test "${ac_cv_func_mmap_anon+set}" = set; then
12091 $as_echo_n "(cached) " >&6
12093 # Add a system to this blacklist if it has mmap() and MAP_ANON or
12094 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12095 # doesn't give anonymous zeroed pages with the same properties listed
12096 # above for use of /dev/zero.
12097 # Systems known to be in this category are Windows, VMS, and SCO Unix.
12099 vms* | cygwin* | pe | mingw* | sco* | udk* )
12100 ac_cv_func_mmap_anon=no ;;
12102 ac_cv_func_mmap_anon=yes;;
12105 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12106 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12110 if test $ac_cv_func_mmap_file = yes; then
12112 cat >>confdefs.h <<\_ACEOF
12113 #define HAVE_MMAP_FILE 1
12117 if test $ac_cv_func_mmap_dev_zero = yes; then
12119 cat >>confdefs.h <<\_ACEOF
12120 #define HAVE_MMAP_DEV_ZERO 1
12124 if test $ac_cv_func_mmap_anon = yes; then
12126 cat >>confdefs.h <<\_ACEOF
12127 #define HAVE_MMAP_ANON 1
12133 if test -d $srcdir/testsuite; then
12135 TESTSUBDIR_FALSE='#'
12137 TESTSUBDIR_TRUE='#'
12142 TARGETDIR="unknown"
12145 TARGET=ALPHA; TARGETDIR=alpha;
12146 # Support 128-bit long double, changable via command-line switch.
12147 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12151 TARGET=ARM; TARGETDIR=arm
12154 amd64-*-freebsd* | amd64-*-openbsd*)
12155 TARGET=X86_64; TARGETDIR=x86
12159 TARGET=AVR32; TARGETDIR=avr32
12163 TARGET=LIBFFI_CRIS; TARGETDIR=cris
12167 TARGET=FRV; TARGETDIR=frv
12170 hppa*-*-linux* | parisc*-*-linux*)
12171 TARGET=PA_LINUX; TARGETDIR=pa
12174 TARGET=PA64_HPUX; TARGETDIR=pa
12177 TARGET=PA_HPUX; TARGETDIR=pa
12180 i?86-*-freebsd* | i?86-*-openbsd*)
12181 TARGET=X86_FREEBSD; TARGETDIR=x86
12183 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
12184 TARGET=X86_WIN32; TARGETDIR=x86
12185 # All mingw/cygwin/win32 builds require this for sharedlib
12186 AM_LTLDFLAGS="-no-undefined"
12189 TARGET=X86_DARWIN; TARGETDIR=x86
12191 i?86-*-solaris2.1[0-9]*)
12192 TARGET=X86_64; TARGETDIR=x86
12195 TARGET=X86; TARGETDIR=x86
12199 TARGET=IA64; TARGETDIR=ia64
12203 TARGET=M32R; TARGETDIR=m32r
12207 TARGET=M68K; TARGETDIR=m68k
12210 mips-sgi-irix5.* | mips-sgi-irix6.*)
12211 TARGET=MIPS; TARGETDIR=mips
12214 # Support 128-bit long double for NewABI.
12215 HAVE_LONG_DOUBLE='defined(__mips64)'
12216 TARGET=MIPS; TARGETDIR=mips
12219 powerpc*-*-linux* | powerpc-*-sysv*)
12220 TARGET=POWERPC; TARGETDIR=powerpc
12223 TARGET=POWERPC; TARGETDIR=powerpc
12226 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12228 powerpc-*-aix* | rs6000-*-aix*)
12229 TARGET=POWERPC_AIX; TARGETDIR=powerpc
12231 powerpc-*-freebsd*)
12232 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12235 TARGET=POWERPC; TARGETDIR=powerpc
12238 s390-*-* | s390x-*-*)
12239 TARGET=S390; TARGETDIR=s390
12242 sh-*-* | sh[34]*-*-*)
12243 TARGET=SH; TARGETDIR=sh
12245 sh64-*-* | sh5*-*-*)
12246 TARGET=SH64; TARGETDIR=sh64
12250 TARGET=SPARC; TARGETDIR=sparc
12254 TARGET=X86_DARWIN; TARGETDIR=x86
12257 x86_64-*-cygwin* | x86_64-*-mingw*)
12258 TARGET=X86_WIN64; TARGETDIR=x86
12262 TARGET=X86_64; TARGETDIR=x86
12269 if test $TARGETDIR = unknown; then
12270 { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
12271 $as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
12272 { (exit 1); exit 1; }; }
12275 if test x$TARGET = xMIPS; then
12283 if test x$TARGET = xSPARC; then
12291 if test x$TARGET = xX86; then
12299 if test x$TARGET = xX86_FREEBSD; then
12301 X86_FREEBSD_FALSE='#'
12303 X86_FREEBSD_TRUE='#'
12307 if test x$TARGET = xX86_WIN32; then
12309 X86_WIN32_FALSE='#'
12315 if test x$TARGET = xX86_WIN64; then
12317 X86_WIN64_FALSE='#'
12323 if test x$TARGET = xX86_DARWIN; then
12325 X86_DARWIN_FALSE='#'
12327 X86_DARWIN_TRUE='#'
12331 if test x$TARGET = xALPHA; then
12339 if test x$TARGET = xIA64; then
12347 if test x$TARGET = xM32R; then
12355 if test x$TARGET = xM68K; then
12363 if test x$TARGET = xPOWERPC; then
12371 if test x$TARGET = xPOWERPC_AIX; then
12373 POWERPC_AIX_FALSE='#'
12375 POWERPC_AIX_TRUE='#'
12379 if test x$TARGET = xPOWERPC_DARWIN; then
12380 POWERPC_DARWIN_TRUE=
12381 POWERPC_DARWIN_FALSE='#'
12383 POWERPC_DARWIN_TRUE='#'
12384 POWERPC_DARWIN_FALSE=
12387 if test x$TARGET = xPOWERPC_FREEBSD; then
12388 POWERPC_FREEBSD_TRUE=
12389 POWERPC_FREEBSD_FALSE='#'
12391 POWERPC_FREEBSD_TRUE='#'
12392 POWERPC_FREEBSD_FALSE=
12395 if test x$TARGET = xARM; then
12403 if test x$TARGET = xAVR32; then
12411 if test x$TARGET = xLIBFFI_CRIS; then
12413 LIBFFI_CRIS_FALSE='#'
12415 LIBFFI_CRIS_TRUE='#'
12419 if test x$TARGET = xFRV; then
12427 if test x$TARGET = xS390; then
12435 if test x$TARGET = xX86_64; then
12443 if test x$TARGET = xSH; then
12451 if test x$TARGET = xSH64; then
12459 if test x$TARGET = xPA_LINUX; then
12467 if test x$TARGET = xPA_HPUX; then
12475 if test x$TARGET = xPA64_HPUX; then
12477 PA64_HPUX_FALSE='#'
12484 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12485 $as_echo_n "checking for ANSI C header files... " >&6; }
12486 if test "${ac_cv_header_stdc+set}" = set; then
12487 $as_echo_n "(cached) " >&6
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 #include <stdlib.h>
12496 #include <stdarg.h>
12497 #include <string.h>
12508 rm -f conftest.$ac_objext
12509 if { (ac_try="$ac_compile"
12510 case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12515 $as_echo "$ac_try_echo") >&5
12516 (eval "$ac_compile") 2>conftest.er1
12518 grep -v '^ *+' conftest.er1 >conftest.err
12520 cat conftest.err >&5
12521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); } && {
12523 test -z "$ac_c_werror_flag" ||
12524 test ! -s conftest.err
12525 } && test -s conftest.$ac_objext; then
12526 ac_cv_header_stdc=yes
12528 $as_echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ac_cv_header_stdc=no
12534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 if test $ac_cv_header_stdc = yes; then
12537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12538 cat >conftest.$ac_ext <<_ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 #include <string.h>
12547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12548 $EGREP "memchr" >/dev/null 2>&1; then
12551 ac_cv_header_stdc=no
12557 if test $ac_cv_header_stdc = yes; then
12558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 #include <stdlib.h>
12568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12569 $EGREP "free" >/dev/null 2>&1; then
12572 ac_cv_header_stdc=no
12578 if test $ac_cv_header_stdc = yes; then
12579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12580 if test "$cross_compiling" = yes; then
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12590 #include <stdlib.h>
12591 #if ((' ' & 0x0FF) == 0x020)
12592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12595 # define ISLOWER(c) \
12596 (('a' <= (c) && (c) <= 'i') \
12597 || ('j' <= (c) && (c) <= 'r') \
12598 || ('s' <= (c) && (c) <= 'z'))
12599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12607 for (i = 0; i < 256; i++)
12608 if (XOR (islower (i), ISLOWER (i))
12609 || toupper (i) != TOUPPER (i))
12614 rm -f conftest$ac_exeext
12615 if { (ac_try="$ac_link"
12616 case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12621 $as_echo "$ac_try_echo") >&5
12622 (eval "$ac_link") 2>&5
12624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12631 $as_echo "$ac_try_echo") >&5
12632 (eval "$ac_try") 2>&5
12634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12638 $as_echo "$as_me: program exited with status $ac_status" >&5
12639 $as_echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ( exit $ac_status )
12643 ac_cv_header_stdc=no
12645 rm -rf conftest.dSYM
12646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12653 $as_echo "$ac_cv_header_stdc" >&6; }
12654 if test $ac_cv_header_stdc = yes; then
12656 cat >>confdefs.h <<\_ACEOF
12657 #define STDC_HEADERS 1
12663 for ac_func in memcpy
12665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12666 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12667 $as_echo_n "checking for $ac_func... " >&6; }
12668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12669 $as_echo_n "(cached) " >&6
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12679 #define $ac_func innocuous_$ac_func
12681 /* System header to define __stub macros and hopefully few prototypes,
12682 which can conflict with char $ac_func (); below.
12683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12684 <limits.h> exists even on freestanding compilers. */
12687 # include <limits.h>
12689 # include <assert.h>
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12701 /* The GNU C library defines this for functions which it implements
12702 to always fail with ENOSYS. Some functions are actually named
12703 something starting with __ and the normal name is an alias. */
12704 #if defined __stub_$ac_func || defined __stub___$ac_func
12711 return $ac_func ();
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12723 $as_echo "$ac_try_echo") >&5
12724 (eval "$ac_link") 2>conftest.er1
12726 grep -v '^ *+' conftest.er1 >conftest.err
12728 cat conftest.err >&5
12729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } && {
12731 test -z "$ac_c_werror_flag" ||
12732 test ! -s conftest.err
12733 } && test -s conftest$ac_exeext && {
12734 test "$cross_compiling" = yes ||
12735 $as_test_x conftest$ac_exeext
12737 eval "$as_ac_var=yes"
12739 $as_echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12742 eval "$as_ac_var=no"
12745 rm -rf conftest.dSYM
12746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12747 conftest$ac_exeext conftest.$ac_ext
12749 ac_res=`eval 'as_val=${'$as_ac_var'}
12750 $as_echo "$as_val"'`
12751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12752 $as_echo "$ac_res" >&6; }
12753 as_val=`eval 'as_val=${'$as_ac_var'}
12754 $as_echo "$as_val"'`
12755 if test "x$as_val" = x""yes; then
12756 cat >>confdefs.h <<_ACEOF
12757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12763 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12764 # for constant arguments. Useless!
12765 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12766 $as_echo_n "checking for working alloca.h... " >&6; }
12767 if test "${ac_cv_working_alloca_h+set}" = set; then
12768 $as_echo_n "(cached) " >&6
12770 cat >conftest.$ac_ext <<_ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 #include <alloca.h>
12780 char *p = (char *) alloca (2 * sizeof (int));
12786 rm -f conftest.$ac_objext conftest$ac_exeext
12787 if { (ac_try="$ac_link"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12793 $as_echo "$ac_try_echo") >&5
12794 (eval "$ac_link") 2>conftest.er1
12796 grep -v '^ *+' conftest.er1 >conftest.err
12798 cat conftest.err >&5
12799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_c_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest$ac_exeext && {
12804 test "$cross_compiling" = yes ||
12805 $as_test_x conftest$ac_exeext
12807 ac_cv_working_alloca_h=yes
12809 $as_echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ac_cv_working_alloca_h=no
12815 rm -rf conftest.dSYM
12816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12817 conftest$ac_exeext conftest.$ac_ext
12819 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12820 $as_echo "$ac_cv_working_alloca_h" >&6; }
12821 if test $ac_cv_working_alloca_h = yes; then
12823 cat >>confdefs.h <<\_ACEOF
12824 #define HAVE_ALLOCA_H 1
12829 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
12830 $as_echo_n "checking for alloca... " >&6; }
12831 if test "${ac_cv_func_alloca_works+set}" = set; then
12832 $as_echo_n "(cached) " >&6
12834 cat >conftest.$ac_ext <<_ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12841 # define alloca __builtin_alloca
12844 # include <malloc.h>
12845 # define alloca _alloca
12847 # ifdef HAVE_ALLOCA_H
12848 # include <alloca.h>
12853 # ifndef alloca /* predefined by HP cc +Olibcalls */
12864 char *p = (char *) alloca (1);
12870 rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (ac_try="$ac_link"
12872 case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12877 $as_echo "$ac_try_echo") >&5
12878 (eval "$ac_link") 2>conftest.er1
12880 grep -v '^ *+' conftest.er1 >conftest.err
12882 cat conftest.err >&5
12883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } && {
12885 test -z "$ac_c_werror_flag" ||
12886 test ! -s conftest.err
12887 } && test -s conftest$ac_exeext && {
12888 test "$cross_compiling" = yes ||
12889 $as_test_x conftest$ac_exeext
12891 ac_cv_func_alloca_works=yes
12893 $as_echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_cv_func_alloca_works=no
12899 rm -rf conftest.dSYM
12900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12901 conftest$ac_exeext conftest.$ac_ext
12903 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12904 $as_echo "$ac_cv_func_alloca_works" >&6; }
12906 if test $ac_cv_func_alloca_works = yes; then
12908 cat >>confdefs.h <<\_ACEOF
12909 #define HAVE_ALLOCA 1
12913 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12914 # that cause trouble. Some versions do not even contain alloca or
12915 # contain a buggy version. If you still want to use their alloca,
12916 # use ar to extract alloca.o from them instead of compiling alloca.c.
12918 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12920 cat >>confdefs.h <<\_ACEOF
12925 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12926 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12927 if test "${ac_cv_os_cray+set}" = set; then
12928 $as_echo_n "(cached) " >&6
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #if defined CRAY && ! defined CRAY2
12943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12944 $EGREP "webecray" >/dev/null 2>&1; then
12952 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12953 $as_echo "$ac_cv_os_cray" >&6; }
12954 if test $ac_cv_os_cray = yes; then
12955 for ac_func in _getb67 GETB67 getb67; do
12956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12958 $as_echo_n "checking for $ac_func... " >&6; }
12959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12960 $as_echo_n "(cached) " >&6
12962 cat >conftest.$ac_ext <<_ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12970 #define $ac_func innocuous_$ac_func
12972 /* System header to define __stub macros and hopefully few prototypes,
12973 which can conflict with char $ac_func (); below.
12974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12975 <limits.h> exists even on freestanding compilers. */
12978 # include <limits.h>
12980 # include <assert.h>
12985 /* Override any GCC internal prototype to avoid an error.
12986 Use char because int might match the return type of a GCC
12987 builtin and then its argument prototype would still apply. */
12992 /* The GNU C library defines this for functions which it implements
12993 to always fail with ENOSYS. Some functions are actually named
12994 something starting with __ and the normal name is an alias. */
12995 #if defined __stub_$ac_func || defined __stub___$ac_func
13002 return $ac_func ();
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (ac_try="$ac_link"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13014 $as_echo "$ac_try_echo") >&5
13015 (eval "$ac_link") 2>conftest.er1
13017 grep -v '^ *+' conftest.er1 >conftest.err
13019 cat conftest.err >&5
13020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } && {
13022 test -z "$ac_c_werror_flag" ||
13023 test ! -s conftest.err
13024 } && test -s conftest$ac_exeext && {
13025 test "$cross_compiling" = yes ||
13026 $as_test_x conftest$ac_exeext
13028 eval "$as_ac_var=yes"
13030 $as_echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 eval "$as_ac_var=no"
13036 rm -rf conftest.dSYM
13037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13038 conftest$ac_exeext conftest.$ac_ext
13040 ac_res=`eval 'as_val=${'$as_ac_var'}
13041 $as_echo "$as_val"'`
13042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13043 $as_echo "$ac_res" >&6; }
13044 as_val=`eval 'as_val=${'$as_ac_var'}
13045 $as_echo "$as_val"'`
13046 if test "x$as_val" = x""yes; then
13048 cat >>confdefs.h <<_ACEOF
13049 #define CRAY_STACKSEG_END $ac_func
13058 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13059 $as_echo_n "checking stack direction for C alloca... " >&6; }
13060 if test "${ac_cv_c_stack_direction+set}" = set; then
13061 $as_echo_n "(cached) " >&6
13063 if test "$cross_compiling" = yes; then
13064 ac_cv_c_stack_direction=0
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 $ac_includes_default
13074 find_stack_direction ()
13076 static char *addr = 0;
13081 return find_stack_direction ();
13084 return (&dummy > addr) ? 1 : -1;
13090 return find_stack_direction () < 0;
13093 rm -f conftest$ac_exeext
13094 if { (ac_try="$ac_link"
13095 case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13100 $as_echo "$ac_try_echo") >&5
13101 (eval "$ac_link") 2>&5
13103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13105 { (case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13110 $as_echo "$ac_try_echo") >&5
13111 (eval "$ac_try") 2>&5
13113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_c_stack_direction=1
13117 $as_echo "$as_me: program exited with status $ac_status" >&5
13118 $as_echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 ( exit $ac_status )
13122 ac_cv_c_stack_direction=-1
13124 rm -rf conftest.dSYM
13125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13130 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13131 $as_echo "$ac_cv_c_stack_direction" >&6; }
13133 cat >>confdefs.h <<_ACEOF
13134 #define STACK_DIRECTION $ac_cv_c_stack_direction
13141 # The cast to long int works around a bug in the HP C Compiler
13142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13144 # This bug is HP SR number 8606223364.
13145 { $as_echo "$as_me:$LINENO: checking size of double" >&5
13146 $as_echo_n "checking size of double... " >&6; }
13147 if test "${ac_cv_sizeof_double+set}" = set; then
13148 $as_echo_n "(cached) " >&6
13150 if test "$cross_compiling" = yes; then
13151 # Depending upon the size, compute the lo and hi bounds.
13152 cat >conftest.$ac_ext <<_ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 $ac_includes_default
13162 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13169 rm -f conftest.$ac_objext
13170 if { (ac_try="$ac_compile"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13176 $as_echo "$ac_try_echo") >&5
13177 (eval "$ac_compile") 2>conftest.er1
13179 grep -v '^ *+' conftest.er1 >conftest.err
13181 cat conftest.err >&5
13182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest.$ac_objext; then
13189 cat >conftest.$ac_ext <<_ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195 $ac_includes_default
13199 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13206 rm -f conftest.$ac_objext
13207 if { (ac_try="$ac_compile"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13213 $as_echo "$ac_try_echo") >&5
13214 (eval "$ac_compile") 2>conftest.er1
13216 grep -v '^ *+' conftest.er1 >conftest.err
13218 cat conftest.err >&5
13219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } && {
13221 test -z "$ac_c_werror_flag" ||
13222 test ! -s conftest.err
13223 } && test -s conftest.$ac_objext; then
13224 ac_hi=$ac_mid; break
13226 $as_echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13229 ac_lo=`expr $ac_mid + 1`
13230 if test $ac_lo -le $ac_mid; then
13234 ac_mid=`expr 2 '*' $ac_mid + 1`
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240 $as_echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 cat >conftest.$ac_ext <<_ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 $ac_includes_default
13253 static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13260 rm -f conftest.$ac_objext
13261 if { (ac_try="$ac_compile"
13262 case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13267 $as_echo "$ac_try_echo") >&5
13268 (eval "$ac_compile") 2>conftest.er1
13270 grep -v '^ *+' conftest.er1 >conftest.err
13272 cat conftest.err >&5
13273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && {
13275 test -z "$ac_c_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest.$ac_objext; then
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 $ac_includes_default
13290 static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13297 rm -f conftest.$ac_objext
13298 if { (ac_try="$ac_compile"
13299 case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13304 $as_echo "$ac_try_echo") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1 >conftest.err
13309 cat conftest.err >&5
13310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
13315 ac_lo=$ac_mid; break
13317 $as_echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_hi=`expr '(' $ac_mid ')' - 1`
13321 if test $ac_mid -le $ac_hi; then
13325 ac_mid=`expr 2 '*' $ac_mid`
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 $as_echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 # Binary search between lo and hi bounds.
13342 while test "x$ac_lo" != "x$ac_hi"; do
13343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13344 cat >conftest.$ac_ext <<_ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350 $ac_includes_default
13354 static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13368 $as_echo "$ac_try_echo") >&5
13369 (eval "$ac_compile") 2>conftest.er1
13371 grep -v '^ *+' conftest.er1 >conftest.err
13373 cat conftest.err >&5
13374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } && {
13376 test -z "$ac_c_werror_flag" ||
13377 test ! -s conftest.err
13378 } && test -s conftest.$ac_objext; then
13381 $as_echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13384 ac_lo=`expr '(' $ac_mid ')' + 1`
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390 ?*) ac_cv_sizeof_double=$ac_lo;;
13391 '') if test "$ac_cv_type_double" = yes; then
13392 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13394 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13395 See \`config.log' for more details." >&5
13396 $as_echo "$as_me: error: cannot compute sizeof (double)
13397 See \`config.log' for more details." >&2;}
13398 { (exit 77); exit 77; }; }; }
13400 ac_cv_sizeof_double=0
13404 cat >conftest.$ac_ext <<_ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 $ac_includes_default
13411 static long int longval () { return (long int) (sizeof (double)); }
13412 static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13414 #include <stdlib.h>
13419 FILE *f = fopen ("conftest.val", "w");
13422 if (((long int) (sizeof (double))) < 0)
13424 long int i = longval ();
13425 if (i != ((long int) (sizeof (double))))
13427 fprintf (f, "%ld", i);
13431 unsigned long int i = ulongval ();
13432 if (i != ((long int) (sizeof (double))))
13434 fprintf (f, "%lu", i);
13436 /* Do not output a trailing newline, as this causes \r\n confusion
13437 on some platforms. */
13438 return ferror (f) || fclose (f) != 0;
13444 rm -f conftest$ac_exeext
13445 if { (ac_try="$ac_link"
13446 case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13451 $as_echo "$ac_try_echo") >&5
13452 (eval "$ac_link") 2>&5
13454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13456 { (case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13461 $as_echo "$ac_try_echo") >&5
13462 (eval "$ac_try") 2>&5
13464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 ac_cv_sizeof_double=`cat conftest.val`
13468 $as_echo "$as_me: program exited with status $ac_status" >&5
13469 $as_echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 ( exit $ac_status )
13473 if test "$ac_cv_type_double" = yes; then
13474 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13476 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13477 See \`config.log' for more details." >&5
13478 $as_echo "$as_me: error: cannot compute sizeof (double)
13479 See \`config.log' for more details." >&2;}
13480 { (exit 77); exit 77; }; }; }
13482 ac_cv_sizeof_double=0
13485 rm -rf conftest.dSYM
13486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13490 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
13491 $as_echo "$ac_cv_sizeof_double" >&6; }
13495 cat >>confdefs.h <<_ACEOF
13496 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13500 # The cast to long int works around a bug in the HP C Compiler
13501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13503 # This bug is HP SR number 8606223364.
13504 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
13505 $as_echo_n "checking size of long double... " >&6; }
13506 if test "${ac_cv_sizeof_long_double+set}" = set; then
13507 $as_echo_n "(cached) " >&6
13509 if test "$cross_compiling" = yes; then
13510 # Depending upon the size, compute the lo and hi bounds.
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $ac_includes_default
13521 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
13528 rm -f conftest.$ac_objext
13529 if { (ac_try="$ac_compile"
13530 case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13535 $as_echo "$ac_try_echo") >&5
13536 (eval "$ac_compile") 2>conftest.er1
13538 grep -v '^ *+' conftest.er1 >conftest.err
13540 cat conftest.err >&5
13541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } && {
13543 test -z "$ac_c_werror_flag" ||
13544 test ! -s conftest.err
13545 } && test -s conftest.$ac_objext; then
13548 cat >conftest.$ac_ext <<_ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 $ac_includes_default
13558 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13572 $as_echo "$ac_try_echo") >&5
13573 (eval "$ac_compile") 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } && {
13580 test -z "$ac_c_werror_flag" ||
13581 test ! -s conftest.err
13582 } && test -s conftest.$ac_objext; then
13583 ac_hi=$ac_mid; break
13585 $as_echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 ac_lo=`expr $ac_mid + 1`
13589 if test $ac_lo -le $ac_mid; then
13593 ac_mid=`expr 2 '*' $ac_mid + 1`
13596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 $as_echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 cat >conftest.$ac_ext <<_ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 $ac_includes_default
13612 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
13619 rm -f conftest.$ac_objext
13620 if { (ac_try="$ac_compile"
13621 case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13626 $as_echo "$ac_try_echo") >&5
13627 (eval "$ac_compile") 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } && {
13634 test -z "$ac_c_werror_flag" ||
13635 test ! -s conftest.err
13636 } && test -s conftest.$ac_objext; then
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 $ac_includes_default
13649 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
13656 rm -f conftest.$ac_objext
13657 if { (ac_try="$ac_compile"
13658 case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13663 $as_echo "$ac_try_echo") >&5
13664 (eval "$ac_compile") 2>conftest.er1
13666 grep -v '^ *+' conftest.er1 >conftest.err
13668 cat conftest.err >&5
13669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } && {
13671 test -z "$ac_c_werror_flag" ||
13672 test ! -s conftest.err
13673 } && test -s conftest.$ac_objext; then
13674 ac_lo=$ac_mid; break
13676 $as_echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_hi=`expr '(' $ac_mid ')' - 1`
13680 if test $ac_mid -le $ac_hi; then
13684 ac_mid=`expr 2 '*' $ac_mid`
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 $as_echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 # Binary search between lo and hi bounds.
13701 while test "x$ac_lo" != "x$ac_hi"; do
13702 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 $ac_includes_default
13713 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
13720 rm -f conftest.$ac_objext
13721 if { (ac_try="$ac_compile"
13722 case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13727 $as_echo "$ac_try_echo") >&5
13728 (eval "$ac_compile") 2>conftest.er1
13730 grep -v '^ *+' conftest.er1 >conftest.err
13732 cat conftest.err >&5
13733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && {
13735 test -z "$ac_c_werror_flag" ||
13736 test ! -s conftest.err
13737 } && test -s conftest.$ac_objext; then
13740 $as_echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 ac_lo=`expr '(' $ac_mid ')' + 1`
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 ?*) ac_cv_sizeof_long_double=$ac_lo;;
13750 '') if test "$ac_cv_type_long_double" = yes; then
13751 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13753 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13754 See \`config.log' for more details." >&5
13755 $as_echo "$as_me: error: cannot compute sizeof (long double)
13756 See \`config.log' for more details." >&2;}
13757 { (exit 77); exit 77; }; }; }
13759 ac_cv_sizeof_long_double=0
13763 cat >conftest.$ac_ext <<_ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13769 $ac_includes_default
13770 static long int longval () { return (long int) (sizeof (long double)); }
13771 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
13773 #include <stdlib.h>
13778 FILE *f = fopen ("conftest.val", "w");
13781 if (((long int) (sizeof (long double))) < 0)
13783 long int i = longval ();
13784 if (i != ((long int) (sizeof (long double))))
13786 fprintf (f, "%ld", i);
13790 unsigned long int i = ulongval ();
13791 if (i != ((long int) (sizeof (long double))))
13793 fprintf (f, "%lu", i);
13795 /* Do not output a trailing newline, as this causes \r\n confusion
13796 on some platforms. */
13797 return ferror (f) || fclose (f) != 0;
13803 rm -f conftest$ac_exeext
13804 if { (ac_try="$ac_link"
13805 case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13810 $as_echo "$ac_try_echo") >&5
13811 (eval "$ac_link") 2>&5
13813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13820 $as_echo "$ac_try_echo") >&5
13821 (eval "$ac_try") 2>&5
13823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_cv_sizeof_long_double=`cat conftest.val`
13827 $as_echo "$as_me: program exited with status $ac_status" >&5
13828 $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 ( exit $ac_status )
13832 if test "$ac_cv_type_long_double" = yes; then
13833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13835 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
13836 See \`config.log' for more details." >&5
13837 $as_echo "$as_me: error: cannot compute sizeof (long double)
13838 See \`config.log' for more details." >&2;}
13839 { (exit 77); exit 77; }; }; }
13841 ac_cv_sizeof_long_double=0
13844 rm -rf conftest.dSYM
13845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13849 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
13850 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13854 cat >>confdefs.h <<_ACEOF
13855 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13860 # Also AC_SUBST this variable for ffi.h.
13861 if test -z "$HAVE_LONG_DOUBLE"; then
13863 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13864 if test $ac_cv_sizeof_long_double != 0; then
13867 cat >>confdefs.h <<\_ACEOF
13868 #define HAVE_LONG_DOUBLE 1
13877 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13878 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13879 if test "${ac_cv_c_bigendian+set}" = set; then
13880 $as_echo_n "(cached) " >&6
13882 ac_cv_c_bigendian=unknown
13883 # See if we're dealing with a universal compiler.
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 #ifndef __APPLE_CC__
13891 not a universal capable compiler
13896 rm -f conftest.$ac_objext
13897 if { (ac_try="$ac_compile"
13898 case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13903 $as_echo "$ac_try_echo") >&5
13904 (eval "$ac_compile") 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && {
13911 test -z "$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 } && test -s conftest.$ac_objext; then
13915 # Check for potential -arch flags. It is not universal unless
13916 # there are some -arch flags. Note that *ppc* also matches
13917 # ppc64. This check is also rather less than ideal.
13918 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13919 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13922 $as_echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13929 if test $ac_cv_c_bigendian = unknown; then
13930 # See if sys/param.h defines the BYTE_ORDER macro.
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 #include <sys/types.h>
13938 #include <sys/param.h>
13943 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13944 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13946 bogus endian macros
13953 rm -f conftest.$ac_objext
13954 if { (ac_try="$ac_compile"
13955 case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13960 $as_echo "$ac_try_echo") >&5
13961 (eval "$ac_compile") 2>conftest.er1
13963 grep -v '^ *+' conftest.er1 >conftest.err
13965 cat conftest.err >&5
13966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } && {
13968 test -z "$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13970 } && test -s conftest.$ac_objext; then
13971 # It does; now see whether it defined to BIG_ENDIAN or not.
13972 cat >conftest.$ac_ext <<_ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 #include <sys/types.h>
13979 #include <sys/param.h>
13984 #if BYTE_ORDER != BIG_ENDIAN
13992 rm -f conftest.$ac_objext
13993 if { (ac_try="$ac_compile"
13994 case "(($ac_try" in
13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13999 $as_echo "$ac_try_echo") >&5
14000 (eval "$ac_compile") 2>conftest.er1
14002 grep -v '^ *+' conftest.er1 >conftest.err
14004 cat conftest.err >&5
14005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } && {
14007 test -z "$ac_c_werror_flag" ||
14008 test ! -s conftest.err
14009 } && test -s conftest.$ac_objext; then
14010 ac_cv_c_bigendian=yes
14012 $as_echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 ac_cv_c_bigendian=no
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14020 $as_echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 if test $ac_cv_c_bigendian = unknown; then
14029 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14030 cat >conftest.$ac_ext <<_ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036 #include <limits.h>
14041 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14042 bogus endian macros
14049 rm -f conftest.$ac_objext
14050 if { (ac_try="$ac_compile"
14051 case "(($ac_try" in
14052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14053 *) ac_try_echo=$ac_try;;
14055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14056 $as_echo "$ac_try_echo") >&5
14057 (eval "$ac_compile") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1 >conftest.err
14061 cat conftest.err >&5
14062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest.$ac_objext; then
14067 # It does; now see whether it defined to _BIG_ENDIAN or not.
14068 cat >conftest.$ac_ext <<_ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 #include <limits.h>
14079 #ifndef _BIG_ENDIAN
14087 rm -f conftest.$ac_objext
14088 if { (ac_try="$ac_compile"
14089 case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14094 $as_echo "$ac_try_echo") >&5
14095 (eval "$ac_compile") 2>conftest.er1
14097 grep -v '^ *+' conftest.er1 >conftest.err
14099 cat conftest.err >&5
14100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && {
14102 test -z "$ac_c_werror_flag" ||
14103 test ! -s conftest.err
14104 } && test -s conftest.$ac_objext; then
14105 ac_cv_c_bigendian=yes
14107 $as_echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_cv_c_bigendian=no
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 $as_echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14123 if test $ac_cv_c_bigendian = unknown; then
14124 # Compile a test program.
14125 if test "$cross_compiling" = yes; then
14126 # Try to guess by grepping values from an object file.
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 short int ascii_mm[] =
14134 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14135 short int ascii_ii[] =
14136 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14137 int use_ascii (int i) {
14138 return ascii_mm[i] + ascii_ii[i];
14140 short int ebcdic_ii[] =
14141 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14142 short int ebcdic_mm[] =
14143 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14144 int use_ebcdic (int i) {
14145 return ebcdic_mm[i] + ebcdic_ii[i];
14152 return use_ascii (foo) == use_ebcdic (foo);
14157 rm -f conftest.$ac_objext
14158 if { (ac_try="$ac_compile"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14164 $as_echo "$ac_try_echo") >&5
14165 (eval "$ac_compile") 2>conftest.er1
14167 grep -v '^ *+' conftest.er1 >conftest.err
14169 cat conftest.err >&5
14170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest.$ac_objext; then
14175 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14176 ac_cv_c_bigendian=yes
14178 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14179 if test "$ac_cv_c_bigendian" = unknown; then
14180 ac_cv_c_bigendian=no
14182 # finding both strings is unlikely to happen, but who knows?
14183 ac_cv_c_bigendian=unknown
14187 $as_echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 $ac_includes_default
14206 /* Are we little or big endian? From Harbison&Steele. */
14210 char c[sizeof (long int)];
14213 return u.c[sizeof (long int) - 1] == 1;
14219 rm -f conftest$ac_exeext
14220 if { (ac_try="$ac_link"
14221 case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14226 $as_echo "$ac_try_echo") >&5
14227 (eval "$ac_link") 2>&5
14229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14236 $as_echo "$ac_try_echo") >&5
14237 (eval "$ac_try") 2>&5
14239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_c_bigendian=no
14243 $as_echo "$as_me: program exited with status $ac_status" >&5
14244 $as_echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14247 ( exit $ac_status )
14248 ac_cv_c_bigendian=yes
14250 rm -rf conftest.dSYM
14251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14257 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14258 $as_echo "$ac_cv_c_bigendian" >&6; }
14259 case $ac_cv_c_bigendian in #(
14261 cat >>confdefs.h <<\_ACEOF
14262 #define WORDS_BIGENDIAN 1
14269 cat >>confdefs.h <<\_ACEOF
14270 #define AC_APPLE_UNIVERSAL_BUILD 1
14275 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14276 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14277 $as_echo "$as_me: error: unknown endianness
14278 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14279 { (exit 1); exit 1; }; } ;;
14283 { $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14284 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14285 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14286 $as_echo_n "(cached) " >&6
14289 libffi_cv_as_cfi_pseudo_op=unknown
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296 asm (".cfi_startproc\n\t.cfi_endproc");
14305 rm -f conftest.$ac_objext
14306 if { (ac_try="$ac_compile"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14312 $as_echo "$ac_try_echo") >&5
14313 (eval "$ac_compile") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && {
14320 test -z "$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 } && test -s conftest.$ac_objext; then
14323 libffi_cv_as_cfi_pseudo_op=yes
14325 $as_echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 libffi_cv_as_cfi_pseudo_op=no
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14335 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14336 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_AS_CFI_PSEUDO_OP 1
14344 if test x$TARGET = xSPARC; then
14345 { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14346 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14347 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14348 $as_echo_n "(cached) " >&6
14351 save_CFLAGS="$CFLAGS"
14352 save_LDFLAGS="$LDFLAGS"
14353 CFLAGS="$CFLAGS -fpic"
14354 LDFLAGS="$LDFLAGS -shared"
14355 cat >conftest.$ac_ext <<_ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14377 $as_echo "$ac_try_echo") >&5
14378 (eval "$ac_link") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest$ac_exeext && {
14388 test "$cross_compiling" = yes ||
14389 $as_test_x conftest$ac_exeext
14391 libffi_cv_as_sparc_ua_pcrel=yes
14393 $as_echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 libffi_cv_as_sparc_ua_pcrel=no
14399 rm -rf conftest.dSYM
14400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14401 conftest$ac_exeext conftest.$ac_ext
14402 CFLAGS="$save_CFLAGS"
14403 LDFLAGS="$save_LDFLAGS"
14405 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14406 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14407 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14409 cat >>confdefs.h <<\_ACEOF
14410 #define HAVE_AS_SPARC_UA_PCREL 1
14415 { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14416 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14417 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14418 $as_echo_n "(cached) " >&6
14421 libffi_cv_as_register_pseudo_op=unknown
14422 # Check if we have .register
14423 cat >conftest.$ac_ext <<_ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 asm (".register %g2, #scratch");
14438 rm -f conftest.$ac_objext
14439 if { (ac_try="$ac_compile"
14440 case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14445 $as_echo "$ac_try_echo") >&5
14446 (eval "$ac_compile") 2>conftest.er1
14448 grep -v '^ *+' conftest.er1 >conftest.err
14450 cat conftest.err >&5
14451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } && {
14453 test -z "$ac_c_werror_flag" ||
14454 test ! -s conftest.err
14455 } && test -s conftest.$ac_objext; then
14456 libffi_cv_as_register_pseudo_op=yes
14458 $as_echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 libffi_cv_as_register_pseudo_op=no
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
14468 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14469 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14471 cat >>confdefs.h <<\_ACEOF
14472 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14478 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14479 { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
14480 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14481 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
14482 $as_echo_n "(cached) " >&6
14485 libffi_cv_as_x86_pcrel=yes
14486 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14487 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14488 libffi_cv_as_x86_pcrel=no
14492 { $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
14493 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14494 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_AS_X86_PCREL 1
14504 *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14506 cat >>confdefs.h <<\_ACEOF
14507 #define FFI_MMAP_EXEC_WRIT 1
14513 { $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
14514 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14515 if test "${libffi_cv_ro_eh_frame+set}" = set; then
14516 $as_echo_n "(cached) " >&6
14519 libffi_cv_ro_eh_frame=no
14520 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14521 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14522 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14523 libffi_cv_ro_eh_frame=yes
14524 elif grep '.section.*eh_frame.*#alloc' conftest.c \
14525 | grep -v '#write' > /dev/null; then
14526 libffi_cv_ro_eh_frame=yes
14532 { $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
14533 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14534 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14536 cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_RO_EH_FRAME 1
14541 cat >>confdefs.h <<\_ACEOF
14542 #define EH_FRAME_FLAGS "a"
14547 cat >>confdefs.h <<\_ACEOF
14548 #define EH_FRAME_FLAGS "aw"
14553 { $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
14554 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14555 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
14556 $as_echo_n "(cached) " >&6
14559 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
14560 libffi_cv_hidden_visibility_attribute=no
14561 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14568 libffi_cv_hidden_visibility_attribute=yes
14574 { $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
14575 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14576 if test $libffi_cv_hidden_visibility_attribute = yes; then
14578 cat >>confdefs.h <<\_ACEOF
14579 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
14592 # Check whether --enable-debug was given.
14593 if test "${enable_debug+set}" = set; then
14594 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14596 cat >>confdefs.h <<\_ACEOF
14597 #define FFI_DEBUG 1
14604 # Check whether --enable-structs was given.
14605 if test "${enable_structs+set}" = set; then
14606 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14608 cat >>confdefs.h <<\_ACEOF
14609 #define FFI_NO_STRUCTS 1
14616 # Check whether --enable-raw-api was given.
14617 if test "${enable_raw_api+set}" = set; then
14618 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14620 cat >>confdefs.h <<\_ACEOF
14621 #define FFI_NO_RAW_API 1
14628 # Check whether --enable-purify-safety was given.
14629 if test "${enable_purify_safety+set}" = set; then
14630 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14632 cat >>confdefs.h <<\_ACEOF
14633 #define USING_PURIFY 1
14640 if test -n "$with_cross_host" &&
14641 test x"$with_cross_host" != x"no"; then
14642 toolexecdir='$(exec_prefix)/$(target_alias)'
14643 toolexeclibdir='$(toolexecdir)/lib'
14645 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14646 toolexeclibdir='$(libdir)'
14648 multi_os_directory=`$CC -print-multi-os-directory`
14649 case $multi_os_directory in
14650 .) ;; # Avoid trailing /.
14651 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14656 if test "${multilib}" = "yes"; then
14657 multilib_arg="--enable-multilib"
14662 ac_config_commands="$ac_config_commands include"
14664 ac_config_commands="$ac_config_commands src"
14667 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14670 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14673 cat >confcache <<\_ACEOF
14674 # This file is a shell script that caches the results of configure
14675 # tests run on this system so they can be shared between configure
14676 # scripts and configure runs, see configure's option --config-cache.
14677 # It is not useful on other systems. If it contains results you don't
14678 # want to keep, you may remove or edit it.
14680 # config.status only pays attention to the cache file if you give it
14681 # the --recheck option to rerun configure.
14683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14685 # following values.
14689 # The following way of writing the cache mishandles newlines in values,
14690 # but we know of no workaround that is simple, portable, and efficient.
14691 # So, we kill variables containing newlines.
14692 # Ultrix sh set writes to stderr and can't be redirected directly,
14693 # and sets the high bit in the cache file unless we assign to the vars.
14695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14696 eval ac_val=\$$ac_var
14700 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14704 _ | IFS | as_nl) ;; #(
14705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14706 *) $as_unset $ac_var ;;
14712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14713 *${as_nl}ac_space=\ *)
14714 # `set' does not quote correctly, so add quotes (double-quote
14715 # substitution turns \\\\ into \\, and sed turns \\ into \).
14718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14721 # `set' quotes correctly as required by POSIX, so do not add quotes.
14722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14736 if test -w "$cache_file"; then
14737 test "x$cache_file" != "x/dev/null" &&
14738 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14739 $as_echo "$as_me: updating cache $cache_file" >&6;}
14740 cat confcache >$cache_file
14742 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14743 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14749 # Let make expand exec_prefix.
14750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14752 DEFS=-DHAVE_CONFIG_H
14756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14757 # 1. Remove the extension, and $U if already installed.
14758 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14759 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14760 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14761 # will be set to the directory where LIBOBJS objects are built.
14762 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14763 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14765 LIBOBJS=$ac_libobjs
14767 LTLIBOBJS=$ac_ltlibobjs
14770 if test -n "$EXEEXT"; then
14772 am__EXEEXT_FALSE='#'
14774 am__EXEEXT_TRUE='#'
14778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14779 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14780 Usually this means the macro was only invoked conditionally." >&5
14781 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14782 Usually this means the macro was only invoked conditionally." >&2;}
14783 { (exit 1); exit 1; }; }
14785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14786 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14787 Usually this means the macro was only invoked conditionally." >&5
14788 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14789 Usually this means the macro was only invoked conditionally." >&2;}
14790 { (exit 1); exit 1; }; }
14792 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14793 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
14794 Usually this means the macro was only invoked conditionally." >&5
14795 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
14796 Usually this means the macro was only invoked conditionally." >&2;}
14797 { (exit 1); exit 1; }; }
14799 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14800 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14801 Usually this means the macro was only invoked conditionally." >&5
14802 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14803 Usually this means the macro was only invoked conditionally." >&2;}
14804 { (exit 1); exit 1; }; }
14806 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14807 { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
14808 Usually this means the macro was only invoked conditionally." >&5
14809 $as_echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
14810 Usually this means the macro was only invoked conditionally." >&2;}
14811 { (exit 1); exit 1; }; }
14813 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14814 { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
14815 Usually this means the macro was only invoked conditionally." >&5
14816 $as_echo "$as_me: error: conditional \"MIPS\" was never defined.
14817 Usually this means the macro was only invoked conditionally." >&2;}
14818 { (exit 1); exit 1; }; }
14820 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14821 { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
14822 Usually this means the macro was only invoked conditionally." >&5
14823 $as_echo "$as_me: error: conditional \"SPARC\" was never defined.
14824 Usually this means the macro was only invoked conditionally." >&2;}
14825 { (exit 1); exit 1; }; }
14827 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14828 { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
14829 Usually this means the macro was only invoked conditionally." >&5
14830 $as_echo "$as_me: error: conditional \"X86\" was never defined.
14831 Usually this means the macro was only invoked conditionally." >&2;}
14832 { (exit 1); exit 1; }; }
14834 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14835 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
14836 Usually this means the macro was only invoked conditionally." >&5
14837 $as_echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
14838 Usually this means the macro was only invoked conditionally." >&2;}
14839 { (exit 1); exit 1; }; }
14841 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14842 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
14843 Usually this means the macro was only invoked conditionally." >&5
14844 $as_echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
14845 Usually this means the macro was only invoked conditionally." >&2;}
14846 { (exit 1); exit 1; }; }
14848 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14849 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
14850 Usually this means the macro was only invoked conditionally." >&5
14851 $as_echo "$as_me: error: conditional \"X86_WIN64\" was never defined.
14852 Usually this means the macro was only invoked conditionally." >&2;}
14853 { (exit 1); exit 1; }; }
14855 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14856 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
14857 Usually this means the macro was only invoked conditionally." >&5
14858 $as_echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
14859 Usually this means the macro was only invoked conditionally." >&2;}
14860 { (exit 1); exit 1; }; }
14862 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14863 { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
14864 Usually this means the macro was only invoked conditionally." >&5
14865 $as_echo "$as_me: error: conditional \"ALPHA\" was never defined.
14866 Usually this means the macro was only invoked conditionally." >&2;}
14867 { (exit 1); exit 1; }; }
14869 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14870 { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
14871 Usually this means the macro was only invoked conditionally." >&5
14872 $as_echo "$as_me: error: conditional \"IA64\" was never defined.
14873 Usually this means the macro was only invoked conditionally." >&2;}
14874 { (exit 1); exit 1; }; }
14876 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14877 { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
14878 Usually this means the macro was only invoked conditionally." >&5
14879 $as_echo "$as_me: error: conditional \"M32R\" was never defined.
14880 Usually this means the macro was only invoked conditionally." >&2;}
14881 { (exit 1); exit 1; }; }
14883 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14884 { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
14885 Usually this means the macro was only invoked conditionally." >&5
14886 $as_echo "$as_me: error: conditional \"M68K\" was never defined.
14887 Usually this means the macro was only invoked conditionally." >&2;}
14888 { (exit 1); exit 1; }; }
14890 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14891 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
14892 Usually this means the macro was only invoked conditionally." >&5
14893 $as_echo "$as_me: error: conditional \"POWERPC\" was never defined.
14894 Usually this means the macro was only invoked conditionally." >&2;}
14895 { (exit 1); exit 1; }; }
14897 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14898 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
14899 Usually this means the macro was only invoked conditionally." >&5
14900 $as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
14901 Usually this means the macro was only invoked conditionally." >&2;}
14902 { (exit 1); exit 1; }; }
14904 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14905 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
14906 Usually this means the macro was only invoked conditionally." >&5
14907 $as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
14908 Usually this means the macro was only invoked conditionally." >&2;}
14909 { (exit 1); exit 1; }; }
14911 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14912 { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
14913 Usually this means the macro was only invoked conditionally." >&5
14914 $as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
14915 Usually this means the macro was only invoked conditionally." >&2;}
14916 { (exit 1); exit 1; }; }
14918 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14919 { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
14920 Usually this means the macro was only invoked conditionally." >&5
14921 $as_echo "$as_me: error: conditional \"ARM\" was never defined.
14922 Usually this means the macro was only invoked conditionally." >&2;}
14923 { (exit 1); exit 1; }; }
14925 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14926 { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
14927 Usually this means the macro was only invoked conditionally." >&5
14928 $as_echo "$as_me: error: conditional \"AVR32\" was never defined.
14929 Usually this means the macro was only invoked conditionally." >&2;}
14930 { (exit 1); exit 1; }; }
14932 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14933 { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
14934 Usually this means the macro was only invoked conditionally." >&5
14935 $as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
14936 Usually this means the macro was only invoked conditionally." >&2;}
14937 { (exit 1); exit 1; }; }
14939 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14940 { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
14941 Usually this means the macro was only invoked conditionally." >&5
14942 $as_echo "$as_me: error: conditional \"FRV\" was never defined.
14943 Usually this means the macro was only invoked conditionally." >&2;}
14944 { (exit 1); exit 1; }; }
14946 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14947 { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
14948 Usually this means the macro was only invoked conditionally." >&5
14949 $as_echo "$as_me: error: conditional \"S390\" was never defined.
14950 Usually this means the macro was only invoked conditionally." >&2;}
14951 { (exit 1); exit 1; }; }
14953 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14954 { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
14955 Usually this means the macro was only invoked conditionally." >&5
14956 $as_echo "$as_me: error: conditional \"X86_64\" was never defined.
14957 Usually this means the macro was only invoked conditionally." >&2;}
14958 { (exit 1); exit 1; }; }
14960 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14961 { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
14962 Usually this means the macro was only invoked conditionally." >&5
14963 $as_echo "$as_me: error: conditional \"SH\" was never defined.
14964 Usually this means the macro was only invoked conditionally." >&2;}
14965 { (exit 1); exit 1; }; }
14967 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
14968 { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
14969 Usually this means the macro was only invoked conditionally." >&5
14970 $as_echo "$as_me: error: conditional \"SH64\" was never defined.
14971 Usually this means the macro was only invoked conditionally." >&2;}
14972 { (exit 1); exit 1; }; }
14974 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
14975 { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
14976 Usually this means the macro was only invoked conditionally." >&5
14977 $as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
14978 Usually this means the macro was only invoked conditionally." >&2;}
14979 { (exit 1); exit 1; }; }
14981 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
14982 { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
14983 Usually this means the macro was only invoked conditionally." >&5
14984 $as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
14985 Usually this means the macro was only invoked conditionally." >&2;}
14986 { (exit 1); exit 1; }; }
14988 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
14989 { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
14990 Usually this means the macro was only invoked conditionally." >&5
14991 $as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
14992 Usually this means the macro was only invoked conditionally." >&2;}
14993 { (exit 1); exit 1; }; }
14997 : ${CONFIG_STATUS=./config.status}
14999 ac_clean_files_save=$ac_clean_files
15000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15001 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15002 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15003 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15005 # Generated by $as_me.
15006 # Run this file to recreate the current configuration.
15007 # Compiler output produced by configure, useful for debugging
15008 # configure, is in config.log if it exists.
15011 ac_cs_recheck=false
15013 SHELL=\${CONFIG_SHELL-$SHELL}
15016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15017 ## --------------------- ##
15018 ## M4sh Initialization. ##
15019 ## --------------------- ##
15021 # Be more Bourne compatible
15022 DUALCASE=1; export DUALCASE # for MKS sh
15023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15027 # is contrary to our usage. Disable this feature.
15028 alias -g '${1+"$@"}'='"$@"'
15029 setopt NO_GLOB_SUBST
15031 case `(set -o) 2>/dev/null` in
15032 *posix*) set -o posix ;;
15041 # Avoid depending upon Character Ranges.
15042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15045 as_cr_digits='0123456789'
15046 as_cr_alnum=$as_cr_Letters$as_cr_digits
15051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15052 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15055 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15056 as_echo='printf %s\n'
15057 as_echo_n='printf %s'
15059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15060 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15061 as_echo_n='/usr/ucb/echo -n'
15063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15064 as_echo_n_body='eval
15068 expr "X$arg" : "X\\(.*\\)$as_nl";
15069 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15071 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15073 export as_echo_n_body
15074 as_echo_n='sh -c $as_echo_n_body as_echo'
15076 export as_echo_body
15077 as_echo='sh -c $as_echo_body as_echo'
15080 # The user is always right.
15081 if test "${PATH_SEPARATOR+set}" != set; then
15083 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15084 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15089 # Support unset when possible.
15090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15098 # We need space, tab and new line, in precisely that order. Quoting is
15099 # there to prevent editors from complaining about space-tab.
15100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15101 # splitting by setting IFS to empty value.)
15104 # Find who we are. Look in the path if we contain no directory separator.
15106 *[\\/]* ) as_myself=$0 ;;
15107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15108 for as_dir in $PATH
15111 test -z "$as_dir" && as_dir=.
15112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15118 # We did not find ourselves, most probably we were run as `sh COMMAND'
15119 # in which case we are not to be found in the path.
15120 if test "x$as_myself" = x; then
15123 if test ! -f "$as_myself"; then
15124 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15125 { (exit 1); exit 1; }
15128 # Work around bugs in pre-3.0 UWIN ksh.
15129 for as_var in ENV MAIL MAILPATH
15130 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15142 # Required to use basename.
15143 if expr a : '\(a\)' >/dev/null 2>&1 &&
15144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15151 as_basename=basename
15157 # Name of the executable.
15158 as_me=`$as_basename -- "$0" ||
15159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15160 X"$0" : 'X\(//\)$' \| \
15161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15163 sed '/^.*\/\([^/][^/]*\)\/*$/{
15182 as_lineno_1=$LINENO
15183 as_lineno_2=$LINENO
15184 test "x$as_lineno_1" != "x$as_lineno_2" &&
15185 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15187 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15188 # uniformly replaced by the line number. The first 'sed' inserts a
15189 # line-number line after each line using $LINENO; the second 'sed'
15190 # does the real work. The second script uses 'N' to pair each
15191 # line-number line with the line containing $LINENO, and appends
15192 # trailing '-' during substitution so that $LINENO is not a special
15193 # case at line end.
15194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15195 # scripts with optimization help from Paolo Bonzini. Blame Lee
15196 # E. McMahon (1931-1989) for sed's syntax. :-)
15208 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15211 ' >$as_me.lineno &&
15212 chmod +x "$as_me.lineno" ||
15213 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15214 { (exit 1); exit 1; }; }
15216 # Don't try to exec as it changes $[0], causing all sort of problems
15217 # (the dirname of $[0] is not the place where we might find the
15218 # original and so on. Autoconf is especially sensitive to this).
15219 . "./$as_me.lineno"
15220 # Exit status is that of the last command.
15225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15231 ECHO_C= ECHO_N= ECHO_T=
15232 case `echo -n x` in
15234 case `echo 'x\c'` in
15235 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15241 if expr a : '\(a\)' >/dev/null 2>&1 &&
15242 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15248 rm -f conf$$ conf$$.exe conf$$.file
15249 if test -d conf$$.dir; then
15250 rm -f conf$$.dir/conf$$.file
15253 mkdir conf$$.dir 2>/dev/null
15255 if (echo >conf$$.file) 2>/dev/null; then
15256 if ln -s conf$$.file conf$$ 2>/dev/null; then
15258 # ... but there are two gotchas:
15259 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15260 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15261 # In both cases, we have to default to `cp -p'.
15262 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15264 elif ln conf$$.file conf$$ 2>/dev/null; then
15272 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15273 rmdir conf$$.dir 2>/dev/null
15275 if mkdir -p . 2>/dev/null; then
15278 test -d ./-p && rmdir ./-p
15282 if test -x / >/dev/null 2>&1; then
15283 as_test_x='test -x'
15285 if ls -dL / >/dev/null 2>&1; then
15292 if test -d "$1"; then
15298 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15299 ???[sx]*):;;*)false;;esac;fi
15303 as_executable_p=$as_test_x
15305 # Sed expression to map a string onto a valid CPP name.
15306 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15308 # Sed expression to map a string onto a valid variable name.
15309 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15314 # Save the log message, to keep $[0] and so on meaningful, and to
15315 # report actual input values of CONFIG_FILES etc. instead of their
15316 # values after options handling.
15318 This file was extended by libffi $as_me 3.0.9, which was
15319 generated by GNU Autoconf 2.63. Invocation command line was
15321 CONFIG_FILES = $CONFIG_FILES
15322 CONFIG_HEADERS = $CONFIG_HEADERS
15323 CONFIG_LINKS = $CONFIG_LINKS
15324 CONFIG_COMMANDS = $CONFIG_COMMANDS
15327 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15332 case $ac_config_files in *"
15333 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15336 case $ac_config_headers in *"
15337 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15342 # Files that config.status was made for.
15343 config_files="$ac_config_files"
15344 config_headers="$ac_config_headers"
15345 config_links="$ac_config_links"
15346 config_commands="$ac_config_commands"
15350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15352 \`$as_me' instantiates files from templates according to the
15353 current configuration.
15355 Usage: $0 [OPTION]... [FILE]...
15357 -h, --help print this help, then exit
15358 -V, --version print version number and configuration settings, then exit
15359 -q, --quiet, --silent
15360 do not print progress messages
15361 -d, --debug don't remove temporary files
15362 --recheck update $as_me by reconfiguring in the same conditions
15363 --file=FILE[:TEMPLATE]
15364 instantiate the configuration file FILE
15365 --header=FILE[:TEMPLATE]
15366 instantiate the configuration header FILE
15368 Configuration files:
15371 Configuration headers:
15374 Configuration links:
15377 Configuration commands:
15380 Report bugs to <bug-autoconf@gnu.org>."
15383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15385 libffi config.status 3.0.9
15386 configured by $0, generated by GNU Autoconf 2.63,
15387 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15389 Copyright (C) 2008 Free Software Foundation, Inc.
15390 This config.status script is free software; the Free Software Foundation
15391 gives unlimited permission to copy, distribute and modify it."
15398 test -n "\$AWK" || AWK=awk
15401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15402 # The default lists apply if the user does not specify any file.
15408 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15409 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15420 # Handling of the options.
15421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15424 $as_echo "$ac_cs_version"; exit ;;
15425 --debug | --debu | --deb | --de | --d | -d )
15427 --file | --fil | --fi | --f )
15430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15432 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15433 ac_need_defaults=false;;
15434 --header | --heade | --head | --hea )
15437 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15439 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15440 ac_need_defaults=false;;
15442 # Conflict between --help and --header
15443 { $as_echo "$as_me: error: ambiguous option: $1
15444 Try \`$0 --help' for more information." >&2
15445 { (exit 1); exit 1; }; };;
15446 --help | --hel | -h )
15447 $as_echo "$ac_cs_usage"; exit ;;
15448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15449 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15452 # This is an error.
15453 -*) { $as_echo "$as_me: error: unrecognized option: $1
15454 Try \`$0 --help' for more information." >&2
15455 { (exit 1); exit 1; }; } ;;
15457 *) ac_config_targets="$ac_config_targets $1"
15458 ac_need_defaults=false ;;
15464 ac_configure_extra_args=
15466 if $ac_cs_silent; then
15468 ac_configure_extra_args="$ac_configure_extra_args --silent"
15472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15473 if \$ac_cs_recheck; then
15474 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15476 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15477 CONFIG_SHELL='$SHELL'
15478 export CONFIG_SHELL
15483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15488 ## Running $as_me. ##
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15498 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15501 # The HP-UX ksh and POSIX shell print the target directory to stdout
15502 # if CDPATH is set.
15503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15505 sed_quote_subst='$sed_quote_subst'
15506 double_quote_subst='$double_quote_subst'
15507 delay_variable_subst='$delay_variable_subst'
15508 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15509 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15510 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15511 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15512 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15513 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15514 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15515 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15516 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15517 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15518 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15519 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15520 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15521 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15522 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15523 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15524 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15525 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15526 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15527 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15528 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15529 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15530 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15531 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15532 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15533 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15534 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15535 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15536 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15537 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15538 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15539 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15540 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15541 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15542 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15543 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15544 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15545 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15546 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15547 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15548 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15549 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15550 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15551 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15552 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15553 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15554 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15555 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15556 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15557 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15558 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15559 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15560 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15561 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15562 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15563 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15564 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15565 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15566 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15567 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15568 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15569 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15570 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15571 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15572 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15573 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15574 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15575 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15576 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15577 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15578 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15579 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15580 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15581 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15582 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15583 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15584 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15585 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15586 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15587 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15588 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15589 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15590 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15591 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15592 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15593 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15594 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15595 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15596 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15597 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15598 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15599 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15600 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15601 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15602 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15603 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15604 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15605 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15606 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15607 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15608 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15609 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15610 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15611 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15612 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15613 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15614 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15615 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15616 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15617 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15618 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15619 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15620 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15621 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15622 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15623 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15624 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15625 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15628 LTCFLAGS='$LTCFLAGS'
15629 compiler='$compiler_DEFAULT'
15631 # Quote evaled strings.
15643 deplibs_check_method \
15652 lt_cv_sys_global_symbol_pipe \
15653 lt_cv_sys_global_symbol_to_cdecl \
15654 lt_cv_sys_global_symbol_to_c_name_address \
15655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15658 lt_prog_compiler_no_builtin_flag \
15659 lt_prog_compiler_wl \
15660 lt_prog_compiler_pic \
15661 lt_prog_compiler_static \
15662 lt_cv_prog_compiler_c_o \
15670 export_dynamic_flag_spec \
15671 whole_archive_flag_spec \
15672 compiler_needs_object \
15674 allow_undefined_flag \
15675 no_undefined_flag \
15676 hardcode_libdir_flag_spec \
15677 hardcode_libdir_flag_spec_ld \
15678 hardcode_libdir_separator \
15683 variables_saved_for_relink \
15685 library_names_spec \
15690 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15691 *[\\\\\\\`\\"\\\$]*)
15692 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15695 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15700 # Double-quote double-evaled strings.
15701 for var in reload_cmds \
15702 old_postinstall_cmds \
15703 old_postuninstall_cmds \
15705 extract_expsyms_cmds \
15706 old_archive_from_new_cmds \
15707 old_archive_from_expsyms_cmds \
15709 archive_expsym_cmds \
15711 module_expsym_cmds \
15712 export_symbols_cmds \
15715 postuninstall_cmds \
15717 sys_lib_search_path_spec \
15718 sys_lib_dlsearch_path_spec; do
15719 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15720 *[\\\\\\\`\\"\\\$]*)
15721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15729 # Fix-up fallback echo if it was mangled by the above quoting rules.
15731 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15735 ac_aux_dir='$ac_aux_dir'
15736 xsi_shell='$xsi_shell'
15737 lt_shell_append='$lt_shell_append'
15739 # See if we are running on zsh, and set the options which allow our
15740 # commands through without removal of \ escapes INIT.
15741 if test -n "\${ZSH_VERSION+set}" ; then
15742 setopt NO_GLOB_SUBST
15748 TIMESTAMP='$TIMESTAMP'
15754 TARGETDIR="$TARGETDIR"
15758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15760 # Handling of arguments.
15761 for ac_config_target in $ac_config_targets
15763 case $ac_config_target in
15764 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15765 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15766 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15767 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15768 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15769 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15770 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15771 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15773 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15774 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15775 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15777 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15778 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15779 { (exit 1); exit 1; }; };;
15784 # If the user did not use the arguments to specify the items to instantiate,
15785 # then the envvar interface is used. Set only those that are not.
15786 # We use the long form for the default assignment because of an extremely
15787 # bizarre bug on SunOS 4.1.3.
15788 if $ac_need_defaults; then
15789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15791 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15792 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15795 # Have a temporary directory for convenience. Make it in the build tree
15796 # simply because there is no reason against having it here, and in addition,
15797 # creating and moving files from /tmp can sometimes cause problems.
15798 # Hook for its removal unless debugging.
15799 # Note that there is a small window in which the directory will not be cleaned:
15800 # after its creation but before its name has been assigned to `$tmp'.
15804 trap 'exit_status=$?
15805 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15807 trap '{ (exit 1); exit 1; }' 1 2 13 15
15809 # Create a (secure) tmp directory for tmp files.
15812 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15813 test -n "$tmp" && test -d "$tmp"
15816 tmp=./conf$$-$RANDOM
15817 (umask 077 && mkdir "$tmp")
15820 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15821 { (exit 1); exit 1; }
15824 # Set up the scripts for CONFIG_FILES section.
15825 # No need to generate them if there are no CONFIG_FILES.
15826 # This happens for instance with `./config.status config.h'.
15827 if test -n "$CONFIG_FILES"; then
15831 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15832 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15835 ac_cs_awk_cr=$ac_cr
15838 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15843 echo "cat >conf$$subs.awk <<_ACEOF" &&
15844 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15846 } >conf$$subs.sh ||
15847 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15848 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15849 { (exit 1); exit 1; }; }
15850 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15852 for ac_last_try in false false false false false :; do
15853 . ./conf$$subs.sh ||
15854 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15855 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15856 { (exit 1); exit 1; }; }
15858 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15859 if test $ac_delim_n = $ac_delim_num; then
15861 elif $ac_last_try; then
15862 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15863 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15864 { (exit 1); exit 1; }; }
15866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15869 rm -f conf$$subs.sh
15871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15872 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15876 s/^/S["/; s/!.*/"]=/
15886 s/\(.\{148\}\).*/\1/
15888 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15900 s/\(.\{148\}\).*/\1/
15902 s/["\\]/\\&/g; s/^/"/; s/$/"/
15906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15911 ' <conf$$subs.awk | sed '
15916 ' >>$CONFIG_STATUS || ac_write_fail=1
15917 rm -f conf$$subs.awk
15918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15920 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15921 for (key in S) S_is_set[key] = 1
15927 nfields = split(line, field, "@")
15929 len = length(field[1])
15930 for (i = 2; i < nfields; i++) {
15932 keylen = length(key)
15933 if (S_is_set[key]) {
15935 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15936 len += length(value) + length(field[++i])
15947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15948 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15949 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15952 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15953 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15954 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15955 { (exit 1); exit 1; }; }
15958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15960 # trailing colons and then remove the whole line if VPATH becomes empty
15961 # (actually we leave an empty line to preserve line numbers).
15962 if test "x$srcdir" = x.; then
15963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15964 s/:*\$(srcdir):*/:/
15965 s/:*\${srcdir}:*/:/
15967 s/^\([^=]*=[ ]*\):*/\1/
15973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974 fi # test -n "$CONFIG_FILES"
15976 # Set up the scripts for CONFIG_HEADERS section.
15977 # No need to generate them if there are no CONFIG_HEADERS.
15978 # This happens for instance with `./config.status Makefile'.
15979 if test -n "$CONFIG_HEADERS"; then
15980 cat >"$tmp/defines.awk" <<\_ACAWK ||
15984 # Transform confdefs.h into an awk script `defines.awk', embedded as
15985 # here-document in config.status, that substitutes the proper values into
15986 # config.h.in to produce config.h.
15988 # Create a delimiter string that does not exist in confdefs.h, to ease
15989 # handling of long lines.
15991 for ac_last_try in false false :; do
15992 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15993 if test -z "$ac_t"; then
15995 elif $ac_last_try; then
15996 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15997 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15998 { (exit 1); exit 1; }; }
16000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16004 # For the awk script, D is an array of macro values keyed by name,
16005 # likewise P contains macro parameters if any. Preserve backslash
16006 # newline sequences.
16008 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16010 s/.\{148\}/&'"$ac_delim"'/g
16013 s/^[ ]*#[ ]*define[ ][ ]*/ /
16020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16022 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16026 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16027 D["\1"]=" \3\\\\\\n"\\/p
16029 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16034 s/.\{148\}/&'"$ac_delim"'/g
16039 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16042 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16044 ' <confdefs.h | sed '
16045 s/'"$ac_delim"'/"\\\
16046 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16049 for (key in D) D_is_set[key] = 1
16052 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16054 split(line, arg, " ")
16055 if (arg[1] == "#") {
16059 defundef = substr(arg[1], 2)
16062 split(mac1, mac2, "(") #)
16064 prefix = substr(line, 1, index(line, defundef) - 1)
16065 if (D_is_set[macro]) {
16066 # Preserve the white space surrounding the "#".
16067 print prefix "define", macro P[macro] D[macro]
16070 # Replace #undef with comments. This is necessary, for example,
16071 # in the case of _POSIX_SOURCE, which is predefined and required
16072 # on some systems where configure will not decide to define it.
16073 if (defundef == "undef") {
16074 print "/*", prefix defundef, macro, "*/"
16082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16083 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16084 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16085 { (exit 1); exit 1; }; }
16086 fi # test -n "$CONFIG_HEADERS"
16089 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16094 :[FHLC]) ac_mode=$ac_tag; continue;;
16096 case $ac_mode$ac_tag in
16098 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16099 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16100 { (exit 1); exit 1; }; };;
16101 :[FH]-) ac_tag=-:-;;
16102 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16119 -) ac_f="$tmp/stdin";;
16120 *) # Look for the file first in the build tree, then in the source tree
16121 # (if the path is not absolute). The absolute path cannot be DOS-style,
16122 # because $ac_f cannot contain `:'.
16126 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16128 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16129 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16130 { (exit 1); exit 1; }; };;
16132 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16133 ac_file_inputs="$ac_file_inputs '$ac_f'"
16136 # Let's still pretend it is `configure' which instantiates (i.e., don't
16137 # use $as_me), people would be surprised to read:
16138 # /* config.h. Generated by config.status. */
16139 configure_input='Generated from '`
16140 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16142 if test x"$ac_file" != x-; then
16143 configure_input="$ac_file. $configure_input"
16144 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16145 $as_echo "$as_me: creating $ac_file" >&6;}
16147 # Neutralize special characters interpreted by sed in replacement strings.
16148 case $configure_input in #(
16149 *\&* | *\|* | *\\* )
16150 ac_sed_conf_input=`$as_echo "$configure_input" |
16151 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16152 *) ac_sed_conf_input=$configure_input;;
16156 *:-:* | *:-) cat >"$tmp/stdin" \
16157 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16158 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16159 { (exit 1); exit 1; }; } ;;
16164 ac_dir=`$as_dirname -- "$ac_file" ||
16165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16166 X"$ac_file" : 'X\(//\)[^/]' \| \
16167 X"$ac_file" : 'X\(//\)$' \| \
16168 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16169 $as_echo X"$ac_file" |
16170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16174 /^X\(\/\/\)[^/].*/{
16189 -*) as_dir=./$as_dir;;
16191 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16195 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16196 *) as_qdir=$as_dir;;
16198 as_dirs="'$as_qdir' $as_dirs"
16199 as_dir=`$as_dirname -- "$as_dir" ||
16200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16201 X"$as_dir" : 'X\(//\)[^/]' \| \
16202 X"$as_dir" : 'X\(//\)$' \| \
16203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16204 $as_echo X"$as_dir" |
16205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16209 /^X\(\/\/\)[^/].*/{
16222 test -d "$as_dir" && break
16224 test -z "$as_dirs" || eval "mkdir $as_dirs"
16225 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16226 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16227 { (exit 1); exit 1; }; }; }
16231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16233 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16234 # A ".." for each directory in $ac_dir_suffix.
16235 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16236 case $ac_top_builddir_sub in
16237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16241 ac_abs_top_builddir=$ac_pwd
16242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16243 # for backward compatibility:
16244 ac_top_builddir=$ac_top_build_prefix
16247 .) # We are building in place.
16249 ac_top_srcdir=$ac_top_builddir_sub
16250 ac_abs_top_srcdir=$ac_pwd ;;
16251 [\\/]* | ?:[\\/]* ) # Absolute name.
16252 ac_srcdir=$srcdir$ac_dir_suffix;
16253 ac_top_srcdir=$srcdir
16254 ac_abs_top_srcdir=$srcdir ;;
16255 *) # Relative name.
16256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16257 ac_top_srcdir=$ac_top_build_prefix$srcdir
16258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16271 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16273 ac_MKDIR_P=$MKDIR_P
16275 [\\/$]* | ?:[\\/]* ) ;;
16276 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 # If the template does not know about datarootdir, expand it.
16282 # FIXME: This hack should be removed a few years after 2.60.
16283 ac_datarootdir_hack=; ac_datarootdir_seen=
16296 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16297 *datarootdir*) ac_datarootdir_seen=yes;;
16298 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16299 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16300 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16303 ac_datarootdir_hack='
16304 s&@datadir@&$datadir&g
16305 s&@docdir@&$docdir&g
16306 s&@infodir@&$infodir&g
16307 s&@localedir@&$localedir&g
16308 s&@mandir@&$mandir&g
16309 s&\\\${datarootdir}&$datarootdir&g' ;;
16313 # Neutralize VPATH when `$srcdir' = `.'.
16314 # Shell code in configure.ac might set extrasub.
16315 # FIXME: do we really want to maintain this feature?
16316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16317 ac_sed_extra="$ac_vpsub
16320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16323 s|@configure_input@|$ac_sed_conf_input|;t t
16324 s&@top_builddir@&$ac_top_builddir_sub&;t t
16325 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16326 s&@srcdir@&$ac_srcdir&;t t
16327 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16328 s&@top_srcdir@&$ac_top_srcdir&;t t
16329 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16330 s&@builddir@&$ac_builddir&;t t
16331 s&@abs_builddir@&$ac_abs_builddir&;t t
16332 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16333 s&@INSTALL@&$ac_INSTALL&;t t
16334 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16335 $ac_datarootdir_hack
16337 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16338 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16339 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16340 { (exit 1); exit 1; }; }
16342 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16343 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16344 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16345 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16346 which seems to be undefined. Please make sure it is defined." >&5
16347 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16348 which seems to be undefined. Please make sure it is defined." >&2;}
16352 -) cat "$tmp/out" && rm -f "$tmp/out";;
16353 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16355 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16356 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16357 { (exit 1); exit 1; }; }
16363 if test x"$ac_file" != x-; then
16365 $as_echo "/* $configure_input */" \
16366 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16367 } >"$tmp/config.h" \
16368 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16369 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16370 { (exit 1); exit 1; }; }
16371 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16372 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16373 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16376 mv "$tmp/config.h" "$ac_file" \
16377 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16378 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16379 { (exit 1); exit 1; }; }
16382 $as_echo "/* $configure_input */" \
16383 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16384 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16385 $as_echo "$as_me: error: could not create -" >&2;}
16386 { (exit 1); exit 1; }; }
16388 # Compute "$ac_file"'s index in $config_headers.
16391 for _am_header in $config_headers :; do
16392 case $_am_header in
16393 $_am_arg | $_am_arg:* )
16396 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16399 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16400 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16401 X"$_am_arg" : 'X\(//\)[^/]' \| \
16402 X"$_am_arg" : 'X\(//\)$' \| \
16403 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16404 $as_echo X"$_am_arg" |
16405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16409 /^X\(\/\/\)[^/].*/{
16421 s/.*/./; q'`/stamp-h$_am_stamp_count
16428 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16431 # Prefer the file from the source tree if names are identical.
16432 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16433 ac_source=$srcdir/$ac_source
16436 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16437 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16439 if test ! -r "$ac_source"; then
16440 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16441 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
16442 { (exit 1); exit 1; }; }
16446 # Try a relative symlink, then a hard link, then a copy.
16448 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16449 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16451 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16452 ln "$ac_source" "$ac_file" 2>/dev/null ||
16453 cp -p "$ac_source" "$ac_file" ||
16454 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16455 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16456 { (exit 1); exit 1; }; }
16459 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16460 $as_echo "$as_me: executing $ac_file commands" >&6;}
16465 case $ac_file$ac_mode in
16466 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16467 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16468 # are listed without --file. Let's play safe and only enable the eval
16469 # if we detect the quoting.
16470 case $CONFIG_FILES in
16471 *\'*) eval set x "$CONFIG_FILES" ;;
16472 *) set x $CONFIG_FILES ;;
16477 # Strip MF so we end up with the name of the file.
16478 mf=`echo "$mf" | sed -e 's/:.*$//'`
16479 # Check whether this is an Automake generated Makefile or not.
16480 # We used to match only the files named `Makefile.in', but
16481 # some people rename them; so instead we look at the file content.
16482 # Grep'ing the first line is not enough: some people post-process
16483 # each Makefile.in and add a new line on top of each file to say so.
16484 # Grep'ing the whole file is not good either: AIX grep has a line
16485 # limit of 2048, but all sed's we know have understand at least 4000.
16486 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16487 dirpart=`$as_dirname -- "$mf" ||
16488 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16489 X"$mf" : 'X\(//\)[^/]' \| \
16490 X"$mf" : 'X\(//\)$' \| \
16491 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16497 /^X\(\/\/\)[^/].*/{
16513 # Extract the definition of DEPDIR, am__include, and am__quote
16514 # from the Makefile without running `make'.
16515 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16516 test -z "$DEPDIR" && continue
16517 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16518 test -z "am__include" && continue
16519 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16520 # When using ansi2knr, U may be empty or an underscore; expand it
16521 U=`sed -n 's/^U = //p' < "$mf"`
16522 # Find all dependency output files, they are included files with
16523 # $(DEPDIR) in their names. We invoke sed twice because it is the
16524 # simplest approach to changing $(DEPDIR) to its actual value in the
16526 for file in `sed -n "
16527 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16528 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16529 # Make sure the directory exists.
16530 test -f "$dirpart/$file" && continue
16531 fdir=`$as_dirname -- "$file" ||
16532 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16533 X"$file" : 'X\(//\)[^/]' \| \
16534 X"$file" : 'X\(//\)$' \| \
16535 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16536 $as_echo X"$file" |
16537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16541 /^X\(\/\/\)[^/].*/{
16554 { as_dir=$dirpart/$fdir
16556 -*) as_dir=./$as_dir;;
16558 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16562 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16563 *) as_qdir=$as_dir;;
16565 as_dirs="'$as_qdir' $as_dirs"
16566 as_dir=`$as_dirname -- "$as_dir" ||
16567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16568 X"$as_dir" : 'X\(//\)[^/]' \| \
16569 X"$as_dir" : 'X\(//\)$' \| \
16570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16571 $as_echo X"$as_dir" |
16572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16576 /^X\(\/\/\)[^/].*/{
16589 test -d "$as_dir" && break
16591 test -z "$as_dirs" || eval "mkdir $as_dirs"
16592 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16593 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16594 { (exit 1); exit 1; }; }; }
16595 # echo "creating $dirpart/$file"
16596 echo '# dummy' > "$dirpart/$file"
16603 # See if we are running on zsh, and set the options which allow our
16604 # commands through without removal of \ escapes.
16605 if test -n "${ZSH_VERSION+set}" ; then
16606 setopt NO_GLOB_SUBST
16609 cfgfile="${ofile}T"
16610 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16613 cat <<_LT_EOF >> "$cfgfile"
16616 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16617 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16618 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16619 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16621 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16622 # 2006, 2007, 2008 Free Software Foundation, Inc.
16623 # Written by Gordon Matzigkeit, 1996
16625 # This file is part of GNU Libtool.
16627 # GNU Libtool is free software; you can redistribute it and/or
16628 # modify it under the terms of the GNU General Public License as
16629 # published by the Free Software Foundation; either version 2 of
16630 # the License, or (at your option) any later version.
16632 # As a special exception to the GNU General Public License,
16633 # if you distribute this file as part of a program or library that
16634 # is built using GNU Libtool, you may include this file under the
16635 # same distribution terms that you use for the rest of that program.
16637 # GNU Libtool is distributed in the hope that it will be useful,
16638 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16639 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16640 # GNU General Public License for more details.
16642 # You should have received a copy of the GNU General Public License
16643 # along with GNU Libtool; see the file COPYING. If not, a copy
16644 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16645 # obtained by writing to the Free Software Foundation, Inc.,
16646 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16649 # The names of the tagged configurations supported by this script.
16652 # ### BEGIN LIBTOOL CONFIG
16654 # Which release of libtool.m4 was used?
16655 macro_version=$macro_version
16656 macro_revision=$macro_revision
16658 # Whether or not to build shared libraries.
16659 build_libtool_libs=$enable_shared
16661 # Whether or not to build static libraries.
16662 build_old_libs=$enable_static
16664 # What type of objects to build.
16667 # Whether or not to optimize for fast installation.
16668 fast_install=$enable_fast_install
16671 host_alias=$host_alias
16675 # The build system.
16676 build_alias=$build_alias
16680 # A sed program that does not truncate output.
16683 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16684 Xsed="\$SED -e 1s/^X//"
16686 # A grep program that handles long lines.
16692 # A literal string matcher.
16695 # A BSD- or MS-compatible name lister.
16698 # Whether we need soft or hard links.
16701 # What is the maximum length of a command?
16702 max_cmd_len=$max_cmd_len
16704 # Object file suffix (normally "o").
16707 # Executable file suffix (normally "").
16710 # whether the shell understands "unset".
16713 # turn spaces into newlines.
16716 # turn newlines into spaces.
16719 # How to create reloadable object files.
16720 reload_flag=$lt_reload_flag
16721 reload_cmds=$lt_reload_cmds
16723 # An object symbol dumper.
16724 OBJDUMP=$lt_OBJDUMP
16726 # Method to check whether dependent libraries are shared objects.
16727 deplibs_check_method=$lt_deplibs_check_method
16729 # Command to use when deplibs_check_method == "file_magic".
16730 file_magic_cmd=$lt_file_magic_cmd
16734 AR_FLAGS=$lt_AR_FLAGS
16736 # A symbol stripping program.
16739 # Commands used to install an old-style archive.
16741 old_postinstall_cmds=$lt_old_postinstall_cmds
16742 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16747 # LTCC compiler flags.
16748 LTCFLAGS=$lt_CFLAGS
16750 # Take the output of nm and produce a listing of raw symbols and C names.
16751 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16753 # Transform the output of nm in a proper C declaration.
16754 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16756 # Transform the output of nm in a C name address pair.
16757 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16759 # Transform the output of nm in a C name address pair when lib prefix is needed.
16760 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16762 # The name of the directory that contains temporary libtool files.
16765 # Shell to use when invoking shell scripts.
16768 # An echo program that does not interpret backslashes.
16771 # Used to examine libraries when file_magic_cmd begins with "file".
16772 MAGIC_CMD=$MAGIC_CMD
16774 # Must we lock files when doing compilation?
16775 need_locks=$lt_need_locks
16777 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16778 DSYMUTIL=$lt_DSYMUTIL
16780 # Tool to change global to local symbols on Mac OS X.
16783 # Tool to manipulate fat objects and archives on Mac OS X.
16786 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16789 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16790 OTOOL64=$lt_OTOOL64
16792 # Old archive suffix (normally "a").
16795 # Shared library suffix (normally ".so").
16796 shrext_cmds=$lt_shrext_cmds
16798 # The commands to extract the exported symbol list from a shared archive.
16799 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16801 # Variables whose values should be saved in libtool wrapper scripts and
16802 # restored at link time.
16803 variables_saved_for_relink=$lt_variables_saved_for_relink
16805 # Do we need the "lib" prefix for modules?
16806 need_lib_prefix=$need_lib_prefix
16808 # Do we need a version for libraries?
16809 need_version=$need_version
16811 # Library versioning type.
16812 version_type=$version_type
16814 # Shared library runtime path variable.
16815 runpath_var=$runpath_var
16817 # Shared library path variable.
16818 shlibpath_var=$shlibpath_var
16820 # Is shlibpath searched before the hard-coded library search path?
16821 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16823 # Format of library name prefix.
16824 libname_spec=$lt_libname_spec
16826 # List of archive names. First name is the real one, the rest are links.
16827 # The last name is the one that the linker finds with -lNAME
16828 library_names_spec=$lt_library_names_spec
16830 # The coded name of the library, if different from the real name.
16831 soname_spec=$lt_soname_spec
16833 # Command to use after installation of a shared archive.
16834 postinstall_cmds=$lt_postinstall_cmds
16836 # Command to use after uninstallation of a shared archive.
16837 postuninstall_cmds=$lt_postuninstall_cmds
16839 # Commands used to finish a libtool library installation in a directory.
16840 finish_cmds=$lt_finish_cmds
16842 # As "finish_cmds", except a single script fragment to be evaled but
16844 finish_eval=$lt_finish_eval
16846 # Whether we should hardcode library paths into libraries.
16847 hardcode_into_libs=$hardcode_into_libs
16849 # Compile-time system search path for libraries.
16850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16852 # Run-time system search path for libraries.
16853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16855 # Whether dlopen is supported.
16856 dlopen_support=$enable_dlopen
16858 # Whether dlopen of programs is supported.
16859 dlopen_self=$enable_dlopen_self
16861 # Whether dlopen of statically linked programs is supported.
16862 dlopen_self_static=$enable_dlopen_self_static
16864 # Commands to strip libraries.
16865 old_striplib=$lt_old_striplib
16866 striplib=$lt_striplib
16869 # The linker used to build libraries.
16872 # Commands used to build an old-style archive.
16873 old_archive_cmds=$lt_old_archive_cmds
16875 # A language specific compiler.
16878 # Is the compiler the GNU compiler?
16881 # Compiler flag to turn off builtin functions.
16882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16884 # How to pass a linker flag through the compiler.
16885 wl=$lt_lt_prog_compiler_wl
16887 # Additional compiler flags for building library objects.
16888 pic_flag=$lt_lt_prog_compiler_pic
16890 # Compiler flag to prevent dynamic linking.
16891 link_static_flag=$lt_lt_prog_compiler_static
16893 # Does compiler simultaneously support -c and -o options?
16894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16896 # Whether or not to add -lc for building shared libraries.
16897 build_libtool_need_lc=$archive_cmds_need_lc
16899 # Whether or not to disallow shared libs when runtime libs are static.
16900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16902 # Compiler flag to allow reflexive dlopens.
16903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16905 # Compiler flag to generate shared objects directly from archives.
16906 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16908 # Whether the compiler copes with passing no objects directly.
16909 compiler_needs_object=$lt_compiler_needs_object
16911 # Create an old-style archive from a shared archive.
16912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16914 # Create a temporary old-style archive to link instead of a shared archive.
16915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16917 # Commands used to build a shared archive.
16918 archive_cmds=$lt_archive_cmds
16919 archive_expsym_cmds=$lt_archive_expsym_cmds
16921 # Commands used to build a loadable module if different from building
16922 # a shared archive.
16923 module_cmds=$lt_module_cmds
16924 module_expsym_cmds=$lt_module_expsym_cmds
16926 # Whether we are building with GNU ld or not.
16927 with_gnu_ld=$lt_with_gnu_ld
16929 # Flag that allows shared libraries with undefined symbols to be built.
16930 allow_undefined_flag=$lt_allow_undefined_flag
16932 # Flag that enforces no undefined symbols.
16933 no_undefined_flag=$lt_no_undefined_flag
16935 # Flag to hardcode \$libdir into a binary during linking.
16936 # This must work even if \$libdir does not exist
16937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16939 # If ld is used when linking, flag to hardcode \$libdir into a binary
16940 # during linking. This must work even if \$libdir does not exist.
16941 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16943 # Whether we need a single "-rpath" flag with a separated argument.
16944 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16946 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16947 # DIR into the resulting binary.
16948 hardcode_direct=$hardcode_direct
16950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16951 # DIR into the resulting binary and the resulting library dependency is
16952 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16953 # library is relocated.
16954 hardcode_direct_absolute=$hardcode_direct_absolute
16956 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16957 # into the resulting binary.
16958 hardcode_minus_L=$hardcode_minus_L
16960 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16961 # into the resulting binary.
16962 hardcode_shlibpath_var=$hardcode_shlibpath_var
16964 # Set to "yes" if building a shared library automatically hardcodes DIR
16965 # into the library and all subsequent libraries and executables linked
16967 hardcode_automatic=$hardcode_automatic
16969 # Set to yes if linker adds runtime paths of dependent libraries
16970 # to runtime path list.
16971 inherit_rpath=$inherit_rpath
16973 # Whether libtool must link a program against all its dependency libraries.
16974 link_all_deplibs=$link_all_deplibs
16976 # Fix the shell variable \$srcfile for the compiler.
16977 fix_srcfile_path=$lt_fix_srcfile_path
16979 # Set to "yes" if exported symbols are required.
16980 always_export_symbols=$always_export_symbols
16982 # The commands to list exported symbols.
16983 export_symbols_cmds=$lt_export_symbols_cmds
16985 # Symbols that should not be listed in the preloaded symbols.
16986 exclude_expsyms=$lt_exclude_expsyms
16988 # Symbols that must always be exported.
16989 include_expsyms=$lt_include_expsyms
16991 # Commands necessary for linking programs (against libraries) with templates.
16992 prelink_cmds=$lt_prelink_cmds
16994 # Specify filename containing input files.
16995 file_list_spec=$lt_file_list_spec
16997 # How to hardcode a shared library path into an executable.
16998 hardcode_action=$hardcode_action
17000 # ### END LIBTOOL CONFIG
17006 cat <<\_LT_EOF >> "$cfgfile"
17007 # AIX sometimes has problems with the GCC collect2 program. For some
17008 # reason, if we set the COLLECT_NAMES environment variable, the problems
17009 # vanish in a puff of smoke.
17010 if test "X${COLLECT_NAMES+set}" != Xset; then
17012 export COLLECT_NAMES
17019 ltmain="$ac_aux_dir/ltmain.sh"
17022 # We use sed instead of cat because bash on DJGPP gets confused if
17023 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17024 # text mode, it properly converts lines to CR/LF. This bash problem
17025 # is reportedly fixed, but why not run on old versions too?
17026 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17027 || (rm -f "$cfgfile"; exit 1)
17031 cat << \_LT_EOF >> "$cfgfile"
17033 # func_dirname file append nondir_replacement
17034 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17035 # otherwise set result to NONDIR_REPLACEMENT.
17039 */*) func_dirname_result="${1%/*}${2}" ;;
17040 * ) func_dirname_result="${3}" ;;
17044 # func_basename file
17047 func_basename_result="${1##*/}"
17050 # func_dirname_and_basename file append nondir_replacement
17051 # perform func_basename and func_dirname in a single function
17053 # dirname: Compute the dirname of FILE. If nonempty,
17054 # add APPEND to the result, otherwise set result
17055 # to NONDIR_REPLACEMENT.
17056 # value returned in "$func_dirname_result"
17057 # basename: Compute filename of FILE.
17058 # value retuned in "$func_basename_result"
17059 # Implementation must be kept synchronized with func_dirname
17060 # and func_basename. For efficiency, we do not delegate to
17061 # those functions but instead duplicate the functionality here.
17062 func_dirname_and_basename ()
17065 */*) func_dirname_result="${1%/*}${2}" ;;
17066 * ) func_dirname_result="${3}" ;;
17068 func_basename_result="${1##*/}"
17071 # func_stripname prefix suffix name
17072 # strip PREFIX and SUFFIX off of NAME.
17073 # PREFIX and SUFFIX must not contain globbing or regex special
17074 # characters, hashes, percent signs, but SUFFIX may contain a leading
17075 # dot (in which case that matches only a dot).
17078 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17079 # positional parameters, so assign one to ordinary parameter first.
17080 func_stripname_result=${3}
17081 func_stripname_result=${func_stripname_result#"${1}"}
17082 func_stripname_result=${func_stripname_result%"${2}"}
17088 func_opt_split_opt=${1%%=*}
17089 func_opt_split_arg=${1#*=}
17096 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17097 *) func_lo2o_result=${1} ;;
17101 # func_xform libobj-or-source
17104 func_xform_result=${1%.*}.lo
17107 # func_arith arithmetic-term...
17110 func_arith_result=$(( $* ))
17114 # STRING may not start with a hyphen.
17117 func_len_result=${#1}
17122 *) # Bourne compatible functions.
17123 cat << \_LT_EOF >> "$cfgfile"
17125 # func_dirname file append nondir_replacement
17126 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17127 # otherwise set result to NONDIR_REPLACEMENT.
17130 # Extract subdirectory from the argument.
17131 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17132 if test "X$func_dirname_result" = "X${1}"; then
17133 func_dirname_result="${3}"
17135 func_dirname_result="$func_dirname_result${2}"
17139 # func_basename file
17142 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17146 # func_stripname prefix suffix name
17147 # strip PREFIX and SUFFIX off of NAME.
17148 # PREFIX and SUFFIX must not contain globbing or regex special
17149 # characters, hashes, percent signs, but SUFFIX may contain a leading
17150 # dot (in which case that matches only a dot).
17151 # func_strip_suffix prefix name
17155 .*) func_stripname_result=`$ECHO "X${3}" \
17156 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17157 *) func_stripname_result=`$ECHO "X${3}" \
17158 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17163 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17164 my_sed_long_arg='1s/^-[^=]*=//'
17169 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17170 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17176 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17179 # func_xform libobj-or-source
17182 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17185 # func_arith arithmetic-term...
17188 func_arith_result=`expr "$@"`
17192 # STRING may not start with a hyphen.
17195 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17201 case $lt_shell_append in
17203 cat << \_LT_EOF >> "$cfgfile"
17205 # func_append var value
17206 # Append VALUE to the end of shell variable VAR.
17214 cat << \_LT_EOF >> "$cfgfile"
17216 # func_append var value
17217 # Append VALUE to the end of shell variable VAR.
17228 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17229 || (rm -f "$cfgfile"; exit 1)
17231 mv -f "$cfgfile" "$ofile" ||
17232 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17236 "include":C) test -d include || mkdir include ;;
17238 test -d src || mkdir src
17239 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17246 { (exit 0); exit 0; }
17248 chmod +x $CONFIG_STATUS
17249 ac_clean_files=$ac_clean_files_save
17251 test $ac_write_fail = 0 ||
17252 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17253 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17254 { (exit 1); exit 1; }; }
17257 # configure is writing to config.log, and then calls config.status.
17258 # config.status does its own redirection, appending to config.log.
17259 # Unfortunately, on DOS this fails, as config.log is still kept open
17260 # by configure, so config.status won't be able to write to it; its
17261 # output is simply discarded. So we exec the FD to /dev/null,
17262 # effectively closing config.log, so it can be properly (re)opened and
17263 # appended to by config.status. When coming back to configure, we
17264 # need to make the FD available again.
17265 if test "$no_create" != yes; then
17267 ac_config_status_args=
17268 test "$silent" = yes &&
17269 ac_config_status_args="$ac_config_status_args --quiet"
17271 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17273 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17274 # would make configure fail if this is the last instruction.
17275 $ac_cs_success || { (exit 1); exit 1; }
17277 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17278 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17279 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}