2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.0.12-rc0.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (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 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://gcc.gnu.org/bugs.html about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.0.12-rc0'
594 PACKAGE_STRING='libffi 3.0.12-rc0'
595 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
644 FFI_EXEC_TRAMPOLINE_TABLE
645 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
646 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
647 sys_symbol_underscore
678 POWERPC_FREEBSD_FALSE
717 MAINTAINER_MODE_FALSE
742 am__fastdepCCAS_FALSE
772 INSTALL_STRIP_PROGRAM
787 ax_enable_builddir_sed
827 program_transform_name
840 enable_option_checking
842 enable_dependency_tracking
850 enable_portable_binary
852 enable_maintainer_mode
859 ac_precious_vars='build_alias
868 # Initialize some variables set by options.
870 ac_init_version=false
871 ac_unrecognized_opts=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
882 program_transform_name=s,x,x,
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
928 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 # Accept the important Cygnus configure options, so we can diagnose typos.
935 case $ac_dashdash$ac_option in
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
957 cache_file=config.cache ;;
959 -datadir | --datadir | --datadi | --datad)
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
971 -disable-* | --disable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
985 eval enable_$ac_useropt=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 -enable-* | --enable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1011 eval enable_$ac_useropt=\$ac_optarg ;;
1013 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015 | --exec | --exe | --ex)
1016 ac_prev=exec_prefix ;;
1017 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019 | --exec=* | --exe=* | --ex=*)
1020 exec_prefix=$ac_optarg ;;
1022 -gas | --gas | --ga | --g)
1023 # Obsolete; use --with-gas.
1026 -help | --help | --hel | --he | -h)
1027 ac_init_help=long ;;
1028 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029 ac_init_help=recursive ;;
1030 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031 ac_init_help=short ;;
1033 -host | --host | --hos | --ho)
1034 ac_prev=host_alias ;;
1035 -host=* | --host=* | --hos=* | --ho=*)
1036 host_alias=$ac_optarg ;;
1038 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 htmldir=$ac_optarg ;;
1044 -includedir | --includedir | --includedi | --included | --include \
1045 | --includ | --inclu | --incl | --inc)
1046 ac_prev=includedir ;;
1047 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048 | --includ=* | --inclu=* | --incl=* | --inc=*)
1049 includedir=$ac_optarg ;;
1051 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054 infodir=$ac_optarg ;;
1056 -libdir | --libdir | --libdi | --libd)
1058 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059 libdir=$ac_optarg ;;
1061 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062 | --libexe | --libex | --libe)
1063 ac_prev=libexecdir ;;
1064 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065 | --libexe=* | --libex=* | --libe=*)
1066 libexecdir=$ac_optarg ;;
1068 -localedir | --localedir | --localedi | --localed | --locale)
1069 ac_prev=localedir ;;
1070 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071 localedir=$ac_optarg ;;
1073 -localstatedir | --localstatedir | --localstatedi | --localstated \
1074 | --localstate | --localstat | --localsta | --localst | --locals)
1075 ac_prev=localstatedir ;;
1076 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078 localstatedir=$ac_optarg ;;
1080 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083 mandir=$ac_optarg ;;
1085 -nfp | --nfp | --nf)
1086 # Obsolete; use --without-fp.
1089 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090 | --no-cr | --no-c | -n)
1093 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099 | --oldin | --oldi | --old | --ol | --o)
1100 ac_prev=oldincludedir ;;
1101 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104 oldincludedir=$ac_optarg ;;
1106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109 prefix=$ac_optarg ;;
1111 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112 | --program-pre | --program-pr | --program-p)
1113 ac_prev=program_prefix ;;
1114 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116 program_prefix=$ac_optarg ;;
1118 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119 | --program-suf | --program-su | --program-s)
1120 ac_prev=program_suffix ;;
1121 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123 program_suffix=$ac_optarg ;;
1125 -program-transform-name | --program-transform-name \
1126 | --program-transform-nam | --program-transform-na \
1127 | --program-transform-n | --program-transform- \
1128 | --program-transform | --program-transfor \
1129 | --program-transfo | --program-transf \
1130 | --program-trans | --program-tran \
1131 | --progr-tra | --program-tr | --program-t)
1132 ac_prev=program_transform_name ;;
1133 -program-transform-name=* | --program-transform-name=* \
1134 | --program-transform-nam=* | --program-transform-na=* \
1135 | --program-transform-n=* | --program-transform-=* \
1136 | --program-transform=* | --program-transfor=* \
1137 | --program-transfo=* | --program-transf=* \
1138 | --program-trans=* | --program-tran=* \
1139 | --progr-tra=* | --program-tr=* | --program-t=*)
1140 program_transform_name=$ac_optarg ;;
1142 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145 pdfdir=$ac_optarg ;;
1147 -psdir | --psdir | --psdi | --psd | --ps)
1149 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153 | -silent | --silent | --silen | --sile | --sil)
1156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 sbindir=$ac_optarg ;;
1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164 | --sharedst | --shareds | --shared | --share | --shar \
1166 ac_prev=sharedstatedir ;;
1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 sharedstatedir=$ac_optarg ;;
1173 -site | --site | --sit)
1175 -site=* | --site=* | --sit=*)
1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181 srcdir=$ac_optarg ;;
1183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184 | --syscon | --sysco | --sysc | --sys | --sy)
1185 ac_prev=sysconfdir ;;
1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188 sysconfdir=$ac_optarg ;;
1190 -target | --target | --targe | --targ | --tar | --ta | --t)
1191 ac_prev=target_alias ;;
1192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193 target_alias=$ac_optarg ;;
1195 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 -version | --version | --versio | --versi | --vers | -V)
1199 ac_init_version=: ;;
1202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1215 eval with_$ac_useropt=\$ac_optarg ;;
1217 -without-* | --without-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 as_fn_error $? "invalid package name: $ac_useropt"
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1231 eval with_$ac_useropt=no ;;
1234 # Obsolete; use --with-x.
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1252 Try \`$0 --help' for more information"
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 case $ac_envvar in #(
1259 '' | [0-9]* | *[!_$as_cr_alnum]* )
1260 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 as_fn_error $? "missing argument to $ac_option"
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1284 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 # Check all directory arguments for consistency.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
1302 # Be sure to have absolute directory names.
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1315 target=$target_alias
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x; then
1319 if test "x$build_alias" = x; then
1320 cross_compiling=maybe
1321 elif test "x$build_alias" != "x$host_alias"; then
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329 test "$silent" = yes && exec 6>/dev/null
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 as_fn_error $? "working directory cannot be determined"
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 as_fn_error $? "pwd does not report name of working directory"
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$as_myself" ||
1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$as_myself" : 'X\(//\)[^/]' \| \
1347 X"$as_myself" : 'X\(//\)$' \| \
1348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349 $as_echo X"$as_myself" |
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1372 ac_srcdir_defaulted=no
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 # Report the --help message.
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1406 \`configure' configures libffi 3.0.12-rc0 to adapt to many kinds of systems.
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1413 Defaults for the options are specified in brackets.
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking ...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1437 For better control, use the options below.
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 --target=TARGET configure for building compilers for TARGET [HOST]
1475 if test -n "$ac_init_help"; then
1476 case $ac_init_help in
1477 short | recursive ) echo "Configuration of libffi 3.0.12-rc0:";;
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --disable-builddir disable automatic build in subdir of sources
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --enable-portable-binary
1497 disable compiler optimizations that would produce
1499 --enable-maintainer-mode
1500 enable make rules and dependencies not useful (and
1501 sometimes confusing) to the casual installer
1502 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1503 --enable-debug debugging mode
1504 --disable-structs omit code for struct support
1505 --disable-raw-api make the raw api unavailable
1506 --enable-purify-safety purify-safe mode
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-sysroot=DIR Search for dependent libraries within DIR
1515 (or the compiler's sysroot if not specified).
1516 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CCAS assembler compiler command (defaults to CC)
1528 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1534 Report bugs to <http://gcc.gnu.org/bugs.html>.
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1564 .) # We are building in place.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1597 libffi configure 3.0.12-rc0
1598 generated by GNU Autoconf 2.69
1600 Copyright (C) 2012 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1647 } # ac_fn_c_try_compile
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_c_try_link
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1712 if ac_fn_c_try_compile "$LINENO"; then :
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_header_compile
1726 # ac_fn_c_try_cpp LINENO
1727 # ----------------------
1728 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } > conftest.i && {
1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1763 # ac_fn_c_try_run LINENO
1764 # ----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766 # that executables *can* be run.
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }; then :
1793 $as_echo "$as_me: program exited with status $ac_status" >&5
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=$ac_status
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1828 # include <limits.h>
1830 # include <assert.h>
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1857 if ac_fn_c_try_link "$LINENO"; then :
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 } # ac_fn_c_check_func
1872 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1873 # --------------------------------------------
1874 # Tries to find the compile-time value of EXPR in a program that includes
1875 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1877 ac_fn_c_compute_int ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if test "$cross_compiling" = yes; then
1881 # Depending upon the size, compute the lo and hi bounds.
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1888 static int test_array [1 - 2 * !(($2) >= 0)];
1890 return test_array [0];
1896 if ac_fn_c_try_compile "$LINENO"; then :
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1905 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1907 return test_array [0];
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_hi=$ac_mid; break
1916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1917 if test $ac_lo -le $ac_mid; then
1921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1932 static int test_array [1 - 2 * !(($2) < 0)];
1934 return test_array [0];
1940 if ac_fn_c_try_compile "$LINENO"; then :
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1949 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1951 return test_array [0];
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_lo=$ac_mid; break
1960 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1961 if test $ac_mid -le $ac_hi; then
1965 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 # Binary search between lo and hi bounds.
1976 while test "x$ac_lo" != "x$ac_hi"; do
1977 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1984 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1986 return test_array [0];
1992 if ac_fn_c_try_compile "$LINENO"; then :
1995 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2007 static long int longval () { return $2; }
2008 static unsigned long int ulongval () { return $2; }
2015 FILE *f = fopen ("conftest.val", "w");
2020 long int i = longval ();
2023 fprintf (f, "%ld", i);
2027 unsigned long int i = ulongval ();
2030 fprintf (f, "%lu", i);
2032 /* Do not output a trailing newline, as this causes \r\n confusion
2033 on some platforms. */
2034 return ferror (f) || fclose (f) != 0;
2040 if ac_fn_c_try_run "$LINENO"; then :
2041 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2046 conftest.$ac_objext conftest.beam conftest.$ac_ext
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status $ac_retval
2053 } # ac_fn_c_compute_int
2055 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2056 # -------------------------------------------------------
2057 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2058 # the include files in INCLUDES and setting the cache variable VAR
2060 ac_fn_c_check_header_mongrel ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if eval \${$3+:} false; then :
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2073 # Is the header compilable?
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2075 $as_echo_n "checking $2 usability... " >&6; }
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_header_compiler=yes
2084 ac_header_compiler=no
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2088 $as_echo "$ac_header_compiler" >&6; }
2090 # Is the header present?
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2092 $as_echo_n "checking $2 presence... " >&6; }
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2097 if ac_fn_c_try_cpp "$LINENO"; then :
2098 ac_header_preproc=yes
2100 ac_header_preproc=no
2102 rm -f conftest.err conftest.i conftest.$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2104 $as_echo "$ac_header_preproc" >&6; }
2106 # So? What about this header?
2107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2110 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2112 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2116 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2118 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2120 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2122 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2124 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2125 ( $as_echo "## ------------------------------------------- ##
2126 ## Report this to http://gcc.gnu.org/bugs.html ##
2127 ## ------------------------------------------- ##"
2128 ) | sed "s/^/$as_me: WARNING: /" >&2
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if eval \${$3+:} false; then :
2134 $as_echo_n "(cached) " >&6
2136 eval "$3=\$ac_header_compiler"
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2140 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 } # ac_fn_c_check_header_mongrel
2146 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2147 # -------------------------------------------
2148 # Tests whether TYPE exists after having included INCLUDES, setting cache
2149 # variable VAR accordingly.
2150 ac_fn_c_check_type ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154 $as_echo_n "checking for $2... " >&6; }
2155 if eval \${$3+:} false; then :
2156 $as_echo_n "(cached) " >&6
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2184 if ac_fn_c_try_compile "$LINENO"; then :
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 } # ac_fn_c_check_type
2199 cat >config.log <<_ACEOF
2200 This file contains any messages produced by compilers while
2201 running configure, to aid debugging if configure makes a mistake.
2203 It was created by libffi $as_me 3.0.12-rc0, which was
2204 generated by GNU Autoconf 2.69. Invocation command line was
2216 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2217 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2218 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2219 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2220 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2222 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2223 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2225 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2226 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2227 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2228 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2229 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2230 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2231 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 $as_echo "PATH: $as_dir"
2256 # Keep a trace of the command line.
2257 # Strip out --no-create and --no-recursion so they do not pile up.
2258 # Strip out --silent because we don't want to record it for future runs.
2259 # Also quote any args containing shell meta-characters.
2260 # Make two passes to allow for proper duplicate-argument suppression.
2264 ac_must_keep_next=false
2270 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2272 | -silent | --silent | --silen | --sile | --sil)
2275 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2280 as_fn_append ac_configure_args1 " '$ac_arg'"
2281 if test $ac_must_keep_next = true; then
2282 ac_must_keep_next=false # Got value, back to normal.
2285 *=* | --config-cache | -C | -disable-* | --disable-* \
2286 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2287 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2288 | -with-* | --with-* | -without-* | --without-* | --x)
2289 case "$ac_configure_args0 " in
2290 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293 -* ) ac_must_keep_next=true ;;
2296 as_fn_append ac_configure_args " '$ac_arg'"
2301 { ac_configure_args0=; unset ac_configure_args0;}
2302 { ac_configure_args1=; unset ac_configure_args1;}
2304 # When interrupted or exit'd, cleanup temporary files, and complete
2305 # config.log. We remove comments because anyway the quotes in there
2306 # would cause problems or look ugly.
2307 # WARNING: Use '\'' to represent an apostrophe within the trap.
2308 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2309 trap 'exit_status=$?
2310 # Save into config.log some information that might help in debugging.
2314 $as_echo "## ---------------- ##
2315 ## Cache variables. ##
2316 ## ---------------- ##"
2318 # The following way of writing the cache mishandles newlines in values,
2320 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321 eval ac_val=\$$ac_var
2325 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329 _ | IFS | as_nl) ;; #(
2330 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331 *) { eval $ac_var=; unset $ac_var;} ;;
2336 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337 *${as_nl}ac_space=\ *)
2339 "s/'\''/'\''\\\\'\'''\''/g;
2340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350 $as_echo "## ----------------- ##
2351 ## Output variables. ##
2352 ## ----------------- ##"
2354 for ac_var in $ac_subst_vars
2356 eval ac_val=\$$ac_var
2358 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 $as_echo "$ac_var='\''$ac_val'\''"
2364 if test -n "$ac_subst_files"; then
2365 $as_echo "## ------------------- ##
2366 ## File substitutions. ##
2367 ## ------------------- ##"
2369 for ac_var in $ac_subst_files
2371 eval ac_val=\$$ac_var
2373 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2375 $as_echo "$ac_var='\''$ac_val'\''"
2380 if test -s confdefs.h; then
2381 $as_echo "## ----------- ##
2388 test "$ac_signal" != 0 &&
2389 $as_echo "$as_me: caught signal $ac_signal"
2390 $as_echo "$as_me: exit $exit_status"
2392 rm -f core *.core core.conftest.* &&
2393 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396 for ac_signal in 1 2 13 15; do
2397 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2402 rm -f -r conftest* confdefs.h
2404 $as_echo "/* confdefs.h */" > confdefs.h
2406 # Predefined preprocessor variables.
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_NAME "$PACKAGE_NAME"
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_STRING "$PACKAGE_STRING"
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_URL "$PACKAGE_URL"
2433 # Let the site file select an alternate cache file if it wants to.
2434 # Prefer an explicitly selected file to automatically selected ones.
2437 if test -n "$CONFIG_SITE"; then
2438 # We do not want a PATH search for config.site.
2439 case $CONFIG_SITE in #((
2440 -*) ac_site_file1=./$CONFIG_SITE;;
2441 */*) ac_site_file1=$CONFIG_SITE;;
2442 *) ac_site_file1=./$CONFIG_SITE;;
2444 elif test "x$prefix" != xNONE; then
2445 ac_site_file1=$prefix/share/config.site
2446 ac_site_file2=$prefix/etc/config.site
2448 ac_site_file1=$ac_default_prefix/share/config.site
2449 ac_site_file2=$ac_default_prefix/etc/config.site
2451 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2453 test "x$ac_site_file" = xNONE && continue
2454 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2457 sed 's/^/| /' "$ac_site_file" >&5
2459 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461 as_fn_error $? "failed to load site script $ac_site_file
2462 See \`config.log' for more details" "$LINENO" 5; }
2466 if test -r "$cache_file"; then
2467 # Some versions of bash will fail to source /dev/null (special files
2468 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2469 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471 $as_echo "$as_me: loading cache $cache_file" >&6;}
2473 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474 *) . "./$cache_file";;
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479 $as_echo "$as_me: creating cache $cache_file" >&6;}
2483 # Check that the precious variables saved in the cache have kept the same
2485 ac_cache_corrupted=false
2486 for ac_var in $ac_precious_vars; do
2487 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2488 eval ac_new_set=\$ac_env_${ac_var}_set
2489 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2490 eval ac_new_val=\$ac_env_${ac_var}_value
2491 case $ac_old_set,$ac_new_set in
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2495 ac_cache_corrupted=: ;;
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2499 ac_cache_corrupted=: ;;
2502 if test "x$ac_old_val" != "x$ac_new_val"; then
2503 # differences in whitespace do not lead to failure.
2504 ac_old_val_w=`echo x $ac_old_val`
2505 ac_new_val_w=`echo x $ac_new_val`
2506 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509 ac_cache_corrupted=:
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513 eval $ac_var=\$ac_old_val
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2516 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2518 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2521 # Pass precious variables to config.status.
2522 if test "$ac_new_set" = set; then
2524 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2525 *) ac_arg=$ac_var=$ac_new_val ;;
2527 case " $ac_configure_args " in
2528 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2529 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2533 if $ac_cache_corrupted; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2538 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2540 ## -------------------- ##
2541 ## Main body of script. ##
2542 ## -------------------- ##
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551 ac_config_headers="$ac_config_headers fficonfig.h"
2555 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2556 if test -f "$ac_dir/install-sh"; then
2558 ac_install_sh="$ac_aux_dir/install-sh -c"
2560 elif test -f "$ac_dir/install.sh"; then
2562 ac_install_sh="$ac_aux_dir/install.sh -c"
2564 elif test -f "$ac_dir/shtool"; then
2566 ac_install_sh="$ac_aux_dir/shtool install -c"
2570 if test -z "$ac_aux_dir"; then
2571 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2574 # These three variables are undocumented and unsupported,
2575 # and are intended to be withdrawn in a future Autoconf release.
2576 # They can cause serious problems if a builder's source tree is in a directory
2577 # whose full name contains unusual characters.
2578 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2579 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2580 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2583 # Make sure we can run config.sub.
2584 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2585 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2588 $as_echo_n "checking build system type... " >&6; }
2589 if ${ac_cv_build+:} false; then :
2590 $as_echo_n "(cached) " >&6
2592 ac_build_alias=$build_alias
2593 test "x$ac_build_alias" = x &&
2594 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2595 test "x$ac_build_alias" = x &&
2596 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2597 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2598 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2602 $as_echo "$ac_cv_build" >&6; }
2603 case $ac_cv_build in
2605 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2608 ac_save_IFS=$IFS; IFS='-'
2614 # Remember, the first character of IFS is used to create $*,
2615 # except with old shells:
2618 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2622 $as_echo_n "checking host system type... " >&6; }
2623 if ${ac_cv_host+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 if test "x$host_alias" = x; then
2627 ac_cv_host=$ac_cv_build
2629 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2630 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2635 $as_echo "$ac_cv_host" >&6; }
2638 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2641 ac_save_IFS=$IFS; IFS='-'
2647 # Remember, the first character of IFS is used to create $*,
2648 # except with old shells:
2651 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2655 $as_echo_n "checking target system type... " >&6; }
2656 if ${ac_cv_target+:} false; then :
2657 $as_echo_n "(cached) " >&6
2659 if test "x$target_alias" = x; then
2660 ac_cv_target=$ac_cv_host
2662 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2663 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2668 $as_echo "$ac_cv_target" >&6; }
2669 case $ac_cv_target in
2671 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2673 target=$ac_cv_target
2674 ac_save_IFS=$IFS; IFS='-'
2680 # Remember, the first character of IFS is used to create $*,
2681 # except with old shells:
2684 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2687 # The aliases save the names the user supplied, while $host etc.
2688 # will get canonicalized.
2689 test -n "$target_alias" &&
2690 test "$program_prefix$program_suffix$program_transform_name" = \
2692 program_prefix=${target_alias}-
2694 target_alias=${target_alias-$host_alias}
2696 . ${srcdir}/configure.host
2699 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2700 if test "${ac_configure_args+set}" != "set" ; then
2702 for ac_arg in ${1+"$@"}; do
2703 ac_configure_args="$ac_configure_args '$ac_arg'"
2707 # expand $ac_aux_dir to an absolute path
2708 am_aux_dir=`cd $ac_aux_dir && pwd`
2711 ax_enable_builddir="."
2712 # Check whether --enable-builddir was given.
2713 if test "${enable_builddir+set}" = set; then :
2714 enableval=$enable_builddir; ax_enable_builddir="$enableval"
2716 ax_enable_builddir="auto"
2719 if test ".$ac_srcdir_defaulted" != ".no" ; then
2720 if test ".$srcdir" = ".." ; then
2721 if test -f config.status ; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2723 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2725 test ".$ax_enable_builddir" = "." && ax_enable_builddir="."
2726 test ".$ax_enable_builddir" = ".no" && ax_enable_builddir="."
2727 test ".$TARGET" = "." && TARGET="$target"
2728 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2729 if test ".$ax_enable_builddir" != ".." ; then # we know where to go and
2730 as_dir=$ax_enable_builddir; as_fn_mkdir_p
2731 echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2732 cd $ax_enable_builddir
2733 if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2736 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2738 as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2740 srcdir=`echo "$ax_enable_builddir" |
2741 sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2742 # going to restart from subdirectory location
2743 test -f $srcdir/config.log && mv $srcdir/config.log .
2744 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
2745 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2746 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2748 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2749 case "$0" in # restart
2750 /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2751 *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2756 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2757 # Extract the first word of "gsed sed", so it can be a program name with args.
2758 set dummy gsed sed; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 case $ax_enable_builddir_sed in
2766 ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2788 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2789 if test -n "$ax_enable_builddir_sed"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2791 $as_echo "$ax_enable_builddir_sed" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2798 ax_enable_builddir_auxdir="$am_aux_dir"
2799 ac_config_commands="$ac_config_commands buildir"
2802 am__api_version='1.12'
2804 # Find a good install program. We prefer a C program (faster),
2805 # so one script is as good as another. But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 # Reject install programs that cannot install multiple files.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2820 if test -z "$INSTALL"; then
2821 if ${ac_cv_path_install+:} false; then :
2822 $as_echo_n "(cached) " >&6
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 # Account for people who put trailing slashes in PATH elements.
2830 case $as_dir/ in #((
2831 ./ | .// | /[cC]/* | \
2832 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2833 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2836 # OSF1 and SCO ODT 3.0 have their own names for install.
2837 # Don't use installbsd from OSF since it installs stuff as root
2839 for ac_prog in ginstall scoinst install; do
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2842 if test $ac_prog = install &&
2843 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844 # AIX install. It has an incompatible calling convention.
2846 elif test $ac_prog = install &&
2847 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848 # program-specific install script used by HP pwplus--don't use.
2851 rm -rf conftest.one conftest.two conftest.dir
2852 echo one > conftest.one
2853 echo two > conftest.two
2855 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2856 test -s conftest.one && test -s conftest.two &&
2857 test -s conftest.dir/conftest.one &&
2858 test -s conftest.dir/conftest.two
2860 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2873 rm -rf conftest.one conftest.two conftest.dir
2876 if test "${ac_cv_path_install+set}" = set; then
2877 INSTALL=$ac_cv_path_install
2879 # As a last resort, use the slow shell script. Don't cache a
2880 # value for INSTALL within a source directory, because that will
2881 # break other packages using the cache if that directory is
2882 # removed, or if the value is a relative name.
2883 INSTALL=$ac_install_sh
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2887 $as_echo "$INSTALL" >&6; }
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890 # It thinks the first close brace ends the variable substitution.
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2898 $as_echo_n "checking whether build environment is sane... " >&6; }
2899 # Reject unsafe characters in $srcdir or the absolute working directory
2900 # name. Accept space and tab only in the latter.
2904 *[\\\"\#\$\&\'\`$am_lf]*)
2905 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2908 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2909 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2912 # Do 'set' in a subshell so we don't clobber the current shell's
2913 # arguments. Must try -L first in case configure is actually a
2914 # symlink; some systems play weird games with the mod time of symlinks
2915 # (eg FreeBSD returns the mod time of the symlink's containing
2919 for am_try in 1 2; do
2920 echo "timestamp, slept: $am_has_slept" > conftest.file
2921 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2922 if test "$*" = "X"; then
2924 set X `ls -t "$srcdir/configure" conftest.file`
2926 if test "$*" != "X $srcdir/configure conftest.file" \
2927 && test "$*" != "X conftest.file $srcdir/configure"; then
2929 # If neither matched, then we have a broken ls. This can happen
2930 # if, for instance, CONFIG_SHELL is bash and it inherits a
2931 # broken ls alias from the environment. This has actually
2932 # happened. Such a system could not be considered "sane".
2933 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2934 alias in your environment" "$LINENO" 5
2936 if test "$2" = conftest.file || test $am_try -eq 2; then
2943 test "$2" = conftest.file
2949 as_fn_error $? "newly created file is older than distributed files!
2950 Check your system clock" "$LINENO" 5
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953 $as_echo "yes" >&6; }
2954 # If we didn't sleep, we still need to ensure time stamps of config.status and
2955 # generated files are strictly newer.
2957 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2964 test "$program_prefix" != NONE &&
2965 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2966 # Use a double $ so make ignores it.
2967 test "$program_suffix" != NONE &&
2968 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2969 # Double any \ or $.
2970 # By default was `s,x,x', remove it if useless.
2971 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2972 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2974 if test x"${MISSING+set}" != xset; then
2977 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2979 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2982 # Use eval to expand $SHELL
2983 if eval "$MISSING --run true"; then
2984 am_missing_run="$MISSING --run "
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2988 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2991 if test x"${install_sh}" != xset; then
2994 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2996 install_sh="\${SHELL} $am_aux_dir/install-sh"
3000 # Installed binaries are usually stripped using 'strip' when the user
3001 # run "make install-strip". However 'strip' might not be the right
3002 # tool to use in cross-compilation environments, therefore Automake
3003 # will honor the 'STRIP' environment variable to overrule this program.
3004 if test "$cross_compiling" != no; then
3005 if test -n "$ac_tool_prefix"; then
3006 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}strip; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_STRIP+:} false; then :
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$STRIP"; then
3014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 STRIP=$ac_cv_prog_STRIP
3034 if test -n "$STRIP"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3036 $as_echo "$STRIP" >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3044 if test -z "$ac_cv_prog_STRIP"; then
3046 # Extract the first word of "strip", so it can be a program name with args.
3047 set dummy strip; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3051 $as_echo_n "(cached) " >&6
3053 if test -n "$ac_ct_STRIP"; then
3054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_ac_ct_STRIP="strip"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3074 if test -n "$ac_ct_STRIP"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3076 $as_echo "$ac_ct_STRIP" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3082 if test "x$ac_ct_STRIP" = x; then
3085 case $cross_compiling:$ac_tool_warned in
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089 ac_tool_warned=yes ;;
3094 STRIP="$ac_cv_prog_STRIP"
3098 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3101 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3102 if test -z "$MKDIR_P"; then
3103 if ${ac_cv_path_mkdir+:} false; then :
3104 $as_echo_n "(cached) " >&6
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3110 test -z "$as_dir" && as_dir=.
3111 for ac_prog in mkdir gmkdir; do
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3114 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3115 'mkdir (GNU coreutils) '* | \
3116 'mkdir (coreutils) '* | \
3117 'mkdir (fileutils) '4.1*)
3118 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3128 test -d ./--version && rmdir ./--version
3129 if test "${ac_cv_path_mkdir+set}" = set; then
3130 MKDIR_P="$ac_cv_path_mkdir -p"
3132 # As a last resort, use the slow shell script. Don't cache a
3133 # value for MKDIR_P within a source directory, because that will
3134 # break other packages using the cache if that directory is
3135 # removed, or if the value is a relative name.
3136 MKDIR_P="$ac_install_sh -d"
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3140 $as_echo "$MKDIR_P" >&6; }
3142 for ac_prog in gawk mawk nawk awk
3144 # Extract the first word of "$ac_prog", so it can be a program name with args.
3145 set dummy $ac_prog; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_AWK+:} false; then :
3149 $as_echo_n "(cached) " >&6
3151 if test -n "$AWK"; then
3152 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_AWK="$ac_prog"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 if test -n "$AWK"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3174 $as_echo "$AWK" >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3181 test -n "$AWK" && break
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3185 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3187 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3188 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3189 $as_echo_n "(cached) " >&6
3191 cat >conftest.make <<\_ACEOF
3194 @echo '@@@%%%=$(MAKE)=@@@%%%'
3196 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3197 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3199 eval ac_cv_prog_make_${ac_make}_set=yes;;
3201 eval ac_cv_prog_make_${ac_make}_set=no;;
3205 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212 SET_MAKE="MAKE=${MAKE-make}"
3215 rm -rf .tst 2>/dev/null
3216 mkdir .tst 2>/dev/null
3217 if test -d .tst; then
3222 rmdir .tst 2>/dev/null
3224 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3225 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3226 # is not polluted with repeated "-I."
3227 am__isrc=' -I$(srcdir)'
3228 # test to see if srcdir already configured
3229 if test -f $srcdir/config.status; then
3230 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3234 # test whether we have cygpath
3235 if test -z "$CYGPATH_W"; then
3236 if (cygpath --version) >/dev/null 2>/dev/null; then
3237 CYGPATH_W='cygpath -w'
3244 # Define the identity of the package.
3246 VERSION='3.0.12-rc0'
3249 cat >>confdefs.h <<_ACEOF
3250 #define PACKAGE "$PACKAGE"
3254 cat >>confdefs.h <<_ACEOF
3255 #define VERSION "$VERSION"
3258 # Some tools Automake needs.
3260 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3263 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3266 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3269 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3272 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3274 # For better backward compatibility. To be removed once Automake 1.9.x
3275 # dies out for good. For more background, see:
3276 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3277 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3278 mkdir_p='$(MKDIR_P)'
3280 # We need awk for the "check" target. The system "awk" is bad on
3282 # Always define AMTAR for backward compatibility. Yes, it's still used
3283 # in the wild :-( We should find a proper way to deprecate it ...
3286 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3293 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3294 # We must force CC to /not/ be precious variables; otherwise
3295 # the wrong, non-multilib-adjusted value will be used in multilibs.
3296 # As a side effect, we have to subst CFLAGS ourselves.
3297 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3298 # defaults of its own if none are provided.
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3347 if test -z "$ac_cv_prog_CC"; then
3349 # Extract the first word of "gcc", so it can be a program name with args.
3350 set dummy gcc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$ac_ct_CC"; then
3357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_ac_ct_CC="gcc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3377 if test -n "$ac_ct_CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3379 $as_echo "$ac_ct_CC" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3385 if test "x$ac_ct_CC" = x; then
3388 case $cross_compiling:$ac_tool_warned in
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned=yes ;;
3400 if test -z "$CC"; then
3401 if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3403 set dummy ${ac_tool_prefix}cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_CC="${ac_tool_prefix}cc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 if test -n "$CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3441 if test -z "$CC"; then
3442 # Extract the first word of "cc", so it can be a program name with args.
3443 set dummy cc; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_CC+:} false; then :
3447 $as_echo_n "(cached) " >&6
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3461 ac_prog_rejected=yes
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 if test $ac_prog_rejected = yes; then
3473 # We found a bogon in the path, so make sure we never use it.
3474 set dummy $ac_cv_prog_CC
3476 if test $# != 0; then
3477 # We chose a different compiler from the bogus one.
3478 # However, it has the same basename, so the bogon will be chosen
3479 # first if we set CC to just the basename; use the full file name.
3481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$CC"; then
3498 if test -n "$ac_tool_prefix"; then
3499 for ac_prog in cl.exe
3501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3538 test -n "$CC" && break
3541 if test -z "$CC"; then
3543 for ac_prog in cl.exe
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$ac_ct_CC"; then
3553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_ac_ct_CC="$ac_prog"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 $as_echo "$ac_ct_CC" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3582 test -n "$ac_ct_CC" && break
3585 if test "x$ac_ct_CC" = x; then
3588 case $cross_compiling:$ac_tool_warned in
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details" "$LINENO" 5; }
3606 # Provide some information about the compiler.
3607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3610 for ac_option in --version -v -V -qversion; do
3611 { { ac_try="$ac_compiler $ac_option >&5"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3620 if test -s conftest.err; then
3622 ... rest of stderr output deleted ...
3623 10q' conftest.err >conftest.er1
3624 cat conftest.er1 >&5
3626 rm -f conftest.er1 conftest.err
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3642 ac_clean_files_save=$ac_clean_files
3643 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3644 # Try to create an executable without -o first, disregard a.out.
3645 # It will help us diagnose broken compilers, and finding out an intuition
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3648 $as_echo_n "checking whether the C compiler works... " >&6; }
3649 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3651 # The possible output files:
3652 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3655 for ac_file in $ac_files
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3664 if { { ac_try="$ac_link_default"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link_default") 2>&5
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3677 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3678 # so that the user can short-circuit this test for compilers unknown to
3680 for ac_file in $ac_files ''
3682 test -f "$ac_file" || continue
3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3687 # We found the default executable, but exeext='' is most
3691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3695 # We set ac_cv_exeext here because the later test for it is not
3696 # safe: cross compilers may not add the suffix if given an `-o'
3697 # argument, so we may need to know it at that point already.
3698 # Even if this section looks crufty: it has the advantage of
3705 test "$ac_cv_exeext" = no && ac_cv_exeext=
3710 if test -z "$ac_file"; then :
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error 77 "C compiler cannot create executables
3719 See \`config.log' for more details" "$LINENO" 5; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3725 $as_echo_n "checking for C compiler default output file name... " >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3727 $as_echo "$ac_file" >&6; }
3728 ac_exeext=$ac_cv_exeext
3730 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3731 ac_clean_files=$ac_clean_files_save
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3733 $as_echo_n "checking for suffix of executables... " >&6; }
3734 if { { ac_try="$ac_link"
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_link") 2>&5
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; then :
3745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3746 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3747 # work properly (i.e., refer to `conftest.exe'), while it won't with
3749 for ac_file in conftest.exe conftest conftest.*; do
3750 test -f "$ac_file" || continue
3752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3762 See \`config.log' for more details" "$LINENO" 5; }
3764 rm -f conftest conftest$ac_cv_exeext
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3766 $as_echo "$ac_cv_exeext" >&6; }
3768 rm -f conftest.$ac_ext
3769 EXEEXT=$ac_cv_exeext
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3777 FILE *f = fopen ("conftest.out", "w");
3778 return ferror (f) || fclose (f) != 0;
3784 ac_clean_files="$ac_clean_files conftest.out"
3785 # Check that the compiler produces executables we can run. If not, either
3786 # the compiler is broken, or we cross compile.
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3788 $as_echo_n "checking whether we are cross compiling... " >&6; }
3789 if test "$cross_compiling" != yes; then
3790 { { ac_try="$ac_link"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_link") 2>&5
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }
3801 if { ac_try='./conftest$ac_cv_exeext'
3802 { { case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_try") 2>&5
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; }; then
3814 if test "$cross_compiling" = maybe; then
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot run C compiled programs.
3820 If you meant to cross compile, use \`--host'.
3821 See \`config.log' for more details" "$LINENO" 5; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3826 $as_echo "$cross_compiling" >&6; }
3828 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3829 ac_clean_files=$ac_clean_files_save
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3831 $as_echo_n "checking for suffix of object files... " >&6; }
3832 if ${ac_cv_objext+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3846 rm -f conftest.o conftest.obj
3847 if { { ac_try="$ac_compile"
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_compile") 2>&5
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 for ac_file in conftest.o conftest.obj conftest.*; do
3859 test -f "$ac_file" || continue;
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of object files: cannot compile
3873 See \`config.log' for more details" "$LINENO" 5; }
3875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3878 $as_echo "$ac_cv_objext" >&6; }
3879 OBJEXT=$ac_cv_objext
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3882 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3883 if ${ac_cv_c_compiler_gnu+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3900 if ac_fn_c_try_compile "$LINENO"; then :
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3910 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3911 if test $ac_compiler_gnu = yes; then
3916 ac_test_CFLAGS=${CFLAGS+set}
3917 ac_save_CFLAGS=$CFLAGS
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3919 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3920 if ${ac_cv_prog_cc_g+:} false; then :
3921 $as_echo_n "(cached) " >&6
3923 ac_save_c_werror_flag=$ac_c_werror_flag
3924 ac_c_werror_flag=yes
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3938 if ac_fn_c_try_compile "$LINENO"; then :
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3953 if ac_fn_c_try_compile "$LINENO"; then :
3956 ac_c_werror_flag=$ac_save_c_werror_flag
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3969 if ac_fn_c_try_compile "$LINENO"; then :
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_c_werror_flag=$ac_save_c_werror_flag
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3980 $as_echo "$ac_cv_prog_cc_g" >&6; }
3981 if test "$ac_test_CFLAGS" = set; then
3982 CFLAGS=$ac_save_CFLAGS
3983 elif test $ac_cv_prog_cc_g = yes; then
3984 if test "$GCC" = yes; then
3990 if test "$GCC" = yes; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3998 if ${ac_cv_prog_cc_c89+:} false; then :
3999 $as_echo_n "(cached) " >&6
4001 ac_cv_prog_cc_c89=no
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4009 struct buf { int x; };
4010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4011 static char *e (p, i)
4017 static char *f (char * (*g) (char **, int), char **p, ...)
4022 s = g (p, va_arg (v,int));
4027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4028 function prototypes and stuff, but not '\xHH' hex character constants.
4029 These don't provoke an error unfortunately, instead are silently treated
4030 as 'x'. The following induces an error, until -std is added to get
4031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4032 array size at least. It's necessary to write '\x00'==0 to get something
4033 that's true only with -std. */
4034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4037 inside strings and character constants. */
4039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4041 int test (int i, double x);
4042 struct s1 {int (*f) (int a);};
4043 struct s2 {int (*f) (double a);};
4044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4058 CC="$ac_save_CC $ac_arg"
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_prog_cc_c89=$ac_arg
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x$ac_cv_prog_cc_c89" != "xno" && break
4065 rm -f conftest.$ac_ext
4070 case "x$ac_cv_prog_cc_c89" in
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073 $as_echo "none needed" >&6; } ;;
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4076 $as_echo "unsupported" >&6; } ;;
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4080 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4082 if test "x$ac_cv_prog_cc_c89" != xno; then :
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 DEPDIR="${am__leading_dot}deps"
4093 ac_config_commands="$ac_config_commands depfiles"
4096 am_make=${MAKE-make}
4097 cat > confinc << 'END'
4099 @echo this is the am__doit target
4102 # If we don't find an include directive, just comment out the code.
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4104 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4108 # First try GNU make style include.
4109 echo "include confinc" > confmf
4110 # Ignore all kinds of additional output from 'make'.
4111 case `$am_make -s -f confmf 2> /dev/null` in #(
4112 *the\ am__doit\ target*)
4118 # Now try BSD make style include.
4119 if test "$am__include" = "#"; then
4120 echo '.include "confinc"' > confmf
4121 case `$am_make -s -f confmf 2> /dev/null` in #(
4122 *the\ am__doit\ target*)
4123 am__include=.include
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4132 $as_echo "$_am_result" >&6; }
4133 rm -f confinc confmf
4135 # Check whether --enable-dependency-tracking was given.
4136 if test "${enable_dependency_tracking+set}" = set; then :
4137 enableval=$enable_dependency_tracking;
4140 if test "x$enable_dependency_tracking" != xno; then
4141 am_depcomp="$ac_aux_dir/depcomp"
4145 if test "x$enable_dependency_tracking" != xno; then
4155 depcc="$CC" am_compiler_list=
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4158 $as_echo_n "checking dependency style of $depcc... " >&6; }
4159 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4160 $as_echo_n "(cached) " >&6
4162 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4163 # We make a subdir and do the tests there. Otherwise we can end up
4164 # making bogus files that we don't know about and never remove. For
4165 # instance it was reported that on HP-UX the gcc test will end up
4166 # making a dummy file named 'D' -- because '-MD' means "put the output
4170 # Copy depcomp to subdir because otherwise we won't find it if we're
4171 # using a relative directory.
4172 cp "$am_depcomp" conftest.dir
4174 # We will build objects and dependencies in a subdirectory because
4175 # it helps to detect inapplicable dependency modes. For instance
4176 # both Tru64's cc and ICC support -MD to output dependencies as a
4177 # side effect of compilation, but ICC will put the dependencies in
4178 # the current directory while Tru64 will put them in the object
4182 am_cv_CC_dependencies_compiler_type=none
4183 if test "$am_compiler_list" = ""; then
4184 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4187 case " $depcc " in #(
4188 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4191 for depmode in $am_compiler_list; do
4192 # Setup a source with many dependencies, because some compilers
4193 # like to wrap large dependency lists on column 80 (with \), and
4194 # we should not choose a depcomp mode which is confused by this.
4196 # We need to recreate these files for each test, as the compiler may
4197 # overwrite some of them when testing with obscure command lines.
4198 # This happens at least with the AIX C compiler.
4200 for i in 1 2 3 4 5 6; do
4201 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4202 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4203 # Solaris 10 /bin/sh.
4204 echo '/* dummy */' > sub/conftst$i.h
4206 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4208 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4209 # mode. It turns out that the SunPro C++ compiler does not properly
4210 # handle '-M -o', and we need to detect this. Also, some Intel
4211 # versions had trouble with output in subdirs.
4212 am__obj=sub/conftest.${OBJEXT-o}
4213 am__minus_obj="-o $am__obj"
4216 # This depmode causes a compiler race in universal mode.
4217 test "$am__universal" = false || continue
4220 # After this tag, mechanisms are not by side-effect, so they'll
4221 # only be used when explicitly requested.
4222 if test "x$enable_dependency_tracking" = xyes; then
4228 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4229 # This compiler won't grok '-c -o', but also, the minuso test has
4230 # not run yet. These depmodes are late enough in the game, and
4231 # so weak that their functioning should not be impacted.
4232 am__obj=conftest.${OBJEXT-o}
4237 if depmode=$depmode \
4238 source=sub/conftest.c object=$am__obj \
4239 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4240 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4241 >/dev/null 2>conftest.err &&
4242 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4243 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4244 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4245 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4246 # icc doesn't choke on unknown options, it will just issue warnings
4247 # or remarks (even with -Werror). So we grep stderr for any message
4248 # that says an option was ignored or not supported.
4249 # When given -MP, icc 7.0 and 7.1 complain thusly:
4250 # icc: Command line warning: ignoring option '-M'; no argument required
4251 # The diagnosis changed in icc 8.0:
4252 # icc: Command line remark: option '-MP' not supported
4253 if (grep 'ignoring option' conftest.err ||
4254 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4255 am_cv_CC_dependencies_compiler_type=$depmode
4264 am_cv_CC_dependencies_compiler_type=none
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4269 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4270 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4273 test "x$enable_dependency_tracking" != xno \
4274 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4276 am__fastdepCC_FALSE='#'
4278 am__fastdepCC_TRUE='#'
4279 am__fastdepCC_FALSE=
4289 # By default we simply use the C compiler to build assembly code.
4291 test "${CCAS+set}" = set || CCAS=$CC
4292 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4296 depcc="$CCAS" am_compiler_list=
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4299 $as_echo_n "checking dependency style of $depcc... " >&6; }
4300 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4301 $as_echo_n "(cached) " >&6
4303 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4304 # We make a subdir and do the tests there. Otherwise we can end up
4305 # making bogus files that we don't know about and never remove. For
4306 # instance it was reported that on HP-UX the gcc test will end up
4307 # making a dummy file named 'D' -- because '-MD' means "put the output
4311 # Copy depcomp to subdir because otherwise we won't find it if we're
4312 # using a relative directory.
4313 cp "$am_depcomp" conftest.dir
4315 # We will build objects and dependencies in a subdirectory because
4316 # it helps to detect inapplicable dependency modes. For instance
4317 # both Tru64's cc and ICC support -MD to output dependencies as a
4318 # side effect of compilation, but ICC will put the dependencies in
4319 # the current directory while Tru64 will put them in the object
4323 am_cv_CCAS_dependencies_compiler_type=none
4324 if test "$am_compiler_list" = ""; then
4325 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4330 for depmode in $am_compiler_list; do
4331 # Setup a source with many dependencies, because some compilers
4332 # like to wrap large dependency lists on column 80 (with \), and
4333 # we should not choose a depcomp mode which is confused by this.
4335 # We need to recreate these files for each test, as the compiler may
4336 # overwrite some of them when testing with obscure command lines.
4337 # This happens at least with the AIX C compiler.
4339 for i in 1 2 3 4 5 6; do
4340 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4341 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4342 # Solaris 10 /bin/sh.
4343 echo '/* dummy */' > sub/conftst$i.h
4345 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4347 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4348 # mode. It turns out that the SunPro C++ compiler does not properly
4349 # handle '-M -o', and we need to detect this. Also, some Intel
4350 # versions had trouble with output in subdirs.
4351 am__obj=sub/conftest.${OBJEXT-o}
4352 am__minus_obj="-o $am__obj"
4355 # This depmode causes a compiler race in universal mode.
4356 test "$am__universal" = false || continue
4359 # After this tag, mechanisms are not by side-effect, so they'll
4360 # only be used when explicitly requested.
4361 if test "x$enable_dependency_tracking" = xyes; then
4367 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4368 # This compiler won't grok '-c -o', but also, the minuso test has
4369 # not run yet. These depmodes are late enough in the game, and
4370 # so weak that their functioning should not be impacted.
4371 am__obj=conftest.${OBJEXT-o}
4376 if depmode=$depmode \
4377 source=sub/conftest.c object=$am__obj \
4378 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4379 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4380 >/dev/null 2>conftest.err &&
4381 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4382 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4383 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4384 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4385 # icc doesn't choke on unknown options, it will just issue warnings
4386 # or remarks (even with -Werror). So we grep stderr for any message
4387 # that says an option was ignored or not supported.
4388 # When given -MP, icc 7.0 and 7.1 complain thusly:
4389 # icc: Command line warning: ignoring option '-M'; no argument required
4390 # The diagnosis changed in icc 8.0:
4391 # icc: Command line remark: option '-MP' not supported
4392 if (grep 'ignoring option' conftest.err ||
4393 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4394 am_cv_CCAS_dependencies_compiler_type=$depmode
4403 am_cv_CCAS_dependencies_compiler_type=none
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4408 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4409 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4412 test "x$enable_dependency_tracking" != xno \
4413 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4414 am__fastdepCCAS_TRUE=
4415 am__fastdepCCAS_FALSE='#'
4417 am__fastdepCCAS_TRUE='#'
4418 am__fastdepCCAS_FALSE=
4422 if test "x$CC" != xcc; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4424 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4427 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4429 set dummy $CC; ac_cc=`$as_echo "$2" |
4430 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4431 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4432 $as_echo_n "(cached) " >&6
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4445 # Make sure it works both with $CC and with simple cc.
4446 # We do the test twice because some compilers refuse to overwrite an
4447 # existing .o file with -o, though they will create one.
4448 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4450 if { { case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_try") 2>&5
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; } &&
4460 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4465 $as_echo "$ac_try_echo"; } >&5
4466 (eval "$ac_try") 2>&5
4468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4469 test $ac_status = 0; };
4471 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4472 if test "x$CC" != xcc; then
4473 # Test first that cc exists at all.
4474 if { ac_try='cc -c conftest.$ac_ext >&5'
4475 { { case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480 $as_echo "$ac_try_echo"; } >&5
4481 (eval "$ac_try") 2>&5
4483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484 test $ac_status = 0; }; }; then
4485 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4487 if { { case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492 $as_echo "$ac_try_echo"; } >&5
4493 (eval "$ac_try") 2>&5
4495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496 test $ac_status = 0; } &&
4497 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_try") 2>&5
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; };
4511 # cc exists but doesn't like -o.
4512 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4517 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4519 rm -f core conftest*
4522 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4524 $as_echo "yes" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4529 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4533 # FIXME: we rely on the cache variable name because
4534 # there is no other way.
4536 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4537 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4538 if test "$am_t" != yes; then
4539 # Losing compiler, so override with the script.
4540 # FIXME: It is wrong to rewrite CC.
4541 # But if we don't then we get into trouble of one sort or another.
4542 # A longer-term fix would be to have automake use am__CC in this case,
4543 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4544 CC="$am_aux_dir/compile $CC"
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4551 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4556 macro_version='2.4.2'
4557 macro_revision='1.3337'
4571 ltmain="$ac_aux_dir/ltmain.sh"
4573 # Backslashify metacharacters that are still active within
4574 # double-quoted strings.
4575 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4577 # Same as above, but do not quote variable references.
4578 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4580 # Sed substitution to delay expansion of an escaped shell variable in a
4581 # double_quote_subst'ed string.
4582 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4584 # Sed substitution to delay expansion of an escaped single quote.
4585 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4587 # Sed substitution to avoid accidental globbing in evaled expressions
4588 no_glob_subst='s/\*/\\\*/g'
4590 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4591 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4595 $as_echo_n "checking how to print strings... " >&6; }
4596 # Test print first, because it will be a builtin if present.
4597 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4598 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4600 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4603 # Use this function as a fallback that always works.
4604 func_fallback_echo ()
4606 eval 'cat <<_LTECHO_EOF
4610 ECHO='func_fallback_echo'
4613 # func_echo_all arg...
4614 # Invoke $ECHO with all args, space-separated.
4621 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4622 $as_echo "printf" >&6; } ;;
4623 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4624 $as_echo "print -r" >&6; } ;;
4625 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4626 $as_echo "cat" >&6; } ;;
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4643 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4644 if ${ac_cv_path_SED+:} false; then :
4645 $as_echo_n "(cached) " >&6
4647 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4648 for ac_i in 1 2 3 4 5 6 7; do
4649 ac_script="$ac_script$as_nl$ac_script"
4651 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4652 { ac_script=; unset ac_script;}
4653 if test -z "$SED"; then
4654 ac_path_SED_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in sed gsed; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4664 as_fn_executable_p "$ac_path_SED" || continue
4665 # Check for GNU ac_path_SED and select it if it is found.
4666 # Check for GNU $ac_path_SED
4667 case `"$ac_path_SED" --version 2>&1` in
4669 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4672 $as_echo_n 0123456789 >"conftest.in"
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 $as_echo '' >> "conftest.nl"
4679 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_SED_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_SED="$ac_path_SED"
4685 ac_path_SED_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 $ac_path_SED_found && break 3
4698 if test -z "$ac_cv_path_SED"; then
4699 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4707 $as_echo "$ac_cv_path_SED" >&6; }
4708 SED="$ac_cv_path_SED"
4711 test -z "$SED" && SED=sed
4712 Xsed="$SED -e 1s/^X//"
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4725 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4726 if ${ac_cv_path_GREP+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 if test -z "$GREP"; then
4730 ac_path_GREP_found=false
4731 # Loop through the user's path and test for each of PROGNAME-LIST
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4736 test -z "$as_dir" && as_dir=.
4737 for ac_prog in grep ggrep; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4740 as_fn_executable_p "$ac_path_GREP" || continue
4741 # Check for GNU ac_path_GREP and select it if it is found.
4742 # Check for GNU $ac_path_GREP
4743 case `"$ac_path_GREP" --version 2>&1` in
4745 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4748 $as_echo_n 0123456789 >"conftest.in"
4751 cat "conftest.in" "conftest.in" >"conftest.tmp"
4752 mv "conftest.tmp" "conftest.in"
4753 cp "conftest.in" "conftest.nl"
4754 $as_echo 'GREP' >> "conftest.nl"
4755 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757 as_fn_arith $ac_count + 1 && ac_count=$as_val
4758 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4759 # Best one so far, save it but keep looking for a better one
4760 ac_cv_path_GREP="$ac_path_GREP"
4761 ac_path_GREP_max=$ac_count
4763 # 10*(2^10) chars as input seems more than enough
4764 test $ac_count -gt 10 && break
4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769 $ac_path_GREP_found && break 3
4774 if test -z "$ac_cv_path_GREP"; then
4775 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4778 ac_cv_path_GREP=$GREP
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4783 $as_echo "$ac_cv_path_GREP" >&6; }
4784 GREP="$ac_cv_path_GREP"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4788 $as_echo_n "checking for egrep... " >&6; }
4789 if ${ac_cv_path_EGREP+:} false; then :
4790 $as_echo_n "(cached) " >&6
4792 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4793 then ac_cv_path_EGREP="$GREP -E"
4795 if test -z "$EGREP"; then
4796 ac_path_EGREP_found=false
4797 # Loop through the user's path and test for each of PROGNAME-LIST
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4802 test -z "$as_dir" && as_dir=.
4803 for ac_prog in egrep; do
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4806 as_fn_executable_p "$ac_path_EGREP" || continue
4807 # Check for GNU ac_path_EGREP and select it if it is found.
4808 # Check for GNU $ac_path_EGREP
4809 case `"$ac_path_EGREP" --version 2>&1` in
4811 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4814 $as_echo_n 0123456789 >"conftest.in"
4817 cat "conftest.in" "conftest.in" >"conftest.tmp"
4818 mv "conftest.tmp" "conftest.in"
4819 cp "conftest.in" "conftest.nl"
4820 $as_echo 'EGREP' >> "conftest.nl"
4821 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4823 as_fn_arith $ac_count + 1 && ac_count=$as_val
4824 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4825 # Best one so far, save it but keep looking for a better one
4826 ac_cv_path_EGREP="$ac_path_EGREP"
4827 ac_path_EGREP_max=$ac_count
4829 # 10*(2^10) chars as input seems more than enough
4830 test $ac_count -gt 10 && break
4832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4835 $ac_path_EGREP_found && break 3
4840 if test -z "$ac_cv_path_EGREP"; then
4841 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4844 ac_cv_path_EGREP=$EGREP
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4850 $as_echo "$ac_cv_path_EGREP" >&6; }
4851 EGREP="$ac_cv_path_EGREP"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4855 $as_echo_n "checking for fgrep... " >&6; }
4856 if ${ac_cv_path_FGREP+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4860 then ac_cv_path_FGREP="$GREP -F"
4862 if test -z "$FGREP"; then
4863 ac_path_FGREP_found=false
4864 # Loop through the user's path and test for each of PROGNAME-LIST
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4869 test -z "$as_dir" && as_dir=.
4870 for ac_prog in fgrep; do
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4873 as_fn_executable_p "$ac_path_FGREP" || continue
4874 # Check for GNU ac_path_FGREP and select it if it is found.
4875 # Check for GNU $ac_path_FGREP
4876 case `"$ac_path_FGREP" --version 2>&1` in
4878 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4881 $as_echo_n 0123456789 >"conftest.in"
4884 cat "conftest.in" "conftest.in" >"conftest.tmp"
4885 mv "conftest.tmp" "conftest.in"
4886 cp "conftest.in" "conftest.nl"
4887 $as_echo 'FGREP' >> "conftest.nl"
4888 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4890 as_fn_arith $ac_count + 1 && ac_count=$as_val
4891 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4892 # Best one so far, save it but keep looking for a better one
4893 ac_cv_path_FGREP="$ac_path_FGREP"
4894 ac_path_FGREP_max=$ac_count
4896 # 10*(2^10) chars as input seems more than enough
4897 test $ac_count -gt 10 && break
4899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902 $ac_path_FGREP_found && break 3
4907 if test -z "$ac_cv_path_FGREP"; then
4908 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911 ac_cv_path_FGREP=$FGREP
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4917 $as_echo "$ac_cv_path_FGREP" >&6; }
4918 FGREP="$ac_cv_path_FGREP"
4921 test -z "$GREP" && GREP=grep
4941 # Check whether --with-gnu-ld was given.
4942 if test "${with_gnu_ld+set}" = set; then :
4943 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4949 if test "$GCC" = yes; then
4950 # Check if gcc -print-prog-name=ld gives a path.
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4952 $as_echo_n "checking for ld used by $CC... " >&6; }
4955 # gcc leaves a trailing carriage return which upsets mingw
4956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4961 # Accept absolute paths.
4963 re_direlt='/[^/][^/]*/\.\./'
4964 # Canonicalize the pathname of ld
4965 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4966 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4967 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4969 test -z "$LD" && LD="$ac_prog"
4972 # If it fails, then pretend we aren't using GCC.
4976 # If it is relative, then search for the first ld in PATH.
4980 elif test "$with_gnu_ld" = yes; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4982 $as_echo_n "checking for GNU ld... " >&6; }
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4985 $as_echo_n "checking for non-GNU ld... " >&6; }
4987 if ${lt_cv_path_LD+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 if test -z "$LD"; then
4991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4992 for ac_dir in $PATH; do
4994 test -z "$ac_dir" && ac_dir=.
4995 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4996 lt_cv_path_LD="$ac_dir/$ac_prog"
4997 # Check to see if the program is GNU ld. I'd rather use --version,
4998 # but apparently some variants of GNU ld only accept -v.
4999 # Break only if it was the GNU/non-GNU ld that we prefer.
5000 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5001 *GNU* | *'with BFD'*)
5002 test "$with_gnu_ld" != no && break
5005 test "$with_gnu_ld" != yes && break
5012 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5017 if test -n "$LD"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5019 $as_echo "$LD" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5024 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5027 if ${lt_cv_prog_gnu_ld+:} false; then :
5028 $as_echo_n "(cached) " >&6
5030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5031 case `$LD -v 2>&1 </dev/null` in
5032 *GNU* | *'with BFD'*)
5033 lt_cv_prog_gnu_ld=yes
5036 lt_cv_prog_gnu_ld=no
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5042 with_gnu_ld=$lt_cv_prog_gnu_ld
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5053 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5054 if ${lt_cv_path_NM+:} false; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$NM"; then
5058 # Let the user override the test.
5061 lt_nm_to_check="${ac_tool_prefix}nm"
5062 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5063 lt_nm_to_check="$lt_nm_to_check nm"
5065 for lt_tmp_nm in $lt_nm_to_check; do
5066 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5067 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5069 test -z "$ac_dir" && ac_dir=.
5070 tmp_nm="$ac_dir/$lt_tmp_nm"
5071 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5072 # Check to see if the nm accepts a BSD-compat flag.
5073 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5074 # nm: unknown option "B" ignored
5075 # Tru64's nm complains that /dev/null is an invalid object file
5076 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5077 */dev/null* | *'Invalid file or object type'*)
5078 lt_cv_path_NM="$tmp_nm -B"
5082 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5084 lt_cv_path_NM="$tmp_nm -p"
5088 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5089 continue # so that we can try to find one that supports BSD flags
5098 : ${lt_cv_path_NM=no}
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5102 $as_echo "$lt_cv_path_NM" >&6; }
5103 if test "$lt_cv_path_NM" != "no"; then
5106 # Didn't find any BSD compatible name lister, look for dumpbin.
5107 if test -n "$DUMPBIN"; then :
5108 # Let the user override the test.
5110 if test -n "$ac_tool_prefix"; then
5111 for ac_prog in dumpbin "link -dump"
5113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_DUMPBIN+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 if test -n "$DUMPBIN"; then
5121 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 DUMPBIN=$ac_cv_prog_DUMPBIN
5141 if test -n "$DUMPBIN"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5143 $as_echo "$DUMPBIN" >&6; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 test -n "$DUMPBIN" && break
5153 if test -z "$DUMPBIN"; then
5154 ac_ct_DUMPBIN=$DUMPBIN
5155 for ac_prog in dumpbin "link -dump"
5157 # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5162 $as_echo_n "(cached) " >&6
5164 if test -n "$ac_ct_DUMPBIN"; then
5165 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5185 if test -n "$ac_ct_DUMPBIN"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5187 $as_echo "$ac_ct_DUMPBIN" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5194 test -n "$ac_ct_DUMPBIN" && break
5197 if test "x$ac_ct_DUMPBIN" = x; then
5200 case $cross_compiling:$ac_tool_warned in
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5204 ac_tool_warned=yes ;;
5206 DUMPBIN=$ac_ct_DUMPBIN
5210 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5212 DUMPBIN="$DUMPBIN -symbols"
5220 if test "$DUMPBIN" != ":"; then
5224 test -z "$NM" && NM=nm
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5232 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5233 if ${lt_cv_nm_interface+:} false; then :
5234 $as_echo_n "(cached) " >&6
5236 lt_cv_nm_interface="BSD nm"
5237 echo "int some_variable = 0;" > conftest.$ac_ext
5238 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5239 (eval "$ac_compile" 2>conftest.err)
5240 cat conftest.err >&5
5241 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5242 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5243 cat conftest.err >&5
5244 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5245 cat conftest.out >&5
5246 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5247 lt_cv_nm_interface="MS dumpbin"
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5252 $as_echo "$lt_cv_nm_interface" >&6; }
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5255 $as_echo_n "checking whether ln -s works... " >&6; }
5257 if test "$LN_S" = "ln -s"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5259 $as_echo "yes" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5262 $as_echo "no, using $LN_S" >&6; }
5265 # find the maximum length of command line arguments
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5267 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5268 if ${lt_cv_sys_max_cmd_len+:} false; then :
5269 $as_echo_n "(cached) " >&6
5276 # On DJGPP, this test can blow up pretty badly due to problems in libc
5277 # (any single argument exceeding 2000 bytes causes a buffer overrun
5278 # during glob expansion). Even if it were fixed, the result of this
5279 # check would be larger than it should be.
5280 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5284 # Under GNU Hurd, this test is not required because there is
5285 # no limit to the length of command line arguments.
5286 # Libtool will interpret -1 as no limit whatsoever
5287 lt_cv_sys_max_cmd_len=-1;
5290 cygwin* | mingw* | cegcc*)
5291 # On Win9x/ME, this test blows up -- it succeeds, but takes
5292 # about 5 minutes as the teststring grows exponentially.
5293 # Worse, since 9x/ME are not pre-emptively multitasking,
5294 # you end up with a "frozen" computer, even though with patience
5295 # the test eventually succeeds (with a max line length of 256k).
5296 # Instead, let's just punt: use the minimum linelength reported by
5297 # all of the supported platforms: 8192 (on NT/2K/XP).
5298 lt_cv_sys_max_cmd_len=8192;
5302 # On MiNT this can take a long time and run out of memory.
5303 lt_cv_sys_max_cmd_len=8192;
5307 # On AmigaOS with pdksh, this test takes hours, literally.
5308 # So we just punt and use a minimum line length of 8192.
5309 lt_cv_sys_max_cmd_len=8192;
5312 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5313 # This has been around since 386BSD, at least. Likely further.
5314 if test -x /sbin/sysctl; then
5315 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5316 elif test -x /usr/sbin/sysctl; then
5317 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5319 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5321 # And add a safety zone
5322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5327 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5328 lt_cv_sys_max_cmd_len=196608
5332 # The test takes a long time on OS/2.
5333 lt_cv_sys_max_cmd_len=8192
5337 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5338 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5339 # nice to cause kernel panics so lets avoid the loop below.
5340 # First set a reasonable default.
5341 lt_cv_sys_max_cmd_len=16384
5343 if test -x /sbin/sysconfig; then
5344 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5345 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5350 lt_cv_sys_max_cmd_len=102400
5352 sysv5* | sco5v6* | sysv4.2uw2*)
5353 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5354 if test -n "$kargmax"; then
5355 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5357 lt_cv_sys_max_cmd_len=32768
5361 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5362 if test -n "$lt_cv_sys_max_cmd_len"; then
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5366 # Make teststring a little bigger before we do anything with it.
5367 # a 1K string should be a reasonable start.
5368 for i in 1 2 3 4 5 6 7 8 ; do
5369 teststring=$teststring$teststring
5371 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5372 # If test is not a shell built-in, we'll probably end up computing a
5373 # maximum length that is only half of the actual maximum length, but
5375 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5376 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5377 test $i != 17 # 1/2 MB should be enough
5380 teststring=$teststring$teststring
5382 # Only check the string length outside the loop.
5383 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5385 # Add a significant safety factor because C++ compilers can tack on
5386 # massive amounts of additional arguments before passing them to the
5387 # linker. It appears as though 1/2 is a usable value.
5388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5395 if test -n $lt_cv_sys_max_cmd_len ; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5397 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5400 $as_echo "none" >&6; }
5402 max_cmd_len=$lt_cv_sys_max_cmd_len
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5414 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5415 # Try some XSI features
5418 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5420 && eval 'test $(( 1 + 1 )) -eq 2 \
5421 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5424 $as_echo "$xsi_shell" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5428 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5430 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5432 && lt_shell_append=yes
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5434 $as_echo "$lt_shell_append" >&6; }
5437 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5447 # test EBCDIC or ASCII
5448 case `echo X|tr X '\101'` in
5449 A) # ASCII based system
5450 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5451 lt_SP2NL='tr \040 \012'
5452 lt_NL2SP='tr \015\012 \040\040'
5454 *) # EBCDIC based system
5455 lt_SP2NL='tr \100 \n'
5456 lt_NL2SP='tr \r\n \100\100'
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5469 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5470 if ${lt_cv_to_host_file_cmd+:} false; then :
5471 $as_echo_n "(cached) " >&6
5476 *-*-mingw* ) # actually msys
5477 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5480 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5482 * ) # otherwise, assume *nix
5483 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5489 *-*-mingw* ) # actually msys
5490 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5493 lt_cv_to_host_file_cmd=func_convert_file_noop
5495 * ) # otherwise, assume *nix
5496 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5500 * ) # unhandled hosts (and "normal" native builds)
5501 lt_cv_to_host_file_cmd=func_convert_file_noop
5507 to_host_file_cmd=$lt_cv_to_host_file_cmd
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5509 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5516 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5517 if ${lt_cv_to_tool_file_cmd+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 #assume ordinary cross tools, or native build.
5521 lt_cv_to_tool_file_cmd=func_convert_file_noop
5525 *-*-mingw* ) # actually msys
5526 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5534 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5536 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5543 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5544 if ${lt_cv_ld_reload_flag+:} false; then :
5545 $as_echo_n "(cached) " >&6
5547 lt_cv_ld_reload_flag='-r'
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5550 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5551 reload_flag=$lt_cv_ld_reload_flag
5552 case $reload_flag in
5554 *) reload_flag=" $reload_flag" ;;
5556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5558 cygwin* | mingw* | pw32* | cegcc*)
5559 if test "$GCC" != yes; then
5564 if test "$GCC" = yes; then
5565 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5567 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5580 if test -n "$ac_tool_prefix"; then
5581 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5582 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_OBJDUMP+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 if test -n "$OBJDUMP"; then
5589 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 OBJDUMP=$ac_cv_prog_OBJDUMP
5609 if test -n "$OBJDUMP"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5611 $as_echo "$OBJDUMP" >&6; }
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5619 if test -z "$ac_cv_prog_OBJDUMP"; then
5620 ac_ct_OBJDUMP=$OBJDUMP
5621 # Extract the first word of "objdump", so it can be a program name with args.
5622 set dummy objdump; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5626 $as_echo_n "(cached) " >&6
5628 if test -n "$ac_ct_OBJDUMP"; then
5629 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5649 if test -n "$ac_ct_OBJDUMP"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5651 $as_echo "$ac_ct_OBJDUMP" >&6; }
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5657 if test "x$ac_ct_OBJDUMP" = x; then
5660 case $cross_compiling:$ac_tool_warned in
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5664 ac_tool_warned=yes ;;
5666 OBJDUMP=$ac_ct_OBJDUMP
5669 OBJDUMP="$ac_cv_prog_OBJDUMP"
5672 test -z "$OBJDUMP" && OBJDUMP=objdump
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5683 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5684 if ${lt_cv_deplibs_check_method+:} false; then :
5685 $as_echo_n "(cached) " >&6
5687 lt_cv_file_magic_cmd='$MAGIC_CMD'
5688 lt_cv_file_magic_test_file=
5689 lt_cv_deplibs_check_method='unknown'
5690 # Need to set the preceding variable on all platforms that support
5691 # interlibrary dependencies.
5692 # 'none' -- dependencies not supported.
5693 # `unknown' -- same as none, but documents that we really don't know.
5694 # 'pass_all' -- all dependencies passed with no checks.
5695 # 'test_compile' -- check by making test program.
5696 # 'file_magic [[regex]]' -- check by looking for files in library path
5697 # which responds to the $file_magic_cmd with a given extended regex.
5698 # If you have `file' or equivalent on your system and you're not sure
5699 # whether `pass_all' will *always* work, you probably want this one.
5703 lt_cv_deplibs_check_method=pass_all
5707 lt_cv_deplibs_check_method=pass_all
5711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5712 lt_cv_file_magic_cmd='/usr/bin/file -L'
5713 lt_cv_file_magic_test_file=/shlib/libc.so
5717 # func_win32_libid is a shell function defined in ltmain.sh
5718 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5719 lt_cv_file_magic_cmd='func_win32_libid'
5723 # Base MSYS/MinGW do not provide the 'file' command needed by
5724 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5725 # unless we find 'file', for example because we are cross-compiling.
5726 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5727 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5728 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5729 lt_cv_file_magic_cmd='func_win32_libid'
5731 # Keep this pattern in sync with the one in func_win32_libid.
5732 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5733 lt_cv_file_magic_cmd='$OBJDUMP -f'
5738 # use the weaker test based on 'objdump'. See mingw*.
5739 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5740 lt_cv_file_magic_cmd='$OBJDUMP -f'
5743 darwin* | rhapsody*)
5744 lt_cv_deplibs_check_method=pass_all
5747 freebsd* | dragonfly*)
5748 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5751 # Not sure whether the presence of OpenBSD here was a mistake.
5752 # Let's accept both of them until this is cleared up.
5753 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5754 lt_cv_file_magic_cmd=/usr/bin/file
5755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5759 lt_cv_deplibs_check_method=pass_all
5764 lt_cv_deplibs_check_method=pass_all
5768 lt_cv_deplibs_check_method=pass_all
5771 hpux10.20* | hpux11*)
5772 lt_cv_file_magic_cmd=/usr/bin/file
5775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5776 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5780 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5784 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5790 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5794 irix5* | irix6* | nonstopux*)
5796 *-32|*"-32 ") libmagic=32-bit;;
5797 *-n32|*"-n32 ") libmagic=N32;;
5798 *-64|*"-64 ") libmagic=64-bit;;
5799 *) libmagic=never-match;;
5801 lt_cv_deplibs_check_method=pass_all
5804 # This must be glibc/ELF.
5805 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5806 lt_cv_deplibs_check_method=pass_all
5810 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5819 lt_cv_file_magic_cmd=/usr/bin/file
5820 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5824 lt_cv_deplibs_check_method=pass_all
5828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5835 osf3* | osf4* | osf5*)
5836 lt_cv_deplibs_check_method=pass_all
5840 lt_cv_deplibs_check_method=pass_all
5844 lt_cv_deplibs_check_method=pass_all
5847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5848 lt_cv_deplibs_check_method=pass_all
5852 case $host_vendor in
5854 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]'
5855 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5858 lt_cv_deplibs_check_method=pass_all
5861 lt_cv_file_magic_cmd='/bin/file'
5862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5865 lt_cv_file_magic_cmd='/bin/file'
5866 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5867 lt_cv_file_magic_test_file=/lib/libc.so
5870 lt_cv_deplibs_check_method=pass_all
5873 lt_cv_deplibs_check_method=pass_all
5879 lt_cv_deplibs_check_method=pass_all
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5885 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5889 if test "$build" = "$host"; then
5892 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5895 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5901 file_magic_cmd=$lt_cv_file_magic_cmd
5902 deplibs_check_method=$lt_cv_deplibs_check_method
5903 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5926 if test -n "$ac_tool_prefix"; then
5927 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_DLLTOOL+:} false; then :
5932 $as_echo_n "(cached) " >&6
5934 if test -n "$DLLTOOL"; then
5935 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 DLLTOOL=$ac_cv_prog_DLLTOOL
5955 if test -n "$DLLTOOL"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5957 $as_echo "$DLLTOOL" >&6; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5965 if test -z "$ac_cv_prog_DLLTOOL"; then
5966 ac_ct_DLLTOOL=$DLLTOOL
5967 # Extract the first word of "dlltool", so it can be a program name with args.
5968 set dummy dlltool; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5972 $as_echo_n "(cached) " >&6
5974 if test -n "$ac_ct_DLLTOOL"; then
5975 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5995 if test -n "$ac_ct_DLLTOOL"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5997 $as_echo "$ac_ct_DLLTOOL" >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6003 if test "x$ac_ct_DLLTOOL" = x; then
6006 case $cross_compiling:$ac_tool_warned in
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010 ac_tool_warned=yes ;;
6012 DLLTOOL=$ac_ct_DLLTOOL
6015 DLLTOOL="$ac_cv_prog_DLLTOOL"
6018 test -z "$DLLTOOL" && DLLTOOL=dlltool
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6030 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6031 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6032 $as_echo_n "(cached) " >&6
6034 lt_cv_sharedlib_from_linklib_cmd='unknown'
6037 cygwin* | mingw* | pw32* | cegcc*)
6038 # two different shell functions defined in ltmain.sh
6039 # decide which to use based on capabilities of $DLLTOOL
6040 case `$DLLTOOL --help 2>&1` in
6041 *--identify-strict*)
6042 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6045 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6050 # fallback: assume linklib IS sharedlib
6051 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6057 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6058 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6059 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6068 if test -n "$ac_tool_prefix"; then
6071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_AR+:} false; then :
6076 $as_echo_n "(cached) " >&6
6078 if test -n "$AR"; then
6079 ac_cv_prog_AR="$AR" # Let the user override the test.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 if test -n "$AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6101 $as_echo "$AR" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6108 test -n "$AR" && break
6111 if test -z "$AR"; then
6115 # Extract the first word of "$ac_prog", so it can be a program name with args.
6116 set dummy $ac_prog; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6120 $as_echo_n "(cached) " >&6
6122 if test -n "$ac_ct_AR"; then
6123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6132 ac_cv_prog_ac_ct_AR="$ac_prog"
6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6143 if test -n "$ac_ct_AR"; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6145 $as_echo "$ac_ct_AR" >&6; }
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6152 test -n "$ac_ct_AR" && break
6155 if test "x$ac_ct_AR" = x; then
6158 case $cross_compiling:$ac_tool_warned in
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6182 $as_echo_n "checking for archiver @FILE support... " >&6; }
6183 if ${lt_cv_ar_at_file+:} false; then :
6184 $as_echo_n "(cached) " >&6
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199 echo conftest.$ac_objext > conftest.lst
6200 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6202 (eval $lt_ar_try) 2>&5
6204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205 test $ac_status = 0; }
6206 if test "$ac_status" -eq 0; then
6207 # Ensure the archiver fails upon bogus file names.
6208 rm -f conftest.$ac_objext libconftest.a
6209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6210 (eval $lt_ar_try) 2>&5
6212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }
6214 if test "$ac_status" -ne 0; then
6218 rm -f conftest.* libconftest.a
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6225 $as_echo "$lt_cv_ar_at_file" >&6; }
6227 if test "x$lt_cv_ar_at_file" = xno; then
6230 archiver_list_spec=$lt_cv_ar_at_file
6239 if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6241 set dummy ${ac_tool_prefix}strip; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_prog_STRIP+:} false; then :
6245 $as_echo_n "(cached) " >&6
6247 if test -n "$STRIP"; then
6248 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 STRIP=$ac_cv_prog_STRIP
6268 if test -n "$STRIP"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6270 $as_echo "$STRIP" >&6; }
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6278 if test -z "$ac_cv_prog_STRIP"; then
6280 # Extract the first word of "strip", so it can be a program name with args.
6281 set dummy strip; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6285 $as_echo_n "(cached) " >&6
6287 if test -n "$ac_ct_STRIP"; then
6288 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_ac_ct_STRIP="strip"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6308 if test -n "$ac_ct_STRIP"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6310 $as_echo "$ac_ct_STRIP" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6316 if test "x$ac_ct_STRIP" = x; then
6319 case $cross_compiling:$ac_tool_warned in
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323 ac_tool_warned=yes ;;
6328 STRIP="$ac_cv_prog_STRIP"
6331 test -z "$STRIP" && STRIP=:
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_RANLIB+:} false; then :
6344 $as_echo_n "(cached) " >&6
6346 if test -n "$RANLIB"; then
6347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 RANLIB=$ac_cv_prog_RANLIB
6367 if test -n "$RANLIB"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6369 $as_echo "$RANLIB" >&6; }
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6377 if test -z "$ac_cv_prog_RANLIB"; then
6378 ac_ct_RANLIB=$RANLIB
6379 # Extract the first word of "ranlib", so it can be a program name with args.
6380 set dummy ranlib; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6384 $as_echo_n "(cached) " >&6
6386 if test -n "$ac_ct_RANLIB"; then
6387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_ac_ct_RANLIB="ranlib"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6407 if test -n "$ac_ct_RANLIB"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6409 $as_echo "$ac_ct_RANLIB" >&6; }
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6415 if test "x$ac_ct_RANLIB" = x; then
6418 case $cross_compiling:$ac_tool_warned in
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6422 ac_tool_warned=yes ;;
6424 RANLIB=$ac_ct_RANLIB
6427 RANLIB="$ac_cv_prog_RANLIB"
6430 test -z "$RANLIB" && RANLIB=:
6437 # Determine commands to create old-style static archives.
6438 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6439 old_postinstall_cmds='chmod 644 $oldlib'
6440 old_postuninstall_cmds=
6442 if test -n "$RANLIB"; then
6445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6451 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6456 lock_old_archive_extraction=yes ;;
6458 lock_old_archive_extraction=no ;;
6499 # If no C compiler was specified, use CC.
6502 # If no C compiler flags were specified, use CFLAGS.
6503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6505 # Allow CC to be a program name with arguments.
6509 # Check for command to grab the raw symbol name followed by C symbol from nm.
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6511 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6512 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6513 $as_echo_n "(cached) " >&6
6516 # These are sane defaults that work on at least a few old systems.
6517 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6519 # Character class describing NM global symbol codes.
6520 symcode='[BCDEGRST]'
6522 # Regexp to match symbols that can be accessed directly from C.
6523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6525 # Define system-specific variables.
6530 cygwin* | mingw* | pw32* | cegcc*)
6531 symcode='[ABCDGISTW]'
6534 if test "$host_cpu" = ia64; then
6535 symcode='[ABCDEGRST]'
6539 symcode='[BCDEGRST]'
6542 symcode='[BCDEGQRST]'
6553 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6561 # If we're using GNU nm, then use its standard symbol codes.
6562 case `$NM -V 2>&1` in
6563 *GNU* | *'with BFD'*)
6564 symcode='[ABCDGIRSTW]' ;;
6567 # Transform an extracted symbol line into a proper C declaration.
6568 # Some systems (esp. on ia64) link data and code symbols differently,
6569 # so use this general approach.
6570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6572 # Transform an extracted symbol line into symbol name and symbol address
6573 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6574 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'"
6576 # Handle CRLF in mingw tool chain
6580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6584 # Try without a prefix underscore, then with it.
6585 for ac_symprfx in "" "_"; do
6587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6588 symxfrm="\\1 $ac_symprfx\\2 \\2"
6590 # Write the raw and C identifiers.
6591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6592 # Fake it for dumpbin and say T for any non-static function
6593 # and D for any global variable.
6594 # Also find C++ and __fastcall symbols from MSVC++,
6595 # which start with @ or ?.
6596 lt_cv_sys_global_symbol_pipe="$AWK '"\
6597 " {last_section=section; section=\$ 3};"\
6598 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6599 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6600 " \$ 0!~/External *\|/{next};"\
6601 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6602 " {if(hide[section]) next};"\
6603 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6604 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6605 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6606 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6607 " ' prfx=^$ac_symprfx"
6609 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6611 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6613 # Check to see that the pipe works correctly.
6617 cat > conftest.$ac_ext <<_LT_EOF
6622 void nm_test_func(void);
6623 void nm_test_func(void){}
6627 int main(){nm_test_var='a';nm_test_func();return(0);}
6630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6631 (eval $ac_compile) 2>&5
6633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634 test $ac_status = 0; }; then
6635 # Now try to grab the symbols.
6637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6638 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641 test $ac_status = 0; } && test -s "$nlist"; then
6642 # Try sorting and uniquifying the output.
6643 if sort "$nlist" | uniq > "$nlist"T; then
6644 mv -f "$nlist"T "$nlist"
6649 # Make sure that we snagged all the symbols we need.
6650 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6651 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6652 cat <<_LT_EOF > conftest.$ac_ext
6653 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6654 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6655 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6656 relocations are performed -- see ld's documentation on pseudo-relocs. */
6657 # define LT_DLSYM_CONST
6658 #elif defined(__osf__)
6659 /* This system does not cope well with relocations in const data. */
6660 # define LT_DLSYM_CONST
6662 # define LT_DLSYM_CONST const
6670 # Now generate the symbol file.
6671 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6673 cat <<_LT_EOF >> conftest.$ac_ext
6675 /* The mapping between symbol names and symbols. */
6676 LT_DLSYM_CONST struct {
6680 lt__PROGRAM__LTX_preloaded_symbols[] =
6682 { "@PROGRAM@", (void *) 0 },
6684 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6685 cat <<\_LT_EOF >> conftest.$ac_ext
6689 /* This works around a problem in FreeBSD linker */
6690 #ifdef FREEBSD_WORKAROUND
6691 static const void *lt_preloaded_setup() {
6692 return lt__PROGRAM__LTX_preloaded_symbols;
6700 # Now try linking the two files.
6701 mv conftest.$ac_objext conftstm.$ac_objext
6702 lt_globsym_save_LIBS=$LIBS
6703 lt_globsym_save_CFLAGS=$CFLAGS
6704 LIBS="conftstm.$ac_objext"
6705 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6707 (eval $ac_link) 2>&5
6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6713 LIBS=$lt_globsym_save_LIBS
6714 CFLAGS=$lt_globsym_save_CFLAGS
6716 echo "cannot find nm_test_func in $nlist" >&5
6719 echo "cannot find nm_test_var in $nlist" >&5
6722 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6725 echo "$progname: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 rm -rf conftest* conftst*
6730 # Do not use the global_symbol_pipe unless it works.
6731 if test "$pipe_works" = yes; then
6734 lt_cv_sys_global_symbol_pipe=
6740 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6741 lt_cv_sys_global_symbol_to_cdecl=
6743 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6745 $as_echo "failed" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6748 $as_echo "ok" >&6; }
6751 # Response file support.
6752 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6753 nm_file_list_spec='@'
6754 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6755 nm_file_list_spec='@'
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6785 $as_echo_n "checking for sysroot... " >&6; }
6787 # Check whether --with-sysroot was given.
6788 if test "${with_sysroot+set}" = set; then :
6789 withval=$with_sysroot;
6796 case ${with_sysroot} in #(
6798 if test "$GCC" = yes; then
6799 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6803 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6809 $as_echo "${with_sysroot}" >&6; }
6810 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6815 $as_echo "${lt_sysroot:-no}" >&6; }
6821 # Check whether --enable-libtool-lock was given.
6822 if test "${enable_libtool_lock+set}" = set; then :
6823 enableval=$enable_libtool_lock;
6826 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6828 # Some flags need to be propagated to the compiler or linker for good
6832 # Find out which ABI we are using.
6833 echo 'int i;' > conftest.$ac_ext
6834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6835 (eval $ac_compile) 2>&5
6837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838 test $ac_status = 0; }; then
6839 case `/usr/bin/file conftest.$ac_objext` in
6851 # Find out which ABI we are using.
6852 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854 (eval $ac_compile) 2>&5
6856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857 test $ac_status = 0; }; then
6858 if test "$lt_cv_prog_gnu_ld" = yes; then
6859 case `/usr/bin/file conftest.$ac_objext` in
6861 LD="${LD-ld} -melf32bsmip"
6864 LD="${LD-ld} -melf32bmipn32"
6867 LD="${LD-ld} -melf64bmip"
6871 case `/usr/bin/file conftest.$ac_objext` in
6887 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6888 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6889 # Find out which ABI we are using.
6890 echo 'int i;' > conftest.$ac_ext
6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892 (eval $ac_compile) 2>&5
6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895 test $ac_status = 0; }; then
6896 case `/usr/bin/file conftest.o` in
6899 x86_64-*kfreebsd*-gnu)
6900 LD="${LD-ld} -m elf_i386_fbsd"
6903 case `/usr/bin/file conftest.o` in
6905 LD="${LD-ld} -m elf32_x86_64"
6908 LD="${LD-ld} -m elf_i386"
6912 ppc64-*linux*|powerpc64-*linux*)
6913 LD="${LD-ld} -m elf32ppclinux"
6916 LD="${LD-ld} -m elf_s390"
6919 LD="${LD-ld} -m elf32_sparc"
6925 x86_64-*kfreebsd*-gnu)
6926 LD="${LD-ld} -m elf_x86_64_fbsd"
6929 LD="${LD-ld} -m elf_x86_64"
6931 ppc*-*linux*|powerpc*-*linux*)
6932 LD="${LD-ld} -m elf64ppc"
6934 s390*-*linux*|s390*-*tpf*)
6935 LD="${LD-ld} -m elf64_s390"
6938 LD="${LD-ld} -m elf64_sparc"
6948 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6949 SAVE_CFLAGS="$CFLAGS"
6950 CFLAGS="$CFLAGS -belf"
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6952 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6953 if ${lt_cv_cc_needs_belf+:} false; then :
6954 $as_echo_n "(cached) " >&6
6957 ac_cpp='$CPP $CPPFLAGS'
6958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6973 if ac_fn_c_try_link "$LINENO"; then :
6974 lt_cv_cc_needs_belf=yes
6976 lt_cv_cc_needs_belf=no
6978 rm -f core conftest.err conftest.$ac_objext \
6979 conftest$ac_exeext conftest.$ac_ext
6981 ac_cpp='$CPP $CPPFLAGS'
6982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6988 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6989 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6990 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6991 CFLAGS="$SAVE_CFLAGS"
6995 # Find out which ABI we are using.
6996 echo 'int i;' > conftest.$ac_ext
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998 (eval $ac_compile) 2>&5
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; }; then
7002 case `/usr/bin/file conftest.o` in
7004 case $lt_cv_prog_gnu_ld in
7008 LD="${LD-ld} -m elf_x86_64"
7011 LD="${LD-ld} -m elf64_sparc"
7014 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7015 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7020 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7032 need_locks="$enable_libtool_lock"
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}mt; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7040 $as_echo_n "(cached) " >&6
7042 if test -n "$MANIFEST_TOOL"; then
7043 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7063 if test -n "$MANIFEST_TOOL"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7065 $as_echo "$MANIFEST_TOOL" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7073 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7074 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7075 # Extract the first word of "mt", so it can be a program name with args.
7076 set dummy mt; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7080 $as_echo_n "(cached) " >&6
7082 if test -n "$ac_ct_MANIFEST_TOOL"; then
7083 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7103 if test -n "$ac_ct_MANIFEST_TOOL"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7105 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7111 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7114 case $cross_compiling:$ac_tool_warned in
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118 ac_tool_warned=yes ;;
7120 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7123 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7126 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7128 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7129 if ${lt_cv_path_mainfest_tool+:} false; then :
7130 $as_echo_n "(cached) " >&6
7132 lt_cv_path_mainfest_tool=no
7133 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7134 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7135 cat conftest.err >&5
7136 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7137 lt_cv_path_mainfest_tool=yes
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7142 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7143 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7153 rhapsody* | darwin*)
7154 if test -n "$ac_tool_prefix"; then
7155 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7156 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7160 $as_echo_n "(cached) " >&6
7162 if test -n "$DSYMUTIL"; then
7163 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7183 if test -n "$DSYMUTIL"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7185 $as_echo "$DSYMUTIL" >&6; }
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7193 if test -z "$ac_cv_prog_DSYMUTIL"; then
7194 ac_ct_DSYMUTIL=$DSYMUTIL
7195 # Extract the first word of "dsymutil", so it can be a program name with args.
7196 set dummy dsymutil; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7200 $as_echo_n "(cached) " >&6
7202 if test -n "$ac_ct_DSYMUTIL"; then
7203 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7223 if test -n "$ac_ct_DSYMUTIL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7225 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7231 if test "x$ac_ct_DSYMUTIL" = x; then
7234 case $cross_compiling:$ac_tool_warned in
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238 ac_tool_warned=yes ;;
7240 DSYMUTIL=$ac_ct_DSYMUTIL
7243 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_NMEDIT+:} false; then :
7252 $as_echo_n "(cached) " >&6
7254 if test -n "$NMEDIT"; then
7255 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 NMEDIT=$ac_cv_prog_NMEDIT
7275 if test -n "$NMEDIT"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7277 $as_echo "$NMEDIT" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7285 if test -z "$ac_cv_prog_NMEDIT"; then
7286 ac_ct_NMEDIT=$NMEDIT
7287 # Extract the first word of "nmedit", so it can be a program name with args.
7288 set dummy nmedit; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$ac_ct_NMEDIT"; then
7295 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7315 if test -n "$ac_ct_NMEDIT"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7317 $as_echo "$ac_ct_NMEDIT" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7323 if test "x$ac_ct_NMEDIT" = x; then
7326 case $cross_compiling:$ac_tool_warned in
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7332 NMEDIT=$ac_ct_NMEDIT
7335 NMEDIT="$ac_cv_prog_NMEDIT"
7338 if test -n "$ac_tool_prefix"; then
7339 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7340 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if ${ac_cv_prog_LIPO+:} false; then :
7344 $as_echo_n "(cached) " >&6
7346 if test -n "$LIPO"; then
7347 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 LIPO=$ac_cv_prog_LIPO
7367 if test -n "$LIPO"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7369 $as_echo "$LIPO" >&6; }
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7377 if test -z "$ac_cv_prog_LIPO"; then
7379 # Extract the first word of "lipo", so it can be a program name with args.
7380 set dummy lipo; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7384 $as_echo_n "(cached) " >&6
7386 if test -n "$ac_ct_LIPO"; then
7387 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_ac_ct_LIPO="lipo"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7407 if test -n "$ac_ct_LIPO"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7409 $as_echo "$ac_ct_LIPO" >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7415 if test "x$ac_ct_LIPO" = x; then
7418 case $cross_compiling:$ac_tool_warned in
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422 ac_tool_warned=yes ;;
7427 LIPO="$ac_cv_prog_LIPO"
7430 if test -n "$ac_tool_prefix"; then
7431 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7432 set dummy ${ac_tool_prefix}otool; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_OTOOL+:} false; then :
7436 $as_echo_n "(cached) " >&6
7438 if test -n "$OTOOL"; then
7439 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 OTOOL=$ac_cv_prog_OTOOL
7459 if test -n "$OTOOL"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7461 $as_echo "$OTOOL" >&6; }
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7469 if test -z "$ac_cv_prog_OTOOL"; then
7471 # Extract the first word of "otool", so it can be a program name with args.
7472 set dummy otool; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7476 $as_echo_n "(cached) " >&6
7478 if test -n "$ac_ct_OTOOL"; then
7479 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_ac_ct_OTOOL="otool"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7499 if test -n "$ac_ct_OTOOL"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7501 $as_echo "$ac_ct_OTOOL" >&6; }
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7507 if test "x$ac_ct_OTOOL" = x; then
7510 case $cross_compiling:$ac_tool_warned in
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7514 ac_tool_warned=yes ;;
7519 OTOOL="$ac_cv_prog_OTOOL"
7522 if test -n "$ac_tool_prefix"; then
7523 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7524 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_OTOOL64+:} false; then :
7528 $as_echo_n "(cached) " >&6
7530 if test -n "$OTOOL64"; then
7531 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 OTOOL64=$ac_cv_prog_OTOOL64
7551 if test -n "$OTOOL64"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7553 $as_echo "$OTOOL64" >&6; }
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7561 if test -z "$ac_cv_prog_OTOOL64"; then
7562 ac_ct_OTOOL64=$OTOOL64
7563 # Extract the first word of "otool64", so it can be a program name with args.
7564 set dummy otool64; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7568 $as_echo_n "(cached) " >&6
7570 if test -n "$ac_ct_OTOOL64"; then
7571 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_ac_ct_OTOOL64="otool64"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7591 if test -n "$ac_ct_OTOOL64"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7593 $as_echo "$ac_ct_OTOOL64" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7599 if test "x$ac_ct_OTOOL64" = x; then
7602 case $cross_compiling:$ac_tool_warned in
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7606 ac_tool_warned=yes ;;
7608 OTOOL64=$ac_ct_OTOOL64
7611 OTOOL64="$ac_cv_prog_OTOOL64"
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7641 $as_echo_n "checking for -single_module linker flag... " >&6; }
7642 if ${lt_cv_apple_cc_single_mod+:} false; then :
7643 $as_echo_n "(cached) " >&6
7645 lt_cv_apple_cc_single_mod=no
7646 if test -z "${LT_MULTI_MODULE}"; then
7647 # By default we will add the -single_module flag. You can override
7648 # by either setting the environment variable LT_MULTI_MODULE
7649 # non-empty at configure time, or by adding -multi_module to the
7651 rm -rf libconftest.dylib*
7652 echo "int foo(void){return 1;}" > conftest.c
7653 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7654 -dynamiclib -Wl,-single_module conftest.c" >&5
7655 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7656 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7658 # If there is a non-empty error log, and "single_module"
7659 # appears in it, assume the flag caused a linker warning
7660 if test -s conftest.err && $GREP single_module conftest.err; then
7661 cat conftest.err >&5
7662 # Otherwise, if the output was created with a 0 exit code from
7663 # the compiler, it worked.
7664 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7665 lt_cv_apple_cc_single_mod=yes
7667 cat conftest.err >&5
7669 rm -rf libconftest.dylib*
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7674 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7677 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7678 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 lt_cv_ld_exported_symbols_list=no
7682 save_LDFLAGS=$LDFLAGS
7683 echo "_main" > conftest.sym
7684 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7696 if ac_fn_c_try_link "$LINENO"; then :
7697 lt_cv_ld_exported_symbols_list=yes
7699 lt_cv_ld_exported_symbols_list=no
7701 rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
7703 LDFLAGS="$save_LDFLAGS"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7707 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7710 $as_echo_n "checking for -force_load linker flag... " >&6; }
7711 if ${lt_cv_ld_force_load+:} false; then :
7712 $as_echo_n "(cached) " >&6
7714 lt_cv_ld_force_load=no
7715 cat > conftest.c << _LT_EOF
7716 int forced_loaded() { return 2;}
7718 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7719 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7720 echo "$AR cru libconftest.a conftest.o" >&5
7721 $AR cru libconftest.a conftest.o 2>&5
7722 echo "$RANLIB libconftest.a" >&5
7723 $RANLIB libconftest.a 2>&5
7724 cat > conftest.c << _LT_EOF
7725 int main() { return 0;}
7727 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7728 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7730 if test -s conftest.err && $GREP force_load conftest.err; then
7731 cat conftest.err >&5
7732 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7733 lt_cv_ld_force_load=yes
7735 cat conftest.err >&5
7737 rm -f conftest.err libconftest.a conftest conftest.c
7738 rm -rf conftest.dSYM
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7742 $as_echo "$lt_cv_ld_force_load" >&6; }
7744 rhapsody* | darwin1.[012])
7745 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7747 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7748 darwin*) # darwin 5.x on
7749 # if running on 10.5 or later, the deployment target defaults
7750 # to the OS version, if on x86, and 10.4, the deployment
7751 # target defaults to 10.4. Don't you love it?
7752 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7753 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7754 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7756 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7758 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7762 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7763 _lt_dar_single_mod='$single_module'
7765 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7766 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7768 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7770 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7771 _lt_dsymutil='~$DSYMUTIL $lib || :'
7779 ac_cpp='$CPP $CPPFLAGS'
7780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7784 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7785 # On Suns, sometimes $CPP names a directory.
7786 if test -n "$CPP" && test -d "$CPP"; then
7789 if test -z "$CPP"; then
7790 if ${ac_cv_prog_CPP+:} false; then :
7791 $as_echo_n "(cached) " >&6
7793 # Double quotes because CPP needs to be expanded
7794 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7797 for ac_c_preproc_warn_flag in '' yes
7799 # Use a header file that comes with gcc, so configuring glibc
7800 # with a fresh cross-compiler works.
7801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802 # <limits.h> exists even on freestanding compilers.
7803 # On the NeXT, cc -E runs the code through the compiler's parser,
7804 # not just through cpp. "Syntax error" is here to catch this case.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7808 # include <limits.h>
7810 # include <assert.h>
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7817 # Broken: fails on valid input.
7820 rm -f conftest.err conftest.i conftest.$ac_ext
7822 # OK, works on sane cases. Now check whether nonexistent headers
7823 # can be detected and how.
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <ac_nonexistent.h>
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7829 # Broken: success on invalid input.
7832 # Passes both tests.
7836 rm -f conftest.err conftest.i conftest.$ac_ext
7839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840 rm -f conftest.i conftest.err conftest.$ac_ext
7841 if $ac_preproc_ok; then :
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7854 $as_echo "$CPP" >&6; }
7856 for ac_c_preproc_warn_flag in '' yes
7858 # Use a header file that comes with gcc, so configuring glibc
7859 # with a fresh cross-compiler works.
7860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7861 # <limits.h> exists even on freestanding compilers.
7862 # On the NeXT, cc -E runs the code through the compiler's parser,
7863 # not just through cpp. "Syntax error" is here to catch this case.
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7867 # include <limits.h>
7869 # include <assert.h>
7873 if ac_fn_c_try_cpp "$LINENO"; then :
7876 # Broken: fails on valid input.
7879 rm -f conftest.err conftest.i conftest.$ac_ext
7881 # OK, works on sane cases. Now check whether nonexistent headers
7882 # can be detected and how.
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 #include <ac_nonexistent.h>
7887 if ac_fn_c_try_cpp "$LINENO"; then :
7888 # Broken: success on invalid input.
7891 # Passes both tests.
7895 rm -f conftest.err conftest.i conftest.$ac_ext
7898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7899 rm -f conftest.i conftest.err conftest.$ac_ext
7900 if $ac_preproc_ok; then :
7903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7905 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7906 See \`config.log' for more details" "$LINENO" 5; }
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7917 $as_echo_n "checking for ANSI C header files... " >&6; }
7918 if ${ac_cv_header_stdc+:} false; then :
7919 $as_echo_n "(cached) " >&6
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937 ac_cv_header_stdc=yes
7939 ac_cv_header_stdc=no
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 if test $ac_cv_header_stdc = yes; then
7944 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7951 $EGREP "memchr" >/dev/null 2>&1; then :
7954 ac_cv_header_stdc=no
7960 if test $ac_cv_header_stdc = yes; then
7961 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7968 $EGREP "free" >/dev/null 2>&1; then :
7971 ac_cv_header_stdc=no
7977 if test $ac_cv_header_stdc = yes; then
7978 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7979 if test "$cross_compiling" = yes; then :
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7986 #if ((' ' & 0x0FF) == 0x020)
7987 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7988 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7990 # define ISLOWER(c) \
7991 (('a' <= (c) && (c) <= 'i') \
7992 || ('j' <= (c) && (c) <= 'r') \
7993 || ('s' <= (c) && (c) <= 'z'))
7994 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7997 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8002 for (i = 0; i < 256; i++)
8003 if (XOR (islower (i), ISLOWER (i))
8004 || toupper (i) != TOUPPER (i))
8009 if ac_fn_c_try_run "$LINENO"; then :
8012 ac_cv_header_stdc=no
8014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8015 conftest.$ac_objext conftest.beam conftest.$ac_ext
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8021 $as_echo "$ac_cv_header_stdc" >&6; }
8022 if test $ac_cv_header_stdc = yes; then
8024 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8028 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8030 inttypes.h stdint.h unistd.h
8032 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8033 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8036 cat >>confdefs.h <<_ACEOF
8037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8045 for ac_header in dlfcn.h
8047 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8049 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8050 cat >>confdefs.h <<_ACEOF
8051 #define HAVE_DLFCN_H 1
8072 # Check whether --enable-shared was given.
8073 if test "${enable_shared+set}" = set; then :
8074 enableval=$enable_shared; p=${PACKAGE-default}
8076 yes) enable_shared=yes ;;
8077 no) enable_shared=no ;;
8080 # Look at the argument we got. We use all the common list separators.
8081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8082 for pkg in $enableval; do
8084 if test "X$pkg" = "X$p"; then
8103 # Check whether --enable-static was given.
8104 if test "${enable_static+set}" = set; then :
8105 enableval=$enable_static; p=${PACKAGE-default}
8107 yes) enable_static=yes ;;
8108 no) enable_static=no ;;
8111 # Look at the argument we got. We use all the common list separators.
8112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8113 for pkg in $enableval; do
8115 if test "X$pkg" = "X$p"; then
8135 # Check whether --with-pic was given.
8136 if test "${with_pic+set}" = set; then :
8137 withval=$with_pic; lt_p=${PACKAGE-default}
8139 yes|no) pic_mode=$withval ;;
8142 # Look at the argument we got. We use all the common list separators.
8143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8144 for lt_pkg in $withval; do
8146 if test "X$lt_pkg" = "X$lt_p"; then
8158 test -z "$pic_mode" && pic_mode=default
8166 # Check whether --enable-fast-install was given.
8167 if test "${enable_fast_install+set}" = set; then :
8168 enableval=$enable_fast_install; p=${PACKAGE-default}
8170 yes) enable_fast_install=yes ;;
8171 no) enable_fast_install=no ;;
8173 enable_fast_install=no
8174 # Look at the argument we got. We use all the common list separators.
8175 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8176 for pkg in $enableval; do
8178 if test "X$pkg" = "X$p"; then
8179 enable_fast_install=yes
8186 enable_fast_install=yes
8199 # This can be used to rebuild libtool when needed
8200 LIBTOOL_DEPS="$ltmain"
8202 # Always use our own libtool.
8203 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8234 test -z "$LN_S" && LN_S="ln -s"
8249 if test -n "${ZSH_VERSION+set}" ; then
8250 setopt NO_GLOB_SUBST
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8254 $as_echo_n "checking for objdir... " >&6; }
8255 if ${lt_cv_objdir+:} false; then :
8256 $as_echo_n "(cached) " >&6
8258 rm -f .libs 2>/dev/null
8259 mkdir .libs 2>/dev/null
8260 if test -d .libs; then
8263 # MS-DOS does not allow filenames that begin with a dot.
8266 rmdir .libs 2>/dev/null
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8269 $as_echo "$lt_cv_objdir" >&6; }
8270 objdir=$lt_cv_objdir
8276 cat >>confdefs.h <<_ACEOF
8277 #define LT_OBJDIR "$lt_cv_objdir/"
8285 # AIX sometimes has problems with the GCC collect2 program. For some
8286 # reason, if we set the COLLECT_NAMES environment variable, the problems
8287 # vanish in a puff of smoke.
8288 if test "X${COLLECT_NAMES+set}" != Xset; then
8290 export COLLECT_NAMES
8297 can_build_shared=yes
8299 # All known linkers require a `.a' archive for static linking (except MSVC,
8300 # which needs '.lib').
8303 with_gnu_ld="$lt_cv_prog_gnu_ld"
8306 old_CFLAGS="$CFLAGS"
8308 # Set sane defaults for various variables
8309 test -z "$CC" && CC=cc
8310 test -z "$LTCC" && LTCC=$CC
8311 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8312 test -z "$LD" && LD=ld
8313 test -z "$ac_objext" && ac_objext=o
8315 for cc_temp in $compiler""; do
8317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8323 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8326 # Only perform the check for file, if the check method requires it
8327 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8328 case $deplibs_check_method in
8330 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8332 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached) " >&6
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/${ac_tool_prefix}file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8395 if test -z "$lt_cv_path_MAGIC_CMD"; then
8396 if test -n "$ac_tool_prefix"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8398 $as_echo_n "checking for file... " >&6; }
8399 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8400 $as_echo_n "(cached) " >&6
8404 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8407 lt_save_MAGIC_CMD="$MAGIC_CMD"
8408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8409 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8410 for ac_dir in $ac_dummy; do
8412 test -z "$ac_dir" && ac_dir=.
8413 if test -f $ac_dir/file; then
8414 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8415 if test -n "$file_magic_test_file"; then
8416 case $deplibs_check_method in
8418 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8421 $EGREP "$file_magic_regex" > /dev/null; then
8426 *** Warning: the command libtool uses to detect shared libraries,
8427 *** $file_magic_cmd, produces output that libtool cannot recognize.
8428 *** The result is that libtool may fail to recognize shared libraries
8429 *** as such. This will affect the creation of libtool libraries that
8430 *** depend on shared libraries, but programs linked with such libtool
8431 *** libraries will work regardless of this problem. Nevertheless, you
8432 *** may want to report the problem to your system manager and/or to
8433 *** bug-libtool@gnu.org
8443 MAGIC_CMD="$lt_save_MAGIC_CMD"
8448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8449 if test -n "$MAGIC_CMD"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8451 $as_echo "$MAGIC_CMD" >&6; }
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8467 # Use C for the default configuration in the libtool script
8471 ac_cpp='$CPP $CPPFLAGS'
8472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8477 # Source file extension for C test sources.
8480 # Object file extension for compiled C test sources.
8484 # Code to be used in simple compile tests
8485 lt_simple_compile_test_code="int some_variable = 0;"
8487 # Code to be used in simple link tests
8488 lt_simple_link_test_code='int main(){return(0);}'
8496 # If no C compiler was specified, use CC.
8499 # If no C compiler flags were specified, use CFLAGS.
8500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8502 # Allow CC to be a program name with arguments.
8505 # Save the default compiler, since it gets overwritten when the other
8506 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8507 compiler_DEFAULT=$CC
8509 # save warnings/boilerplate of simple test code
8510 ac_outfile=conftest.$ac_objext
8511 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8512 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8513 _lt_compiler_boilerplate=`cat conftest.err`
8516 ac_outfile=conftest.$ac_objext
8517 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8518 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_linker_boilerplate=`cat conftest.err`
8524 ## There is no encapsulation within the following macros, do not change
8525 ## the running order or otherwise move them around unless you know exactly
8526 ## what you are doing...
8527 if test -n "$compiler"; then
8529 lt_prog_compiler_no_builtin_flag=
8531 if test "$GCC" = yes; then
8532 case $cc_basename in
8534 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8536 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8540 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8541 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8542 $as_echo_n "(cached) " >&6
8544 lt_cv_prog_compiler_rtti_exceptions=no
8545 ac_outfile=conftest.$ac_objext
8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547 lt_compiler_flag="-fno-rtti -fno-exceptions"
8548 # Insert the option either (1) after the last *FLAGS variable, or
8549 # (2) before a word containing "conftest.", or (3) at the end.
8550 # Note that $ac_compile itself does not contain backslashes and begins
8551 # with a dollar sign (not a hyphen), so the echo should work correctly.
8552 # The option is referenced via a variable to avoid confusing sed.
8553 lt_compile=`echo "$ac_compile" | $SED \
8554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556 -e 's:$: $lt_compiler_flag:'`
8557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558 (eval "$lt_compile" 2>conftest.err)
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 if (exit $ac_status) && test -s "$ac_outfile"; then
8563 # The compiler can only warn and ignore the option if not recognized
8564 # So say no if there are warnings other than the usual output.
8565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8568 lt_cv_prog_compiler_rtti_exceptions=yes
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8575 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8577 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8578 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8590 lt_prog_compiler_wl=
8591 lt_prog_compiler_pic=
8592 lt_prog_compiler_static=
8595 if test "$GCC" = yes; then
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_static='-static'
8601 # All AIX code is PIC.
8602 if test "$host_cpu" = ia64; then
8603 # AIX 5 now supports IA64 processor
8604 lt_prog_compiler_static='-Bstatic'
8611 # see comment about AmigaOS4 .so support
8612 lt_prog_compiler_pic='-fPIC'
8615 # FIXME: we need at least 68020 code to build shared libraries, but
8616 # adding the `-m68020' flag to GCC prevents building anything better,
8618 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8624 # PIC is the default for these OSes.
8627 mingw* | cygwin* | pw32* | os2* | cegcc*)
8628 # This hack is so that the source file can tell whether it is being
8629 # built for inclusion in a dll (and should export symbols for example).
8630 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8631 # (--disable-auto-import) libraries
8632 lt_prog_compiler_pic='-DDLL_EXPORT'
8635 darwin* | rhapsody*)
8636 # PIC is the default on this platform
8637 # Common symbols not allowed in MH_DYLIB files
8638 lt_prog_compiler_pic='-fno-common'
8642 # PIC is the default for Haiku.
8643 # The "-static" flag exists, but is broken.
8644 lt_prog_compiler_static=
8648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8650 # sets the default TLS model and affects inlining.
8656 lt_prog_compiler_pic='-fPIC'
8662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8663 # Instead, we relocate shared libraries at runtime.
8667 # Just because we use GCC doesn't mean we suddenly get shared libraries
8668 # on systems that don't support them.
8669 lt_prog_compiler_can_build_shared=no
8674 # QNX uses GNU C++, but need to define -shared option too, otherwise
8676 lt_prog_compiler_pic='-fPIC -shared'
8680 if test -d /usr/nec; then
8681 lt_prog_compiler_pic=-Kconform_pic
8686 lt_prog_compiler_pic='-fPIC'
8690 case $cc_basename in
8691 nvcc*) # Cuda Compiler Driver 2.2
8692 lt_prog_compiler_wl='-Xlinker '
8693 if test -n "$lt_prog_compiler_pic"; then
8694 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8699 # PORTME Check for flag to pass linker flags through the system compiler.
8702 lt_prog_compiler_wl='-Wl,'
8703 if test "$host_cpu" = ia64; then
8704 # AIX 5 now supports IA64 processor
8705 lt_prog_compiler_static='-Bstatic'
8707 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8711 mingw* | cygwin* | pw32* | os2* | cegcc*)
8712 # This hack is so that the source file can tell whether it is being
8713 # built for inclusion in a dll (and should export symbols for example).
8714 lt_prog_compiler_pic='-DDLL_EXPORT'
8717 hpux9* | hpux10* | hpux11*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8726 lt_prog_compiler_pic='+Z'
8729 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8730 lt_prog_compiler_static='${wl}-a ${wl}archive'
8733 irix5* | irix6* | nonstopux*)
8734 lt_prog_compiler_wl='-Wl,'
8735 # PIC (with -KPIC) is the default.
8736 lt_prog_compiler_static='-non_shared'
8739 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8740 case $cc_basename in
8741 # old Intel for x86_64 which still supported -KPIC.
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='-KPIC'
8745 lt_prog_compiler_static='-static'
8747 # icc used to be incompatible with GCC.
8748 # ICC 10 doesn't accept -KPIC any more.
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-fPIC'
8752 lt_prog_compiler_static='-static'
8754 # Lahey Fortran 8.1.
8756 lt_prog_compiler_wl='-Wl,'
8757 lt_prog_compiler_pic='--shared'
8758 lt_prog_compiler_static='--static'
8761 # NAG Fortran compiler
8762 lt_prog_compiler_wl='-Wl,-Wl,,'
8763 lt_prog_compiler_pic='-PIC'
8764 lt_prog_compiler_static='-Bstatic'
8766 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8767 # Portland Group compilers (*not* the Pentium gcc compiler,
8768 # which looks to be a dead project)
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_pic='-fpic'
8771 lt_prog_compiler_static='-Bstatic'
8774 lt_prog_compiler_wl='-Wl,'
8775 # All Alpha code is PIC.
8776 lt_prog_compiler_static='-non_shared'
8778 xl* | bgxl* | bgf* | mpixl*)
8779 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='-qpic'
8782 lt_prog_compiler_static='-qstaticlink'
8785 case `$CC -V 2>&1 | sed 5q` in
8786 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8787 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8788 lt_prog_compiler_pic='-KPIC'
8789 lt_prog_compiler_static='-Bstatic'
8790 lt_prog_compiler_wl=''
8792 *Sun\ F* | *Sun*Fortran*)
8793 lt_prog_compiler_pic='-KPIC'
8794 lt_prog_compiler_static='-Bstatic'
8795 lt_prog_compiler_wl='-Qoption ld '
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-Bstatic'
8801 lt_prog_compiler_wl='-Wl,'
8803 *Intel*\ [CF]*Compiler*)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_pic='-fPIC'
8806 lt_prog_compiler_static='-static'
8809 lt_prog_compiler_wl='-Wl,'
8810 lt_prog_compiler_pic='-fpic'
8811 lt_prog_compiler_static='-Bstatic'
8819 lt_prog_compiler_pic='-KPIC'
8820 lt_prog_compiler_static='-Bstatic'
8824 # QNX uses GNU C++, but need to define -shared option too, otherwise
8826 lt_prog_compiler_pic='-fPIC -shared'
8829 osf3* | osf4* | osf5*)
8830 lt_prog_compiler_wl='-Wl,'
8831 # All OSF/1 code is PIC.
8832 lt_prog_compiler_static='-non_shared'
8836 lt_prog_compiler_static='-non_shared'
8840 lt_prog_compiler_pic='-KPIC'
8841 lt_prog_compiler_static='-Bstatic'
8842 case $cc_basename in
8843 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8844 lt_prog_compiler_wl='-Qoption ld ';;
8846 lt_prog_compiler_wl='-Wl,';;
8851 lt_prog_compiler_wl='-Qoption ld '
8852 lt_prog_compiler_pic='-PIC'
8853 lt_prog_compiler_static='-Bstatic'
8856 sysv4 | sysv4.2uw2* | sysv4.3*)
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_pic='-KPIC'
8859 lt_prog_compiler_static='-Bstatic'
8863 if test -d /usr/nec ;then
8864 lt_prog_compiler_pic='-Kconform_pic'
8865 lt_prog_compiler_static='-Bstatic'
8869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8870 lt_prog_compiler_wl='-Wl,'
8871 lt_prog_compiler_pic='-KPIC'
8872 lt_prog_compiler_static='-Bstatic'
8876 lt_prog_compiler_wl='-Wl,'
8877 lt_prog_compiler_can_build_shared=no
8881 lt_prog_compiler_pic='-pic'
8882 lt_prog_compiler_static='-Bstatic'
8886 lt_prog_compiler_can_build_shared=no
8892 # For platforms which do not support PIC, -DPIC is meaningless:
8894 lt_prog_compiler_pic=
8897 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8902 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8903 if ${lt_cv_prog_compiler_pic+:} false; then :
8904 $as_echo_n "(cached) " >&6
8906 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8909 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8910 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8913 # Check to make sure the PIC flag actually works.
8915 if test -n "$lt_prog_compiler_pic"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8917 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8918 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8919 $as_echo_n "(cached) " >&6
8921 lt_cv_prog_compiler_pic_works=no
8922 ac_outfile=conftest.$ac_objext
8923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8924 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8925 # Insert the option either (1) after the last *FLAGS variable, or
8926 # (2) before a word containing "conftest.", or (3) at the end.
8927 # Note that $ac_compile itself does not contain backslashes and begins
8928 # with a dollar sign (not a hyphen), so the echo should work correctly.
8929 # The option is referenced via a variable to avoid confusing sed.
8930 lt_compile=`echo "$ac_compile" | $SED \
8931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8933 -e 's:$: $lt_compiler_flag:'`
8934 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8935 (eval "$lt_compile" 2>conftest.err)
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 if (exit $ac_status) && test -s "$ac_outfile"; then
8940 # The compiler can only warn and ignore the option if not recognized
8941 # So say no if there are warnings other than the usual output.
8942 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8945 lt_cv_prog_compiler_pic_works=yes
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8952 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8954 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8955 case $lt_prog_compiler_pic in
8957 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8960 lt_prog_compiler_pic=
8961 lt_prog_compiler_can_build_shared=no
8977 # Check to make sure the static flag actually works.
8979 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8981 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8982 if ${lt_cv_prog_compiler_static_works+:} false; then :
8983 $as_echo_n "(cached) " >&6
8985 lt_cv_prog_compiler_static_works=no
8986 save_LDFLAGS="$LDFLAGS"
8987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8988 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8990 # The linker can only warn and ignore the option if not recognized
8991 # So say no if there are warnings
8992 if test -s conftest.err; then
8993 # Append any errors to the config.log.
8994 cat conftest.err 1>&5
8995 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8997 if diff conftest.exp conftest.er2 >/dev/null; then
8998 lt_cv_prog_compiler_static_works=yes
9001 lt_cv_prog_compiler_static_works=yes
9005 LDFLAGS="$save_LDFLAGS"
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9009 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9011 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9014 lt_prog_compiler_static=
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9025 if ${lt_cv_prog_compiler_c_o+:} false; then :
9026 $as_echo_n "(cached) " >&6
9028 lt_cv_prog_compiler_c_o=no
9029 $RM -r conftest 2>/dev/null
9033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9035 lt_compiler_flag="-o out/conftest2.$ac_objext"
9036 # Insert the option either (1) after the last *FLAGS variable, or
9037 # (2) before a word containing "conftest.", or (3) at the end.
9038 # Note that $ac_compile itself does not contain backslashes and begins
9039 # with a dollar sign (not a hyphen), so the echo should work correctly.
9040 lt_compile=`echo "$ac_compile" | $SED \
9041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043 -e 's:$: $lt_compiler_flag:'`
9044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9045 (eval "$lt_compile" 2>out/conftest.err)
9047 cat out/conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9051 # The compiler can only warn and ignore the option if not recognized
9052 # So say no if there are warnings
9053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9056 lt_cv_prog_compiler_c_o=yes
9061 # SGI C++ compiler will create directory out/ii_files/ for
9062 # template instantiation
9063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9064 $RM out/* && rmdir out
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9071 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9079 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9080 if ${lt_cv_prog_compiler_c_o+:} false; then :
9081 $as_echo_n "(cached) " >&6
9083 lt_cv_prog_compiler_c_o=no
9084 $RM -r conftest 2>/dev/null
9088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9090 lt_compiler_flag="-o out/conftest2.$ac_objext"
9091 # Insert the option either (1) after the last *FLAGS variable, or
9092 # (2) before a word containing "conftest.", or (3) at the end.
9093 # Note that $ac_compile itself does not contain backslashes and begins
9094 # with a dollar sign (not a hyphen), so the echo should work correctly.
9095 lt_compile=`echo "$ac_compile" | $SED \
9096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9098 -e 's:$: $lt_compiler_flag:'`
9099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9100 (eval "$lt_compile" 2>out/conftest.err)
9102 cat out/conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9106 # The compiler can only warn and ignore the option if not recognized
9107 # So say no if there are warnings
9108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9111 lt_cv_prog_compiler_c_o=yes
9116 # SGI C++ compiler will create directory out/ii_files/ for
9117 # template instantiation
9118 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9119 $RM out/* && rmdir out
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9126 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9131 hard_links="nottested"
9132 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9133 # do not overwrite the value of need_locks provided by the user
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9135 $as_echo_n "checking if we can lock with hard links... " >&6; }
9138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9140 ln conftest.a conftest.b 2>&5 || hard_links=no
9141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9143 $as_echo "$hard_links" >&6; }
9144 if test "$hard_links" = no; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9146 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9159 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9162 allow_undefined_flag=
9163 always_export_symbols=no
9165 archive_expsym_cmds=
9166 compiler_needs_object=no
9167 enable_shared_with_static_runtimes=no
9168 export_dynamic_flag_spec=
9169 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9170 hardcode_automatic=no
9172 hardcode_direct_absolute=no
9173 hardcode_libdir_flag_spec=
9174 hardcode_libdir_separator=
9176 hardcode_shlibpath_var=unsupported
9178 link_all_deplibs=unknown
9181 old_archive_from_new_cmds=
9182 old_archive_from_expsyms_cmds=
9183 thread_safe_flag_spec=
9184 whole_archive_flag_spec=
9185 # include_expsyms should be a list of space-separated symbols to be *always*
9186 # included in the symbol list
9188 # exclude_expsyms can be an extended regexp of symbols to exclude
9189 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9190 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9191 # as well as any symbol that contains `d'.
9192 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9193 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9194 # platforms (ab)use it in PIC code, but their linkers get confused if
9195 # the symbol is explicitly referenced. Since portable code cannot
9196 # rely on this symbol name, it's probably fine to never include it in
9197 # preloaded symbol tables.
9198 # Exclude shared library initialization/finalization symbols.
9199 extract_expsyms_cmds=
9202 cygwin* | mingw* | pw32* | cegcc*)
9203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9204 # When not using gcc, we currently assume that we are using
9205 # Microsoft Visual C++.
9206 if test "$GCC" != yes; then
9211 # we just hope/assume this is gcc and not c89 (= MSVC++)
9221 # On some targets, GNU ld is compatible enough with the native linker
9222 # that we're better off using the native interface for both.
9223 lt_use_gnu_ld_interface=no
9224 if test "$with_gnu_ld" = yes; then
9227 # The AIX port of GNU ld has always aspired to compatibility
9228 # with the native linker. However, as the warning in the GNU ld
9229 # block says, versions before 2.19.5* couldn't really create working
9230 # shared libraries, regardless of the interface used.
9231 case `$LD -v 2>&1` in
9232 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9233 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9234 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9236 lt_use_gnu_ld_interface=yes
9241 lt_use_gnu_ld_interface=yes
9246 if test "$lt_use_gnu_ld_interface" = yes; then
9247 # If archive_cmds runs LD, not CC, wlarc should be empty
9250 # Set some defaults for GNU ld with shared library support. These
9251 # are reset later if shared libraries are not supported. Putting them
9252 # here allows them to be overridden if necessary.
9253 runpath_var=LD_RUN_PATH
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 export_dynamic_flag_spec='${wl}--export-dynamic'
9256 # ancient GNU ld didn't support --whole-archive et. al.
9257 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9258 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9260 whole_archive_flag_spec=
9262 supports_anon_versioning=no
9263 case `$LD -v 2>&1` in
9264 *GNU\ gold*) supports_anon_versioning=yes ;;
9265 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9268 *\ 2.11.*) ;; # other 2.11 versions
9269 *) supports_anon_versioning=yes ;;
9272 # See if GNU ld supports shared libraries.
9275 # On AIX/PPC, the GNU linker is very broken
9276 if test "$host_cpu" != ia64; then
9280 *** Warning: the GNU linker, at least up to release 2.19, is reported
9281 *** to be unable to reliably create shared libraries on AIX.
9282 *** Therefore, libtool is disabling shared libraries support. If you
9283 *** really care for shared libraries, you may want to install binutils
9284 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9285 *** You will then need to restart the configuration process.
9294 # see comment about AmigaOS4 .so support
9295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296 archive_expsym_cmds=''
9299 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)'
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_minus_L=yes
9307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308 allow_undefined_flag=unsupported
9309 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9310 # support --undefined. This deserves some investigation. FIXME
9311 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 cygwin* | mingw* | pw32* | cegcc*)
9318 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9319 # as there is no search path for DLLs.
9320 hardcode_libdir_flag_spec='-L$libdir'
9321 export_dynamic_flag_spec='${wl}--export-all-symbols'
9322 allow_undefined_flag=unsupported
9323 always_export_symbols=no
9324 enable_shared_with_static_runtimes=yes
9325 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9326 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9328 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9330 # If the export-symbols file already is a .def file (1st line
9331 # is EXPORTS), use it as is; otherwise, prepend...
9332 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9333 cp $export_symbols $output_objdir/$soname.def;
9335 echo EXPORTS > $output_objdir/$soname.def;
9336 cat $export_symbols >> $output_objdir/$soname.def;
9338 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 link_all_deplibs=yes
9351 hardcode_shlibpath_var=no
9352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9353 export_dynamic_flag_spec='${wl}-E'
9354 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9355 # Instead, shared libraries are loaded at an image base (0x10000000 by
9356 # default) and relocated if they conflict, which is a slow very memory
9357 # consuming and fragmenting process. To avoid this, we pick a random,
9358 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9359 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9360 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9361 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'
9364 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9366 if test "$host_os" = linux-dietlibc; then
9367 case $cc_basename in
9368 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9371 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9372 && test "$tmp_diet" = no
9374 tmp_addflag=' $pic_flag'
9375 tmp_sharedflag='-shared'
9376 case $cc_basename,$host_cpu in
9377 pgcc*) # Portland Group C compiler
9378 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9379 tmp_addflag=' $pic_flag'
9381 pgf77* | pgf90* | pgf95* | pgfortran*)
9382 # Portland Group f77 and f90 compilers
9383 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9384 tmp_addflag=' $pic_flag -Mnomain' ;;
9385 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9386 tmp_addflag=' -i_dynamic' ;;
9387 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9388 tmp_addflag=' -i_dynamic -nofor_main' ;;
9389 ifc* | ifort*) # Intel Fortran compiler
9390 tmp_addflag=' -nofor_main' ;;
9391 lf95*) # Lahey Fortran 8.1
9392 whole_archive_flag_spec=
9393 tmp_sharedflag='--shared' ;;
9394 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9395 tmp_sharedflag='-qmkshrobj'
9397 nvcc*) # Cuda Compiler Driver 2.2
9398 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9399 compiler_needs_object=yes
9402 case `$CC -V 2>&1 | sed 5q` in
9403 *Sun\ C*) # Sun C 5.9
9404 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9405 compiler_needs_object=yes
9406 tmp_sharedflag='-G' ;;
9407 *Sun\ F*) # Sun Fortran 8.3
9408 tmp_sharedflag='-G' ;;
9410 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412 if test "x$supports_anon_versioning" = xyes; then
9413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9415 echo "local: *; };" >> $output_objdir/$libname.ver~
9416 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9419 case $cc_basename in
9420 xlf* | bgf* | bgxlf* | mpixlf*)
9421 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9422 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9424 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9425 if test "x$supports_anon_versioning" = xyes; then
9426 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9427 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9428 echo "local: *; };" >> $output_objdir/$libname.ver~
9429 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9439 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9440 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9449 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9453 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9454 *** create shared libraries on Solaris systems. Therefore, libtool
9455 *** is disabling shared libraries support. We urge you to upgrade GNU
9456 *** binutils to release 2.9.1 or newer. Another option is to modify
9457 *** your PATH or compiler configuration so that the native linker is
9458 *** used, and then restart.
9461 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9462 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9463 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9470 case `$LD -v 2>&1` in
9471 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9475 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9476 *** reliably create shared libraries on SCO systems. Therefore, libtool
9477 *** is disabling shared libraries support. We urge you to upgrade GNU
9478 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9479 *** your PATH or compiler configuration so that the native linker is
9480 *** used, and then restart.
9485 # For security reasons, it is highly recommended that you always
9486 # use absolute paths for naming shared libraries, and exclude the
9487 # DT_RUNPATH tag from executables and libraries. But doing so
9488 # requires that you compile everything twice, which is a pain.
9489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9492 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9501 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_shlibpath_var=no
9508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9509 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9510 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9517 if test "$ld_shlibs" = no; then
9519 hardcode_libdir_flag_spec=
9520 export_dynamic_flag_spec=
9521 whole_archive_flag_spec=
9524 # PORTME fill in a description of your system's linker (not GNU ld)
9527 allow_undefined_flag=unsupported
9528 always_export_symbols=yes
9529 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'
9530 # Note: this linker hardcodes the directories in LIBPATH if there
9531 # are no directories specified by -L.
9532 hardcode_minus_L=yes
9533 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9534 # Neither direct hardcoding nor static linking is supported with a
9536 hardcode_direct=unsupported
9541 if test "$host_cpu" = ia64; then
9542 # On IA64, the linker does run time linking by default, so we don't
9543 # have to do anything special.
9544 aix_use_runtimelinking=no
9545 exp_sym_flag='-Bexport'
9548 # If we're using GNU nm, then we don't want the "-C" option.
9549 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9550 # Also, AIX nm treats weak defined symbols like other global
9551 # defined symbols, whereas GNU nm marks them as "W".
9552 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9553 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9555 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'
9557 aix_use_runtimelinking=no
9559 # Test if we are trying to use run time linking or normal
9560 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9561 # need to do runtime linking.
9562 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9563 for ld_flag in $LDFLAGS; do
9564 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9565 aix_use_runtimelinking=yes
9572 exp_sym_flag='-bexport'
9573 no_entry_flag='-bnoentry'
9576 # When large executables or shared objects are built, AIX ld can
9577 # have problems creating the table of contents. If linking a library
9578 # or program results in "error TOC overflow" add -mminimal-toc to
9579 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9580 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9584 hardcode_direct_absolute=yes
9585 hardcode_libdir_separator=':'
9586 link_all_deplibs=yes
9587 file_list_spec='${wl}-f,'
9589 if test "$GCC" = yes; then
9590 case $host_os in aix4.[012]|aix4.[012].*)
9591 # We only want to do this on AIX 4.2 and lower, the check
9592 # below for broken collect2 doesn't work under 4.3+
9593 collect2name=`${CC} -print-prog-name=collect2`
9594 if test -f "$collect2name" &&
9595 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9597 # We have reworked collect2
9600 # We have old collect2
9601 hardcode_direct=unsupported
9602 # It fails to find uninstalled libraries when the uninstalled
9603 # path is not listed in the libpath. Setting hardcode_minus_L
9604 # to unsupported forces relinking
9605 hardcode_minus_L=yes
9606 hardcode_libdir_flag_spec='-L$libdir'
9607 hardcode_libdir_separator=
9611 shared_flag='-shared'
9612 if test "$aix_use_runtimelinking" = yes; then
9613 shared_flag="$shared_flag "'${wl}-G'
9617 if test "$host_cpu" = ia64; then
9618 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9619 # chokes on -Wl,-G. The following line is correct:
9622 if test "$aix_use_runtimelinking" = yes; then
9623 shared_flag='${wl}-G'
9625 shared_flag='${wl}-bM:SRE'
9630 export_dynamic_flag_spec='${wl}-bexpall'
9631 # It seems that -bexpall does not export symbols beginning with
9632 # underscore (_), so it is better to generate a list of symbols to export.
9633 always_export_symbols=yes
9634 if test "$aix_use_runtimelinking" = yes; then
9635 # Warning - without using the other runtime loading flags (-brtl),
9636 # -berok will link without error, but may produce a broken library.
9637 allow_undefined_flag='-berok'
9638 # Determine the default libpath from the value encoded in an
9640 if test "${lt_cv_aix_libpath+set}" = set; then
9641 aix_libpath=$lt_cv_aix_libpath
9643 if ${lt_cv_aix_libpath_+:} false; then :
9644 $as_echo_n "(cached) " >&6
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9657 if ac_fn_c_try_link "$LINENO"; then :
9659 lt_aix_libpath_sed='
9660 /Import File Strings/,/^$/ {
9662 s/^0 *\([^ ]*\) *$/\1/
9666 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9667 # Check for a 64-bit object if we didn't find anything.
9668 if test -z "$lt_cv_aix_libpath_"; then
9669 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9674 if test -z "$lt_cv_aix_libpath_"; then
9675 lt_cv_aix_libpath_="/usr/lib:/lib"
9680 aix_libpath=$lt_cv_aix_libpath_
9683 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9684 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9686 if test "$host_cpu" = ia64; then
9687 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9688 allow_undefined_flag="-z nodefs"
9689 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"
9691 # Determine the default libpath from the value encoded in an
9693 if test "${lt_cv_aix_libpath+set}" = set; then
9694 aix_libpath=$lt_cv_aix_libpath
9696 if ${lt_cv_aix_libpath_+:} false; then :
9697 $as_echo_n "(cached) " >&6
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9710 if ac_fn_c_try_link "$LINENO"; then :
9712 lt_aix_libpath_sed='
9713 /Import File Strings/,/^$/ {
9715 s/^0 *\([^ ]*\) *$/\1/
9719 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9720 # Check for a 64-bit object if we didn't find anything.
9721 if test -z "$lt_cv_aix_libpath_"; then
9722 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725 rm -f core conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727 if test -z "$lt_cv_aix_libpath_"; then
9728 lt_cv_aix_libpath_="/usr/lib:/lib"
9733 aix_libpath=$lt_cv_aix_libpath_
9736 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9737 # Warning - without using the other run time loading flags,
9738 # -berok will link without error, but may produce a broken library.
9739 no_undefined_flag=' ${wl}-bernotok'
9740 allow_undefined_flag=' ${wl}-berok'
9741 if test "$with_gnu_ld" = yes; then
9742 # We only use this code for GNU lds that support --whole-archive.
9743 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9745 # Exported symbols can be pulled into shared objects from archives
9746 whole_archive_flag_spec='$convenience'
9748 archive_cmds_need_lc=yes
9749 # This is similar to how AIX traditionally builds its shared libraries.
9750 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'
9758 # see comment about AmigaOS4 .so support
9759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9760 archive_expsym_cmds=''
9763 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)'
9764 hardcode_libdir_flag_spec='-L$libdir'
9765 hardcode_minus_L=yes
9771 export_dynamic_flag_spec=-rdynamic
9774 cygwin* | mingw* | pw32* | cegcc*)
9775 # When not using gcc, we currently assume that we are using
9776 # Microsoft Visual C++.
9777 # hardcode_libdir_flag_spec is actually meaningless, as there is
9778 # no search path for DLLs.
9779 case $cc_basename in
9782 hardcode_libdir_flag_spec=' '
9783 allow_undefined_flag=unsupported
9784 always_export_symbols=yes
9786 # Tell ltmain to make .lib files, not .a files.
9788 # Tell ltmain to make .dll files, not .so files.
9790 # FIXME: Setting linknames here is a bad hack.
9791 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9792 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9793 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9795 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9797 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9799 # The linker will not automatically build a static lib if we build a DLL.
9800 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9801 enable_shared_with_static_runtimes=yes
9802 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9803 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9805 old_postinstall_cmds='chmod 644 $oldlib'
9806 postlink_cmds='lt_outputfile="@OUTPUT@"~
9807 lt_tool_outputfile="@TOOL_OUTPUT@"~
9808 case $lt_outputfile in
9811 lt_outputfile="$lt_outputfile.exe"
9812 lt_tool_outputfile="$lt_tool_outputfile.exe"
9815 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9816 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9817 $RM "$lt_outputfile.manifest";
9821 # Assume MSVC wrapper
9822 hardcode_libdir_flag_spec=' '
9823 allow_undefined_flag=unsupported
9824 # Tell ltmain to make .lib files, not .a files.
9826 # Tell ltmain to make .dll files, not .so files.
9828 # FIXME: Setting linknames here is a bad hack.
9829 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9830 # The linker will automatically build a .lib file if we build a DLL.
9831 old_archive_from_new_cmds='true'
9832 # FIXME: Should let the user specify the lib program.
9833 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9834 enable_shared_with_static_runtimes=yes
9839 darwin* | rhapsody*)
9842 archive_cmds_need_lc=no
9844 hardcode_automatic=yes
9845 hardcode_shlibpath_var=unsupported
9846 if test "$lt_cv_ld_force_load" = "yes"; then
9847 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9850 whole_archive_flag_spec=''
9852 link_all_deplibs=yes
9853 allow_undefined_flag="$_lt_dar_allow_undefined"
9854 case $cc_basename in
9855 ifort*) _lt_dar_can_shared=yes ;;
9856 *) _lt_dar_can_shared=$GCC ;;
9858 if test "$_lt_dar_can_shared" = "yes"; then
9859 output_verbose_link_cmd=func_echo_all
9860 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9861 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9862 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}"
9863 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}"
9872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9873 hardcode_libdir_flag_spec='-L$libdir'
9874 hardcode_shlibpath_var=no
9877 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9878 # support. Future versions do this automatically, but an explicit c++rt0.o
9879 # does not break anything, and helps significantly (at the cost of a little
9882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9883 hardcode_libdir_flag_spec='-R$libdir'
9885 hardcode_shlibpath_var=no
9888 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9892 hardcode_minus_L=yes
9893 hardcode_shlibpath_var=no
9896 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9897 freebsd* | dragonfly*)
9898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9899 hardcode_libdir_flag_spec='-R$libdir'
9901 hardcode_shlibpath_var=no
9905 if test "$GCC" = yes; then
9906 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9908 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'
9910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911 hardcode_libdir_separator=:
9914 # hardcode_minus_L: Not really in the search PATH,
9915 # but as the default location of the library.
9916 hardcode_minus_L=yes
9917 export_dynamic_flag_spec='${wl}-E'
9921 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9922 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9924 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9926 if test "$with_gnu_ld" = no; then
9927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9928 hardcode_libdir_separator=:
9930 hardcode_direct_absolute=yes
9931 export_dynamic_flag_spec='${wl}-E'
9932 # hardcode_minus_L: Not really in the search PATH,
9933 # but as the default location of the library.
9934 hardcode_minus_L=yes
9939 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9942 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9945 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9954 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9957 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9961 # Older versions of the 11.00 compiler do not understand -b yet
9962 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9964 $as_echo_n "checking if $CC understands -b... " >&6; }
9965 if ${lt_cv_prog_compiler__b+:} false; then :
9966 $as_echo_n "(cached) " >&6
9968 lt_cv_prog_compiler__b=no
9969 save_LDFLAGS="$LDFLAGS"
9970 LDFLAGS="$LDFLAGS -b"
9971 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9972 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9973 # The linker can only warn and ignore the option if not recognized
9974 # So say no if there are warnings
9975 if test -s conftest.err; then
9976 # Append any errors to the config.log.
9977 cat conftest.err 1>&5
9978 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9979 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9980 if diff conftest.exp conftest.er2 >/dev/null; then
9981 lt_cv_prog_compiler__b=yes
9984 lt_cv_prog_compiler__b=yes
9988 LDFLAGS="$save_LDFLAGS"
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9992 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9994 if test x"$lt_cv_prog_compiler__b" = xyes; then
9995 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10003 if test "$with_gnu_ld" = no; then
10004 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10005 hardcode_libdir_separator=:
10010 hardcode_shlibpath_var=no
10013 hardcode_direct=yes
10014 hardcode_direct_absolute=yes
10015 export_dynamic_flag_spec='${wl}-E'
10017 # hardcode_minus_L: Not really in the search PATH,
10018 # but as the default location of the library.
10019 hardcode_minus_L=yes
10025 irix5* | irix6* | nonstopux*)
10026 if test "$GCC" = yes; then
10027 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10028 # Try to use the -exported_symbol ld option, if it does not
10029 # work, assume that -exports_file does not work either and
10030 # implicitly export all symbols.
10031 # This should be the same for all languages, so no per-tag cache variable.
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10033 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10034 if ${lt_cv_irix_exported_symbol+:} false; then :
10035 $as_echo_n "(cached) " >&6
10037 save_LDFLAGS="$LDFLAGS"
10038 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h. */
10041 int foo (void) { return 0; }
10043 if ac_fn_c_try_link "$LINENO"; then :
10044 lt_cv_irix_exported_symbol=yes
10046 lt_cv_irix_exported_symbol=no
10048 rm -f core conftest.err conftest.$ac_objext \
10049 conftest$ac_exeext conftest.$ac_ext
10050 LDFLAGS="$save_LDFLAGS"
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10053 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10054 if test "$lt_cv_irix_exported_symbol" = yes; then
10055 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10061 archive_cmds_need_lc='no'
10062 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063 hardcode_libdir_separator=:
10065 link_all_deplibs=yes
10069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10072 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10074 hardcode_libdir_flag_spec='-R$libdir'
10075 hardcode_direct=yes
10076 hardcode_shlibpath_var=no
10080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_direct=yes
10082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10083 hardcode_libdir_separator=:
10084 hardcode_shlibpath_var=no
10091 if test -f /usr/libexec/ld.so; then
10092 hardcode_direct=yes
10093 hardcode_shlibpath_var=no
10094 hardcode_direct_absolute=yes
10095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10098 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10099 export_dynamic_flag_spec='${wl}-E'
10102 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_libdir_flag_spec='-R$libdir'
10107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10108 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10118 hardcode_libdir_flag_spec='-L$libdir'
10119 hardcode_minus_L=yes
10120 allow_undefined_flag=unsupported
10121 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'
10122 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10126 if test "$GCC" = yes; then
10127 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10128 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10130 allow_undefined_flag=' -expect_unresolved \*'
10131 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10133 archive_cmds_need_lc='no'
10134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135 hardcode_libdir_separator=:
10138 osf4* | osf5*) # as osf3* with the addition of -msym flag
10139 if test "$GCC" = yes; then
10140 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10141 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10144 allow_undefined_flag=' -expect_unresolved \*'
10145 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10146 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~
10147 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10149 # Both c and cxx compiler support -rpath directly
10150 hardcode_libdir_flag_spec='-rpath $libdir'
10152 archive_cmds_need_lc='no'
10153 hardcode_libdir_separator=:
10157 no_undefined_flag=' -z defs'
10158 if test "$GCC" = yes; then
10160 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10162 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10164 case `$CC -V 2>&1` in
10167 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10168 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10169 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10173 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10174 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10175 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10179 hardcode_libdir_flag_spec='-R$libdir'
10180 hardcode_shlibpath_var=no
10182 solaris2.[0-5] | solaris2.[0-5].*) ;;
10184 # The compiler driver will combine and reorder linker options,
10185 # but understands `-z linker_flag'. GCC discards it without `$wl',
10186 # but is careful enough not to reorder.
10187 # Supported since Solaris 2.6 (maybe 2.5.1?)
10188 if test "$GCC" = yes; then
10189 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10191 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10195 link_all_deplibs=yes
10199 if test "x$host_vendor" = xsequent; then
10200 # Use $CC to link under sequent, because it throws in some extra .o
10201 # files that make .init and .fini sections work.
10202 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10204 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10206 hardcode_libdir_flag_spec='-L$libdir'
10207 hardcode_direct=yes
10208 hardcode_minus_L=yes
10209 hardcode_shlibpath_var=no
10213 case $host_vendor in
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_direct=yes # is this really true???
10219 ## LD is ld it makes a PLAMLIB
10220 ## CC just makes a GrossModule.
10221 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10222 reload_cmds='$CC -r -o $output$reload_objs'
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10230 runpath_var='LD_RUN_PATH'
10231 hardcode_shlibpath_var=no
10235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10236 hardcode_shlibpath_var=no
10237 export_dynamic_flag_spec='-Bexport'
10241 if test -d /usr/nec; then
10242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_shlibpath_var=no
10244 runpath_var=LD_RUN_PATH
10245 hardcode_runpath_var=yes
10250 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10251 no_undefined_flag='${wl}-z,text'
10252 archive_cmds_need_lc=no
10253 hardcode_shlibpath_var=no
10254 runpath_var='LD_RUN_PATH'
10256 if test "$GCC" = yes; then
10257 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 sysv5* | sco3.2v5* | sco5v6*)
10266 # Note: We can NOT use -z defs as we might desire, because we do not
10267 # link with -lc, and that would cause any symbols used from libc to
10268 # always be unresolved, which means just about no library would
10269 # ever link correctly. If we're not using GNU ld we use -z text
10270 # though, which does catch some bad symbols but isn't as heavy-handed
10272 no_undefined_flag='${wl}-z,text'
10273 allow_undefined_flag='${wl}-z,nodefs'
10274 archive_cmds_need_lc=no
10275 hardcode_shlibpath_var=no
10276 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10277 hardcode_libdir_separator=':'
10278 link_all_deplibs=yes
10279 export_dynamic_flag_spec='${wl}-Bexport'
10280 runpath_var='LD_RUN_PATH'
10282 if test "$GCC" = yes; then
10283 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_libdir_flag_spec='-L$libdir'
10294 hardcode_shlibpath_var=no
10302 if test x$host_vendor = xsni; then
10304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10305 export_dynamic_flag_spec='${wl}-Blargedynsym'
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10312 $as_echo "$ld_shlibs" >&6; }
10313 test "$ld_shlibs" = no && can_build_shared=no
10315 with_gnu_ld=$with_gnu_ld
10332 # Do we need to explicitly link libc?
10334 case "x$archive_cmds_need_lc" in
10336 # Assume -lc should be added
10337 archive_cmds_need_lc=yes
10339 if test "$enable_shared" = yes && test "$GCC" = yes; then
10340 case $archive_cmds in
10342 # FIXME: we may have to deal with multi-command sequences.
10345 # Test whether the compiler implicitly links with -lc since on some
10346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10347 # to ld, don't add -lc before -lgcc.
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10349 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10350 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10351 $as_echo_n "(cached) " >&6
10354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10357 (eval $ac_compile) 2>&5
10359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10360 test $ac_status = 0; } 2>conftest.err; then
10363 libobjs=conftest.$ac_objext
10365 wl=$lt_prog_compiler_wl
10366 pic_flag=$lt_prog_compiler_pic
10372 lt_save_allow_undefined_flag=$allow_undefined_flag
10373 allow_undefined_flag=
10374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10375 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10378 test $ac_status = 0; }
10380 lt_cv_archive_cmds_need_lc=no
10382 lt_cv_archive_cmds_need_lc=yes
10384 allow_undefined_flag=$lt_save_allow_undefined_flag
10386 cat conftest.err 1>&5
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10392 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10393 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10552 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10554 if test "$GCC" = yes; then
10556 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10557 *) lt_awk_arg="/^libraries:/" ;;
10560 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10561 *) lt_sed_strip_eq="s,=/,/,g" ;;
10563 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10564 case $lt_search_path_spec in
10566 # if the path contains ";" then we assume it to be the separator
10567 # otherwise default to the standard path separator (i.e. ":") - it is
10568 # assumed that no part of a normal pathname contains ";" but that should
10569 # okay in the real world where ";" in dirpaths is itself problematic.
10570 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10573 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10576 # Ok, now we have the path, separated by spaces, we can step through it
10577 # and add multilib dir if necessary.
10578 lt_tmp_lt_search_path_spec=
10579 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10580 for lt_sys_path in $lt_search_path_spec; do
10581 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10584 test -d "$lt_sys_path" && \
10585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10588 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10589 BEGIN {RS=" "; FS="/|\n";} {
10592 for (lt_i = NF; lt_i > 0; lt_i--) {
10593 if ($lt_i != "" && $lt_i != ".") {
10594 if ($lt_i == "..") {
10597 if (lt_count == 0) {
10598 lt_foo="/" $lt_i lt_foo;
10605 if (lt_foo != "") { lt_freq[lt_foo]++; }
10606 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10608 # AWK program above erroneously prepends '/' to C:/dos/paths
10611 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10612 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10614 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10618 library_names_spec=
10619 libname_spec='lib$name'
10623 postuninstall_cmds=
10627 shlibpath_overrides_runpath=unknown
10629 dynamic_linker="$host_os ld.so"
10630 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10631 need_lib_prefix=unknown
10632 hardcode_into_libs=no
10634 # when you set need_version to no, make sure it does not cause -set_version
10635 # flags to be left without arguments
10636 need_version=unknown
10640 version_type=linux # correct to gnu/linux during the next big refactor
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10642 shlibpath_var=LIBPATH
10644 # AIX 3 has no versioning support, so we append a major version to the name.
10645 soname_spec='${libname}${release}${shared_ext}$major'
10649 version_type=linux # correct to gnu/linux during the next big refactor
10652 hardcode_into_libs=yes
10653 if test "$host_cpu" = ia64; then
10654 # AIX 5 supports IA64
10655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10656 shlibpath_var=LD_LIBRARY_PATH
10658 # With GCC up to 2.95.x, collect2 would create an import file
10659 # for dependence libraries. The import file would start with
10660 # the line `#! .'. This would cause the generated library to
10661 # depend on `.', always an invalid library. This was fixed in
10662 # development snapshots of GCC prior to 3.0.
10664 aix4 | aix4.[01] | aix4.[01].*)
10665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10667 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10670 can_build_shared=no
10674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10675 # soname into executable. Probably we can add versioning support to
10676 # collect2, so additional links can be useful in future.
10677 if test "$aix_use_runtimelinking" = yes; then
10678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10679 # instead of lib<name>.a to let people know that these are not
10680 # typical AIX shared libraries.
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683 # We preserve .a as extension for shared libraries through AIX4.2
10684 # and later when we are not doing run time linking.
10685 library_names_spec='${libname}${release}.a $libname.a'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LIBPATH
10695 # Since July 2007 AmigaOS4 officially supports .so libraries.
10696 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 library_names_spec='$libname.ixlibrary $libname.a'
10701 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10702 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10708 library_names_spec='${libname}${shared_ext}'
10709 dynamic_linker="$host_os ld.so"
10710 shlibpath_var=LIBRARY_PATH
10714 version_type=linux # correct to gnu/linux during the next big refactor
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10722 # the default ld.so.conf also contains /usr/contrib/lib and
10723 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10724 # libtool to hard-code these into programs
10727 cygwin* | mingw* | pw32* | cegcc*)
10728 version_type=windows
10733 case $GCC,$cc_basename in
10736 library_names_spec='$libname.dll.a'
10737 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10738 postinstall_cmds='base_file=`basename \${file}`~
10739 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10740 dldir=$destdir/`dirname \$dlpath`~
10741 test -d \$dldir || mkdir -p \$dldir~
10742 $install_prog $dir/$dlname \$dldir/$dlname~
10743 chmod a+x \$dldir/$dlname~
10744 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10745 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10747 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10748 dlpath=$dir/\$dldll~
10750 shlibpath_overrides_runpath=yes
10754 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10755 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10757 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10760 # MinGW DLLs use traditional 'lib' prefix
10761 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10764 # pw32 DLLs use 'pw' prefix rather than 'lib'
10765 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768 dynamic_linker='Win32 ld.exe'
10773 libname_spec='$name'
10774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10775 library_names_spec='${libname}.dll.lib'
10779 sys_lib_search_path_spec=
10782 for lt_path in $LIB
10785 # Let DOS variable expansion print the short 8.3 style file name.
10786 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10787 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10790 # Convert to MSYS style.
10791 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10794 # Convert to unix form, then to dos form, then back to unix form
10795 # but this time dos style (no spaces!) so that the unix form looks
10796 # like /cygdrive/c/PROGRA~1:/cygdr...
10797 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10798 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10799 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10802 sys_lib_search_path_spec="$LIB"
10803 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10804 # It is most probably a Windows format PATH.
10805 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10807 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10809 # FIXME: find the short name or the path components, as spaces are
10810 # common. (e.g. "Program Files" -> "PROGRA~1")
10814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10815 postinstall_cmds='base_file=`basename \${file}`~
10816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10817 dldir=$destdir/`dirname \$dlpath`~
10818 test -d \$dldir || mkdir -p \$dldir~
10819 $install_prog $dir/$dlname \$dldir/$dlname'
10820 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10821 dlpath=$dir/\$dldll~
10823 shlibpath_overrides_runpath=yes
10824 dynamic_linker='Win32 link.exe'
10828 # Assume MSVC wrapper
10829 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10830 dynamic_linker='Win32 ld.exe'
10833 # FIXME: first we should search . and the directory the executable is in
10837 darwin* | rhapsody*)
10838 dynamic_linker="$host_os dyld"
10839 version_type=darwin
10842 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10843 soname_spec='${libname}${release}${major}$shared_ext'
10844 shlibpath_overrides_runpath=yes
10845 shlibpath_var=DYLD_LIBRARY_PATH
10846 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10848 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10853 version_type=linux # correct to gnu/linux during the next big refactor
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 shlibpath_var=LD_LIBRARY_PATH
10861 freebsd* | dragonfly*)
10862 # DragonFly does not have aout. When/if they implement a new
10863 # versioning mechanism, adjust this.
10864 if test -x /usr/bin/objformat; then
10865 objformat=`/usr/bin/objformat`
10868 freebsd[23].*) objformat=aout ;;
10869 *) objformat=elf ;;
10872 version_type=freebsd-$objformat
10873 case $version_type in
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10884 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=yes
10889 freebsd3.[01]* | freebsdelf3.[01]*)
10890 shlibpath_overrides_runpath=yes
10891 hardcode_into_libs=yes
10893 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10894 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10895 shlibpath_overrides_runpath=no
10896 hardcode_into_libs=yes
10898 *) # from 4.6 on, and DragonFly
10899 shlibpath_overrides_runpath=yes
10900 hardcode_into_libs=yes
10906 version_type=linux # correct to gnu/linux during the next big refactor
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=no
10913 hardcode_into_libs=yes
10917 version_type=linux # correct to gnu/linux during the next big refactor
10920 dynamic_linker="$host_os runtime_loader"
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LIBRARY_PATH
10924 shlibpath_overrides_runpath=yes
10925 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10926 hardcode_into_libs=yes
10929 hpux9* | hpux10* | hpux11*)
10930 # Give a soname corresponding to the major version so that dld.sl refuses to
10931 # link against other versions.
10938 hardcode_into_libs=yes
10939 dynamic_linker="$host_os dld.so"
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 if test "X$HPUX_IA64_MODE" = X32; then
10945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10953 hardcode_into_libs=yes
10954 dynamic_linker="$host_os dld.sl"
10955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10964 dynamic_linker="$host_os dld.sl"
10965 shlibpath_var=SHLIB_PATH
10966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10972 postinstall_cmds='chmod 555 $lib'
10973 # or fails outright, so override atomically:
10974 install_override_mode=555
10978 version_type=linux # correct to gnu/linux during the next big refactor
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986 hardcode_into_libs=yes
10989 irix5* | irix6* | nonstopux*)
10991 nonstopux*) version_type=nonstopux ;;
10993 if test "$lt_cv_prog_gnu_ld" = yes; then
10994 version_type=linux # correct to gnu/linux during the next big refactor
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11004 irix5* | nonstopux*)
11005 libsuff= shlibsuff=
11008 case $LD in # libtool.m4 will add one of these switches to LD
11009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11010 libsuff= shlibsuff= libmagic=32-bit;;
11011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11012 libsuff=32 shlibsuff=N32 libmagic=N32;;
11013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11015 *) libsuff= shlibsuff= libmagic=never-match;;
11019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11020 shlibpath_overrides_runpath=no
11021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11023 hardcode_into_libs=yes
11026 # No shared lib support for Linux oldld, aout, or coff.
11027 linux*oldld* | linux*aout* | linux*coff*)
11031 # This must be glibc/ELF.
11032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11033 version_type=linux # correct to gnu/linux during the next big refactor
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=no
11042 # Some binutils ld are patched to set DT_RUNPATH
11043 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11044 $as_echo_n "(cached) " >&6
11046 lt_cv_shlibpath_overrides_runpath=no
11047 save_LDFLAGS=$LDFLAGS
11048 save_libdir=$libdir
11049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11062 if ac_fn_c_try_link "$LINENO"; then :
11063 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11064 lt_cv_shlibpath_overrides_runpath=yes
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LDFLAGS=$save_LDFLAGS
11070 libdir=$save_libdir
11074 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11076 # This implies no fast_install, which is unacceptable.
11077 # Some rework will be needed to allow for fast_install
11078 # before this can be enabled.
11079 hardcode_into_libs=yes
11081 # Add ABI-specific directories to the system library path.
11082 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11084 # Append ld.so.conf contents to the search path
11085 if test -f /etc/ld.so.conf; then
11086 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;s/"//g;/^$/d' | tr '\n' ' '`
11087 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11091 # We used to test for /lib/ld.so.1 and disable shared libraries on
11092 # powerpc, because MkLinux only supported shared libraries with the
11093 # GNU dynamic linker. Since this was broken with cross compilers,
11094 # most powerpc-linux boxes support dynamic linking these days and
11095 # people can always --disable-shared, the test was removed, and we
11096 # assume the GNU/Linux dynamic linker is in use.
11097 dynamic_linker='GNU/Linux ld.so'
11104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107 dynamic_linker='NetBSD (a.out) ld.so'
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 dynamic_linker='NetBSD ld.elf_so'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 shlibpath_overrides_runpath=yes
11115 hardcode_into_libs=yes
11119 version_type=linux # correct to gnu/linux during the next big refactor
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11130 soname_spec='${libname}${release}${shared_ext}$major'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 shlibpath_overrides_runpath=no
11133 hardcode_into_libs=yes
11134 dynamic_linker='ldqnx.so'
11139 sys_lib_dlsearch_path_spec="/usr/lib"
11141 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11143 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11144 *) need_version=no ;;
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11151 openbsd2.[89] | openbsd2.[89].*)
11152 shlibpath_overrides_runpath=no
11155 shlibpath_overrides_runpath=yes
11159 shlibpath_overrides_runpath=yes
11164 libname_spec='$name'
11167 library_names_spec='$libname${shared_ext} $libname.a'
11168 dynamic_linker='OS/2 ld.exe'
11169 shlibpath_var=LIBPATH
11172 osf3* | osf4* | osf5*)
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11180 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11188 version_type=linux # correct to gnu/linux during the next big refactor
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=yes
11195 hardcode_into_libs=yes
11196 # ldd complains unless libraries are executable
11197 postinstall_cmds='chmod +x $lib'
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 shlibpath_overrides_runpath=yes
11206 if test "$with_gnu_ld" = yes; then
11213 version_type=linux # correct to gnu/linux during the next big refactor
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 case $host_vendor in
11219 shlibpath_overrides_runpath=no
11221 runpath_var=LD_RUN_PATH
11229 shlibpath_overrides_runpath=no
11230 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11236 if test -d /usr/nec ;then
11237 version_type=linux # correct to gnu/linux during the next big refactor
11238 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11239 soname_spec='$libname${shared_ext}.$major'
11240 shlibpath_var=LD_LIBRARY_PATH
11244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11245 version_type=freebsd-elf
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 shlibpath_overrides_runpath=yes
11252 hardcode_into_libs=yes
11253 if test "$with_gnu_ld" = yes; then
11254 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11256 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11259 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11263 sys_lib_dlsearch_path_spec='/usr/lib'
11267 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11268 version_type=linux # correct to gnu/linux during the next big refactor
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath=no
11274 hardcode_into_libs=yes
11278 version_type=linux # correct to gnu/linux during the next big refactor
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280 soname_spec='${libname}${release}${shared_ext}$major'
11281 shlibpath_var=LD_LIBRARY_PATH
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11289 $as_echo "$dynamic_linker" >&6; }
11290 test "$dynamic_linker" = no && can_build_shared=no
11292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11293 if test "$GCC" = yes; then
11294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11297 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11298 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11300 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11301 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11396 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11398 if test -n "$hardcode_libdir_flag_spec" ||
11399 test -n "$runpath_var" ||
11400 test "X$hardcode_automatic" = "Xyes" ; then
11402 # We can hardcode non-existent directories.
11403 if test "$hardcode_direct" != no &&
11404 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11405 # have to relink, otherwise we might link with an installed library
11406 # when we should be linking with a yet-to-be-installed one
11407 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11408 test "$hardcode_minus_L" != no; then
11409 # Linking always hardcodes the temporary library directory.
11410 hardcode_action=relink
11412 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11413 hardcode_action=immediate
11416 # We cannot hardcode anything, or else we can only hardcode existing
11418 hardcode_action=unsupported
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11421 $as_echo "$hardcode_action" >&6; }
11423 if test "$hardcode_action" = relink ||
11424 test "$inherit_rpath" = yes; then
11425 # Fast installation is not supported
11426 enable_fast_install=no
11427 elif test "$shlibpath_overrides_runpath" = yes ||
11428 test "$enable_shared" = no; then
11429 # Fast installation is not necessary
11430 enable_fast_install=needless
11438 if test "x$enable_dlopen" != xyes; then
11439 enable_dlopen=unknown
11440 enable_dlopen_self=unknown
11441 enable_dlopen_self_static=unknown
11448 lt_cv_dlopen="load_add_on"
11450 lt_cv_dlopen_self=yes
11453 mingw* | pw32* | cegcc*)
11454 lt_cv_dlopen="LoadLibrary"
11459 lt_cv_dlopen="dlopen"
11464 # if libdl is installed we need to link against it
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11466 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11467 if ${ac_cv_lib_dl_dlopen+:} false; then :
11468 $as_echo_n "(cached) " >&6
11470 ac_check_lib_save_LIBS=$LIBS
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11475 /* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_lib_dl_dlopen=yes
11493 ac_cv_lib_dl_dlopen=no
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11501 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11502 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11505 lt_cv_dlopen="dyld"
11507 lt_cv_dlopen_self=yes
11514 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11515 if test "x$ac_cv_func_shl_load" = xyes; then :
11516 lt_cv_dlopen="shl_load"
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11519 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11520 if ${ac_cv_lib_dld_shl_load+:} false; then :
11521 $as_echo_n "(cached) " >&6
11523 ac_check_lib_save_LIBS=$LIBS
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11528 /* Override any GCC internal prototype to avoid an error.
11529 Use char because int might match the return type of a GCC
11530 builtin and then its argument prototype would still apply. */
11538 return shl_load ();
11543 if ac_fn_c_try_link "$LINENO"; then :
11544 ac_cv_lib_dld_shl_load=yes
11546 ac_cv_lib_dld_shl_load=no
11548 rm -f core conftest.err conftest.$ac_objext \
11549 conftest$ac_exeext conftest.$ac_ext
11550 LIBS=$ac_check_lib_save_LIBS
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11553 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11554 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11555 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11557 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11558 if test "x$ac_cv_func_dlopen" = xyes; then :
11559 lt_cv_dlopen="dlopen"
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11562 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11563 if ${ac_cv_lib_dl_dlopen+:} false; then :
11564 $as_echo_n "(cached) " >&6
11566 ac_check_lib_save_LIBS=$LIBS
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11586 if ac_fn_c_try_link "$LINENO"; then :
11587 ac_cv_lib_dl_dlopen=yes
11589 ac_cv_lib_dl_dlopen=no
11591 rm -f core conftest.err conftest.$ac_objext \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_lib_save_LIBS
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11597 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11598 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11601 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11602 if ${ac_cv_lib_svld_dlopen+:} false; then :
11603 $as_echo_n "(cached) " >&6
11605 ac_check_lib_save_LIBS=$LIBS
11606 LIBS="-lsvld $LIBS"
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11610 /* Override any GCC internal prototype to avoid an error.
11611 Use char because int might match the return type of a GCC
11612 builtin and then its argument prototype would still apply. */
11625 if ac_fn_c_try_link "$LINENO"; then :
11626 ac_cv_lib_svld_dlopen=yes
11628 ac_cv_lib_svld_dlopen=no
11630 rm -f core conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11632 LIBS=$ac_check_lib_save_LIBS
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11635 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11636 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11640 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11641 if ${ac_cv_lib_dld_dld_link+:} false; then :
11642 $as_echo_n "(cached) " >&6
11644 ac_check_lib_save_LIBS=$LIBS
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11649 /* Override any GCC internal prototype to avoid an error.
11650 Use char because int might match the return type of a GCC
11651 builtin and then its argument prototype would still apply. */
11659 return dld_link ();
11664 if ac_fn_c_try_link "$LINENO"; then :
11665 ac_cv_lib_dld_dld_link=yes
11667 ac_cv_lib_dld_dld_link=no
11669 rm -f core conftest.err conftest.$ac_objext \
11670 conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11674 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11675 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11676 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11697 if test "x$lt_cv_dlopen" != xno; then
11703 case $lt_cv_dlopen in
11705 save_CPPFLAGS="$CPPFLAGS"
11706 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11708 save_LDFLAGS="$LDFLAGS"
11709 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11712 LIBS="$lt_cv_dlopen_libs $LIBS"
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11715 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11716 if ${lt_cv_dlopen_self+:} false; then :
11717 $as_echo_n "(cached) " >&6
11719 if test "$cross_compiling" = yes; then :
11720 lt_cv_dlopen_self=cross
11722 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11723 lt_status=$lt_dlunknown
11724 cat > conftest.$ac_ext <<_LT_EOF
11725 #line $LINENO "configure"
11726 #include "confdefs.h"
11735 # define LT_DLGLOBAL RTLD_GLOBAL
11738 # define LT_DLGLOBAL DL_GLOBAL
11740 # define LT_DLGLOBAL 0
11744 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11745 find out it does not work in some platform. */
11746 #ifndef LT_DLLAZY_OR_NOW
11748 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11751 # define LT_DLLAZY_OR_NOW DL_LAZY
11754 # define LT_DLLAZY_OR_NOW RTLD_NOW
11757 # define LT_DLLAZY_OR_NOW DL_NOW
11759 # define LT_DLLAZY_OR_NOW 0
11766 /* When -fvisbility=hidden is used, assume the code has been annotated
11767 correspondingly for the symbols needed. */
11768 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11769 int fnord () __attribute__((visibility("default")));
11772 int fnord () { return 42; }
11775 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11776 int status = $lt_dlunknown;
11780 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11783 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11784 else puts (dlerror ());
11786 /* dlclose (self); */
11794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11795 (eval $ac_link) 2>&5
11797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11798 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11799 (./conftest; exit; ) >&5 2>/dev/null
11801 case x$lt_status in
11802 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11803 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11804 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11807 # compilation failed
11808 lt_cv_dlopen_self=no
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11816 $as_echo "$lt_cv_dlopen_self" >&6; }
11818 if test "x$lt_cv_dlopen_self" = xyes; then
11819 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11821 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11822 if ${lt_cv_dlopen_self_static+:} false; then :
11823 $as_echo_n "(cached) " >&6
11825 if test "$cross_compiling" = yes; then :
11826 lt_cv_dlopen_self_static=cross
11828 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11829 lt_status=$lt_dlunknown
11830 cat > conftest.$ac_ext <<_LT_EOF
11831 #line $LINENO "configure"
11832 #include "confdefs.h"
11841 # define LT_DLGLOBAL RTLD_GLOBAL
11844 # define LT_DLGLOBAL DL_GLOBAL
11846 # define LT_DLGLOBAL 0
11850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11851 find out it does not work in some platform. */
11852 #ifndef LT_DLLAZY_OR_NOW
11854 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11857 # define LT_DLLAZY_OR_NOW DL_LAZY
11860 # define LT_DLLAZY_OR_NOW RTLD_NOW
11863 # define LT_DLLAZY_OR_NOW DL_NOW
11865 # define LT_DLLAZY_OR_NOW 0
11872 /* When -fvisbility=hidden is used, assume the code has been annotated
11873 correspondingly for the symbols needed. */
11874 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11875 int fnord () __attribute__((visibility("default")));
11878 int fnord () { return 42; }
11881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11882 int status = $lt_dlunknown;
11886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11889 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11890 else puts (dlerror ());
11892 /* dlclose (self); */
11900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11901 (eval $ac_link) 2>&5
11903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11904 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11905 (./conftest; exit; ) >&5 2>/dev/null
11907 case x$lt_status in
11908 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11909 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11910 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11913 # compilation failed
11914 lt_cv_dlopen_self_static=no
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11922 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11925 CPPFLAGS="$save_CPPFLAGS"
11926 LDFLAGS="$save_LDFLAGS"
11931 case $lt_cv_dlopen_self in
11932 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11933 *) enable_dlopen_self=unknown ;;
11936 case $lt_cv_dlopen_self_static in
11937 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11938 *) enable_dlopen_self_static=unknown ;;
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11961 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11962 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11963 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11964 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 $as_echo "yes" >&6; }
11968 # FIXME - insert some real tests, host_os isn't really good enough
11971 if test -n "$STRIP" ; then
11972 striplib="$STRIP -x"
11973 old_striplib="$STRIP -S"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11975 $as_echo "yes" >&6; }
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11999 # Report which library types will actually be built
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12001 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12003 $as_echo "$can_build_shared" >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12006 $as_echo_n "checking whether to build shared libraries... " >&6; }
12007 test "$can_build_shared" = "no" && enable_shared=no
12009 # On AIX, shared libraries and static libraries use the same namespace, and
12010 # are all built from PIC.
12013 test "$enable_shared" = yes && enable_static=no
12014 if test -n "$RANLIB"; then
12015 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12016 postinstall_cmds='$RANLIB $lib'
12021 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12022 test "$enable_shared" = yes && enable_static=no
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12027 $as_echo "$enable_shared" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12030 $as_echo_n "checking whether to build static libraries... " >&6; }
12031 # Make sure either enable_shared or enable_static is yes.
12032 test "$enable_shared" = yes || enable_static=yes
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12034 $as_echo "$enable_static" >&6; }
12041 ac_cpp='$CPP $CPPFLAGS'
12042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12062 ac_config_commands="$ac_config_commands libtool"
12067 # Only expand once:
12072 # Test for 64-bit build.
12073 # The cast to long int works around a bug in the HP C Compiler
12074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12076 # This bug is HP SR number 8606223364.
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12078 $as_echo_n "checking size of size_t... " >&6; }
12079 if ${ac_cv_sizeof_size_t+:} false; then :
12080 $as_echo_n "(cached) " >&6
12082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
12085 if test "$ac_cv_type_size_t" = yes; then
12086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12088 as_fn_error 77 "cannot compute sizeof (size_t)
12089 See \`config.log' for more details" "$LINENO" 5; }
12091 ac_cv_sizeof_size_t=0
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12097 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12101 cat >>confdefs.h <<_ACEOF
12102 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12108 $as_echo_n "checking for C compiler vendor... " >&6; }
12109 if ${ax_cv_c_compiler_vendor+:} false; then :
12110 $as_echo_n "(cached) " >&6
12112 # note: don't check for gcc first since some other compilers define __GNUC__
12113 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
12114 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
12115 pathscale: __PATHCC__,__PATHSCALE__
12118 sun: __SUNPRO_C,__SUNPRO_CC
12119 hp: __HP_cc,__HP_aCC
12120 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12121 borland: __BORLANDC__,__TURBOC__
12127 microsoft: _MSC_VER
12128 metrowerks: __MWERKS__
12129 watcom: __WATCOMC__
12132 for ventest in $vendors; do
12134 *:) vendor=$ventest; continue ;;
12135 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12152 if ac_fn_c_try_compile "$LINENO"; then :
12155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12161 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12168 # Check whether --enable-portable-binary was given.
12169 if test "${enable_portable_binary+set}" = set; then :
12170 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12172 acx_maxopt_portable=no
12176 # Try to determine "good" native compiler flags if none specified via CFLAGS
12177 if test "$ac_test_CFLAGS" != "set"; then
12179 case $ax_cv_c_compiler_vendor in
12180 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12181 if test "x$acx_maxopt_portable" = xno; then
12182 CFLAGS="$CFLAGS -arch host"
12185 sun) CFLAGS="-native -fast -xO5 -dalign"
12186 if test "x$acx_maxopt_portable" = xyes; then
12187 CFLAGS="$CFLAGS -xarch=generic"
12190 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
12191 if test "x$acx_maxopt_portable" = xyes; then
12192 CFLAGS="$CFLAGS +DAportable"
12195 ibm) if test "x$acx_maxopt_portable" = xno; then
12196 xlc_opt="-qarch=auto -qtune=auto"
12198 xlc_opt="-qtune=auto"
12200 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12202 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12203 if eval \${$as_CACHEVAR+:} false; then :
12204 $as_echo_n "(cached) " >&6
12207 ax_check_save_flags=$CFLAGS
12208 CFLAGS="$CFLAGS $xlc_opt"
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12220 if ac_fn_c_try_compile "$LINENO"; then :
12221 eval "$as_CACHEVAR=yes"
12223 eval "$as_CACHEVAR=no"
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 CFLAGS=$ax_check_save_flags
12228 eval ac_res=\$$as_CACHEVAR
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12230 $as_echo "$ac_res" >&6; }
12231 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12232 CFLAGS="-O3 -qansialias -w $xlc_opt"
12234 CFLAGS="-O3 -qansialias -w"
12235 echo "******************************************************"
12236 echo "* You seem to have the IBM C compiler. It is *"
12237 echo "* recommended for best performance that you use: *"
12239 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12241 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
12242 echo "* CPU you have. (Set the CFLAGS environment var. *"
12243 echo "* and re-run configure.) For more info, man cc. *"
12244 echo "******************************************************"
12249 intel) CFLAGS="-O3 -ansi_alias"
12250 if test "x$acx_maxopt_portable" = xno; then
12251 icc_archflag=unknown
12255 # icc accepts gcc assembly syntax, so these should work:
12258 ac_cpp='$CPP $CPPFLAGS'
12259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12264 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12265 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12266 $as_echo_n "(cached) " >&6
12268 if test "$cross_compiling" = yes; then :
12269 ax_cv_gcc_x86_cpuid_0=unknown
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12278 int op = 0, eax, ebx, ecx, edx;
12281 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12283 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12284 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12292 if ac_fn_c_try_run "$LINENO"; then :
12293 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12295 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12298 conftest.$ac_objext conftest.beam conftest.$ac_ext
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12303 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12305 ac_cpp='$CPP $CPPFLAGS'
12306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12313 ac_cpp='$CPP $CPPFLAGS'
12314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12319 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12320 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12321 $as_echo_n "(cached) " >&6
12323 if test "$cross_compiling" = yes; then :
12324 ax_cv_gcc_x86_cpuid_1=unknown
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12333 int op = 1, eax, ebx, ecx, edx;
12336 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12338 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12339 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12347 if ac_fn_c_try_run "$LINENO"; then :
12348 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12350 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12353 conftest.$ac_objext conftest.beam conftest.$ac_ext
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12358 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12360 ac_cpp='$CPP $CPPFLAGS'
12361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12366 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12367 *:756e6547:*:*) # Intel
12368 case $ax_cv_gcc_x86_cpuid_1 in
12369 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12370 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12371 *f??:*:*:*) icc_flags="-xN -xW -xK";;
12375 if test "x$icc_flags" != x; then
12376 for flag in $icc_flags; do
12377 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12379 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12380 if eval \${$as_CACHEVAR+:} false; then :
12381 $as_echo_n "(cached) " >&6
12384 ax_check_save_flags=$CFLAGS
12385 CFLAGS="$CFLAGS $flag"
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12397 if ac_fn_c_try_compile "$LINENO"; then :
12398 eval "$as_CACHEVAR=yes"
12400 eval "$as_CACHEVAR=no"
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 CFLAGS=$ax_check_save_flags
12405 eval ac_res=\$$as_CACHEVAR
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12407 $as_echo "$ac_res" >&6; }
12408 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12409 icc_archflag=$flag; break
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12417 $as_echo_n "checking for icc architecture flag... " >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12419 $as_echo "$icc_archflag" >&6; }
12420 if test "x$icc_archflag" != xunknown; then
12421 CFLAGS="$CFLAGS $icc_archflag"
12427 # default optimization flags for gcc on all systems
12428 CFLAGS="-O3 -fomit-frame-pointer"
12430 # -malign-double for x86 systems
12431 # LIBFFI -- DON'T DO THIS - CHANGES ABI
12432 # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12434 # -fstrict-aliasing for gcc-2.95+
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12436 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12437 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12438 $as_echo_n "(cached) " >&6
12441 ax_check_save_flags=$CFLAGS
12442 CFLAGS="$CFLAGS -fstrict-aliasing"
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12454 if ac_fn_c_try_compile "$LINENO"; then :
12455 ax_cv_check_cflags___fstrict_aliasing=yes
12457 ax_cv_check_cflags___fstrict_aliasing=no
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 CFLAGS=$ax_check_save_flags
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12463 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12464 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12465 CFLAGS="$CFLAGS -fstrict-aliasing"
12471 # note that we enable "unsafe" fp optimization with other compilers, too
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12473 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12474 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12475 $as_echo_n "(cached) " >&6
12478 ax_check_save_flags=$CFLAGS
12479 CFLAGS="$CFLAGS -ffast-math"
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12491 if ac_fn_c_try_compile "$LINENO"; then :
12492 ax_cv_check_cflags___ffast_math=yes
12494 ax_cv_check_cflags___ffast_math=no
12496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497 CFLAGS=$ax_check_save_flags
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12500 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12501 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12502 CFLAGS="$CFLAGS -ffast-math"
12512 # Check whether --with-gcc-arch was given.
12513 if test "${with_gcc_arch+set}" = set; then :
12514 withval=$with_gcc_arch; ax_gcc_arch=$withval
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12521 $as_echo_n "checking for gcc architecture flag... " >&6; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12524 if ${ax_cv_gcc_archflag+:} false; then :
12525 $as_echo_n "(cached) " >&6
12528 ax_cv_gcc_archflag="unknown"
12530 if test "$GCC" = yes; then
12532 if test "x$ax_gcc_arch" = xyes; then
12534 if test "$cross_compiling" = no; then
12536 i[3456]86*|x86_64*) # use cpuid codes
12539 ac_cpp='$CPP $CPPFLAGS'
12540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12545 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12546 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12547 $as_echo_n "(cached) " >&6
12549 if test "$cross_compiling" = yes; then :
12550 ax_cv_gcc_x86_cpuid_0=unknown
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12559 int op = 0, eax, ebx, ecx, edx;
12562 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12564 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12565 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12573 if ac_fn_c_try_run "$LINENO"; then :
12574 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12576 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12579 conftest.$ac_objext conftest.beam conftest.$ac_ext
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12584 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12586 ac_cpp='$CPP $CPPFLAGS'
12587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12594 ac_cpp='$CPP $CPPFLAGS'
12595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12600 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12601 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12602 $as_echo_n "(cached) " >&6
12604 if test "$cross_compiling" = yes; then :
12605 ax_cv_gcc_x86_cpuid_1=unknown
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12614 int op = 1, eax, ebx, ecx, edx;
12617 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12619 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12620 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12628 if ac_fn_c_try_run "$LINENO"; then :
12629 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12631 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12634 conftest.$ac_objext conftest.beam conftest.$ac_ext
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12639 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12641 ac_cpp='$CPP $CPPFLAGS'
12642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12647 case $ax_cv_gcc_x86_cpuid_0 in
12648 *:756e6547:*:*) # Intel
12649 case $ax_cv_gcc_x86_cpuid_1 in
12650 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12651 *5??:*:*:*) ax_gcc_arch=pentium ;;
12652 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12653 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12654 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12655 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12656 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12657 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12658 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12659 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12660 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12661 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12662 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12663 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12664 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12666 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12667 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12669 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12671 *:68747541:*:*) # AMD
12672 case $ax_cv_gcc_x86_cpuid_1 in
12673 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12674 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12675 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12676 *60?:*:*:*) ax_gcc_arch=k7 ;;
12677 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12678 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12679 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12689 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12690 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12691 $as_echo_n "(cached) " >&6
12693 if test "$cross_compiling" = yes; then :
12694 ax_cv_gcc_x86_cpuid_0x80000006=unknown
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12703 int op = 0x80000006, eax, ebx, ecx, edx;
12706 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12708 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12709 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12717 if ac_fn_c_try_run "$LINENO"; then :
12718 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12720 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12723 conftest.$ac_objext conftest.beam conftest.$ac_ext
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12728 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12730 ac_cpp='$CPP $CPPFLAGS'
12731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12736 case $ax_cv_gcc_x86_cpuid_0x80000006 in
12737 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12738 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12739 *) ax_gcc_arch="athlon-4 athlon k7" ;;
12741 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12742 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12743 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12744 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12745 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12746 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12747 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12749 *:746e6543:*:*) # IDT
12750 case $ax_cv_gcc_x86_cpuid_1 in
12751 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12752 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12753 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12754 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12757 if test x"$ax_gcc_arch" = x; then # fallback
12759 i586*) ax_gcc_arch=pentium ;;
12760 i686*) ax_gcc_arch=pentiumpro ;;
12766 # Extract the first word of "prtdiag", so it can be a program name with args.
12767 set dummy prtdiag; ac_word=$2
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12769 $as_echo_n "checking for $ac_word... " >&6; }
12770 if ${ac_cv_path_PRTDIAG+:} false; then :
12771 $as_echo_n "(cached) " >&6
12775 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12780 for as_dir in $as_dummy
12783 test -z "$as_dir" && as_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
12785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12786 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12798 PRTDIAG=$ac_cv_path_PRTDIAG
12799 if test -n "$PRTDIAG"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12801 $as_echo "$PRTDIAG" >&6; }
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12808 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
12809 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12811 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12812 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12813 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12814 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12815 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12816 *cypress*) ax_gcc_arch=cypress ;;
12819 alphaev5) ax_gcc_arch=ev5 ;;
12820 alphaev56) ax_gcc_arch=ev56 ;;
12821 alphapca56) ax_gcc_arch="pca56 ev56" ;;
12822 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12823 alphaev6) ax_gcc_arch=ev6 ;;
12824 alphaev67) ax_gcc_arch=ev67 ;;
12825 alphaev68) ax_gcc_arch="ev68 ev67" ;;
12826 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12827 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12828 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12831 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
12832 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12834 *750*) ax_gcc_arch="750 G3" ;;
12835 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12836 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12837 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12838 *970*) ax_gcc_arch="970 G5 power4";;
12839 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12840 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12841 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12842 *) ax_gcc_arch=$cputype ;;
12844 ax_gcc_arch="$ax_gcc_arch powerpc"
12847 fi # not cross-compiling
12850 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12851 for arch in $ax_gcc_arch; do
12852 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12853 flags="-mtune=$arch"
12854 # -mcpu=$arch and m$arch generate nonportable code on every arch except
12855 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
12856 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12858 flags="-march=$arch -mcpu=$arch -m$arch"
12860 for flag in $flags; do
12861 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12863 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12864 if eval \${$as_CACHEVAR+:} false; then :
12865 $as_echo_n "(cached) " >&6
12868 ax_check_save_flags=$CFLAGS
12869 CFLAGS="$CFLAGS $flag"
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12881 if ac_fn_c_try_compile "$LINENO"; then :
12882 eval "$as_CACHEVAR=yes"
12884 eval "$as_CACHEVAR=no"
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887 CFLAGS=$ax_check_save_flags
12889 eval ac_res=\$$as_CACHEVAR
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12891 $as_echo "$ac_res" >&6; }
12892 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12893 ax_cv_gcc_archflag=$flag; break
12899 test "x$ax_cv_gcc_archflag" = xunknown || break
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12908 $as_echo_n "checking for gcc architecture flag... " >&6; }
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12910 $as_echo "$ax_cv_gcc_archflag" >&6; }
12911 if test "x$ax_cv_gcc_archflag" = xunknown; then
12914 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12920 if test -z "$CFLAGS"; then
12922 echo "********************************************************"
12923 echo "* WARNING: Don't know the best CFLAGS for this system *"
12924 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12925 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
12926 echo "********************************************************"
12931 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12933 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12934 if eval \${$as_CACHEVAR+:} false; then :
12935 $as_echo_n "(cached) " >&6
12938 ax_check_save_flags=$CFLAGS
12939 CFLAGS="$CFLAGS $CFLAGS"
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12951 if ac_fn_c_try_compile "$LINENO"; then :
12952 eval "$as_CACHEVAR=yes"
12954 eval "$as_CACHEVAR=no"
12956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957 CFLAGS=$ax_check_save_flags
12959 eval ac_res=\$$as_CACHEVAR
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12961 $as_echo "$ac_res" >&6; }
12962 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12967 echo "********************************************************"
12968 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
12969 echo "* your compiler. *"
12970 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12971 echo "********************************************************"
12980 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
12982 if test "$ax_cv_c_compiler_vendor" != "sun"; then
12983 if ${CFLAGS+:} false; then :
12984 case " $CFLAGS " in
12986 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12987 (: CFLAGS already contains ) 2>&5
12989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12990 test $ac_status = 0; }
12993 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12994 (: CFLAGS="$CFLAGS ") 2>&5
12996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12997 test $ac_status = 0; }
13006 ac_cpp='$CPP $CPPFLAGS'
13007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13012 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13013 if ${ac_cv_cflags_warn_all+:} false; then :
13014 $as_echo_n "(cached) " >&6
13016 ac_cv_cflags_warn_all="no, unknown"
13017 ac_save_CFLAGS="$CFLAGS"
13018 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
13019 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13031 if ac_fn_c_try_compile "$LINENO"; then :
13032 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036 CFLAGS="$ac_save_CFLAGS"
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13040 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13042 case ".$ac_cv_cflags_warn_all" in
13045 *) if ${CFLAGS+:} false; then :
13046 case " $CFLAGS " in
13047 *" $ac_cv_cflags_warn_all "*)
13048 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13049 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13052 test $ac_status = 0; }
13055 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13056 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059 test $ac_status = 0; }
13060 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13064 CFLAGS="$ac_cv_cflags_warn_all"
13070 ac_cpp='$CPP $CPPFLAGS'
13071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13078 if test "x$GCC" = "xyes"; then
13079 CFLAGS="$CFLAGS -fexceptions"
13082 cat > local.exp <<EOF
13083 set CC_FOR_TARGET "$CC"
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13089 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13090 # Check whether --enable-maintainer-mode was given.
13091 if test "${enable_maintainer_mode+set}" = set; then :
13092 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13094 USE_MAINTAINER_MODE=no
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13098 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13099 if test $USE_MAINTAINER_MODE = yes; then
13100 MAINTAINER_MODE_TRUE=
13101 MAINTAINER_MODE_FALSE='#'
13103 MAINTAINER_MODE_TRUE='#'
13104 MAINTAINER_MODE_FALSE=
13107 MAINT=$MAINTAINER_MODE_TRUE
13111 for ac_header in sys/mman.h
13113 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13114 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13115 cat >>confdefs.h <<_ACEOF
13116 #define HAVE_SYS_MMAN_H 1
13123 for ac_func in mmap
13125 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13126 if test "x$ac_cv_func_mmap" = xyes; then :
13127 cat >>confdefs.h <<_ACEOF
13128 #define HAVE_MMAP 1
13135 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13136 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13137 libffi_header_sys_mman_h=yes
13139 libffi_header_sys_mman_h=no
13143 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13144 if test "x$ac_cv_func_mmap" = xyes; then :
13145 libffi_func_mmap=yes
13147 libffi_func_mmap=no
13150 if test "$libffi_header_sys_mman_h" != yes \
13151 || test "$libffi_func_mmap" != yes; then
13152 ac_cv_func_mmap_file=no
13153 ac_cv_func_mmap_dev_zero=no
13154 ac_cv_func_mmap_anon=no
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13157 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13158 if ${ac_cv_func_mmap_file+:} false; then :
13159 $as_echo_n "(cached) " >&6
13161 # Add a system to this blacklist if
13162 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13163 # memory area containing the same data that you'd get if you applied
13164 # read() to the same fd. The only system known to have a problem here
13165 # is VMS, where text files have record structure.
13168 ac_cv_func_mmap_file=no ;;
13170 ac_cv_func_mmap_file=yes;;
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13174 $as_echo "$ac_cv_func_mmap_file" >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13176 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13177 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13178 $as_echo_n "(cached) " >&6
13180 # Add a system to this blacklist if it has mmap() but /dev/zero
13181 # does not exist, or if mmapping /dev/zero does not give anonymous
13182 # zeroed pages with both the following properties:
13183 # 1. If you map N consecutive pages in with one call, and then
13184 # unmap any subset of those pages, the pages that were not
13185 # explicitly unmapped remain accessible.
13186 # 2. If you map two adjacent blocks of memory and then unmap them
13187 # both at once, they must both go away.
13188 # Systems known to be in this category are Windows (all variants),
13191 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13192 ac_cv_func_mmap_dev_zero=no ;;
13194 ac_cv_func_mmap_dev_zero=yes;;
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13198 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13200 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13202 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13203 if ${ac_cv_decl_map_anon+:} false; then :
13204 $as_echo_n "(cached) " >&6
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13208 #include <sys/types.h>
13209 #include <sys/mman.h>
13210 #include <unistd.h>
13212 #ifndef MAP_ANONYMOUS
13213 #define MAP_ANONYMOUS MAP_ANON
13219 int n = MAP_ANONYMOUS;
13224 if ac_fn_c_try_compile "$LINENO"; then :
13225 ac_cv_decl_map_anon=yes
13227 ac_cv_decl_map_anon=no
13229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13232 $as_echo "$ac_cv_decl_map_anon" >&6; }
13234 if test $ac_cv_decl_map_anon = no; then
13235 ac_cv_func_mmap_anon=no
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13238 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13239 if ${ac_cv_func_mmap_anon+:} false; then :
13240 $as_echo_n "(cached) " >&6
13242 # Add a system to this blacklist if it has mmap() and MAP_ANON or
13243 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13244 # doesn't give anonymous zeroed pages with the same properties listed
13245 # above for use of /dev/zero.
13246 # Systems known to be in this category are Windows, VMS, and SCO Unix.
13248 vms* | cygwin* | pe | mingw* | sco* | udk* )
13249 ac_cv_func_mmap_anon=no ;;
13251 ac_cv_func_mmap_anon=yes;;
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13255 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13259 if test $ac_cv_func_mmap_file = yes; then
13261 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13264 if test $ac_cv_func_mmap_dev_zero = yes; then
13266 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13269 if test $ac_cv_func_mmap_anon = yes; then
13271 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13276 if test -d $srcdir/testsuite; then
13278 TESTSUBDIR_FALSE='#'
13280 TESTSUBDIR_TRUE='#'
13285 TARGETDIR="unknown"
13288 TARGET=AARCH64; TARGETDIR=aarch64
13292 TARGET=ALPHA; TARGETDIR=alpha;
13293 # Support 128-bit long double, changeable via command-line switch.
13294 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13298 TARGET=ARM; TARGETDIR=arm
13301 amd64-*-freebsd* | amd64-*-openbsd*)
13302 TARGET=X86_64; TARGETDIR=x86
13306 TARGET=X86_64; TARGETDIR=x86
13310 TARGET=X86_64; TARGETDIR=x86
13314 TARGET=AVR32; TARGETDIR=avr32
13318 TARGET=BFIN; TARGETDIR=bfin
13322 TARGET=LIBFFI_CRIS; TARGETDIR=cris
13326 TARGET=FRV; TARGETDIR=frv
13329 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13330 TARGET=PA_LINUX; TARGETDIR=pa
13333 TARGET=PA64_HPUX; TARGETDIR=pa
13336 TARGET=PA_HPUX; TARGETDIR=pa
13339 i?86-*-freebsd* | i?86-*-openbsd*)
13340 TARGET=X86_FREEBSD; TARGETDIR=x86
13342 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13343 TARGET=X86_WIN32; TARGETDIR=x86
13344 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13345 # We must also check with_cross_host to decide if this is a native
13346 # or cross-build and select where to install dlls appropriately.
13347 if test -n "$with_cross_host" &&
13348 test x"$with_cross_host" != x"no"; then
13349 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13351 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13355 TARGET=X86_DARWIN; TARGETDIR=x86
13357 i?86-*-solaris2.1[0-9]*)
13359 if test $ac_cv_sizeof_size_t = 4; then
13366 i?86-*-* | x86_64-*-*)
13368 if test $ac_cv_sizeof_size_t = 4; then
13376 TARGET=IA64; TARGETDIR=ia64
13380 TARGET=M32R; TARGETDIR=m32r
13384 TARGET=M68K; TARGETDIR=m68k
13387 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13388 TARGET=MIPS; TARGETDIR=mips
13390 mips*-*-linux* | mips*-*-openbsd*)
13391 # Support 128-bit long double for NewABI.
13392 HAVE_LONG_DOUBLE='defined(__mips64)'
13393 TARGET=MIPS; TARGETDIR=mips
13396 powerpc*-*-linux* | powerpc-*-sysv*)
13397 TARGET=POWERPC; TARGETDIR=powerpc
13399 powerpc-*-amigaos*)
13400 TARGET=POWERPC; TARGETDIR=powerpc
13403 TARGET=POWERPC; TARGETDIR=powerpc
13405 powerpc-*-darwin* | powerpc64-*-darwin*)
13406 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13408 powerpc-*-aix* | rs6000-*-aix*)
13409 TARGET=POWERPC_AIX; TARGETDIR=powerpc
13411 powerpc-*-freebsd* | powerpc-*-openbsd*)
13412 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13414 powerpc64-*-freebsd*)
13415 TARGET=POWERPC; TARGETDIR=powerpc
13418 TARGET=POWERPC; TARGETDIR=powerpc
13421 s390-*-* | s390x-*-*)
13422 TARGET=S390; TARGETDIR=s390
13425 sh-*-* | sh[34]*-*-*)
13426 TARGET=SH; TARGETDIR=sh
13428 sh64-*-* | sh5*-*-*)
13429 TARGET=SH64; TARGETDIR=sh64
13433 TARGET=SPARC; TARGETDIR=sparc
13437 TARGET=TILE; TARGETDIR=tile
13441 TARGET=X86_DARWIN; TARGETDIR=x86
13444 x86_64-*-cygwin* | x86_64-*-mingw*)
13445 TARGET=X86_WIN64; TARGETDIR=x86
13446 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13447 # We must also check with_cross_host to decide if this is a native
13448 # or cross-build and select where to install dlls appropriately.
13449 if test -n "$with_cross_host" &&
13450 test x"$with_cross_host" != x"no"; then
13451 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13453 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13458 TARGET=XTENSA; TARGETDIR=xtensa
13466 if test $TARGETDIR = unknown; then
13467 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13470 if test x$TARGET = xMIPS; then
13478 if test x$TARGET = xBFIN; then
13486 if test x$TARGET = xSPARC; then
13494 if test x$TARGET = xX86; then
13502 if test x$TARGET = xX86_FREEBSD; then
13504 X86_FREEBSD_FALSE='#'
13506 X86_FREEBSD_TRUE='#'
13510 if test x$TARGET = xX86_WIN32; then
13512 X86_WIN32_FALSE='#'
13518 if test x$TARGET = xX86_WIN64; then
13520 X86_WIN64_FALSE='#'
13526 if test x$TARGET = xX86_DARWIN; then
13528 X86_DARWIN_FALSE='#'
13530 X86_DARWIN_TRUE='#'
13534 if test x$TARGET = xALPHA; then
13542 if test x$TARGET = xIA64; then
13550 if test x$TARGET = xM32R; then
13558 if test x$TARGET = xM68K; then
13566 if test x$TARGET = xMOXIE; then
13574 if test x$TARGET = xPOWERPC; then
13582 if test x$TARGET = xPOWERPC_AIX; then
13584 POWERPC_AIX_FALSE='#'
13586 POWERPC_AIX_TRUE='#'
13590 if test x$TARGET = xPOWERPC_DARWIN; then
13591 POWERPC_DARWIN_TRUE=
13592 POWERPC_DARWIN_FALSE='#'
13594 POWERPC_DARWIN_TRUE='#'
13595 POWERPC_DARWIN_FALSE=
13598 if test x$TARGET = xPOWERPC_FREEBSD; then
13599 POWERPC_FREEBSD_TRUE=
13600 POWERPC_FREEBSD_FALSE='#'
13602 POWERPC_FREEBSD_TRUE='#'
13603 POWERPC_FREEBSD_FALSE=
13606 if test x$TARGET = xAARCH64; then
13614 if test x$TARGET = xARM; then
13622 if test x$TARGET = xAVR32; then
13630 if test x$TARGET = xLIBFFI_CRIS; then
13632 LIBFFI_CRIS_FALSE='#'
13634 LIBFFI_CRIS_TRUE='#'
13638 if test x$TARGET = xFRV; then
13646 if test x$TARGET = xS390; then
13654 if test x$TARGET = xX86_64; then
13662 if test x$TARGET = xSH; then
13670 if test x$TARGET = xSH64; then
13678 if test x$TARGET = xPA_LINUX; then
13686 if test x$TARGET = xPA_HPUX; then
13694 if test x$TARGET = xPA64_HPUX; then
13696 PA64_HPUX_FALSE='#'
13702 if test x$TARGET = xTILE; then
13710 if test x$TARGET = xXTENSA; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13720 $as_echo_n "checking for ANSI C header files... " >&6; }
13721 if ${ac_cv_header_stdc+:} false; then :
13722 $as_echo_n "(cached) " >&6
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 #include <stdlib.h>
13727 #include <stdarg.h>
13728 #include <string.h>
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740 ac_cv_header_stdc=yes
13742 ac_cv_header_stdc=no
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 if test $ac_cv_header_stdc = yes; then
13747 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #include <string.h>
13753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13754 $EGREP "memchr" >/dev/null 2>&1; then :
13757 ac_cv_header_stdc=no
13763 if test $ac_cv_header_stdc = yes; then
13764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767 #include <stdlib.h>
13770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13771 $EGREP "free" >/dev/null 2>&1; then :
13774 ac_cv_header_stdc=no
13780 if test $ac_cv_header_stdc = yes; then
13781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13782 if test "$cross_compiling" = yes; then :
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13788 #include <stdlib.h>
13789 #if ((' ' & 0x0FF) == 0x020)
13790 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13791 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13793 # define ISLOWER(c) \
13794 (('a' <= (c) && (c) <= 'i') \
13795 || ('j' <= (c) && (c) <= 'r') \
13796 || ('s' <= (c) && (c) <= 'z'))
13797 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13805 for (i = 0; i < 256; i++)
13806 if (XOR (islower (i), ISLOWER (i))
13807 || toupper (i) != TOUPPER (i))
13812 if ac_fn_c_try_run "$LINENO"; then :
13815 ac_cv_header_stdc=no
13817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13818 conftest.$ac_objext conftest.beam conftest.$ac_ext
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13824 $as_echo "$ac_cv_header_stdc" >&6; }
13825 if test $ac_cv_header_stdc = yes; then
13827 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13831 for ac_func in memcpy
13833 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13834 if test "x$ac_cv_func_memcpy" = xyes; then :
13835 cat >>confdefs.h <<_ACEOF
13836 #define HAVE_MEMCPY 1
13842 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13843 if test "x$ac_cv_type_size_t" = xyes; then :
13847 cat >>confdefs.h <<_ACEOF
13848 #define size_t unsigned int
13853 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13854 # for constant arguments. Useless!
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13856 $as_echo_n "checking for working alloca.h... " >&6; }
13857 if ${ac_cv_working_alloca_h+:} false; then :
13858 $as_echo_n "(cached) " >&6
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13862 #include <alloca.h>
13866 char *p = (char *) alloca (2 * sizeof (int));
13872 if ac_fn_c_try_link "$LINENO"; then :
13873 ac_cv_working_alloca_h=yes
13875 ac_cv_working_alloca_h=no
13877 rm -f core conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13881 $as_echo "$ac_cv_working_alloca_h" >&6; }
13882 if test $ac_cv_working_alloca_h = yes; then
13884 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13889 $as_echo_n "checking for alloca... " >&6; }
13890 if ${ac_cv_func_alloca_works+:} false; then :
13891 $as_echo_n "(cached) " >&6
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13896 # define alloca __builtin_alloca
13899 # include <malloc.h>
13900 # define alloca _alloca
13902 # ifdef HAVE_ALLOCA_H
13903 # include <alloca.h>
13908 # ifndef alloca /* predefined by HP cc +Olibcalls */
13909 void *alloca (size_t);
13919 char *p = (char *) alloca (1);
13925 if ac_fn_c_try_link "$LINENO"; then :
13926 ac_cv_func_alloca_works=yes
13928 ac_cv_func_alloca_works=no
13930 rm -f core conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext conftest.$ac_ext
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13934 $as_echo "$ac_cv_func_alloca_works" >&6; }
13936 if test $ac_cv_func_alloca_works = yes; then
13938 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13941 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13942 # that cause trouble. Some versions do not even contain alloca or
13943 # contain a buggy version. If you still want to use their alloca,
13944 # use ar to extract alloca.o from them instead of compiling alloca.c.
13946 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13948 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13952 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13953 if ${ac_cv_os_cray+:} false; then :
13954 $as_echo_n "(cached) " >&6
13956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13958 #if defined CRAY && ! defined CRAY2
13965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13966 $EGREP "webecray" >/dev/null 2>&1; then :
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13975 $as_echo "$ac_cv_os_cray" >&6; }
13976 if test $ac_cv_os_cray = yes; then
13977 for ac_func in _getb67 GETB67 getb67; do
13978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13982 cat >>confdefs.h <<_ACEOF
13983 #define CRAY_STACKSEG_END $ac_func
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13993 $as_echo_n "checking stack direction for C alloca... " >&6; }
13994 if ${ac_cv_c_stack_direction+:} false; then :
13995 $as_echo_n "(cached) " >&6
13997 if test "$cross_compiling" = yes; then :
13998 ac_cv_c_stack_direction=0
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14002 $ac_includes_default
14004 find_stack_direction (int *addr, int depth)
14006 int dir, dummy = 0;
14009 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14010 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14011 return dir + dummy;
14015 main (int argc, char **argv)
14017 return find_stack_direction (0, argc + !argv + 20) < 0;
14020 if ac_fn_c_try_run "$LINENO"; then :
14021 ac_cv_c_stack_direction=1
14023 ac_cv_c_stack_direction=-1
14025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14026 conftest.$ac_objext conftest.beam conftest.$ac_ext
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14031 $as_echo "$ac_cv_c_stack_direction" >&6; }
14032 cat >>confdefs.h <<_ACEOF
14033 #define STACK_DIRECTION $ac_cv_c_stack_direction
14040 # The cast to long int works around a bug in the HP C Compiler
14041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14043 # This bug is HP SR number 8606223364.
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14045 $as_echo_n "checking size of double... " >&6; }
14046 if ${ac_cv_sizeof_double+:} false; then :
14047 $as_echo_n "(cached) " >&6
14049 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
14052 if test "$ac_cv_type_double" = yes; then
14053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14055 as_fn_error 77 "cannot compute sizeof (double)
14056 See \`config.log' for more details" "$LINENO" 5; }
14058 ac_cv_sizeof_double=0
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14064 $as_echo "$ac_cv_sizeof_double" >&6; }
14068 cat >>confdefs.h <<_ACEOF
14069 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14073 # The cast to long int works around a bug in the HP C Compiler
14074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14076 # This bug is HP SR number 8606223364.
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14078 $as_echo_n "checking size of long double... " >&6; }
14079 if ${ac_cv_sizeof_long_double+:} false; then :
14080 $as_echo_n "(cached) " >&6
14082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
14085 if test "$ac_cv_type_long_double" = yes; then
14086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14088 as_fn_error 77 "cannot compute sizeof (long double)
14089 See \`config.log' for more details" "$LINENO" 5; }
14091 ac_cv_sizeof_long_double=0
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14097 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14101 cat >>confdefs.h <<_ACEOF
14102 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14107 # Also AC_SUBST this variable for ffi.h.
14108 if test -z "$HAVE_LONG_DOUBLE"; then
14110 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14111 if test $ac_cv_sizeof_long_double != 0; then
14114 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14122 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14123 if ${ac_cv_c_bigendian+:} false; then :
14124 $as_echo_n "(cached) " >&6
14126 ac_cv_c_bigendian=unknown
14127 # See if we're dealing with a universal compiler.
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130 #ifndef __APPLE_CC__
14131 not a universal capable compiler
14136 if ac_fn_c_try_compile "$LINENO"; then :
14138 # Check for potential -arch flags. It is not universal unless
14139 # there are at least two -arch flags with different values.
14142 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14143 if test -n "$ac_prev"; then
14145 i?86 | x86_64 | ppc | ppc64)
14146 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14149 ac_cv_c_bigendian=universal
14155 elif test "x$ac_word" = "x-arch"; then
14160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161 if test $ac_cv_c_bigendian = unknown; then
14162 # See if sys/param.h defines the BYTE_ORDER macro.
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14165 #include <sys/types.h>
14166 #include <sys/param.h>
14171 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14172 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14174 bogus endian macros
14181 if ac_fn_c_try_compile "$LINENO"; then :
14182 # It does; now see whether it defined to BIG_ENDIAN or not.
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 #include <sys/types.h>
14186 #include <sys/param.h>
14191 #if BYTE_ORDER != BIG_ENDIAN
14199 if ac_fn_c_try_compile "$LINENO"; then :
14200 ac_cv_c_bigendian=yes
14202 ac_cv_c_bigendian=no
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 if test $ac_cv_c_bigendian = unknown; then
14209 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212 #include <limits.h>
14217 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14218 bogus endian macros
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226 # It does; now see whether it defined to _BIG_ENDIAN or not.
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 #include <limits.h>
14234 #ifndef _BIG_ENDIAN
14242 if ac_fn_c_try_compile "$LINENO"; then :
14243 ac_cv_c_bigendian=yes
14245 ac_cv_c_bigendian=no
14247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14251 if test $ac_cv_c_bigendian = unknown; then
14252 # Compile a test program.
14253 if test "$cross_compiling" = yes; then :
14254 # Try to guess by grepping values from an object file.
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 short int ascii_mm[] =
14258 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14259 short int ascii_ii[] =
14260 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14261 int use_ascii (int i) {
14262 return ascii_mm[i] + ascii_ii[i];
14264 short int ebcdic_ii[] =
14265 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14266 short int ebcdic_mm[] =
14267 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14268 int use_ebcdic (int i) {
14269 return ebcdic_mm[i] + ebcdic_ii[i];
14276 return use_ascii (foo) == use_ebcdic (foo);
14281 if ac_fn_c_try_compile "$LINENO"; then :
14282 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14283 ac_cv_c_bigendian=yes
14285 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14286 if test "$ac_cv_c_bigendian" = unknown; then
14287 ac_cv_c_bigendian=no
14289 # finding both strings is unlikely to happen, but who knows?
14290 ac_cv_c_bigendian=unknown
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14298 $ac_includes_default
14303 /* Are we little or big endian? From Harbison&Steele. */
14307 char c[sizeof (long int)];
14310 return u.c[sizeof (long int) - 1] == 1;
14316 if ac_fn_c_try_run "$LINENO"; then :
14317 ac_cv_c_bigendian=no
14319 ac_cv_c_bigendian=yes
14321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14322 conftest.$ac_objext conftest.beam conftest.$ac_ext
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14328 $as_echo "$ac_cv_c_bigendian" >&6; }
14329 case $ac_cv_c_bigendian in #(
14331 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14337 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14341 as_fn_error $? "unknown endianness
14342 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14347 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14348 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14349 $as_echo_n "(cached) " >&6
14352 gcc_cv_as_cfi_pseudo_op=unknown
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355 asm (".cfi_startproc\n\t.cfi_endproc");
14364 if ac_fn_c_try_compile "$LINENO"; then :
14365 gcc_cv_as_cfi_pseudo_op=yes
14367 gcc_cv_as_cfi_pseudo_op=no
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14373 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14374 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14376 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14381 if test x$TARGET = xSPARC; then
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14383 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14384 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14385 $as_echo_n "(cached) " >&6
14388 save_CFLAGS="$CFLAGS"
14389 save_LDFLAGS="$LDFLAGS"
14390 CFLAGS="$CFLAGS -fpic"
14391 LDFLAGS="$LDFLAGS -shared"
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14394 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14403 if ac_fn_c_try_link "$LINENO"; then :
14404 libffi_cv_as_sparc_ua_pcrel=yes
14406 libffi_cv_as_sparc_ua_pcrel=no
14408 rm -f core conftest.err conftest.$ac_objext \
14409 conftest$ac_exeext conftest.$ac_ext
14410 CFLAGS="$save_CFLAGS"
14411 LDFLAGS="$save_LDFLAGS"
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14414 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14415 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14417 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14422 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14423 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14424 $as_echo_n "(cached) " >&6
14427 libffi_cv_as_register_pseudo_op=unknown
14428 # Check if we have .register
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14431 asm (".register %g2, #scratch");
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441 libffi_cv_as_register_pseudo_op=yes
14443 libffi_cv_as_register_pseudo_op=no
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14449 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14450 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14452 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14457 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14459 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14460 if ${libffi_cv_as_x86_pcrel+:} false; then :
14461 $as_echo_n "(cached) " >&6
14464 libffi_cv_as_x86_pcrel=no
14465 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14466 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14467 libffi_cv_as_x86_pcrel=yes
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14472 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14473 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14475 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14480 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14481 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14482 $as_echo_n "(cached) " >&6
14485 libffi_cv_as_ascii_pseudo_op=unknown
14486 # Check if we have .ascii
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489 asm (".ascii \\"string\\"");
14498 if ac_fn_c_try_compile "$LINENO"; then :
14499 libffi_cv_as_ascii_pseudo_op=yes
14501 libffi_cv_as_ascii_pseudo_op=no
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14507 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14508 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14510 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14515 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14516 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14517 $as_echo_n "(cached) " >&6
14520 libffi_cv_as_string_pseudo_op=unknown
14521 # Check if we have .string
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524 asm (".string \\"string\\"");
14533 if ac_fn_c_try_compile "$LINENO"; then :
14534 libffi_cv_as_string_pseudo_op=yes
14536 libffi_cv_as_string_pseudo_op=no
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14542 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14543 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14545 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14550 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14551 # Check whether --enable-pax_emutramp was given.
14552 if test "${enable_pax_emutramp+set}" = set; then :
14553 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14555 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14561 if test x$TARGET = xX86_WIN64; then
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14563 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14564 if ${lt_cv_sys_symbol_underscore+:} false; then :
14565 $as_echo_n "(cached) " >&6
14567 lt_cv_sys_symbol_underscore=no
14568 cat > conftest.$ac_ext <<_LT_EOF
14569 void nm_test_func(){}
14570 int main(){nm_test_func;return 0;}
14572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14573 (eval $ac_compile) 2>&5
14575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14576 test $ac_status = 0; }; then
14577 # Now try to grab the symbols.
14578 ac_nlist=conftest.nm
14579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583 test $ac_status = 0; } && test -s "$ac_nlist"; then
14584 # See whether the symbols have a leading underscore.
14585 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14586 lt_cv_sys_symbol_underscore=yes
14588 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14591 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14595 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14598 echo "configure: failed program was:" >&5
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14605 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14606 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14609 if test "x$sys_symbol_underscore" = xyes; then
14611 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14616 FFI_EXEC_TRAMPOLINE_TABLE=0
14618 *arm*-apple-darwin*)
14619 FFI_EXEC_TRAMPOLINE_TABLE=1
14621 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14624 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14626 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14630 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14631 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14632 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14634 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14635 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14640 if test x$TARGET = xX86_64; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14642 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14643 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14644 $as_echo_n "(cached) " >&6
14647 libffi_cv_as_x86_64_unwind_section_type=yes
14648 echo '.section .eh_frame,"a",@unwind' > conftest.s
14649 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14650 libffi_cv_as_x86_64_unwind_section_type=no
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14655 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14656 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14658 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14663 if test "x$GCC" = "xyes"; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14665 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14666 if ${libffi_cv_ro_eh_frame+:} false; then :
14667 $as_echo_n "(cached) " >&6
14670 libffi_cv_ro_eh_frame=no
14671 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14672 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14673 objdump -h conftest.o > conftest.dump 2>&1
14674 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14675 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14676 sed -n $libffi_test_line conftest.dump > conftest.line
14677 if grep READONLY conftest.line > /dev/null; then
14678 libffi_cv_ro_eh_frame=yes
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14685 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14686 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14688 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14691 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14695 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14700 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14701 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14702 $as_echo_n "(cached) " >&6
14705 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
14706 libffi_cv_hidden_visibility_attribute=no
14707 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14709 (eval $ac_try) 2>&5
14711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712 test $ac_status = 0; }; }; then
14713 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14714 libffi_cv_hidden_visibility_attribute=yes
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14721 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14722 if test $libffi_cv_hidden_visibility_attribute = yes; then
14724 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14736 # Check whether --enable-debug was given.
14737 if test "${enable_debug+set}" = set; then :
14738 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14740 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14745 if test "$enable_debug" = "yes"; then
14747 FFI_DEBUG_FALSE='#'
14754 # Check whether --enable-structs was given.
14755 if test "${enable_structs+set}" = set; then :
14756 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14758 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14763 if test "$enable_debug" = "yes"; then
14765 FFI_DEBUG_FALSE='#'
14772 # Check whether --enable-raw-api was given.
14773 if test "${enable_raw_api+set}" = set; then :
14774 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14776 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14782 # Check whether --enable-purify-safety was given.
14783 if test "${enable_purify_safety+set}" = set; then :
14784 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14786 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14792 # These variables are only ever used when we cross-build to X86_WIN32.
14793 # And we only support this with GCC, so...
14794 if test x"$GCC" != x"no"; then
14795 if test -n "$with_cross_host" &&
14796 test x"$with_cross_host" != x"no"; then
14797 toolexecdir='$(exec_prefix)/$(target_alias)'
14798 toolexeclibdir='$(toolexecdir)/lib'
14800 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14801 toolexeclibdir='$(libdir)'
14803 multi_os_directory=`$CC -print-multi-os-directory`
14804 case $multi_os_directory in
14805 .) ;; # Avoid trailing /.
14806 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14812 ac_config_commands="$ac_config_commands include"
14814 ac_config_commands="$ac_config_commands src"
14817 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14820 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14823 cat >confcache <<\_ACEOF
14824 # This file is a shell script that caches the results of configure
14825 # tests run on this system so they can be shared between configure
14826 # scripts and configure runs, see configure's option --config-cache.
14827 # It is not useful on other systems. If it contains results you don't
14828 # want to keep, you may remove or edit it.
14830 # config.status only pays attention to the cache file if you give it
14831 # the --recheck option to rerun configure.
14833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14835 # following values.
14839 # The following way of writing the cache mishandles newlines in values,
14840 # but we know of no workaround that is simple, portable, and efficient.
14841 # So, we kill variables containing newlines.
14842 # Ultrix sh set writes to stderr and can't be redirected directly,
14843 # and sets the high bit in the cache file unless we assign to the vars.
14845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14846 eval ac_val=\$$ac_var
14850 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14854 _ | IFS | as_nl) ;; #(
14855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14856 *) { eval $ac_var=; unset $ac_var;} ;;
14862 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14863 *${as_nl}ac_space=\ *)
14864 # `set' does not quote correctly, so add quotes: double-quote
14865 # substitution turns \\\\ into \\, and sed turns \\ into \.
14868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14871 # `set' quotes correctly as required by POSIX, so do not add quotes.
14872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14885 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14886 if test -w "$cache_file"; then
14887 if test "x$cache_file" != "x/dev/null"; then
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14889 $as_echo "$as_me: updating cache $cache_file" >&6;}
14890 if test ! -f "$cache_file" || test -h "$cache_file"; then
14891 cat confcache >"$cache_file"
14893 case $cache_file in #(
14895 mv -f confcache "$cache_file"$$ &&
14896 mv -f "$cache_file"$$ "$cache_file" ;; #(
14898 mv -f confcache "$cache_file" ;;
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14910 # Let make expand exec_prefix.
14911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14913 DEFS=-DHAVE_CONFIG_H
14918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14919 # 1. Remove the extension, and $U if already installed.
14920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14921 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14923 # will be set to the directory where LIBOBJS objects are built.
14924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14927 LIBOBJS=$ac_libobjs
14929 LTLIBOBJS=$ac_ltlibobjs
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14933 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14934 if test -n "$am_sleep_pid"; then
14935 # Hide warnings about reused PIDs.
14936 wait $am_sleep_pid 2>/dev/null
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14939 $as_echo "done" >&6; }
14940 if test -n "$EXEEXT"; then
14942 am__EXEEXT_FALSE='#'
14944 am__EXEEXT_TRUE='#'
14948 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14949 as_fn_error $? "conditional \"AMDEP\" was never defined.
14950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14953 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14956 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14957 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14960 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14961 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14964 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14965 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14968 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14969 as_fn_error $? "conditional \"MIPS\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14972 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14973 as_fn_error $? "conditional \"BFIN\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14976 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14977 as_fn_error $? "conditional \"SPARC\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14980 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14981 as_fn_error $? "conditional \"X86\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14984 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14985 as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14988 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14989 as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14992 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14993 as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14996 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14997 as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15000 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15001 as_fn_error $? "conditional \"ALPHA\" was never defined.
15002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15004 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15005 as_fn_error $? "conditional \"IA64\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15008 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15009 as_fn_error $? "conditional \"M32R\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15012 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15013 as_fn_error $? "conditional \"M68K\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15016 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15017 as_fn_error $? "conditional \"MOXIE\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15020 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15021 as_fn_error $? "conditional \"POWERPC\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15024 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15025 as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15028 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15029 as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15032 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15033 as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15036 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15037 as_fn_error $? "conditional \"AARCH64\" was never defined.
15038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15040 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15041 as_fn_error $? "conditional \"ARM\" was never defined.
15042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15044 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15045 as_fn_error $? "conditional \"AVR32\" was never defined.
15046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15048 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15049 as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15052 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15053 as_fn_error $? "conditional \"FRV\" was never defined.
15054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15056 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15057 as_fn_error $? "conditional \"S390\" was never defined.
15058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15060 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15061 as_fn_error $? "conditional \"X86_64\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15064 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15065 as_fn_error $? "conditional \"SH\" was never defined.
15066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15068 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15069 as_fn_error $? "conditional \"SH64\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15072 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15073 as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15076 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15077 as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15080 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15081 as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15084 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15085 as_fn_error $? "conditional \"TILE\" was never defined.
15086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15088 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15089 as_fn_error $? "conditional \"XTENSA\" was never defined.
15090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15093 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15094 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15097 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15098 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15101 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15102 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106 : "${CONFIG_STATUS=./config.status}"
15108 ac_clean_files_save=$ac_clean_files
15109 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15111 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15113 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15115 # Generated by $as_me.
15116 # Run this file to recreate the current configuration.
15117 # Compiler output produced by configure, useful for debugging
15118 # configure, is in config.log if it exists.
15121 ac_cs_recheck=false
15124 SHELL=\${CONFIG_SHELL-$SHELL}
15127 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15128 ## -------------------- ##
15129 ## M4sh Initialization. ##
15130 ## -------------------- ##
15132 # Be more Bourne compatible
15133 DUALCASE=1; export DUALCASE # for MKS sh
15134 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15137 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15138 # is contrary to our usage. Disable this feature.
15139 alias -g '${1+"$@"}'='"$@"'
15140 setopt NO_GLOB_SUBST
15142 case `(set -o) 2>/dev/null` in #(
15154 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15155 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15156 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15157 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15158 # Prefer a ksh shell builtin over an external printf program on Solaris,
15159 # but without wasting forks for bash or zsh.
15160 if test -z "$BASH_VERSION$ZSH_VERSION" \
15161 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15162 as_echo='print -r --'
15163 as_echo_n='print -rn --'
15164 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15165 as_echo='printf %s\n'
15166 as_echo_n='printf %s'
15168 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15169 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15170 as_echo_n='/usr/ucb/echo -n'
15172 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15173 as_echo_n_body='eval
15177 expr "X$arg" : "X\\(.*\\)$as_nl";
15178 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15180 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15182 export as_echo_n_body
15183 as_echo_n='sh -c $as_echo_n_body as_echo'
15185 export as_echo_body
15186 as_echo='sh -c $as_echo_body as_echo'
15189 # The user is always right.
15190 if test "${PATH_SEPARATOR+set}" != set; then
15192 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15193 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15200 # We need space, tab and new line, in precisely that order. Quoting is
15201 # there to prevent editors from complaining about space-tab.
15202 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15203 # splitting by setting IFS to empty value.)
15206 # Find who we are. Look in the path if we contain no directory separator.
15209 *[\\/]* ) as_myself=$0 ;;
15210 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15211 for as_dir in $PATH
15214 test -z "$as_dir" && as_dir=.
15215 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15221 # We did not find ourselves, most probably we were run as `sh COMMAND'
15222 # in which case we are not to be found in the path.
15223 if test "x$as_myself" = x; then
15226 if test ! -f "$as_myself"; then
15227 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15231 # Unset variables that we do not need and which cause bugs (e.g. in
15232 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15233 # suppresses any "Segmentation fault" message there. '((' could
15234 # trigger a bug in pdksh 5.2.14.
15235 for as_var in BASH_ENV ENV MAIL MAILPATH
15236 do eval test x\${$as_var+set} = xset \
15237 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15250 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15253 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15254 # ----------------------------------------
15255 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15256 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15257 # script with STATUS, using 1 if that was 0.
15260 as_status=$1; test $as_status -eq 0 && as_status=1
15262 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15263 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15265 $as_echo "$as_me: error: $2" >&2
15266 as_fn_exit $as_status
15270 # as_fn_set_status STATUS
15271 # -----------------------
15272 # Set $? to STATUS, without forking.
15273 as_fn_set_status ()
15276 } # as_fn_set_status
15278 # as_fn_exit STATUS
15279 # -----------------
15280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15284 as_fn_set_status $1
15290 # Portably unset VAR.
15293 { eval $1=; unset $1;}
15295 as_unset=as_fn_unset
15296 # as_fn_append VAR VALUE
15297 # ----------------------
15298 # Append the text in VALUE to the end of the definition contained in VAR. Take
15299 # advantage of any shell optimizations that allow amortized linear growth over
15300 # repeated appends, instead of the typical quadratic growth present in naive
15302 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15303 eval 'as_fn_append ()
15314 # as_fn_arith ARG...
15315 # ------------------
15316 # Perform arithmetic evaluation on the ARGs, and store the result in the
15317 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15318 # must be portable across $(()) and expr.
15319 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15320 eval 'as_fn_arith ()
15327 as_val=`expr "$@" || test $? -eq 1`
15332 if expr a : '\(a\)' >/dev/null 2>&1 &&
15333 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15339 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15340 as_basename=basename
15345 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15351 as_me=`$as_basename -- "$0" ||
15352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15353 X"$0" : 'X\(//\)$' \| \
15354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15356 sed '/^.*\/\([^/][^/]*\)\/*$/{
15370 # Avoid depending upon Character Ranges.
15371 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15372 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15373 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15374 as_cr_digits='0123456789'
15375 as_cr_alnum=$as_cr_Letters$as_cr_digits
15377 ECHO_C= ECHO_N= ECHO_T=
15378 case `echo -n x` in #(((((
15380 case `echo 'xy\c'` in
15381 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15383 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15390 rm -f conf$$ conf$$.exe conf$$.file
15391 if test -d conf$$.dir; then
15392 rm -f conf$$.dir/conf$$.file
15395 mkdir conf$$.dir 2>/dev/null
15397 if (echo >conf$$.file) 2>/dev/null; then
15398 if ln -s conf$$.file conf$$ 2>/dev/null; then
15400 # ... but there are two gotchas:
15401 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15402 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15403 # In both cases, we have to default to `cp -pR'.
15404 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15406 elif ln conf$$.file conf$$ 2>/dev/null; then
15414 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15415 rmdir conf$$.dir 2>/dev/null
15420 # Create "$as_dir" as a directory, including parents if necessary.
15425 -*) as_dir=./$as_dir;;
15427 test -d "$as_dir" || eval $as_mkdir_p || {
15431 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15432 *) as_qdir=$as_dir;;
15434 as_dirs="'$as_qdir' $as_dirs"
15435 as_dir=`$as_dirname -- "$as_dir" ||
15436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15437 X"$as_dir" : 'X\(//\)[^/]' \| \
15438 X"$as_dir" : 'X\(//\)$' \| \
15439 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15440 $as_echo X"$as_dir" |
15441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15445 /^X\(\/\/\)[^/].*/{
15458 test -d "$as_dir" && break
15460 test -z "$as_dirs" || eval "mkdir $as_dirs"
15461 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15465 if mkdir -p . 2>/dev/null; then
15466 as_mkdir_p='mkdir -p "$as_dir"'
15468 test -d ./-p && rmdir ./-p
15473 # as_fn_executable_p FILE
15474 # -----------------------
15475 # Test if FILE is an executable regular file.
15476 as_fn_executable_p ()
15478 test -f "$1" && test -x "$1"
15479 } # as_fn_executable_p
15480 as_test_x='test -x'
15481 as_executable_p=as_fn_executable_p
15483 # Sed expression to map a string onto a valid CPP name.
15484 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15486 # Sed expression to map a string onto a valid variable name.
15487 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15491 ## ----------------------------------- ##
15492 ## Main body of $CONFIG_STATUS script. ##
15493 ## ----------------------------------- ##
15495 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15498 # Save the log message, to keep $0 and so on meaningful, and to
15499 # report actual input values of CONFIG_FILES etc. instead of their
15500 # values after options handling.
15502 This file was extended by libffi $as_me 3.0.12-rc0, which was
15503 generated by GNU Autoconf 2.69. Invocation command line was
15505 CONFIG_FILES = $CONFIG_FILES
15506 CONFIG_HEADERS = $CONFIG_HEADERS
15507 CONFIG_LINKS = $CONFIG_LINKS
15508 CONFIG_COMMANDS = $CONFIG_COMMANDS
15511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15516 case $ac_config_files in *"
15517 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15520 case $ac_config_headers in *"
15521 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15526 # Files that config.status was made for.
15527 config_files="$ac_config_files"
15528 config_headers="$ac_config_headers"
15529 config_links="$ac_config_links"
15530 config_commands="$ac_config_commands"
15534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15536 \`$as_me' instantiates files and other configuration actions
15537 from templates according to the current configuration. Unless the files
15538 and actions are specified as TAGs, all are instantiated by default.
15540 Usage: $0 [OPTION]... [TAG]...
15542 -h, --help print this help, then exit
15543 -V, --version print version number and configuration settings, then exit
15544 --config print configuration, then exit
15545 -q, --quiet, --silent
15546 do not print progress messages
15547 -d, --debug don't remove temporary files
15548 --recheck update $as_me by reconfiguring in the same conditions
15549 --file=FILE[:TEMPLATE]
15550 instantiate the configuration file FILE
15551 --header=FILE[:TEMPLATE]
15552 instantiate the configuration header FILE
15554 Configuration files:
15557 Configuration headers:
15560 Configuration links:
15563 Configuration commands:
15566 Report bugs to <http://gcc.gnu.org/bugs.html>."
15569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15570 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15572 libffi config.status 3.0.12-rc0
15573 configured by $0, generated by GNU Autoconf 2.69,
15574 with options \\"\$ac_cs_config\\"
15576 Copyright (C) 2012 Free Software Foundation, Inc.
15577 This config.status script is free software; the Free Software Foundation
15578 gives unlimited permission to copy, distribute and modify it."
15585 test -n "\$AWK" || AWK=awk
15588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15589 # The default lists apply if the user does not specify any file.
15595 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15612 # Handling of the options.
15613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15616 $as_echo "$ac_cs_version"; exit ;;
15617 --config | --confi | --conf | --con | --co | --c )
15618 $as_echo "$ac_cs_config"; exit ;;
15619 --debug | --debu | --deb | --de | --d | -d )
15621 --file | --fil | --fi | --f )
15624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15625 '') as_fn_error $? "missing file argument" ;;
15627 as_fn_append CONFIG_FILES " '$ac_optarg'"
15628 ac_need_defaults=false;;
15629 --header | --heade | --head | --hea )
15632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15634 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15635 ac_need_defaults=false;;
15637 # Conflict between --help and --header
15638 as_fn_error $? "ambiguous option: \`$1'
15639 Try \`$0 --help' for more information.";;
15640 --help | --hel | -h )
15641 $as_echo "$ac_cs_usage"; exit ;;
15642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15643 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15646 # This is an error.
15647 -*) as_fn_error $? "unrecognized option: \`$1'
15648 Try \`$0 --help' for more information." ;;
15650 *) as_fn_append ac_config_targets " $1"
15651 ac_need_defaults=false ;;
15657 ac_configure_extra_args=
15659 if $ac_cs_silent; then
15661 ac_configure_extra_args="$ac_configure_extra_args --silent"
15665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15666 if \$ac_cs_recheck; then
15667 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15669 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15670 CONFIG_SHELL='$SHELL'
15671 export CONFIG_SHELL
15676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15681 ## Running $as_me. ##
15687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15691 ax_enable_builddir_srcdir="$srcdir" # $srcdir
15692 ax_enable_builddir_host="$HOST" # $HOST / $host
15693 ax_enable_builddir_version="$VERSION" # $VERSION
15694 ax_enable_builddir_package="$PACKAGE" # $PACKAGE
15695 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15696 ax_enable_builddir_sed="$ax_enable_builddir_sed" # $SED
15697 ax_enable_builddir="$ax_enable_builddir" # $SUB
15699 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15702 # The HP-UX ksh and POSIX shell print the target directory to stdout
15703 # if CDPATH is set.
15704 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15706 sed_quote_subst='$sed_quote_subst'
15707 double_quote_subst='$double_quote_subst'
15708 delay_variable_subst='$delay_variable_subst'
15709 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15710 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15711 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15712 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15713 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15714 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15715 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15716 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15717 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15718 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15719 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15720 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15721 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15722 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15723 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15724 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15725 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15726 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15727 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15728 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15729 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15730 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15731 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15732 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15733 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15734 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15735 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15736 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15737 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15738 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15739 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15740 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15741 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15742 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15743 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15744 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15745 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15746 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15747 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15748 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15749 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15750 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15751 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15752 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15753 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15754 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15755 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15756 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15757 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15758 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15759 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15760 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15761 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15762 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15763 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15764 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15765 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15766 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15767 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15768 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15769 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15770 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15771 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15772 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15773 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15774 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15775 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15776 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15777 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15778 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15779 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15780 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15781 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15782 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15783 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15784 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15785 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15786 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15787 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15788 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15789 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15790 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15791 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15792 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15793 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15794 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15795 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15796 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15797 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15798 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15799 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15800 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15801 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15802 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15803 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15804 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15805 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15806 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15807 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15808 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15809 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15810 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15811 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15812 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15813 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15814 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15815 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15816 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15817 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15818 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15819 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15820 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15821 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15822 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15823 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15824 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15825 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15826 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15827 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15828 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15829 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15830 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15831 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15832 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15833 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15834 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15835 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15836 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15837 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15838 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15841 LTCFLAGS='$LTCFLAGS'
15842 compiler='$compiler_DEFAULT'
15844 # A function that is used when there is no print builtin or printf.
15845 func_fallback_echo ()
15847 eval 'cat <<_LTECHO_EOF
15852 # Quote evaled strings.
15867 deplibs_check_method \
15872 sharedlib_from_linklib_cmd \
15875 archiver_list_spec \
15881 lt_cv_sys_global_symbol_pipe \
15882 lt_cv_sys_global_symbol_to_cdecl \
15883 lt_cv_sys_global_symbol_to_c_name_address \
15884 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15885 nm_file_list_spec \
15886 lt_prog_compiler_no_builtin_flag \
15887 lt_prog_compiler_pic \
15888 lt_prog_compiler_wl \
15889 lt_prog_compiler_static \
15890 lt_cv_prog_compiler_c_o \
15899 export_dynamic_flag_spec \
15900 whole_archive_flag_spec \
15901 compiler_needs_object \
15903 allow_undefined_flag \
15904 no_undefined_flag \
15905 hardcode_libdir_flag_spec \
15906 hardcode_libdir_separator \
15910 variables_saved_for_relink \
15912 library_names_spec \
15914 install_override_mode \
15918 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15919 *[\\\\\\\`\\"\\\$]*)
15920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15928 # Double-quote double-evaled strings.
15929 for var in reload_cmds \
15930 old_postinstall_cmds \
15931 old_postuninstall_cmds \
15933 extract_expsyms_cmds \
15934 old_archive_from_new_cmds \
15935 old_archive_from_expsyms_cmds \
15937 archive_expsym_cmds \
15939 module_expsym_cmds \
15940 export_symbols_cmds \
15944 postuninstall_cmds \
15946 sys_lib_search_path_spec \
15947 sys_lib_dlsearch_path_spec; do
15948 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15949 *[\\\\\\\`\\"\\\$]*)
15950 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15953 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15958 ac_aux_dir='$ac_aux_dir'
15959 xsi_shell='$xsi_shell'
15960 lt_shell_append='$lt_shell_append'
15962 # See if we are running on zsh, and set the options which allow our
15963 # commands through without removal of \ escapes INIT.
15964 if test -n "\${ZSH_VERSION+set}" ; then
15965 setopt NO_GLOB_SUBST
15971 TIMESTAMP='$TIMESTAMP'
15977 TARGETDIR="$TARGETDIR"
15981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15983 # Handling of arguments.
15984 for ac_config_target in $ac_config_targets
15986 case $ac_config_target in
15987 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15988 "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15989 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15990 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15991 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15992 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15993 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15994 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15995 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15996 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15997 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15998 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15999 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16001 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16006 # If the user did not use the arguments to specify the items to instantiate,
16007 # then the envvar interface is used. Set only those that are not.
16008 # We use the long form for the default assignment because of an extremely
16009 # bizarre bug on SunOS 4.1.3.
16010 if $ac_need_defaults; then
16011 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16012 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16013 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16014 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16017 # Have a temporary directory for convenience. Make it in the build tree
16018 # simply because there is no reason against having it here, and in addition,
16019 # creating and moving files from /tmp can sometimes cause problems.
16020 # Hook for its removal unless debugging.
16021 # Note that there is a small window in which the directory will not be cleaned:
16022 # after its creation but before its name has been assigned to `$tmp'.
16026 trap 'exit_status=$?
16027 : "${ac_tmp:=$tmp}"
16028 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16030 trap 'as_fn_exit 1' 1 2 13 15
16032 # Create a (secure) tmp directory for tmp files.
16035 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16039 tmp=./conf$$-$RANDOM
16040 (umask 077 && mkdir "$tmp")
16041 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16044 # Set up the scripts for CONFIG_FILES section.
16045 # No need to generate them if there are no CONFIG_FILES.
16046 # This happens for instance with `./config.status config.h'.
16047 if test -n "$CONFIG_FILES"; then
16050 ac_cr=`echo X | tr X '\015'`
16051 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16052 # But we know of no other shell where ac_cr would be empty at this
16053 # point, so we can use a bashism as a fallback.
16054 if test "x$ac_cr" = x; then
16055 eval ac_cr=\$\'\\r\'
16057 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16058 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16061 ac_cs_awk_cr=$ac_cr
16064 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16069 echo "cat >conf$$subs.awk <<_ACEOF" &&
16070 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16072 } >conf$$subs.sh ||
16073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16074 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16076 for ac_last_try in false false false false false :; do
16077 . ./conf$$subs.sh ||
16078 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16080 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16081 if test $ac_delim_n = $ac_delim_num; then
16083 elif $ac_last_try; then
16084 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16089 rm -f conf$$subs.sh
16091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16092 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16096 s/^/S["/; s/!.*/"]=/
16106 s/\(.\{148\}\)..*/\1/
16108 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16120 s/\(.\{148\}\)..*/\1/
16122 s/["\\]/\\&/g; s/^/"/; s/$/"/
16126 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16131 ' <conf$$subs.awk | sed '
16136 ' >>$CONFIG_STATUS || ac_write_fail=1
16137 rm -f conf$$subs.awk
16138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16140 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16141 for (key in S) S_is_set[key] = 1
16147 nfields = split(line, field, "@")
16149 len = length(field[1])
16150 for (i = 2; i < nfields; i++) {
16152 keylen = length(key)
16153 if (S_is_set[key]) {
16155 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16156 len += length(value) + length(field[++i])
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16169 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16172 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16173 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16176 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16177 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16178 # trailing colons and then remove the whole line if VPATH becomes empty
16179 # (actually we leave an empty line to preserve line numbers).
16180 if test "x$srcdir" = x.; then
16181 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200 fi # test -n "$CONFIG_FILES"
16202 # Set up the scripts for CONFIG_HEADERS section.
16203 # No need to generate them if there are no CONFIG_HEADERS.
16204 # This happens for instance with `./config.status Makefile'.
16205 if test -n "$CONFIG_HEADERS"; then
16206 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16210 # Transform confdefs.h into an awk script `defines.awk', embedded as
16211 # here-document in config.status, that substitutes the proper values into
16212 # config.h.in to produce config.h.
16214 # Create a delimiter string that does not exist in confdefs.h, to ease
16215 # handling of long lines.
16217 for ac_last_try in false false :; do
16218 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16219 if test -z "$ac_tt"; then
16221 elif $ac_last_try; then
16222 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16228 # For the awk script, D is an array of macro values keyed by name,
16229 # likewise P contains macro parameters if any. Preserve backslash
16230 # newline sequences.
16232 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16234 s/.\{148\}/&'"$ac_delim"'/g
16237 s/^[ ]*#[ ]*define[ ][ ]*/ /
16244 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16246 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16250 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16251 D["\1"]=" \3\\\\\\n"\\/p
16253 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16258 s/.\{148\}/&'"$ac_delim"'/g
16263 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16266 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16268 ' <confdefs.h | sed '
16269 s/'"$ac_delim"'/"\\\
16270 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16273 for (key in D) D_is_set[key] = 1
16276 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16278 split(line, arg, " ")
16279 if (arg[1] == "#") {
16283 defundef = substr(arg[1], 2)
16286 split(mac1, mac2, "(") #)
16288 prefix = substr(line, 1, index(line, defundef) - 1)
16289 if (D_is_set[macro]) {
16290 # Preserve the white space surrounding the "#".
16291 print prefix "define", macro P[macro] D[macro]
16294 # Replace #undef with comments. This is necessary, for example,
16295 # in the case of _POSIX_SOURCE, which is predefined and required
16296 # on some systems where configure will not decide to define it.
16297 if (defundef == "undef") {
16298 print "/*", prefix defundef, macro, "*/"
16306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16307 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16308 fi # test -n "$CONFIG_HEADERS"
16311 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16316 :[FHLC]) ac_mode=$ac_tag; continue;;
16318 case $ac_mode$ac_tag in
16320 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16321 :[FH]-) ac_tag=-:-;;
16322 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16339 -) ac_f="$ac_tmp/stdin";;
16340 *) # Look for the file first in the build tree, then in the source tree
16341 # (if the path is not absolute). The absolute path cannot be DOS-style,
16342 # because $ac_f cannot contain `:'.
16346 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16348 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16350 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16351 as_fn_append ac_file_inputs " '$ac_f'"
16354 # Let's still pretend it is `configure' which instantiates (i.e., don't
16355 # use $as_me), people would be surprised to read:
16356 # /* config.h. Generated by config.status. */
16357 configure_input='Generated from '`
16358 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16360 if test x"$ac_file" != x-; then
16361 configure_input="$ac_file. $configure_input"
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16363 $as_echo "$as_me: creating $ac_file" >&6;}
16365 # Neutralize special characters interpreted by sed in replacement strings.
16366 case $configure_input in #(
16367 *\&* | *\|* | *\\* )
16368 ac_sed_conf_input=`$as_echo "$configure_input" |
16369 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16370 *) ac_sed_conf_input=$configure_input;;
16374 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16380 ac_dir=`$as_dirname -- "$ac_file" ||
16381 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16382 X"$ac_file" : 'X\(//\)[^/]' \| \
16383 X"$ac_file" : 'X\(//\)$' \| \
16384 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16385 $as_echo X"$ac_file" |
16386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16390 /^X\(\/\/\)[^/].*/{
16403 as_dir="$ac_dir"; as_fn_mkdir_p
16407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16409 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16410 # A ".." for each directory in $ac_dir_suffix.
16411 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16412 case $ac_top_builddir_sub in
16413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16417 ac_abs_top_builddir=$ac_pwd
16418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16419 # for backward compatibility:
16420 ac_top_builddir=$ac_top_build_prefix
16423 .) # We are building in place.
16425 ac_top_srcdir=$ac_top_builddir_sub
16426 ac_abs_top_srcdir=$ac_pwd ;;
16427 [\\/]* | ?:[\\/]* ) # Absolute name.
16428 ac_srcdir=$srcdir$ac_dir_suffix;
16429 ac_top_srcdir=$srcdir
16430 ac_abs_top_srcdir=$srcdir ;;
16431 *) # Relative name.
16432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16433 ac_top_srcdir=$ac_top_build_prefix$srcdir
16434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16447 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16449 ac_MKDIR_P=$MKDIR_P
16451 [\\/$]* | ?:[\\/]* ) ;;
16452 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16457 # If the template does not know about datarootdir, expand it.
16458 # FIXME: This hack should be removed a few years after 2.60.
16459 ac_datarootdir_hack=; ac_datarootdir_seen=
16470 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16471 *datarootdir*) ac_datarootdir_seen=yes;;
16472 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16474 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16477 ac_datarootdir_hack='
16478 s&@datadir@&$datadir&g
16479 s&@docdir@&$docdir&g
16480 s&@infodir@&$infodir&g
16481 s&@localedir@&$localedir&g
16482 s&@mandir@&$mandir&g
16483 s&\\\${datarootdir}&$datarootdir&g' ;;
16487 # Neutralize VPATH when `$srcdir' = `.'.
16488 # Shell code in configure.ac might set extrasub.
16489 # FIXME: do we really want to maintain this feature?
16490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16491 ac_sed_extra="$ac_vpsub
16494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16497 s|@configure_input@|$ac_sed_conf_input|;t t
16498 s&@top_builddir@&$ac_top_builddir_sub&;t t
16499 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16500 s&@srcdir@&$ac_srcdir&;t t
16501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16502 s&@top_srcdir@&$ac_top_srcdir&;t t
16503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16504 s&@builddir@&$ac_builddir&;t t
16505 s&@abs_builddir@&$ac_abs_builddir&;t t
16506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16507 s&@INSTALL@&$ac_INSTALL&;t t
16508 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16509 $ac_datarootdir_hack
16511 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16512 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16515 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16517 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16519 which seems to be undefined. Please make sure it is defined" >&5
16520 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16521 which seems to be undefined. Please make sure it is defined" >&2;}
16523 rm -f "$ac_tmp/stdin"
16525 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16526 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16534 if test x"$ac_file" != x-; then
16536 $as_echo "/* $configure_input */" \
16537 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16538 } >"$ac_tmp/config.h" \
16539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16540 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16542 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16545 mv "$ac_tmp/config.h" "$ac_file" \
16546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16549 $as_echo "/* $configure_input */" \
16550 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16551 || as_fn_error $? "could not create -" "$LINENO" 5
16553 # Compute "$ac_file"'s index in $config_headers.
16556 for _am_header in $config_headers :; do
16557 case $_am_header in
16558 $_am_arg | $_am_arg:* )
16561 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16564 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16565 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16566 X"$_am_arg" : 'X\(//\)[^/]' \| \
16567 X"$_am_arg" : 'X\(//\)$' \| \
16568 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16569 $as_echo X"$_am_arg" |
16570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16574 /^X\(\/\/\)[^/].*/{
16586 s/.*/./; q'`/stamp-h$_am_stamp_count
16593 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16596 # Prefer the file from the source tree if names are identical.
16597 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16598 ac_source=$srcdir/$ac_source
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16602 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16604 if test ! -r "$ac_source"; then
16605 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16609 # Try a relative symlink, then a hard link, then a copy.
16611 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16612 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16614 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16615 ln "$ac_source" "$ac_file" 2>/dev/null ||
16616 cp -p "$ac_source" "$ac_file" ||
16617 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16620 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16621 $as_echo "$as_me: executing $ac_file commands" >&6;}
16626 case $ac_file$ac_mode in
16627 "buildir":C) ac_top_srcdir="$ax_enable_builddir_srcdir"
16628 if test ".$ax_enable_builddir" = ".." ; then
16629 if test -f "$top_srcdir/Makefile" ; then
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16631 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16634 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16637 if test -f "$ac_top_srcdir/Makefile" ; then
16638 a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16639 test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16641 if test -f "$ac_top_srcdir/Makefile" ; then
16642 echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16643 echo " @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16644 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16645 if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16646 then rm $ac_top_srcdir/Makefile ; fi
16647 cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~ ## DEBUGGING
16649 if test ! -f "$ac_top_srcdir/Makefile" ; then
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16651 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16652 x='`' ; cat >$tmp/conftemp.sed <<_EOF
16665 s/\\(\\n\\) /\\1 /g
16669 s/^srcdir *=.*/srcdir = ./
16670 s/^top_srcdir *=.*/top_srcdir = ./
16678 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16679 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16681 /^all all-all[ :]/i\\
16682 all-configured : all-all
16683 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16686 @ HOST="\$(HOST)\" \\\\\\
16687 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16688 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16689 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16690 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16691 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16692 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16693 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16694 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16695 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16697 @ HOST="\$(HOST)\" \\\\\\
16698 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16699 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16700 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16701 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16702 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16703 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16704 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16705 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16706 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16707 /dist-[a-zA-Z0-9]*-all *:/a\\
16708 @ HOST="\$(HOST)\" \\\\\\
16709 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16710 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16711 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16712 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16713 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16714 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16715 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16716 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16717 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16718 /distclean-all *:/a\\
16719 @ HOST="\$(HOST)\" \\\\\\
16720 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16721 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16722 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16723 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16724 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16725 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16726 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16727 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16728 ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16729 ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16730 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16732 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~" ## DEBUGGING
16733 $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16734 if test -f "$ac_top_srcdir/Makefile.mk" ; then
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16736 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16737 cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16739 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16741 if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16743 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16744 $ax_enable_builddir_sed -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $ac_top_srcdir/Makefile \
16745 >$ac_top_srcdir/Makefile~
16746 (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16749 xxxx="\\#\\#\\#\\#"
16750 # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16751 echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16752 $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16753 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~" ## DEBUGGING
16754 cp "$tmp/mkfile.tmp" "$ac_top_srcdir/makefiles.out~" ## DEBUGGING
16755 if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16757 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16758 rm "$tmp/mkfile.tmp"
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16761 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16762 mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16766 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16768 echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16771 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16772 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16773 # are listed without --file. Let's play safe and only enable the eval
16774 # if we detect the quoting.
16775 case $CONFIG_FILES in
16776 *\'*) eval set x "$CONFIG_FILES" ;;
16777 *) set x $CONFIG_FILES ;;
16782 # Strip MF so we end up with the name of the file.
16783 mf=`echo "$mf" | sed -e 's/:.*$//'`
16784 # Check whether this is an Automake generated Makefile or not.
16785 # We used to match only the files named 'Makefile.in', but
16786 # some people rename them; so instead we look at the file content.
16787 # Grep'ing the first line is not enough: some people post-process
16788 # each Makefile.in and add a new line on top of each file to say so.
16789 # Grep'ing the whole file is not good either: AIX grep has a line
16790 # limit of 2048, but all sed's we know have understand at least 4000.
16791 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16792 dirpart=`$as_dirname -- "$mf" ||
16793 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16794 X"$mf" : 'X\(//\)[^/]' \| \
16795 X"$mf" : 'X\(//\)$' \| \
16796 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16802 /^X\(\/\/\)[^/].*/{
16818 # Extract the definition of DEPDIR, am__include, and am__quote
16819 # from the Makefile without running 'make'.
16820 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16821 test -z "$DEPDIR" && continue
16822 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16823 test -z "am__include" && continue
16824 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16825 # Find all dependency output files, they are included files with
16826 # $(DEPDIR) in their names. We invoke sed twice because it is the
16827 # simplest approach to changing $(DEPDIR) to its actual value in the
16829 for file in `sed -n "
16830 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16831 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16832 # Make sure the directory exists.
16833 test -f "$dirpart/$file" && continue
16834 fdir=`$as_dirname -- "$file" ||
16835 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16836 X"$file" : 'X\(//\)[^/]' \| \
16837 X"$file" : 'X\(//\)$' \| \
16838 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16839 $as_echo X"$file" |
16840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16844 /^X\(\/\/\)[^/].*/{
16857 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16858 # echo "creating $dirpart/$file"
16859 echo '# dummy' > "$dirpart/$file"
16866 # See if we are running on zsh, and set the options which allow our
16867 # commands through without removal of \ escapes.
16868 if test -n "${ZSH_VERSION+set}" ; then
16869 setopt NO_GLOB_SUBST
16872 cfgfile="${ofile}T"
16873 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16876 cat <<_LT_EOF >> "$cfgfile"
16879 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16880 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16881 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16882 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16884 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16885 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16887 # Written by Gordon Matzigkeit, 1996
16889 # This file is part of GNU Libtool.
16891 # GNU Libtool is free software; you can redistribute it and/or
16892 # modify it under the terms of the GNU General Public License as
16893 # published by the Free Software Foundation; either version 2 of
16894 # the License, or (at your option) any later version.
16896 # As a special exception to the GNU General Public License,
16897 # if you distribute this file as part of a program or library that
16898 # is built using GNU Libtool, you may include this file under the
16899 # same distribution terms that you use for the rest of that program.
16901 # GNU Libtool is distributed in the hope that it will be useful,
16902 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16903 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16904 # GNU General Public License for more details.
16906 # You should have received a copy of the GNU General Public License
16907 # along with GNU Libtool; see the file COPYING. If not, a copy
16908 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16909 # obtained by writing to the Free Software Foundation, Inc.,
16910 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16913 # The names of the tagged configurations supported by this script.
16916 # ### BEGIN LIBTOOL CONFIG
16918 # Which release of libtool.m4 was used?
16919 macro_version=$macro_version
16920 macro_revision=$macro_revision
16922 # Whether or not to build shared libraries.
16923 build_libtool_libs=$enable_shared
16925 # Whether or not to build static libraries.
16926 build_old_libs=$enable_static
16928 # What type of objects to build.
16931 # Whether or not to optimize for fast installation.
16932 fast_install=$enable_fast_install
16934 # Shell to use when invoking shell scripts.
16937 # An echo program that protects backslashes.
16940 # The PATH separator for the build system.
16941 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16944 host_alias=$host_alias
16948 # The build system.
16949 build_alias=$build_alias
16953 # A sed program that does not truncate output.
16956 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16957 Xsed="\$SED -e 1s/^X//"
16959 # A grep program that handles long lines.
16965 # A literal string matcher.
16968 # A BSD- or MS-compatible name lister.
16971 # Whether we need soft or hard links.
16974 # What is the maximum length of a command?
16975 max_cmd_len=$max_cmd_len
16977 # Object file suffix (normally "o").
16980 # Executable file suffix (normally "").
16983 # whether the shell understands "unset".
16986 # turn spaces into newlines.
16989 # turn newlines into spaces.
16992 # convert \$build file names to \$host format.
16993 to_host_file_cmd=$lt_cv_to_host_file_cmd
16995 # convert \$build files to toolchain format.
16996 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16998 # An object symbol dumper.
16999 OBJDUMP=$lt_OBJDUMP
17001 # Method to check whether dependent libraries are shared objects.
17002 deplibs_check_method=$lt_deplibs_check_method
17004 # Command to use when deplibs_check_method = "file_magic".
17005 file_magic_cmd=$lt_file_magic_cmd
17007 # How to find potential files when deplibs_check_method = "file_magic".
17008 file_magic_glob=$lt_file_magic_glob
17010 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17011 want_nocaseglob=$lt_want_nocaseglob
17013 # DLL creation program.
17014 DLLTOOL=$lt_DLLTOOL
17016 # Command to associate shared and link libraries.
17017 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17022 # Flags to create an archive.
17023 AR_FLAGS=$lt_AR_FLAGS
17025 # How to feed a file listing to the archiver.
17026 archiver_list_spec=$lt_archiver_list_spec
17028 # A symbol stripping program.
17031 # Commands used to install an old-style archive.
17033 old_postinstall_cmds=$lt_old_postinstall_cmds
17034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17036 # Whether to use a lock for old archive extraction.
17037 lock_old_archive_extraction=$lock_old_archive_extraction
17042 # LTCC compiler flags.
17043 LTCFLAGS=$lt_CFLAGS
17045 # Take the output of nm and produce a listing of raw symbols and C names.
17046 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17048 # Transform the output of nm in a proper C declaration.
17049 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17051 # Transform the output of nm in a C name address pair.
17052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17054 # Transform the output of nm in a C name address pair when lib prefix is needed.
17055 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17057 # Specify filename containing input files for \$NM.
17058 nm_file_list_spec=$lt_nm_file_list_spec
17060 # The root where to search for dependent libraries,and in which our libraries should be installed.
17061 lt_sysroot=$lt_sysroot
17063 # The name of the directory that contains temporary libtool files.
17066 # Used to examine libraries when file_magic_cmd begins with "file".
17067 MAGIC_CMD=$MAGIC_CMD
17069 # Must we lock files when doing compilation?
17070 need_locks=$lt_need_locks
17073 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17075 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17076 DSYMUTIL=$lt_DSYMUTIL
17078 # Tool to change global to local symbols on Mac OS X.
17081 # Tool to manipulate fat objects and archives on Mac OS X.
17084 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17087 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17088 OTOOL64=$lt_OTOOL64
17090 # Old archive suffix (normally "a").
17093 # Shared library suffix (normally ".so").
17094 shrext_cmds=$lt_shrext_cmds
17096 # The commands to extract the exported symbol list from a shared archive.
17097 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17099 # Variables whose values should be saved in libtool wrapper scripts and
17100 # restored at link time.
17101 variables_saved_for_relink=$lt_variables_saved_for_relink
17103 # Do we need the "lib" prefix for modules?
17104 need_lib_prefix=$need_lib_prefix
17106 # Do we need a version for libraries?
17107 need_version=$need_version
17109 # Library versioning type.
17110 version_type=$version_type
17112 # Shared library runtime path variable.
17113 runpath_var=$runpath_var
17115 # Shared library path variable.
17116 shlibpath_var=$shlibpath_var
17118 # Is shlibpath searched before the hard-coded library search path?
17119 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17121 # Format of library name prefix.
17122 libname_spec=$lt_libname_spec
17124 # List of archive names. First name is the real one, the rest are links.
17125 # The last name is the one that the linker finds with -lNAME
17126 library_names_spec=$lt_library_names_spec
17128 # The coded name of the library, if different from the real name.
17129 soname_spec=$lt_soname_spec
17131 # Permission mode override for installation of shared libraries.
17132 install_override_mode=$lt_install_override_mode
17134 # Command to use after installation of a shared archive.
17135 postinstall_cmds=$lt_postinstall_cmds
17137 # Command to use after uninstallation of a shared archive.
17138 postuninstall_cmds=$lt_postuninstall_cmds
17140 # Commands used to finish a libtool library installation in a directory.
17141 finish_cmds=$lt_finish_cmds
17143 # As "finish_cmds", except a single script fragment to be evaled but
17145 finish_eval=$lt_finish_eval
17147 # Whether we should hardcode library paths into libraries.
17148 hardcode_into_libs=$hardcode_into_libs
17150 # Compile-time system search path for libraries.
17151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17153 # Run-time system search path for libraries.
17154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17156 # Whether dlopen is supported.
17157 dlopen_support=$enable_dlopen
17159 # Whether dlopen of programs is supported.
17160 dlopen_self=$enable_dlopen_self
17162 # Whether dlopen of statically linked programs is supported.
17163 dlopen_self_static=$enable_dlopen_self_static
17165 # Commands to strip libraries.
17166 old_striplib=$lt_old_striplib
17167 striplib=$lt_striplib
17170 # The linker used to build libraries.
17173 # How to create reloadable object files.
17174 reload_flag=$lt_reload_flag
17175 reload_cmds=$lt_reload_cmds
17177 # Commands used to build an old-style archive.
17178 old_archive_cmds=$lt_old_archive_cmds
17180 # A language specific compiler.
17183 # Is the compiler the GNU compiler?
17186 # Compiler flag to turn off builtin functions.
17187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17189 # Additional compiler flags for building library objects.
17190 pic_flag=$lt_lt_prog_compiler_pic
17192 # How to pass a linker flag through the compiler.
17193 wl=$lt_lt_prog_compiler_wl
17195 # Compiler flag to prevent dynamic linking.
17196 link_static_flag=$lt_lt_prog_compiler_static
17198 # Does compiler simultaneously support -c and -o options?
17199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17201 # Whether or not to add -lc for building shared libraries.
17202 build_libtool_need_lc=$archive_cmds_need_lc
17204 # Whether or not to disallow shared libs when runtime libs are static.
17205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17207 # Compiler flag to allow reflexive dlopens.
17208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17210 # Compiler flag to generate shared objects directly from archives.
17211 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17213 # Whether the compiler copes with passing no objects directly.
17214 compiler_needs_object=$lt_compiler_needs_object
17216 # Create an old-style archive from a shared archive.
17217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17219 # Create a temporary old-style archive to link instead of a shared archive.
17220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17222 # Commands used to build a shared archive.
17223 archive_cmds=$lt_archive_cmds
17224 archive_expsym_cmds=$lt_archive_expsym_cmds
17226 # Commands used to build a loadable module if different from building
17227 # a shared archive.
17228 module_cmds=$lt_module_cmds
17229 module_expsym_cmds=$lt_module_expsym_cmds
17231 # Whether we are building with GNU ld or not.
17232 with_gnu_ld=$lt_with_gnu_ld
17234 # Flag that allows shared libraries with undefined symbols to be built.
17235 allow_undefined_flag=$lt_allow_undefined_flag
17237 # Flag that enforces no undefined symbols.
17238 no_undefined_flag=$lt_no_undefined_flag
17240 # Flag to hardcode \$libdir into a binary during linking.
17241 # This must work even if \$libdir does not exist
17242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17244 # Whether we need a single "-rpath" flag with a separated argument.
17245 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17247 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17248 # DIR into the resulting binary.
17249 hardcode_direct=$hardcode_direct
17251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17252 # DIR into the resulting binary and the resulting library dependency is
17253 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17254 # library is relocated.
17255 hardcode_direct_absolute=$hardcode_direct_absolute
17257 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17258 # into the resulting binary.
17259 hardcode_minus_L=$hardcode_minus_L
17261 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17262 # into the resulting binary.
17263 hardcode_shlibpath_var=$hardcode_shlibpath_var
17265 # Set to "yes" if building a shared library automatically hardcodes DIR
17266 # into the library and all subsequent libraries and executables linked
17268 hardcode_automatic=$hardcode_automatic
17270 # Set to yes if linker adds runtime paths of dependent libraries
17271 # to runtime path list.
17272 inherit_rpath=$inherit_rpath
17274 # Whether libtool must link a program against all its dependency libraries.
17275 link_all_deplibs=$link_all_deplibs
17277 # Set to "yes" if exported symbols are required.
17278 always_export_symbols=$always_export_symbols
17280 # The commands to list exported symbols.
17281 export_symbols_cmds=$lt_export_symbols_cmds
17283 # Symbols that should not be listed in the preloaded symbols.
17284 exclude_expsyms=$lt_exclude_expsyms
17286 # Symbols that must always be exported.
17287 include_expsyms=$lt_include_expsyms
17289 # Commands necessary for linking programs (against libraries) with templates.
17290 prelink_cmds=$lt_prelink_cmds
17292 # Commands necessary for finishing linking programs.
17293 postlink_cmds=$lt_postlink_cmds
17295 # Specify filename containing input files.
17296 file_list_spec=$lt_file_list_spec
17298 # How to hardcode a shared library path into an executable.
17299 hardcode_action=$hardcode_action
17301 # ### END LIBTOOL CONFIG
17307 cat <<\_LT_EOF >> "$cfgfile"
17308 # AIX sometimes has problems with the GCC collect2 program. For some
17309 # reason, if we set the COLLECT_NAMES environment variable, the problems
17310 # vanish in a puff of smoke.
17311 if test "X${COLLECT_NAMES+set}" != Xset; then
17313 export COLLECT_NAMES
17320 ltmain="$ac_aux_dir/ltmain.sh"
17323 # We use sed instead of cat because bash on DJGPP gets confused if
17324 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17325 # text mode, it properly converts lines to CR/LF. This bash problem
17326 # is reportedly fixed, but why not run on old versions too?
17327 sed '$q' "$ltmain" >> "$cfgfile" \
17328 || (rm -f "$cfgfile"; exit 1)
17330 if test x"$xsi_shell" = xyes; then
17331 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17335 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17336 \ * ) func_dirname_result="${3}" ;;\
17338 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17339 && mv -f "$cfgfile.tmp" "$cfgfile" \
17340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17341 test 0 -eq $? || _lt_function_replace_fail=:
17344 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17347 \ func_basename_result="${1##*/}"\
17348 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17349 && mv -f "$cfgfile.tmp" "$cfgfile" \
17350 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17351 test 0 -eq $? || _lt_function_replace_fail=:
17354 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17355 func_dirname_and_basename ()\
17358 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17359 \ * ) func_dirname_result="${3}" ;;\
17361 \ func_basename_result="${1##*/}"\
17362 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17363 && mv -f "$cfgfile.tmp" "$cfgfile" \
17364 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17365 test 0 -eq $? || _lt_function_replace_fail=:
17368 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17371 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17372 \ # positional parameters, so assign one to ordinary parameter first.\
17373 \ func_stripname_result=${3}\
17374 \ func_stripname_result=${func_stripname_result#"${1}"}\
17375 \ func_stripname_result=${func_stripname_result%"${2}"}\
17376 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17377 && mv -f "$cfgfile.tmp" "$cfgfile" \
17378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17379 test 0 -eq $? || _lt_function_replace_fail=:
17382 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17383 func_split_long_opt ()\
17385 \ func_split_long_opt_name=${1%%=*}\
17386 \ func_split_long_opt_arg=${1#*=}\
17387 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17388 && mv -f "$cfgfile.tmp" "$cfgfile" \
17389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17390 test 0 -eq $? || _lt_function_replace_fail=:
17393 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17394 func_split_short_opt ()\
17396 \ func_split_short_opt_arg=${1#??}\
17397 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17398 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17399 && mv -f "$cfgfile.tmp" "$cfgfile" \
17400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17401 test 0 -eq $? || _lt_function_replace_fail=:
17404 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17408 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17409 \ *) func_lo2o_result=${1} ;;\
17411 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17412 && mv -f "$cfgfile.tmp" "$cfgfile" \
17413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17414 test 0 -eq $? || _lt_function_replace_fail=:
17417 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17420 func_xform_result=${1%.*}.lo\
17421 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17422 && mv -f "$cfgfile.tmp" "$cfgfile" \
17423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17424 test 0 -eq $? || _lt_function_replace_fail=:
17427 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17430 func_arith_result=$(( $* ))\
17431 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17432 && mv -f "$cfgfile.tmp" "$cfgfile" \
17433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17434 test 0 -eq $? || _lt_function_replace_fail=:
17437 sed -e '/^func_len ()$/,/^} # func_len /c\
17440 func_len_result=${#1}\
17441 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17442 && mv -f "$cfgfile.tmp" "$cfgfile" \
17443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17444 test 0 -eq $? || _lt_function_replace_fail=:
17448 if test x"$lt_shell_append" = xyes; then
17449 sed -e '/^func_append ()$/,/^} # func_append /c\
17452 eval "${1}+=\\${2}"\
17453 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17454 && mv -f "$cfgfile.tmp" "$cfgfile" \
17455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17456 test 0 -eq $? || _lt_function_replace_fail=:
17459 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17460 func_append_quoted ()\
17462 \ func_quote_for_eval "${2}"\
17463 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17464 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17465 && mv -f "$cfgfile.tmp" "$cfgfile" \
17466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17467 test 0 -eq $? || _lt_function_replace_fail=:
17470 # Save a `func_append' function call where possible by direct use of '+='
17471 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17472 && mv -f "$cfgfile.tmp" "$cfgfile" \
17473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17474 test 0 -eq $? || _lt_function_replace_fail=:
17476 # Save a `func_append' function call even when '+=' is not available
17477 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17478 && mv -f "$cfgfile.tmp" "$cfgfile" \
17479 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17480 test 0 -eq $? || _lt_function_replace_fail=:
17483 if test x"$_lt_function_replace_fail" = x":"; then
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17485 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17489 mv -f "$cfgfile" "$ofile" ||
17490 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17494 "include":C) test -d include || mkdir include ;;
17496 test -d src || mkdir src
17497 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17506 ac_clean_files=$ac_clean_files_save
17508 test $ac_write_fail = 0 ||
17509 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17512 # configure is writing to config.log, and then calls config.status.
17513 # config.status does its own redirection, appending to config.log.
17514 # Unfortunately, on DOS this fails, as config.log is still kept open
17515 # by configure, so config.status won't be able to write to it; its
17516 # output is simply discarded. So we exec the FD to /dev/null,
17517 # effectively closing config.log, so it can be properly (re)opened and
17518 # appended to by config.status. When coming back to configure, we
17519 # need to make the FD available again.
17520 if test "$no_create" != yes; then
17522 ac_config_status_args=
17523 test "$silent" = yes &&
17524 ac_config_status_args="$ac_config_status_args --quiet"
17526 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17528 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17529 # would make configure fail if this is the last instruction.
17530 $ac_cs_success || as_fn_exit 1
17532 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17534 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}