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
719 MAINTAINER_MODE_FALSE
744 am__fastdepCCAS_FALSE
774 INSTALL_STRIP_PROGRAM
789 ax_enable_builddir_sed
829 program_transform_name
842 enable_option_checking
844 enable_dependency_tracking
852 enable_portable_binary
854 enable_maintainer_mode
861 ac_precious_vars='build_alias
870 # Initialize some variables set by options.
872 ac_init_version=false
873 ac_unrecognized_opts=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name=s,x,x,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir='${datarootdir}/info'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
930 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 # Accept the important Cygnus configure options, so we can diagnose typos.
937 case $ac_dashdash$ac_option in
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
959 cache_file=config.cache ;;
961 -datadir | --datadir | --datadi | --datad)
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
973 -disable-* | --disable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=no ;;
989 -docdir | --docdir | --docdi | --doc | --do)
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_$ac_useropt"
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 htmldir=$ac_optarg ;;
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1058 -libdir | --libdir | --libdi | --libd)
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1149 -psdir | --psdir | --psdi | --psd | --ps)
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 sbindir=$ac_optarg ;;
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 sharedstatedir=$ac_optarg ;;
1175 -site | --site | --sit)
1177 -site=* | --site=* | --sit=*)
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1233 eval with_$ac_useropt=no ;;
1236 # Obsolete; use --with-x.
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1253 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information"
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error $? "missing argument to $ac_option"
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 elif test "x$build_alias" != "x$host_alias"; then
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331 test "$silent" = yes && exec 6>/dev/null
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337 as_fn_error $? "working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 as_fn_error $? "pwd does not report name of working directory"
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$as_myself" : 'X\(//\)[^/]' \| \
1349 X"$as_myself" : 'X\(//\)$' \| \
1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 $as_echo X"$as_myself" |
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1374 ac_srcdir_defaulted=no
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 # Report the --help message.
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1408 \`configure' configures libffi 3.0.12-rc0 to adapt to many kinds of systems.
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1415 Defaults for the options are specified in brackets.
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking ...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1439 For better control, use the options below.
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 --target=TARGET configure for building compilers for TARGET [HOST]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of libffi 3.0.12-rc0:";;
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --disable-builddir disable automatic build in subdir of sources
1489 --enable-dependency-tracking
1490 do not reject slow dependency extractors
1491 --disable-dependency-tracking
1492 speeds up one-time build
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-static[=PKGS] build static libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-libtool-lock avoid locking (might break parallel builds)
1498 --enable-portable-binary
1499 disable compiler optimizations that would produce
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1505 --enable-debug debugging mode
1506 --disable-structs omit code for struct support
1507 --disable-raw-api make the raw api unavailable
1508 --enable-purify-safety purify-safe mode
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1516 --with-sysroot=DIR Search for dependent libraries within DIR
1517 (or the compiler's sysroot if not specified).
1518 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CCAS assembler compiler command (defaults to CC)
1530 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1536 Report bugs to <http://gcc.gnu.org/bugs.html>.
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1566 .) # We are building in place.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1599 libffi configure 3.0.12-rc0
1600 generated by GNU Autoconf 2.69
1602 Copyright (C) 2012 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1649 } # ac_fn_c_try_compile
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest$ac_exeext
1658 if { { ac_try="$ac_link"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>conftest.err
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest$ac_exeext && {
1677 test "$cross_compiling" = yes ||
1678 test -x conftest$ac_exeext
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689 # interfere with the next link command; also delete a directory that is
1690 # left behind by Apple's compiler. We do this before executing the actions.
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1695 } # ac_fn_c_try_link
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1714 if ac_fn_c_try_compile "$LINENO"; then :
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 } # ac_fn_c_check_header_compile
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } > conftest.i && {
1750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { { ac_try="$ac_link"
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>&5
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783 { { case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_try") 2>&5
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; }; }; then :
1795 $as_echo "$as_me: program exited with status $ac_status" >&5
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1799 ac_retval=$ac_status
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1822 #define $2 innocuous_$2
1824 /* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $2 (); below.
1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827 <limits.h> exists even on freestanding compilers. */
1830 # include <limits.h>
1832 # include <assert.h>
1837 /* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1844 /* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847 #if defined __stub_$2 || defined __stub___$2
1859 if ac_fn_c_try_link "$LINENO"; then :
1864 rm -f core conftest.err conftest.$ac_objext \
1865 conftest$ac_exeext conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 } # ac_fn_c_check_func
1874 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1875 # --------------------------------------------
1876 # Tries to find the compile-time value of EXPR in a program that includes
1877 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1879 ac_fn_c_compute_int ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if test "$cross_compiling" = yes; then
1883 # Depending upon the size, compute the lo and hi bounds.
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1890 static int test_array [1 - 2 * !(($2) >= 0)];
1892 return test_array [0];
1898 if ac_fn_c_try_compile "$LINENO"; then :
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1907 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1909 return test_array [0];
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_hi=$ac_mid; break
1918 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1919 if test $ac_lo -le $ac_mid; then
1923 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1934 static int test_array [1 - 2 * !(($2) < 0)];
1936 return test_array [0];
1942 if ac_fn_c_try_compile "$LINENO"; then :
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1951 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1953 return test_array [0];
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_lo=$ac_mid; break
1962 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1963 if test $ac_mid -le $ac_hi; then
1967 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 # Binary search between lo and hi bounds.
1978 while test "x$ac_lo" != "x$ac_hi"; do
1979 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1986 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988 return test_array [0];
1994 if ac_fn_c_try_compile "$LINENO"; then :
1997 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2009 static long int longval () { return $2; }
2010 static unsigned long int ulongval () { return $2; }
2017 FILE *f = fopen ("conftest.val", "w");
2022 long int i = longval ();
2025 fprintf (f, "%ld", i);
2029 unsigned long int i = ulongval ();
2032 fprintf (f, "%lu", i);
2034 /* Do not output a trailing newline, as this causes \r\n confusion
2035 on some platforms. */
2036 return ferror (f) || fclose (f) != 0;
2042 if ac_fn_c_try_run "$LINENO"; then :
2043 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2048 conftest.$ac_objext conftest.beam conftest.$ac_ext
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2055 } # ac_fn_c_compute_int
2057 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2060 # the include files in INCLUDES and setting the cache variable VAR
2062 ac_fn_c_check_header_mongrel ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if eval \${$3+:} false; then :
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2075 # Is the header compilable?
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2077 $as_echo_n "checking $2 usability... " >&6; }
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_header_compiler=yes
2086 ac_header_compiler=no
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2090 $as_echo "$ac_header_compiler" >&6; }
2092 # Is the header present?
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2094 $as_echo_n "checking $2 presence... " >&6; }
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2099 if ac_fn_c_try_cpp "$LINENO"; then :
2100 ac_header_preproc=yes
2102 ac_header_preproc=no
2104 rm -f conftest.err conftest.i conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2106 $as_echo "$ac_header_preproc" >&6; }
2108 # So? What about this header?
2109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2112 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2118 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2120 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2122 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2124 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2126 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 ( $as_echo "## ------------------------------------------- ##
2128 ## Report this to http://gcc.gnu.org/bugs.html ##
2129 ## ------------------------------------------- ##"
2130 ) | sed "s/^/$as_me: WARNING: /" >&2
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136 $as_echo_n "(cached) " >&6
2138 eval "$3=\$ac_header_compiler"
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146 } # ac_fn_c_check_header_mongrel
2148 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2149 # -------------------------------------------
2150 # Tests whether TYPE exists after having included INCLUDES, setting cache
2151 # variable VAR accordingly.
2152 ac_fn_c_check_type ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2186 if ac_fn_c_try_compile "$LINENO"; then :
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200 } # ac_fn_c_check_type
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2205 It was created by libffi $as_me 3.0.12-rc0, which was
2206 generated by GNU Autoconf 2.69. Invocation command line was
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2227 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2228 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2231 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2232 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2233 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 $as_echo "PATH: $as_dir"
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2266 ac_must_keep_next=false
2272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274 | -silent | --silent | --silen | --sile | --sil)
2277 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2282 as_fn_append ac_configure_args1 " '$ac_arg'"
2283 if test $ac_must_keep_next = true; then
2284 ac_must_keep_next=false # Got value, back to normal.
2287 *=* | --config-cache | -C | -disable-* | --disable-* \
2288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290 | -with-* | --with-* | -without-* | --without-* | --x)
2291 case "$ac_configure_args0 " in
2292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 -* ) ac_must_keep_next=true ;;
2298 as_fn_append ac_configure_args " '$ac_arg'"
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log. We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312 # Save into config.log some information that might help in debugging.
2316 $as_echo "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2320 # The following way of writing the cache mishandles newlines in values,
2322 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323 eval ac_val=\$$ac_var
2327 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331 _ | IFS | as_nl) ;; #(
2332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333 *) { eval $ac_var=; unset $ac_var;} ;;
2338 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339 *${as_nl}ac_space=\ *)
2341 "s/'\''/'\''\\\\'\'''\''/g;
2342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2352 $as_echo "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2356 for ac_var in $ac_subst_vars
2358 eval ac_val=\$$ac_var
2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 $as_echo "$ac_var='\''$ac_val'\''"
2366 if test -n "$ac_subst_files"; then
2367 $as_echo "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2371 for ac_var in $ac_subst_files
2373 eval ac_val=\$$ac_var
2375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 $as_echo "$ac_var='\''$ac_val'\''"
2382 if test -s confdefs.h; then
2383 $as_echo "## ----------- ##
2390 test "$ac_signal" != 0 &&
2391 $as_echo "$as_me: caught signal $ac_signal"
2392 $as_echo "$as_me: exit $exit_status"
2394 rm -f core *.core core.conftest.* &&
2395 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398 for ac_signal in 1 2 13 15; do
2399 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2406 $as_echo "/* confdefs.h */" > confdefs.h
2408 # Predefined preprocessor variables.
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2439 if test -n "$CONFIG_SITE"; then
2440 # We do not want a PATH search for config.site.
2441 case $CONFIG_SITE in #((
2442 -*) ac_site_file1=./$CONFIG_SITE;;
2443 */*) ac_site_file1=$CONFIG_SITE;;
2444 *) ac_site_file1=./$CONFIG_SITE;;
2446 elif test "x$prefix" != xNONE; then
2447 ac_site_file1=$prefix/share/config.site
2448 ac_site_file2=$prefix/etc/config.site
2450 ac_site_file1=$ac_default_prefix/share/config.site
2451 ac_site_file2=$ac_default_prefix/etc/config.site
2453 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2455 test "x$ac_site_file" = xNONE && continue
2456 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459 sed 's/^/| /' "$ac_site_file" >&5
2461 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 as_fn_error $? "failed to load site script $ac_site_file
2464 See \`config.log' for more details" "$LINENO" 5; }
2468 if test -r "$cache_file"; then
2469 # Some versions of bash will fail to source /dev/null (special files
2470 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2471 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473 $as_echo "$as_me: loading cache $cache_file" >&6;}
2475 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476 *) . "./$cache_file";;
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481 $as_echo "$as_me: creating cache $cache_file" >&6;}
2485 # Check that the precious variables saved in the cache have kept the same
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490 eval ac_new_set=\$ac_env_${ac_var}_set
2491 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492 eval ac_new_val=\$ac_env_${ac_var}_value
2493 case $ac_old_set,$ac_new_set in
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497 ac_cache_corrupted=: ;;
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501 ac_cache_corrupted=: ;;
2504 if test "x$ac_old_val" != "x$ac_new_val"; then
2505 # differences in whitespace do not lead to failure.
2506 ac_old_val_w=`echo x $ac_old_val`
2507 ac_new_val_w=`echo x $ac_new_val`
2508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511 ac_cache_corrupted=:
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515 eval $ac_var=\$ac_old_val
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2518 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2520 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2523 # Pass precious variables to config.status.
2524 if test "$ac_new_set" = set; then
2526 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527 *) ac_arg=$ac_var=$ac_new_val ;;
2529 case " $ac_configure_args " in
2530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2531 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2535 if $ac_cache_corrupted; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2540 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2542 ## -------------------- ##
2543 ## Main body of script. ##
2544 ## -------------------- ##
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553 ac_config_headers="$ac_config_headers fficonfig.h"
2557 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2558 if test -f "$ac_dir/install-sh"; then
2560 ac_install_sh="$ac_aux_dir/install-sh -c"
2562 elif test -f "$ac_dir/install.sh"; then
2564 ac_install_sh="$ac_aux_dir/install.sh -c"
2566 elif test -f "$ac_dir/shtool"; then
2568 ac_install_sh="$ac_aux_dir/shtool install -c"
2572 if test -z "$ac_aux_dir"; then
2573 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2576 # These three variables are undocumented and unsupported,
2577 # and are intended to be withdrawn in a future Autoconf release.
2578 # They can cause serious problems if a builder's source tree is in a directory
2579 # whose full name contains unusual characters.
2580 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2581 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2582 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2585 # Make sure we can run config.sub.
2586 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2587 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2590 $as_echo_n "checking build system type... " >&6; }
2591 if ${ac_cv_build+:} false; then :
2592 $as_echo_n "(cached) " >&6
2594 ac_build_alias=$build_alias
2595 test "x$ac_build_alias" = x &&
2596 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2597 test "x$ac_build_alias" = x &&
2598 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2599 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2604 $as_echo "$ac_cv_build" >&6; }
2605 case $ac_cv_build in
2607 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2610 ac_save_IFS=$IFS; IFS='-'
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2624 $as_echo_n "checking host system type... " >&6; }
2625 if ${ac_cv_host+:} false; then :
2626 $as_echo_n "(cached) " >&6
2628 if test "x$host_alias" = x; then
2629 ac_cv_host=$ac_cv_build
2631 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2637 $as_echo "$ac_cv_host" >&6; }
2640 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2643 ac_save_IFS=$IFS; IFS='-'
2649 # Remember, the first character of IFS is used to create $*,
2650 # except with old shells:
2653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2657 $as_echo_n "checking target system type... " >&6; }
2658 if ${ac_cv_target+:} false; then :
2659 $as_echo_n "(cached) " >&6
2661 if test "x$target_alias" = x; then
2662 ac_cv_target=$ac_cv_host
2664 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2670 $as_echo "$ac_cv_target" >&6; }
2671 case $ac_cv_target in
2673 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2675 target=$ac_cv_target
2676 ac_save_IFS=$IFS; IFS='-'
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2686 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2689 # The aliases save the names the user supplied, while $host etc.
2690 # will get canonicalized.
2691 test -n "$target_alias" &&
2692 test "$program_prefix$program_suffix$program_transform_name" = \
2694 program_prefix=${target_alias}-
2696 target_alias=${target_alias-$host_alias}
2698 . ${srcdir}/configure.host
2701 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2702 if test "${ac_configure_args+set}" != "set" ; then
2704 for ac_arg in ${1+"$@"}; do
2705 ac_configure_args="$ac_configure_args '$ac_arg'"
2709 # expand $ac_aux_dir to an absolute path
2710 am_aux_dir=`cd $ac_aux_dir && pwd`
2713 ax_enable_builddir="."
2714 # Check whether --enable-builddir was given.
2715 if test "${enable_builddir+set}" = set; then :
2716 enableval=$enable_builddir; ax_enable_builddir="$enableval"
2718 ax_enable_builddir="auto"
2721 if test ".$ac_srcdir_defaulted" != ".no" ; then
2722 if test ".$srcdir" = ".." ; then
2723 if test -f config.status ; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2725 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2727 test ".$ax_enable_builddir" = "." && ax_enable_builddir="."
2728 test ".$ax_enable_builddir" = ".no" && ax_enable_builddir="."
2729 test ".$TARGET" = "." && TARGET="$target"
2730 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2731 if test ".$ax_enable_builddir" != ".." ; then # we know where to go and
2732 as_dir=$ax_enable_builddir; as_fn_mkdir_p
2733 echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2734 cd $ax_enable_builddir
2735 if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2738 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2740 as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2742 srcdir=`echo "$ax_enable_builddir" |
2743 sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2744 # going to restart from subdirectory location
2745 test -f $srcdir/config.log && mv $srcdir/config.log .
2746 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
2747 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2748 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2750 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2751 case "$0" in # restart
2752 /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2753 *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2758 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2759 # Extract the first word of "gsed sed", so it can be a program name with args.
2760 set dummy gsed sed; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2764 $as_echo_n "(cached) " >&6
2766 case $ax_enable_builddir_sed in
2768 ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2790 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2791 if test -n "$ax_enable_builddir_sed"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2793 $as_echo "$ax_enable_builddir_sed" >&6; }
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2800 ax_enable_builddir_auxdir="$am_aux_dir"
2801 ac_config_commands="$ac_config_commands buildir"
2804 am__api_version='1.12'
2806 # Find a good install program. We prefer a C program (faster),
2807 # so one script is as good as another. But avoid the broken or
2808 # incompatible versions:
2809 # SysV /etc/install, /usr/sbin/install
2810 # SunOS /usr/etc/install
2811 # IRIX /sbin/install
2813 # AmigaOS /C/install, which installs bootblocks on floppy discs
2814 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2815 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2816 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2817 # OS/2's system install, which has a completely different semantic
2818 # ./install, which can be erroneously created by make from ./install.sh.
2819 # Reject install programs that cannot install multiple files.
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2821 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2822 if test -z "$INSTALL"; then
2823 if ${ac_cv_path_install+:} false; then :
2824 $as_echo_n "(cached) " >&6
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 # Account for people who put trailing slashes in PATH elements.
2832 case $as_dir/ in #((
2833 ./ | .// | /[cC]/* | \
2834 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2835 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2838 # OSF1 and SCO ODT 3.0 have their own names for install.
2839 # Don't use installbsd from OSF since it installs stuff as root
2841 for ac_prog in ginstall scoinst install; do
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2844 if test $ac_prog = install &&
2845 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # AIX install. It has an incompatible calling convention.
2848 elif test $ac_prog = install &&
2849 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2850 # program-specific install script used by HP pwplus--don't use.
2853 rm -rf conftest.one conftest.two conftest.dir
2854 echo one > conftest.one
2855 echo two > conftest.two
2857 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2858 test -s conftest.one && test -s conftest.two &&
2859 test -s conftest.dir/conftest.one &&
2860 test -s conftest.dir/conftest.two
2862 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2875 rm -rf conftest.one conftest.two conftest.dir
2878 if test "${ac_cv_path_install+set}" = set; then
2879 INSTALL=$ac_cv_path_install
2881 # As a last resort, use the slow shell script. Don't cache a
2882 # value for INSTALL within a source directory, because that will
2883 # break other packages using the cache if that directory is
2884 # removed, or if the value is a relative name.
2885 INSTALL=$ac_install_sh
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2889 $as_echo "$INSTALL" >&6; }
2891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2892 # It thinks the first close brace ends the variable substitution.
2893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2900 $as_echo_n "checking whether build environment is sane... " >&6; }
2901 # Reject unsafe characters in $srcdir or the absolute working directory
2902 # name. Accept space and tab only in the latter.
2906 *[\\\"\#\$\&\'\`$am_lf]*)
2907 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2910 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2911 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2914 # Do 'set' in a subshell so we don't clobber the current shell's
2915 # arguments. Must try -L first in case configure is actually a
2916 # symlink; some systems play weird games with the mod time of symlinks
2917 # (eg FreeBSD returns the mod time of the symlink's containing
2921 for am_try in 1 2; do
2922 echo "timestamp, slept: $am_has_slept" > conftest.file
2923 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2924 if test "$*" = "X"; then
2926 set X `ls -t "$srcdir/configure" conftest.file`
2928 if test "$*" != "X $srcdir/configure conftest.file" \
2929 && test "$*" != "X conftest.file $srcdir/configure"; then
2931 # If neither matched, then we have a broken ls. This can happen
2932 # if, for instance, CONFIG_SHELL is bash and it inherits a
2933 # broken ls alias from the environment. This has actually
2934 # happened. Such a system could not be considered "sane".
2935 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2936 alias in your environment" "$LINENO" 5
2938 if test "$2" = conftest.file || test $am_try -eq 2; then
2945 test "$2" = conftest.file
2951 as_fn_error $? "newly created file is older than distributed files!
2952 Check your system clock" "$LINENO" 5
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 # If we didn't sleep, we still need to ensure time stamps of config.status and
2957 # generated files are strictly newer.
2959 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2966 test "$program_prefix" != NONE &&
2967 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2968 # Use a double $ so make ignores it.
2969 test "$program_suffix" != NONE &&
2970 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2971 # Double any \ or $.
2972 # By default was `s,x,x', remove it if useless.
2973 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2974 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2976 if test x"${MISSING+set}" != xset; then
2979 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2981 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --run true"; then
2986 am_missing_run="$MISSING --run "
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2993 if test x"${install_sh}" != xset; then
2996 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2998 install_sh="\${SHELL} $am_aux_dir/install-sh"
3002 # Installed binaries are usually stripped using 'strip' when the user
3003 # run "make install-strip". However 'strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the 'STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}strip; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_STRIP+:} false; then :
3013 $as_echo_n "(cached) " >&6
3015 if test -n "$STRIP"; then
3016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 STRIP=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3046 if test -z "$ac_cv_prog_STRIP"; then
3048 # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$ac_ct_STRIP"; then
3056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_ac_ct_STRIP="strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3084 if test "x$ac_ct_STRIP" = x; then
3087 case $cross_compiling:$ac_tool_warned in
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3096 STRIP="$ac_cv_prog_STRIP"
3100 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105 if ${ac_cv_path_mkdir+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3112 test -z "$as_dir" && as_dir=.
3113 for ac_prog in mkdir gmkdir; do
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3116 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117 'mkdir (GNU coreutils) '* | \
3118 'mkdir (coreutils) '* | \
3119 'mkdir (fileutils) '4.1*)
3120 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3130 test -d ./--version && rmdir ./--version
3131 if test "${ac_cv_path_mkdir+set}" = set; then
3132 MKDIR_P="$ac_cv_path_mkdir -p"
3134 # As a last resort, use the slow shell script. Don't cache a
3135 # value for MKDIR_P within a source directory, because that will
3136 # break other packages using the cache if that directory is
3137 # removed, or if the value is a relative name.
3138 MKDIR_P="$ac_install_sh -d"
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3144 for ac_prog in gawk mawk nawk awk
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_AWK+:} false; then :
3151 $as_echo_n "(cached) " >&6
3153 if test -n "$AWK"; then
3154 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_AWK="$ac_prog"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 if test -n "$AWK"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3176 $as_echo "$AWK" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3183 test -n "$AWK" && break
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3187 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3189 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3190 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3191 $as_echo_n "(cached) " >&6
3193 cat >conftest.make <<\_ACEOF
3196 @echo '@@@%%%=$(MAKE)=@@@%%%'
3198 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3201 eval ac_cv_prog_make_${ac_make}_set=yes;;
3203 eval ac_cv_prog_make_${ac_make}_set=no;;
3207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 SET_MAKE="MAKE=${MAKE-make}"
3217 rm -rf .tst 2>/dev/null
3218 mkdir .tst 2>/dev/null
3219 if test -d .tst; then
3224 rmdir .tst 2>/dev/null
3226 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3227 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3228 # is not polluted with repeated "-I."
3229 am__isrc=' -I$(srcdir)'
3230 # test to see if srcdir already configured
3231 if test -f $srcdir/config.status; then
3232 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3236 # test whether we have cygpath
3237 if test -z "$CYGPATH_W"; then
3238 if (cygpath --version) >/dev/null 2>/dev/null; then
3239 CYGPATH_W='cygpath -w'
3246 # Define the identity of the package.
3248 VERSION='3.0.12-rc0'
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE "$PACKAGE"
3256 cat >>confdefs.h <<_ACEOF
3257 #define VERSION "$VERSION"
3260 # Some tools Automake needs.
3262 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3265 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3268 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3271 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3274 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3276 # For better backward compatibility. To be removed once Automake 1.9.x
3277 # dies out for good. For more background, see:
3278 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3279 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3280 mkdir_p='$(MKDIR_P)'
3282 # We need awk for the "check" target. The system "awk" is bad on
3284 # Always define AMTAR for backward compatibility. Yes, it's still used
3285 # in the wild :-( We should find a proper way to deprecate it ...
3288 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3295 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3296 # We must force CC to /not/ be precious variables; otherwise
3297 # the wrong, non-multilib-adjusted value will be used in multilibs.
3298 # As a side effect, we have to subst CFLAGS ourselves.
3299 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3300 # defaults of its own if none are provided.
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3349 if test -z "$ac_cv_prog_CC"; then
3351 # Extract the first word of "gcc", so it can be a program name with args.
3352 set dummy gcc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3356 $as_echo_n "(cached) " >&6
3358 if test -n "$ac_ct_CC"; then
3359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_CC="gcc"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3387 if test "x$ac_ct_CC" = x; then
3390 case $cross_compiling:$ac_tool_warned in
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394 ac_tool_warned=yes ;;
3402 if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_CC="${ac_tool_prefix}cc"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3443 if test -z "$CC"; then
3444 # Extract the first word of "cc", so it can be a program name with args.
3445 set dummy cc; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_CC+:} false; then :
3449 $as_echo_n "(cached) " >&6
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3463 ac_prog_rejected=yes
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 if test $ac_prog_rejected = yes; then
3475 # We found a bogon in the path, so make sure we never use it.
3476 set dummy $ac_cv_prog_CC
3478 if test $# != 0; then
3479 # We chose a different compiler from the bogus one.
3480 # However, it has the same basename, so the bogon will be chosen
3481 # first if we set CC to just the basename; use the full file name.
3483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3499 if test -z "$CC"; then
3500 if test -n "$ac_tool_prefix"; then
3501 for ac_prog in cl.exe
3503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3540 test -n "$CC" && break
3543 if test -z "$CC"; then
3545 for ac_prog in cl.exe
3547 # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy $ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$ac_ct_CC"; then
3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_CC="$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3584 test -n "$ac_ct_CC" && break
3587 if test "x$ac_ct_CC" = x; then
3590 case $cross_compiling:$ac_tool_warned in
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details" "$LINENO" 5; }
3608 # Provide some information about the compiler.
3609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3612 for ac_option in --version -v -V -qversion; do
3613 { { ac_try="$ac_compiler $ac_option >&5"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3622 if test -s conftest.err; then
3624 ... rest of stderr output deleted ...
3625 10q' conftest.err >conftest.er1
3626 cat conftest.er1 >&5
3628 rm -f conftest.er1 conftest.err
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3644 ac_clean_files_save=$ac_clean_files
3645 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3646 # Try to create an executable without -o first, disregard a.out.
3647 # It will help us diagnose broken compilers, and finding out an intuition
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3650 $as_echo_n "checking whether the C compiler works... " >&6; }
3651 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3653 # The possible output files:
3654 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3657 for ac_file in $ac_files
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3661 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3666 if { { ac_try="$ac_link_default"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_link_default") 2>&5
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3678 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3679 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3680 # so that the user can short-circuit this test for compilers unknown to
3682 for ac_file in $ac_files ''
3684 test -f "$ac_file" || continue
3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3689 # We found the default executable, but exeext='' is most
3693 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3697 # We set ac_cv_exeext here because the later test for it is not
3698 # safe: cross compilers may not add the suffix if given an `-o'
3699 # argument, so we may need to know it at that point already.
3700 # Even if this section looks crufty: it has the advantage of
3707 test "$ac_cv_exeext" = no && ac_cv_exeext=
3712 if test -z "$ac_file"; then :
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error 77 "C compiler cannot create executables
3721 See \`config.log' for more details" "$LINENO" 5; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3727 $as_echo_n "checking for C compiler default output file name... " >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 ac_exeext=$ac_cv_exeext
3732 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3733 ac_clean_files=$ac_clean_files_save
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3735 $as_echo_n "checking for suffix of executables... " >&6; }
3736 if { { ac_try="$ac_link"
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743 (eval "$ac_link") 2>&5
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }; then :
3747 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3748 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3749 # work properly (i.e., refer to `conftest.exe'), while it won't with
3751 for ac_file in conftest.exe conftest conftest.*; do
3752 test -f "$ac_file" || continue
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details" "$LINENO" 5; }
3766 rm -f conftest conftest$ac_cv_exeext
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3768 $as_echo "$ac_cv_exeext" >&6; }
3770 rm -f conftest.$ac_ext
3771 EXEEXT=$ac_cv_exeext
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3779 FILE *f = fopen ("conftest.out", "w");
3780 return ferror (f) || fclose (f) != 0;
3786 ac_clean_files="$ac_clean_files conftest.out"
3787 # Check that the compiler produces executables we can run. If not, either
3788 # the compiler is broken, or we cross compile.
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3790 $as_echo_n "checking whether we are cross compiling... " >&6; }
3791 if test "$cross_compiling" != yes; then
3792 { { ac_try="$ac_link"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_link") 2>&5
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }
3803 if { ac_try='./conftest$ac_cv_exeext'
3804 { { case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_try") 2>&5
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; }; then
3816 if test "$cross_compiling" = maybe; then
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot run C compiled programs.
3822 If you meant to cross compile, use \`--host'.
3823 See \`config.log' for more details" "$LINENO" 5; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3828 $as_echo "$cross_compiling" >&6; }
3830 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3833 $as_echo_n "checking for suffix of object files... " >&6; }
3834 if ${ac_cv_objext+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3848 rm -f conftest.o conftest.obj
3849 if { { ac_try="$ac_compile"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_compile") 2>&5
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 for ac_file in conftest.o conftest.obj conftest.*; do
3861 test -f "$ac_file" || continue;
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3869 $as_echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "cannot compute suffix of object files: cannot compile
3875 See \`config.log' for more details" "$LINENO" 5; }
3877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3880 $as_echo "$ac_cv_objext" >&6; }
3881 OBJEXT=$ac_cv_objext
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3885 if ${ac_cv_c_compiler_gnu+:} false; then :
3886 $as_echo_n "(cached) " >&6
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3902 if ac_fn_c_try_compile "$LINENO"; then :
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3913 if test $ac_compiler_gnu = yes; then
3918 ac_test_CFLAGS=${CFLAGS+set}
3919 ac_save_CFLAGS=$CFLAGS
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3922 if ${ac_cv_prog_cc_g+:} false; then :
3923 $as_echo_n "(cached) " >&6
3925 ac_save_c_werror_flag=$ac_c_werror_flag
3926 ac_c_werror_flag=yes
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3940 if ac_fn_c_try_compile "$LINENO"; then :
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3955 if ac_fn_c_try_compile "$LINENO"; then :
3958 ac_c_werror_flag=$ac_save_c_werror_flag
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3971 if ac_fn_c_try_compile "$LINENO"; then :
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984 CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986 if test "$GCC" = yes; then
3992 if test "$GCC" = yes; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if ${ac_cv_prog_cc_c89+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 ac_cv_prog_cc_c89=no
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4011 struct buf { int x; };
4012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4013 static char *e (p, i)
4019 static char *f (char * (*g) (char **, int), char **p, ...)
4024 s = g (p, va_arg (v,int));
4029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4030 function prototypes and stuff, but not '\xHH' hex character constants.
4031 These don't provoke an error unfortunately, instead are silently treated
4032 as 'x'. The following induces an error, until -std is added to get
4033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4034 array size at least. It's necessary to write '\x00'==0 to get something
4035 that's true only with -std. */
4036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4039 inside strings and character constants. */
4041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4043 int test (int i, double x);
4044 struct s1 {int (*f) (int a);};
4045 struct s2 {int (*f) (double a);};
4046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4060 CC="$ac_save_CC $ac_arg"
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_cv_prog_cc_c89=$ac_arg
4064 rm -f core conftest.err conftest.$ac_objext
4065 test "x$ac_cv_prog_cc_c89" != "xno" && break
4067 rm -f conftest.$ac_ext
4072 case "x$ac_cv_prog_cc_c89" in
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4075 $as_echo "none needed" >&6; } ;;
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078 $as_echo "unsupported" >&6; } ;;
4080 CC="$CC $ac_cv_prog_cc_c89"
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4084 if test "x$ac_cv_prog_cc_c89" != xno; then :
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 DEPDIR="${am__leading_dot}deps"
4095 ac_config_commands="$ac_config_commands depfiles"
4098 am_make=${MAKE-make}
4099 cat > confinc << 'END'
4101 @echo this is the am__doit target
4104 # If we don't find an include directive, just comment out the code.
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4106 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4110 # First try GNU make style include.
4111 echo "include confinc" > confmf
4112 # Ignore all kinds of additional output from 'make'.
4113 case `$am_make -s -f confmf 2> /dev/null` in #(
4114 *the\ am__doit\ target*)
4120 # Now try BSD make style include.
4121 if test "$am__include" = "#"; then
4122 echo '.include "confinc"' > confmf
4123 case `$am_make -s -f confmf 2> /dev/null` in #(
4124 *the\ am__doit\ target*)
4125 am__include=.include
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4134 $as_echo "$_am_result" >&6; }
4135 rm -f confinc confmf
4137 # Check whether --enable-dependency-tracking was given.
4138 if test "${enable_dependency_tracking+set}" = set; then :
4139 enableval=$enable_dependency_tracking;
4142 if test "x$enable_dependency_tracking" != xno; then
4143 am_depcomp="$ac_aux_dir/depcomp"
4147 if test "x$enable_dependency_tracking" != xno; then
4157 depcc="$CC" am_compiler_list=
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4160 $as_echo_n "checking dependency style of $depcc... " >&6; }
4161 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4165 # We make a subdir and do the tests there. Otherwise we can end up
4166 # making bogus files that we don't know about and never remove. For
4167 # instance it was reported that on HP-UX the gcc test will end up
4168 # making a dummy file named 'D' -- because '-MD' means "put the output
4172 # Copy depcomp to subdir because otherwise we won't find it if we're
4173 # using a relative directory.
4174 cp "$am_depcomp" conftest.dir
4176 # We will build objects and dependencies in a subdirectory because
4177 # it helps to detect inapplicable dependency modes. For instance
4178 # both Tru64's cc and ICC support -MD to output dependencies as a
4179 # side effect of compilation, but ICC will put the dependencies in
4180 # the current directory while Tru64 will put them in the object
4184 am_cv_CC_dependencies_compiler_type=none
4185 if test "$am_compiler_list" = ""; then
4186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4189 case " $depcc " in #(
4190 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4193 for depmode in $am_compiler_list; do
4194 # Setup a source with many dependencies, because some compilers
4195 # like to wrap large dependency lists on column 80 (with \), and
4196 # we should not choose a depcomp mode which is confused by this.
4198 # We need to recreate these files for each test, as the compiler may
4199 # overwrite some of them when testing with obscure command lines.
4200 # This happens at least with the AIX C compiler.
4202 for i in 1 2 3 4 5 6; do
4203 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4204 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4205 # Solaris 10 /bin/sh.
4206 echo '/* dummy */' > sub/conftst$i.h
4208 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4210 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4211 # mode. It turns out that the SunPro C++ compiler does not properly
4212 # handle '-M -o', and we need to detect this. Also, some Intel
4213 # versions had trouble with output in subdirs.
4214 am__obj=sub/conftest.${OBJEXT-o}
4215 am__minus_obj="-o $am__obj"
4218 # This depmode causes a compiler race in universal mode.
4219 test "$am__universal" = false || continue
4222 # After this tag, mechanisms are not by side-effect, so they'll
4223 # only be used when explicitly requested.
4224 if test "x$enable_dependency_tracking" = xyes; then
4230 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4231 # This compiler won't grok '-c -o', but also, the minuso test has
4232 # not run yet. These depmodes are late enough in the game, and
4233 # so weak that their functioning should not be impacted.
4234 am__obj=conftest.${OBJEXT-o}
4239 if depmode=$depmode \
4240 source=sub/conftest.c object=$am__obj \
4241 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4242 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4243 >/dev/null 2>conftest.err &&
4244 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4246 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4248 # icc doesn't choke on unknown options, it will just issue warnings
4249 # or remarks (even with -Werror). So we grep stderr for any message
4250 # that says an option was ignored or not supported.
4251 # When given -MP, icc 7.0 and 7.1 complain thusly:
4252 # icc: Command line warning: ignoring option '-M'; no argument required
4253 # The diagnosis changed in icc 8.0:
4254 # icc: Command line remark: option '-MP' not supported
4255 if (grep 'ignoring option' conftest.err ||
4256 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4257 am_cv_CC_dependencies_compiler_type=$depmode
4266 am_cv_CC_dependencies_compiler_type=none
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4271 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4272 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4275 test "x$enable_dependency_tracking" != xno \
4276 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4278 am__fastdepCC_FALSE='#'
4280 am__fastdepCC_TRUE='#'
4281 am__fastdepCC_FALSE=
4291 # By default we simply use the C compiler to build assembly code.
4293 test "${CCAS+set}" = set || CCAS=$CC
4294 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4298 depcc="$CCAS" am_compiler_list=
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4301 $as_echo_n "checking dependency style of $depcc... " >&6; }
4302 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4306 # We make a subdir and do the tests there. Otherwise we can end up
4307 # making bogus files that we don't know about and never remove. For
4308 # instance it was reported that on HP-UX the gcc test will end up
4309 # making a dummy file named 'D' -- because '-MD' means "put the output
4313 # Copy depcomp to subdir because otherwise we won't find it if we're
4314 # using a relative directory.
4315 cp "$am_depcomp" conftest.dir
4317 # We will build objects and dependencies in a subdirectory because
4318 # it helps to detect inapplicable dependency modes. For instance
4319 # both Tru64's cc and ICC support -MD to output dependencies as a
4320 # side effect of compilation, but ICC will put the dependencies in
4321 # the current directory while Tru64 will put them in the object
4325 am_cv_CCAS_dependencies_compiler_type=none
4326 if test "$am_compiler_list" = ""; then
4327 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4332 for depmode in $am_compiler_list; do
4333 # Setup a source with many dependencies, because some compilers
4334 # like to wrap large dependency lists on column 80 (with \), and
4335 # we should not choose a depcomp mode which is confused by this.
4337 # We need to recreate these files for each test, as the compiler may
4338 # overwrite some of them when testing with obscure command lines.
4339 # This happens at least with the AIX C compiler.
4341 for i in 1 2 3 4 5 6; do
4342 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4343 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4344 # Solaris 10 /bin/sh.
4345 echo '/* dummy */' > sub/conftst$i.h
4347 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4349 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4350 # mode. It turns out that the SunPro C++ compiler does not properly
4351 # handle '-M -o', and we need to detect this. Also, some Intel
4352 # versions had trouble with output in subdirs.
4353 am__obj=sub/conftest.${OBJEXT-o}
4354 am__minus_obj="-o $am__obj"
4357 # This depmode causes a compiler race in universal mode.
4358 test "$am__universal" = false || continue
4361 # After this tag, mechanisms are not by side-effect, so they'll
4362 # only be used when explicitly requested.
4363 if test "x$enable_dependency_tracking" = xyes; then
4369 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4370 # This compiler won't grok '-c -o', but also, the minuso test has
4371 # not run yet. These depmodes are late enough in the game, and
4372 # so weak that their functioning should not be impacted.
4373 am__obj=conftest.${OBJEXT-o}
4378 if depmode=$depmode \
4379 source=sub/conftest.c object=$am__obj \
4380 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4381 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4382 >/dev/null 2>conftest.err &&
4383 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387 # icc doesn't choke on unknown options, it will just issue warnings
4388 # or remarks (even with -Werror). So we grep stderr for any message
4389 # that says an option was ignored or not supported.
4390 # When given -MP, icc 7.0 and 7.1 complain thusly:
4391 # icc: Command line warning: ignoring option '-M'; no argument required
4392 # The diagnosis changed in icc 8.0:
4393 # icc: Command line remark: option '-MP' not supported
4394 if (grep 'ignoring option' conftest.err ||
4395 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396 am_cv_CCAS_dependencies_compiler_type=$depmode
4405 am_cv_CCAS_dependencies_compiler_type=none
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4410 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4411 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4414 test "x$enable_dependency_tracking" != xno \
4415 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4416 am__fastdepCCAS_TRUE=
4417 am__fastdepCCAS_FALSE='#'
4419 am__fastdepCCAS_TRUE='#'
4420 am__fastdepCCAS_FALSE=
4424 if test "x$CC" != xcc; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4426 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4429 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4431 set dummy $CC; ac_cc=`$as_echo "$2" |
4432 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4433 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4434 $as_echo_n "(cached) " >&6
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4447 # Make sure it works both with $CC and with simple cc.
4448 # We do the test twice because some compilers refuse to overwrite an
4449 # existing .o file with -o, though they will create one.
4450 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4452 if { { case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_try") 2>&5
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; } &&
4462 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468 (eval "$ac_try") 2>&5
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; };
4473 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4474 if test "x$CC" != xcc; then
4475 # Test first that cc exists at all.
4476 if { ac_try='cc -c conftest.$ac_ext >&5'
4477 { { case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482 $as_echo "$ac_try_echo"; } >&5
4483 (eval "$ac_try") 2>&5
4485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }; }; then
4487 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4489 if { { case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495 (eval "$ac_try") 2>&5
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; } &&
4499 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_try") 2>&5
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; };
4513 # cc exists but doesn't like -o.
4514 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4519 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4521 rm -f core conftest*
4524 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4526 $as_echo "yes" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4531 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4535 # FIXME: we rely on the cache variable name because
4536 # there is no other way.
4538 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4539 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4540 if test "$am_t" != yes; then
4541 # Losing compiler, so override with the script.
4542 # FIXME: It is wrong to rewrite CC.
4543 # But if we don't then we get into trouble of one sort or another.
4544 # A longer-term fix would be to have automake use am__CC in this case,
4545 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4546 CC="$am_aux_dir/compile $CC"
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4553 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4558 macro_version='2.4.2'
4559 macro_revision='1.3337'
4573 ltmain="$ac_aux_dir/ltmain.sh"
4575 # Backslashify metacharacters that are still active within
4576 # double-quoted strings.
4577 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4579 # Same as above, but do not quote variable references.
4580 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4582 # Sed substitution to delay expansion of an escaped shell variable in a
4583 # double_quote_subst'ed string.
4584 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4586 # Sed substitution to delay expansion of an escaped single quote.
4587 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4589 # Sed substitution to avoid accidental globbing in evaled expressions
4590 no_glob_subst='s/\*/\\\*/g'
4592 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4597 $as_echo_n "checking how to print strings... " >&6; }
4598 # Test print first, because it will be a builtin if present.
4599 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4600 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4602 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4605 # Use this function as a fallback that always works.
4606 func_fallback_echo ()
4608 eval 'cat <<_LTECHO_EOF
4612 ECHO='func_fallback_echo'
4615 # func_echo_all arg...
4616 # Invoke $ECHO with all args, space-separated.
4623 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4624 $as_echo "printf" >&6; } ;;
4625 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4626 $as_echo "print -r" >&6; } ;;
4627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4628 $as_echo "cat" >&6; } ;;
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4645 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4646 if ${ac_cv_path_SED+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4650 for ac_i in 1 2 3 4 5 6 7; do
4651 ac_script="$ac_script$as_nl$ac_script"
4653 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4654 { ac_script=; unset ac_script;}
4655 if test -z "$SED"; then
4656 ac_path_SED_found=false
4657 # Loop through the user's path and test for each of PROGNAME-LIST
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_prog in sed gsed; do
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4666 as_fn_executable_p "$ac_path_SED" || continue
4667 # Check for GNU ac_path_SED and select it if it is found.
4668 # Check for GNU $ac_path_SED
4669 case `"$ac_path_SED" --version 2>&1` in
4671 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4674 $as_echo_n 0123456789 >"conftest.in"
4677 cat "conftest.in" "conftest.in" >"conftest.tmp"
4678 mv "conftest.tmp" "conftest.in"
4679 cp "conftest.in" "conftest.nl"
4680 $as_echo '' >> "conftest.nl"
4681 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4683 as_fn_arith $ac_count + 1 && ac_count=$as_val
4684 if test $ac_count -gt ${ac_path_SED_max-0}; then
4685 # Best one so far, save it but keep looking for a better one
4686 ac_cv_path_SED="$ac_path_SED"
4687 ac_path_SED_max=$ac_count
4689 # 10*(2^10) chars as input seems more than enough
4690 test $ac_count -gt 10 && break
4692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 $ac_path_SED_found && break 3
4700 if test -z "$ac_cv_path_SED"; then
4701 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4709 $as_echo "$ac_cv_path_SED" >&6; }
4710 SED="$ac_cv_path_SED"
4713 test -z "$SED" && SED=sed
4714 Xsed="$SED -e 1s/^X//"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4727 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4728 if ${ac_cv_path_GREP+:} false; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -z "$GREP"; then
4732 ac_path_GREP_found=false
4733 # Loop through the user's path and test for each of PROGNAME-LIST
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4738 test -z "$as_dir" && as_dir=.
4739 for ac_prog in grep ggrep; do
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4742 as_fn_executable_p "$ac_path_GREP" || continue
4743 # Check for GNU ac_path_GREP and select it if it is found.
4744 # Check for GNU $ac_path_GREP
4745 case `"$ac_path_GREP" --version 2>&1` in
4747 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4750 $as_echo_n 0123456789 >"conftest.in"
4753 cat "conftest.in" "conftest.in" >"conftest.tmp"
4754 mv "conftest.tmp" "conftest.in"
4755 cp "conftest.in" "conftest.nl"
4756 $as_echo 'GREP' >> "conftest.nl"
4757 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759 as_fn_arith $ac_count + 1 && ac_count=$as_val
4760 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4761 # Best one so far, save it but keep looking for a better one
4762 ac_cv_path_GREP="$ac_path_GREP"
4763 ac_path_GREP_max=$ac_count
4765 # 10*(2^10) chars as input seems more than enough
4766 test $ac_count -gt 10 && break
4768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4771 $ac_path_GREP_found && break 3
4776 if test -z "$ac_cv_path_GREP"; then
4777 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4780 ac_cv_path_GREP=$GREP
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4785 $as_echo "$ac_cv_path_GREP" >&6; }
4786 GREP="$ac_cv_path_GREP"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4790 $as_echo_n "checking for egrep... " >&6; }
4791 if ${ac_cv_path_EGREP+:} false; then :
4792 $as_echo_n "(cached) " >&6
4794 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4795 then ac_cv_path_EGREP="$GREP -E"
4797 if test -z "$EGREP"; then
4798 ac_path_EGREP_found=false
4799 # Loop through the user's path and test for each of PROGNAME-LIST
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4804 test -z "$as_dir" && as_dir=.
4805 for ac_prog in egrep; do
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4808 as_fn_executable_p "$ac_path_EGREP" || continue
4809 # Check for GNU ac_path_EGREP and select it if it is found.
4810 # Check for GNU $ac_path_EGREP
4811 case `"$ac_path_EGREP" --version 2>&1` in
4813 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4816 $as_echo_n 0123456789 >"conftest.in"
4819 cat "conftest.in" "conftest.in" >"conftest.tmp"
4820 mv "conftest.tmp" "conftest.in"
4821 cp "conftest.in" "conftest.nl"
4822 $as_echo 'EGREP' >> "conftest.nl"
4823 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4825 as_fn_arith $ac_count + 1 && ac_count=$as_val
4826 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4827 # Best one so far, save it but keep looking for a better one
4828 ac_cv_path_EGREP="$ac_path_EGREP"
4829 ac_path_EGREP_max=$ac_count
4831 # 10*(2^10) chars as input seems more than enough
4832 test $ac_count -gt 10 && break
4834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837 $ac_path_EGREP_found && break 3
4842 if test -z "$ac_cv_path_EGREP"; then
4843 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4846 ac_cv_path_EGREP=$EGREP
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4852 $as_echo "$ac_cv_path_EGREP" >&6; }
4853 EGREP="$ac_cv_path_EGREP"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4857 $as_echo_n "checking for fgrep... " >&6; }
4858 if ${ac_cv_path_FGREP+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4862 then ac_cv_path_FGREP="$GREP -F"
4864 if test -z "$FGREP"; then
4865 ac_path_FGREP_found=false
4866 # Loop through the user's path and test for each of PROGNAME-LIST
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4871 test -z "$as_dir" && as_dir=.
4872 for ac_prog in fgrep; do
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4875 as_fn_executable_p "$ac_path_FGREP" || continue
4876 # Check for GNU ac_path_FGREP and select it if it is found.
4877 # Check for GNU $ac_path_FGREP
4878 case `"$ac_path_FGREP" --version 2>&1` in
4880 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4883 $as_echo_n 0123456789 >"conftest.in"
4886 cat "conftest.in" "conftest.in" >"conftest.tmp"
4887 mv "conftest.tmp" "conftest.in"
4888 cp "conftest.in" "conftest.nl"
4889 $as_echo 'FGREP' >> "conftest.nl"
4890 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892 as_fn_arith $ac_count + 1 && ac_count=$as_val
4893 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4894 # Best one so far, save it but keep looking for a better one
4895 ac_cv_path_FGREP="$ac_path_FGREP"
4896 ac_path_FGREP_max=$ac_count
4898 # 10*(2^10) chars as input seems more than enough
4899 test $ac_count -gt 10 && break
4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4904 $ac_path_FGREP_found && break 3
4909 if test -z "$ac_cv_path_FGREP"; then
4910 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4913 ac_cv_path_FGREP=$FGREP
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4919 $as_echo "$ac_cv_path_FGREP" >&6; }
4920 FGREP="$ac_cv_path_FGREP"
4923 test -z "$GREP" && GREP=grep
4943 # Check whether --with-gnu-ld was given.
4944 if test "${with_gnu_ld+set}" = set; then :
4945 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4951 if test "$GCC" = yes; then
4952 # Check if gcc -print-prog-name=ld gives a path.
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4954 $as_echo_n "checking for ld used by $CC... " >&6; }
4957 # gcc leaves a trailing carriage return which upsets mingw
4958 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4960 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4963 # Accept absolute paths.
4965 re_direlt='/[^/][^/]*/\.\./'
4966 # Canonicalize the pathname of ld
4967 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4968 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4969 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4971 test -z "$LD" && LD="$ac_prog"
4974 # If it fails, then pretend we aren't using GCC.
4978 # If it is relative, then search for the first ld in PATH.
4982 elif test "$with_gnu_ld" = yes; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4984 $as_echo_n "checking for GNU ld... " >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4987 $as_echo_n "checking for non-GNU ld... " >&6; }
4989 if ${lt_cv_path_LD+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 if test -z "$LD"; then
4993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4994 for ac_dir in $PATH; do
4996 test -z "$ac_dir" && ac_dir=.
4997 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4998 lt_cv_path_LD="$ac_dir/$ac_prog"
4999 # Check to see if the program is GNU ld. I'd rather use --version,
5000 # but apparently some variants of GNU ld only accept -v.
5001 # Break only if it was the GNU/non-GNU ld that we prefer.
5002 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5003 *GNU* | *'with BFD'*)
5004 test "$with_gnu_ld" != no && break
5007 test "$with_gnu_ld" != yes && break
5014 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5019 if test -n "$LD"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5021 $as_echo "$LD" >&6; }
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5026 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5028 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5029 if ${lt_cv_prog_gnu_ld+:} false; then :
5030 $as_echo_n "(cached) " >&6
5032 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5033 case `$LD -v 2>&1 </dev/null` in
5034 *GNU* | *'with BFD'*)
5035 lt_cv_prog_gnu_ld=yes
5038 lt_cv_prog_gnu_ld=no
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5043 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5044 with_gnu_ld=$lt_cv_prog_gnu_ld
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5055 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5056 if ${lt_cv_path_NM+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 if test -n "$NM"; then
5060 # Let the user override the test.
5063 lt_nm_to_check="${ac_tool_prefix}nm"
5064 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5065 lt_nm_to_check="$lt_nm_to_check nm"
5067 for lt_tmp_nm in $lt_nm_to_check; do
5068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5069 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5071 test -z "$ac_dir" && ac_dir=.
5072 tmp_nm="$ac_dir/$lt_tmp_nm"
5073 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5074 # Check to see if the nm accepts a BSD-compat flag.
5075 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5076 # nm: unknown option "B" ignored
5077 # Tru64's nm complains that /dev/null is an invalid object file
5078 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5079 */dev/null* | *'Invalid file or object type'*)
5080 lt_cv_path_NM="$tmp_nm -B"
5084 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5086 lt_cv_path_NM="$tmp_nm -p"
5090 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5091 continue # so that we can try to find one that supports BSD flags
5100 : ${lt_cv_path_NM=no}
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5104 $as_echo "$lt_cv_path_NM" >&6; }
5105 if test "$lt_cv_path_NM" != "no"; then
5108 # Didn't find any BSD compatible name lister, look for dumpbin.
5109 if test -n "$DUMPBIN"; then :
5110 # Let the user override the test.
5112 if test -n "$ac_tool_prefix"; then
5113 for ac_prog in dumpbin "link -dump"
5115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_DUMPBIN+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 if test -n "$DUMPBIN"; then
5123 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 DUMPBIN=$ac_cv_prog_DUMPBIN
5143 if test -n "$DUMPBIN"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5145 $as_echo "$DUMPBIN" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 test -n "$DUMPBIN" && break
5155 if test -z "$DUMPBIN"; then
5156 ac_ct_DUMPBIN=$DUMPBIN
5157 for ac_prog in dumpbin "link -dump"
5159 # Extract the first word of "$ac_prog", so it can be a program name with args.
5160 set dummy $ac_prog; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5164 $as_echo_n "(cached) " >&6
5166 if test -n "$ac_ct_DUMPBIN"; then
5167 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5187 if test -n "$ac_ct_DUMPBIN"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5189 $as_echo "$ac_ct_DUMPBIN" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5196 test -n "$ac_ct_DUMPBIN" && break
5199 if test "x$ac_ct_DUMPBIN" = x; then
5202 case $cross_compiling:$ac_tool_warned in
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5208 DUMPBIN=$ac_ct_DUMPBIN
5212 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5214 DUMPBIN="$DUMPBIN -symbols"
5222 if test "$DUMPBIN" != ":"; then
5226 test -z "$NM" && NM=nm
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5234 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5235 if ${lt_cv_nm_interface+:} false; then :
5236 $as_echo_n "(cached) " >&6
5238 lt_cv_nm_interface="BSD nm"
5239 echo "int some_variable = 0;" > conftest.$ac_ext
5240 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5241 (eval "$ac_compile" 2>conftest.err)
5242 cat conftest.err >&5
5243 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5244 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5245 cat conftest.err >&5
5246 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5247 cat conftest.out >&5
5248 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5249 lt_cv_nm_interface="MS dumpbin"
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5254 $as_echo "$lt_cv_nm_interface" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5257 $as_echo_n "checking whether ln -s works... " >&6; }
5259 if test "$LN_S" = "ln -s"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5261 $as_echo "yes" >&6; }
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5264 $as_echo "no, using $LN_S" >&6; }
5267 # find the maximum length of command line arguments
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5269 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5270 if ${lt_cv_sys_max_cmd_len+:} false; then :
5271 $as_echo_n "(cached) " >&6
5278 # On DJGPP, this test can blow up pretty badly due to problems in libc
5279 # (any single argument exceeding 2000 bytes causes a buffer overrun
5280 # during glob expansion). Even if it were fixed, the result of this
5281 # check would be larger than it should be.
5282 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5286 # Under GNU Hurd, this test is not required because there is
5287 # no limit to the length of command line arguments.
5288 # Libtool will interpret -1 as no limit whatsoever
5289 lt_cv_sys_max_cmd_len=-1;
5292 cygwin* | mingw* | cegcc*)
5293 # On Win9x/ME, this test blows up -- it succeeds, but takes
5294 # about 5 minutes as the teststring grows exponentially.
5295 # Worse, since 9x/ME are not pre-emptively multitasking,
5296 # you end up with a "frozen" computer, even though with patience
5297 # the test eventually succeeds (with a max line length of 256k).
5298 # Instead, let's just punt: use the minimum linelength reported by
5299 # all of the supported platforms: 8192 (on NT/2K/XP).
5300 lt_cv_sys_max_cmd_len=8192;
5304 # On MiNT this can take a long time and run out of memory.
5305 lt_cv_sys_max_cmd_len=8192;
5309 # On AmigaOS with pdksh, this test takes hours, literally.
5310 # So we just punt and use a minimum line length of 8192.
5311 lt_cv_sys_max_cmd_len=8192;
5314 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5315 # This has been around since 386BSD, at least. Likely further.
5316 if test -x /sbin/sysctl; then
5317 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5318 elif test -x /usr/sbin/sysctl; then
5319 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5321 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5323 # And add a safety zone
5324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5329 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5330 lt_cv_sys_max_cmd_len=196608
5334 # The test takes a long time on OS/2.
5335 lt_cv_sys_max_cmd_len=8192
5339 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5340 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5341 # nice to cause kernel panics so lets avoid the loop below.
5342 # First set a reasonable default.
5343 lt_cv_sys_max_cmd_len=16384
5345 if test -x /sbin/sysconfig; then
5346 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5347 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5352 lt_cv_sys_max_cmd_len=102400
5354 sysv5* | sco5v6* | sysv4.2uw2*)
5355 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5356 if test -n "$kargmax"; then
5357 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5359 lt_cv_sys_max_cmd_len=32768
5363 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5364 if test -n "$lt_cv_sys_max_cmd_len"; then
5365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5368 # Make teststring a little bigger before we do anything with it.
5369 # a 1K string should be a reasonable start.
5370 for i in 1 2 3 4 5 6 7 8 ; do
5371 teststring=$teststring$teststring
5373 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5374 # If test is not a shell built-in, we'll probably end up computing a
5375 # maximum length that is only half of the actual maximum length, but
5377 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5378 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5379 test $i != 17 # 1/2 MB should be enough
5382 teststring=$teststring$teststring
5384 # Only check the string length outside the loop.
5385 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5387 # Add a significant safety factor because C++ compilers can tack on
5388 # massive amounts of additional arguments before passing them to the
5389 # linker. It appears as though 1/2 is a usable value.
5390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5397 if test -n $lt_cv_sys_max_cmd_len ; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5399 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5402 $as_echo "none" >&6; }
5404 max_cmd_len=$lt_cv_sys_max_cmd_len
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5416 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5417 # Try some XSI features
5420 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5422 && eval 'test $(( 1 + 1 )) -eq 2 \
5423 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5426 $as_echo "$xsi_shell" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5430 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5432 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5434 && lt_shell_append=yes
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5436 $as_echo "$lt_shell_append" >&6; }
5439 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5449 # test EBCDIC or ASCII
5450 case `echo X|tr X '\101'` in
5451 A) # ASCII based system
5452 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5453 lt_SP2NL='tr \040 \012'
5454 lt_NL2SP='tr \015\012 \040\040'
5456 *) # EBCDIC based system
5457 lt_SP2NL='tr \100 \n'
5458 lt_NL2SP='tr \r\n \100\100'
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5471 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5472 if ${lt_cv_to_host_file_cmd+:} false; then :
5473 $as_echo_n "(cached) " >&6
5478 *-*-mingw* ) # actually msys
5479 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5482 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5484 * ) # otherwise, assume *nix
5485 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5491 *-*-mingw* ) # actually msys
5492 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5495 lt_cv_to_host_file_cmd=func_convert_file_noop
5497 * ) # otherwise, assume *nix
5498 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5502 * ) # unhandled hosts (and "normal" native builds)
5503 lt_cv_to_host_file_cmd=func_convert_file_noop
5509 to_host_file_cmd=$lt_cv_to_host_file_cmd
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5511 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5518 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5519 if ${lt_cv_to_tool_file_cmd+:} false; then :
5520 $as_echo_n "(cached) " >&6
5522 #assume ordinary cross tools, or native build.
5523 lt_cv_to_tool_file_cmd=func_convert_file_noop
5527 *-*-mingw* ) # actually msys
5528 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5536 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5538 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5545 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5546 if ${lt_cv_ld_reload_flag+:} false; then :
5547 $as_echo_n "(cached) " >&6
5549 lt_cv_ld_reload_flag='-r'
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5552 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5553 reload_flag=$lt_cv_ld_reload_flag
5554 case $reload_flag in
5556 *) reload_flag=" $reload_flag" ;;
5558 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560 cygwin* | mingw* | pw32* | cegcc*)
5561 if test "$GCC" != yes; then
5566 if test "$GCC" = yes; then
5567 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5569 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5582 if test -n "$ac_tool_prefix"; then
5583 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5584 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_OBJDUMP+:} false; then :
5588 $as_echo_n "(cached) " >&6
5590 if test -n "$OBJDUMP"; then
5591 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 OBJDUMP=$ac_cv_prog_OBJDUMP
5611 if test -n "$OBJDUMP"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5613 $as_echo "$OBJDUMP" >&6; }
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5621 if test -z "$ac_cv_prog_OBJDUMP"; then
5622 ac_ct_OBJDUMP=$OBJDUMP
5623 # Extract the first word of "objdump", so it can be a program name with args.
5624 set dummy objdump; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5628 $as_echo_n "(cached) " >&6
5630 if test -n "$ac_ct_OBJDUMP"; then
5631 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5651 if test -n "$ac_ct_OBJDUMP"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5653 $as_echo "$ac_ct_OBJDUMP" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5659 if test "x$ac_ct_OBJDUMP" = x; then
5662 case $cross_compiling:$ac_tool_warned in
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5666 ac_tool_warned=yes ;;
5668 OBJDUMP=$ac_ct_OBJDUMP
5671 OBJDUMP="$ac_cv_prog_OBJDUMP"
5674 test -z "$OBJDUMP" && OBJDUMP=objdump
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5685 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5686 if ${lt_cv_deplibs_check_method+:} false; then :
5687 $as_echo_n "(cached) " >&6
5689 lt_cv_file_magic_cmd='$MAGIC_CMD'
5690 lt_cv_file_magic_test_file=
5691 lt_cv_deplibs_check_method='unknown'
5692 # Need to set the preceding variable on all platforms that support
5693 # interlibrary dependencies.
5694 # 'none' -- dependencies not supported.
5695 # `unknown' -- same as none, but documents that we really don't know.
5696 # 'pass_all' -- all dependencies passed with no checks.
5697 # 'test_compile' -- check by making test program.
5698 # 'file_magic [[regex]]' -- check by looking for files in library path
5699 # which responds to the $file_magic_cmd with a given extended regex.
5700 # If you have `file' or equivalent on your system and you're not sure
5701 # whether `pass_all' will *always* work, you probably want this one.
5705 lt_cv_deplibs_check_method=pass_all
5709 lt_cv_deplibs_check_method=pass_all
5713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5714 lt_cv_file_magic_cmd='/usr/bin/file -L'
5715 lt_cv_file_magic_test_file=/shlib/libc.so
5719 # func_win32_libid is a shell function defined in ltmain.sh
5720 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5721 lt_cv_file_magic_cmd='func_win32_libid'
5725 # Base MSYS/MinGW do not provide the 'file' command needed by
5726 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5727 # unless we find 'file', for example because we are cross-compiling.
5728 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5729 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5731 lt_cv_file_magic_cmd='func_win32_libid'
5733 # Keep this pattern in sync with the one in func_win32_libid.
5734 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5735 lt_cv_file_magic_cmd='$OBJDUMP -f'
5740 # use the weaker test based on 'objdump'. See mingw*.
5741 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5742 lt_cv_file_magic_cmd='$OBJDUMP -f'
5745 darwin* | rhapsody*)
5746 lt_cv_deplibs_check_method=pass_all
5749 freebsd* | dragonfly*)
5750 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5753 # Not sure whether the presence of OpenBSD here was a mistake.
5754 # Let's accept both of them until this is cleared up.
5755 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5756 lt_cv_file_magic_cmd=/usr/bin/file
5757 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5761 lt_cv_deplibs_check_method=pass_all
5766 lt_cv_deplibs_check_method=pass_all
5770 lt_cv_deplibs_check_method=pass_all
5773 hpux10.20* | hpux11*)
5774 lt_cv_file_magic_cmd=/usr/bin/file
5777 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5778 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5781 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]'
5782 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5786 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5792 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5796 irix5* | irix6* | nonstopux*)
5798 *-32|*"-32 ") libmagic=32-bit;;
5799 *-n32|*"-n32 ") libmagic=N32;;
5800 *-64|*"-64 ") libmagic=64-bit;;
5801 *) libmagic=never-match;;
5803 lt_cv_deplibs_check_method=pass_all
5806 # This must be glibc/ELF.
5807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5808 lt_cv_deplibs_check_method=pass_all
5812 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5821 lt_cv_file_magic_cmd=/usr/bin/file
5822 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5826 lt_cv_deplibs_check_method=pass_all
5830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5837 osf3* | osf4* | osf5*)
5838 lt_cv_deplibs_check_method=pass_all
5842 lt_cv_deplibs_check_method=pass_all
5846 lt_cv_deplibs_check_method=pass_all
5849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5850 lt_cv_deplibs_check_method=pass_all
5854 case $host_vendor in
5856 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]'
5857 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5860 lt_cv_deplibs_check_method=pass_all
5863 lt_cv_file_magic_cmd='/bin/file'
5864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5867 lt_cv_file_magic_cmd='/bin/file'
5868 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5869 lt_cv_file_magic_test_file=/lib/libc.so
5872 lt_cv_deplibs_check_method=pass_all
5875 lt_cv_deplibs_check_method=pass_all
5881 lt_cv_deplibs_check_method=pass_all
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5887 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5891 if test "$build" = "$host"; then
5894 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5897 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5903 file_magic_cmd=$lt_cv_file_magic_cmd
5904 deplibs_check_method=$lt_cv_deplibs_check_method
5905 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if ${ac_cv_prog_DLLTOOL+:} false; then :
5934 $as_echo_n "(cached) " >&6
5936 if test -n "$DLLTOOL"; then
5937 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 DLLTOOL=$ac_cv_prog_DLLTOOL
5957 if test -n "$DLLTOOL"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5959 $as_echo "$DLLTOOL" >&6; }
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5967 if test -z "$ac_cv_prog_DLLTOOL"; then
5968 ac_ct_DLLTOOL=$DLLTOOL
5969 # Extract the first word of "dlltool", so it can be a program name with args.
5970 set dummy dlltool; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5974 $as_echo_n "(cached) " >&6
5976 if test -n "$ac_ct_DLLTOOL"; then
5977 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5997 if test -n "$ac_ct_DLLTOOL"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5999 $as_echo "$ac_ct_DLLTOOL" >&6; }
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6005 if test "x$ac_ct_DLLTOOL" = x; then
6008 case $cross_compiling:$ac_tool_warned in
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6014 DLLTOOL=$ac_ct_DLLTOOL
6017 DLLTOOL="$ac_cv_prog_DLLTOOL"
6020 test -z "$DLLTOOL" && DLLTOOL=dlltool
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6032 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6033 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6034 $as_echo_n "(cached) " >&6
6036 lt_cv_sharedlib_from_linklib_cmd='unknown'
6039 cygwin* | mingw* | pw32* | cegcc*)
6040 # two different shell functions defined in ltmain.sh
6041 # decide which to use based on capabilities of $DLLTOOL
6042 case `$DLLTOOL --help 2>&1` in
6043 *--identify-strict*)
6044 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6047 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6052 # fallback: assume linklib IS sharedlib
6053 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6059 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6060 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6061 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6070 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6074 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_AR+:} false; then :
6078 $as_echo_n "(cached) " >&6
6080 if test -n "$AR"; then
6081 ac_cv_prog_AR="$AR" # Let the user override the test.
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 if test -n "$AR"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6103 $as_echo "$AR" >&6; }
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6110 test -n "$AR" && break
6113 if test -z "$AR"; then
6117 # Extract the first word of "$ac_prog", so it can be a program name with args.
6118 set dummy $ac_prog; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6122 $as_echo_n "(cached) " >&6
6124 if test -n "$ac_ct_AR"; then
6125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_ac_ct_AR="$ac_prog"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6145 if test -n "$ac_ct_AR"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6147 $as_echo "$ac_ct_AR" >&6; }
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6154 test -n "$ac_ct_AR" && break
6157 if test "x$ac_ct_AR" = x; then
6160 case $cross_compiling:$ac_tool_warned in
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6164 ac_tool_warned=yes ;;
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6184 $as_echo_n "checking for archiver @FILE support... " >&6; }
6185 if ${lt_cv_ar_at_file+:} false; then :
6186 $as_echo_n "(cached) " >&6
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201 echo conftest.$ac_objext > conftest.lst
6202 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6204 (eval $lt_ar_try) 2>&5
6206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6207 test $ac_status = 0; }
6208 if test "$ac_status" -eq 0; then
6209 # Ensure the archiver fails upon bogus file names.
6210 rm -f conftest.$ac_objext libconftest.a
6211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6212 (eval $lt_ar_try) 2>&5
6214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6215 test $ac_status = 0; }
6216 if test "$ac_status" -ne 0; then
6220 rm -f conftest.* libconftest.a
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6227 $as_echo "$lt_cv_ar_at_file" >&6; }
6229 if test "x$lt_cv_ar_at_file" = xno; then
6232 archiver_list_spec=$lt_cv_ar_at_file
6241 if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6243 set dummy ${ac_tool_prefix}strip; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_STRIP+:} false; then :
6247 $as_echo_n "(cached) " >&6
6249 if test -n "$STRIP"; then
6250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 STRIP=$ac_cv_prog_STRIP
6270 if test -n "$STRIP"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6272 $as_echo "$STRIP" >&6; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6280 if test -z "$ac_cv_prog_STRIP"; then
6282 # Extract the first word of "strip", so it can be a program name with args.
6283 set dummy strip; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6287 $as_echo_n "(cached) " >&6
6289 if test -n "$ac_ct_STRIP"; then
6290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_ac_ct_STRIP="strip"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6310 if test -n "$ac_ct_STRIP"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6312 $as_echo "$ac_ct_STRIP" >&6; }
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6318 if test "x$ac_ct_STRIP" = x; then
6321 case $cross_compiling:$ac_tool_warned in
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned=yes ;;
6330 STRIP="$ac_cv_prog_STRIP"
6333 test -z "$STRIP" && STRIP=:
6340 if test -n "$ac_tool_prefix"; then
6341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6342 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if ${ac_cv_prog_RANLIB+:} false; then :
6346 $as_echo_n "(cached) " >&6
6348 if test -n "$RANLIB"; then
6349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 RANLIB=$ac_cv_prog_RANLIB
6369 if test -n "$RANLIB"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6371 $as_echo "$RANLIB" >&6; }
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6379 if test -z "$ac_cv_prog_RANLIB"; then
6380 ac_ct_RANLIB=$RANLIB
6381 # Extract the first word of "ranlib", so it can be a program name with args.
6382 set dummy ranlib; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6386 $as_echo_n "(cached) " >&6
6388 if test -n "$ac_ct_RANLIB"; then
6389 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398 ac_cv_prog_ac_ct_RANLIB="ranlib"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6409 if test -n "$ac_ct_RANLIB"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6411 $as_echo "$ac_ct_RANLIB" >&6; }
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6417 if test "x$ac_ct_RANLIB" = x; then
6420 case $cross_compiling:$ac_tool_warned in
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6426 RANLIB=$ac_ct_RANLIB
6429 RANLIB="$ac_cv_prog_RANLIB"
6432 test -z "$RANLIB" && RANLIB=:
6439 # Determine commands to create old-style static archives.
6440 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6441 old_postinstall_cmds='chmod 644 $oldlib'
6442 old_postuninstall_cmds=
6444 if test -n "$RANLIB"; then
6447 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6453 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6458 lock_old_archive_extraction=yes ;;
6460 lock_old_archive_extraction=no ;;
6501 # If no C compiler was specified, use CC.
6504 # If no C compiler flags were specified, use CFLAGS.
6505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6507 # Allow CC to be a program name with arguments.
6511 # Check for command to grab the raw symbol name followed by C symbol from nm.
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6513 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6514 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6515 $as_echo_n "(cached) " >&6
6518 # These are sane defaults that work on at least a few old systems.
6519 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6521 # Character class describing NM global symbol codes.
6522 symcode='[BCDEGRST]'
6524 # Regexp to match symbols that can be accessed directly from C.
6525 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6527 # Define system-specific variables.
6532 cygwin* | mingw* | pw32* | cegcc*)
6533 symcode='[ABCDGISTW]'
6536 if test "$host_cpu" = ia64; then
6537 symcode='[ABCDEGRST]'
6541 symcode='[BCDEGRST]'
6544 symcode='[BCDEGQRST]'
6555 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6563 # If we're using GNU nm, then use its standard symbol codes.
6564 case `$NM -V 2>&1` in
6565 *GNU* | *'with BFD'*)
6566 symcode='[ABCDGIRSTW]' ;;
6569 # Transform an extracted symbol line into a proper C declaration.
6570 # Some systems (esp. on ia64) link data and code symbols differently,
6571 # so use this general approach.
6572 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6574 # Transform an extracted symbol line into symbol name and symbol address
6575 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6576 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'"
6578 # Handle CRLF in mingw tool chain
6582 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6586 # Try without a prefix underscore, then with it.
6587 for ac_symprfx in "" "_"; do
6589 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6590 symxfrm="\\1 $ac_symprfx\\2 \\2"
6592 # Write the raw and C identifiers.
6593 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6594 # Fake it for dumpbin and say T for any non-static function
6595 # and D for any global variable.
6596 # Also find C++ and __fastcall symbols from MSVC++,
6597 # which start with @ or ?.
6598 lt_cv_sys_global_symbol_pipe="$AWK '"\
6599 " {last_section=section; section=\$ 3};"\
6600 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6601 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6602 " \$ 0!~/External *\|/{next};"\
6603 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6604 " {if(hide[section]) next};"\
6605 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6606 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6607 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6608 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6609 " ' prfx=^$ac_symprfx"
6611 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6613 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6615 # Check to see that the pipe works correctly.
6619 cat > conftest.$ac_ext <<_LT_EOF
6624 void nm_test_func(void);
6625 void nm_test_func(void){}
6629 int main(){nm_test_var='a';nm_test_func();return(0);}
6632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6633 (eval $ac_compile) 2>&5
6635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636 test $ac_status = 0; }; then
6637 # Now try to grab the symbols.
6639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6640 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643 test $ac_status = 0; } && test -s "$nlist"; then
6644 # Try sorting and uniquifying the output.
6645 if sort "$nlist" | uniq > "$nlist"T; then
6646 mv -f "$nlist"T "$nlist"
6651 # Make sure that we snagged all the symbols we need.
6652 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6653 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6654 cat <<_LT_EOF > conftest.$ac_ext
6655 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6656 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6657 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6658 relocations are performed -- see ld's documentation on pseudo-relocs. */
6659 # define LT_DLSYM_CONST
6660 #elif defined(__osf__)
6661 /* This system does not cope well with relocations in const data. */
6662 # define LT_DLSYM_CONST
6664 # define LT_DLSYM_CONST const
6672 # Now generate the symbol file.
6673 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6675 cat <<_LT_EOF >> conftest.$ac_ext
6677 /* The mapping between symbol names and symbols. */
6678 LT_DLSYM_CONST struct {
6682 lt__PROGRAM__LTX_preloaded_symbols[] =
6684 { "@PROGRAM@", (void *) 0 },
6686 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6687 cat <<\_LT_EOF >> conftest.$ac_ext
6691 /* This works around a problem in FreeBSD linker */
6692 #ifdef FREEBSD_WORKAROUND
6693 static const void *lt_preloaded_setup() {
6694 return lt__PROGRAM__LTX_preloaded_symbols;
6702 # Now try linking the two files.
6703 mv conftest.$ac_objext conftstm.$ac_objext
6704 lt_globsym_save_LIBS=$LIBS
6705 lt_globsym_save_CFLAGS=$CFLAGS
6706 LIBS="conftstm.$ac_objext"
6707 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6709 (eval $ac_link) 2>&5
6711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6715 LIBS=$lt_globsym_save_LIBS
6716 CFLAGS=$lt_globsym_save_CFLAGS
6718 echo "cannot find nm_test_func in $nlist" >&5
6721 echo "cannot find nm_test_var in $nlist" >&5
6724 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6727 echo "$progname: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6730 rm -rf conftest* conftst*
6732 # Do not use the global_symbol_pipe unless it works.
6733 if test "$pipe_works" = yes; then
6736 lt_cv_sys_global_symbol_pipe=
6742 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6743 lt_cv_sys_global_symbol_to_cdecl=
6745 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6747 $as_echo "failed" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6750 $as_echo "ok" >&6; }
6753 # Response file support.
6754 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6755 nm_file_list_spec='@'
6756 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6757 nm_file_list_spec='@'
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6787 $as_echo_n "checking for sysroot... " >&6; }
6789 # Check whether --with-sysroot was given.
6790 if test "${with_sysroot+set}" = set; then :
6791 withval=$with_sysroot;
6798 case ${with_sysroot} in #(
6800 if test "$GCC" = yes; then
6801 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6805 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6811 $as_echo "${with_sysroot}" >&6; }
6812 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6817 $as_echo "${lt_sysroot:-no}" >&6; }
6823 # Check whether --enable-libtool-lock was given.
6824 if test "${enable_libtool_lock+set}" = set; then :
6825 enableval=$enable_libtool_lock;
6828 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6830 # Some flags need to be propagated to the compiler or linker for good
6834 # Find out which ABI we are using.
6835 echo 'int i;' > conftest.$ac_ext
6836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6837 (eval $ac_compile) 2>&5
6839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840 test $ac_status = 0; }; then
6841 case `/usr/bin/file conftest.$ac_objext` in
6853 # Find out which ABI we are using.
6854 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856 (eval $ac_compile) 2>&5
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; }; then
6860 if test "$lt_cv_prog_gnu_ld" = yes; then
6861 case `/usr/bin/file conftest.$ac_objext` in
6863 LD="${LD-ld} -melf32bsmip"
6866 LD="${LD-ld} -melf32bmipn32"
6869 LD="${LD-ld} -melf64bmip"
6873 case `/usr/bin/file conftest.$ac_objext` in
6889 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6890 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6891 # Find out which ABI we are using.
6892 echo 'int i;' > conftest.$ac_ext
6893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894 (eval $ac_compile) 2>&5
6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897 test $ac_status = 0; }; then
6898 case `/usr/bin/file conftest.o` in
6901 x86_64-*kfreebsd*-gnu)
6902 LD="${LD-ld} -m elf_i386_fbsd"
6905 case `/usr/bin/file conftest.o` in
6907 LD="${LD-ld} -m elf32_x86_64"
6910 LD="${LD-ld} -m elf_i386"
6914 ppc64-*linux*|powerpc64-*linux*)
6915 LD="${LD-ld} -m elf32ppclinux"
6918 LD="${LD-ld} -m elf_s390"
6921 LD="${LD-ld} -m elf32_sparc"
6927 x86_64-*kfreebsd*-gnu)
6928 LD="${LD-ld} -m elf_x86_64_fbsd"
6931 LD="${LD-ld} -m elf_x86_64"
6933 ppc*-*linux*|powerpc*-*linux*)
6934 LD="${LD-ld} -m elf64ppc"
6936 s390*-*linux*|s390*-*tpf*)
6937 LD="${LD-ld} -m elf64_s390"
6940 LD="${LD-ld} -m elf64_sparc"
6950 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6951 SAVE_CFLAGS="$CFLAGS"
6952 CFLAGS="$CFLAGS -belf"
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6954 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6955 if ${lt_cv_cc_needs_belf+:} false; then :
6956 $as_echo_n "(cached) " >&6
6959 ac_cpp='$CPP $CPPFLAGS'
6960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 lt_cv_cc_needs_belf=yes
6978 lt_cv_cc_needs_belf=no
6980 rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6990 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6991 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6993 CFLAGS="$SAVE_CFLAGS"
6997 # Find out which ABI we are using.
6998 echo 'int i;' > conftest.$ac_ext
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000 (eval $ac_compile) 2>&5
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; }; then
7004 case `/usr/bin/file conftest.o` in
7006 case $lt_cv_prog_gnu_ld in
7010 LD="${LD-ld} -m elf_x86_64"
7013 LD="${LD-ld} -m elf64_sparc"
7016 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7017 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7022 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7034 need_locks="$enable_libtool_lock"
7036 if test -n "$ac_tool_prefix"; then
7037 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7038 set dummy ${ac_tool_prefix}mt; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7042 $as_echo_n "(cached) " >&6
7044 if test -n "$MANIFEST_TOOL"; then
7045 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7065 if test -n "$MANIFEST_TOOL"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7067 $as_echo "$MANIFEST_TOOL" >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7075 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7076 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7077 # Extract the first word of "mt", so it can be a program name with args.
7078 set dummy mt; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7082 $as_echo_n "(cached) " >&6
7084 if test -n "$ac_ct_MANIFEST_TOOL"; then
7085 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7105 if test -n "$ac_ct_MANIFEST_TOOL"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7107 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7113 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7116 case $cross_compiling:$ac_tool_warned in
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7122 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7125 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7128 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7130 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7131 if ${lt_cv_path_mainfest_tool+:} false; then :
7132 $as_echo_n "(cached) " >&6
7134 lt_cv_path_mainfest_tool=no
7135 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7136 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7137 cat conftest.err >&5
7138 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7139 lt_cv_path_mainfest_tool=yes
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7144 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7145 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7155 rhapsody* | darwin*)
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7162 $as_echo_n "(cached) " >&6
7164 if test -n "$DSYMUTIL"; then
7165 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7185 if test -n "$DSYMUTIL"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7187 $as_echo "$DSYMUTIL" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7195 if test -z "$ac_cv_prog_DSYMUTIL"; then
7196 ac_ct_DSYMUTIL=$DSYMUTIL
7197 # Extract the first word of "dsymutil", so it can be a program name with args.
7198 set dummy dsymutil; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7202 $as_echo_n "(cached) " >&6
7204 if test -n "$ac_ct_DSYMUTIL"; then
7205 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7225 if test -n "$ac_ct_DSYMUTIL"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7227 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7233 if test "x$ac_ct_DSYMUTIL" = x; then
7236 case $cross_compiling:$ac_tool_warned in
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7242 DSYMUTIL=$ac_ct_DSYMUTIL
7245 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7248 if test -n "$ac_tool_prefix"; then
7249 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7250 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_NMEDIT+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 if test -n "$NMEDIT"; then
7257 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 NMEDIT=$ac_cv_prog_NMEDIT
7277 if test -n "$NMEDIT"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7279 $as_echo "$NMEDIT" >&6; }
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7287 if test -z "$ac_cv_prog_NMEDIT"; then
7288 ac_ct_NMEDIT=$NMEDIT
7289 # Extract the first word of "nmedit", so it can be a program name with args.
7290 set dummy nmedit; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$ac_ct_NMEDIT"; then
7297 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7317 if test -n "$ac_ct_NMEDIT"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7319 $as_echo "$ac_ct_NMEDIT" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7325 if test "x$ac_ct_NMEDIT" = x; then
7328 case $cross_compiling:$ac_tool_warned in
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7332 ac_tool_warned=yes ;;
7334 NMEDIT=$ac_ct_NMEDIT
7337 NMEDIT="$ac_cv_prog_NMEDIT"
7340 if test -n "$ac_tool_prefix"; then
7341 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7342 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344 $as_echo_n "checking for $ac_word... " >&6; }
7345 if ${ac_cv_prog_LIPO+:} false; then :
7346 $as_echo_n "(cached) " >&6
7348 if test -n "$LIPO"; then
7349 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 LIPO=$ac_cv_prog_LIPO
7369 if test -n "$LIPO"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7371 $as_echo "$LIPO" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7379 if test -z "$ac_cv_prog_LIPO"; then
7381 # Extract the first word of "lipo", so it can be a program name with args.
7382 set dummy lipo; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7386 $as_echo_n "(cached) " >&6
7388 if test -n "$ac_ct_LIPO"; then
7389 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_ac_ct_LIPO="lipo"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7409 if test -n "$ac_ct_LIPO"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7411 $as_echo "$ac_ct_LIPO" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7417 if test "x$ac_ct_LIPO" = x; then
7420 case $cross_compiling:$ac_tool_warned in
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7424 ac_tool_warned=yes ;;
7429 LIPO="$ac_cv_prog_LIPO"
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}otool; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_OTOOL+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$OTOOL"; then
7441 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 OTOOL=$ac_cv_prog_OTOOL
7461 if test -n "$OTOOL"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7463 $as_echo "$OTOOL" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7471 if test -z "$ac_cv_prog_OTOOL"; then
7473 # Extract the first word of "otool", so it can be a program name with args.
7474 set dummy otool; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7478 $as_echo_n "(cached) " >&6
7480 if test -n "$ac_ct_OTOOL"; then
7481 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490 ac_cv_prog_ac_ct_OTOOL="otool"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7501 if test -n "$ac_ct_OTOOL"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7503 $as_echo "$ac_ct_OTOOL" >&6; }
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7509 if test "x$ac_ct_OTOOL" = x; then
7512 case $cross_compiling:$ac_tool_warned in
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7521 OTOOL="$ac_cv_prog_OTOOL"
7524 if test -n "$ac_tool_prefix"; then
7525 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_OTOOL64+:} false; then :
7530 $as_echo_n "(cached) " >&6
7532 if test -n "$OTOOL64"; then
7533 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 OTOOL64=$ac_cv_prog_OTOOL64
7553 if test -n "$OTOOL64"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7555 $as_echo "$OTOOL64" >&6; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7563 if test -z "$ac_cv_prog_OTOOL64"; then
7564 ac_ct_OTOOL64=$OTOOL64
7565 # Extract the first word of "otool64", so it can be a program name with args.
7566 set dummy otool64; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7570 $as_echo_n "(cached) " >&6
7572 if test -n "$ac_ct_OTOOL64"; then
7573 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_ac_ct_OTOOL64="otool64"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7593 if test -n "$ac_ct_OTOOL64"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7595 $as_echo "$ac_ct_OTOOL64" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7601 if test "x$ac_ct_OTOOL64" = x; then
7604 case $cross_compiling:$ac_tool_warned in
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7610 OTOOL64=$ac_ct_OTOOL64
7613 OTOOL64="$ac_cv_prog_OTOOL64"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7643 $as_echo_n "checking for -single_module linker flag... " >&6; }
7644 if ${lt_cv_apple_cc_single_mod+:} false; then :
7645 $as_echo_n "(cached) " >&6
7647 lt_cv_apple_cc_single_mod=no
7648 if test -z "${LT_MULTI_MODULE}"; then
7649 # By default we will add the -single_module flag. You can override
7650 # by either setting the environment variable LT_MULTI_MODULE
7651 # non-empty at configure time, or by adding -multi_module to the
7653 rm -rf libconftest.dylib*
7654 echo "int foo(void){return 1;}" > conftest.c
7655 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7656 -dynamiclib -Wl,-single_module conftest.c" >&5
7657 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7658 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7660 # If there is a non-empty error log, and "single_module"
7661 # appears in it, assume the flag caused a linker warning
7662 if test -s conftest.err && $GREP single_module conftest.err; then
7663 cat conftest.err >&5
7664 # Otherwise, if the output was created with a 0 exit code from
7665 # the compiler, it worked.
7666 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7667 lt_cv_apple_cc_single_mod=yes
7669 cat conftest.err >&5
7671 rm -rf libconftest.dylib*
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7676 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7679 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7680 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7681 $as_echo_n "(cached) " >&6
7683 lt_cv_ld_exported_symbols_list=no
7684 save_LDFLAGS=$LDFLAGS
7685 echo "_main" > conftest.sym
7686 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7698 if ac_fn_c_try_link "$LINENO"; then :
7699 lt_cv_ld_exported_symbols_list=yes
7701 lt_cv_ld_exported_symbols_list=no
7703 rm -f core conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705 LDFLAGS="$save_LDFLAGS"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7709 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7712 $as_echo_n "checking for -force_load linker flag... " >&6; }
7713 if ${lt_cv_ld_force_load+:} false; then :
7714 $as_echo_n "(cached) " >&6
7716 lt_cv_ld_force_load=no
7717 cat > conftest.c << _LT_EOF
7718 int forced_loaded() { return 2;}
7720 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7721 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7722 echo "$AR cru libconftest.a conftest.o" >&5
7723 $AR cru libconftest.a conftest.o 2>&5
7724 echo "$RANLIB libconftest.a" >&5
7725 $RANLIB libconftest.a 2>&5
7726 cat > conftest.c << _LT_EOF
7727 int main() { return 0;}
7729 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7730 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7732 if test -s conftest.err && $GREP force_load conftest.err; then
7733 cat conftest.err >&5
7734 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7735 lt_cv_ld_force_load=yes
7737 cat conftest.err >&5
7739 rm -f conftest.err libconftest.a conftest conftest.c
7740 rm -rf conftest.dSYM
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7744 $as_echo "$lt_cv_ld_force_load" >&6; }
7746 rhapsody* | darwin1.[012])
7747 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7750 darwin*) # darwin 5.x on
7751 # if running on 10.5 or later, the deployment target defaults
7752 # to the OS version, if on x86, and 10.4, the deployment
7753 # target defaults to 10.4. Don't you love it?
7754 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7755 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7760 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7764 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7765 _lt_dar_single_mod='$single_module'
7767 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7768 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7770 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7772 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7773 _lt_dsymutil='~$DSYMUTIL $lib || :'
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7786 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7787 # On Suns, sometimes $CPP names a directory.
7788 if test -n "$CPP" && test -d "$CPP"; then
7791 if test -z "$CPP"; then
7792 if ${ac_cv_prog_CPP+:} false; then :
7793 $as_echo_n "(cached) " >&6
7795 # Double quotes because CPP needs to be expanded
7796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7799 for ac_c_preproc_warn_flag in '' yes
7801 # Use a header file that comes with gcc, so configuring glibc
7802 # with a fresh cross-compiler works.
7803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7804 # <limits.h> exists even on freestanding compilers.
7805 # On the NeXT, cc -E runs the code through the compiler's parser,
7806 # not just through cpp. "Syntax error" is here to catch this case.
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7810 # include <limits.h>
7812 # include <assert.h>
7816 if ac_fn_c_try_cpp "$LINENO"; then :
7819 # Broken: fails on valid input.
7822 rm -f conftest.err conftest.i conftest.$ac_ext
7824 # OK, works on sane cases. Now check whether nonexistent headers
7825 # can be detected and how.
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 #include <ac_nonexistent.h>
7830 if ac_fn_c_try_cpp "$LINENO"; then :
7831 # Broken: success on invalid input.
7834 # Passes both tests.
7838 rm -f conftest.err conftest.i conftest.$ac_ext
7841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7842 rm -f conftest.i conftest.err conftest.$ac_ext
7843 if $ac_preproc_ok; then :
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7856 $as_echo "$CPP" >&6; }
7858 for ac_c_preproc_warn_flag in '' yes
7860 # Use a header file that comes with gcc, so configuring glibc
7861 # with a fresh cross-compiler works.
7862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7863 # <limits.h> exists even on freestanding compilers.
7864 # On the NeXT, cc -E runs the code through the compiler's parser,
7865 # not just through cpp. "Syntax error" is here to catch this case.
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7869 # include <limits.h>
7871 # include <assert.h>
7875 if ac_fn_c_try_cpp "$LINENO"; then :
7878 # Broken: fails on valid input.
7881 rm -f conftest.err conftest.i conftest.$ac_ext
7883 # OK, works on sane cases. Now check whether nonexistent headers
7884 # can be detected and how.
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 #include <ac_nonexistent.h>
7889 if ac_fn_c_try_cpp "$LINENO"; then :
7890 # Broken: success on invalid input.
7893 # Passes both tests.
7897 rm -f conftest.err conftest.i conftest.$ac_ext
7900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7901 rm -f conftest.i conftest.err conftest.$ac_ext
7902 if $ac_preproc_ok; then :
7905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7907 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7908 See \`config.log' for more details" "$LINENO" 5; }
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7919 $as_echo_n "checking for ANSI C header files... " >&6; }
7920 if ${ac_cv_header_stdc+:} false; then :
7921 $as_echo_n "(cached) " >&6
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7938 if ac_fn_c_try_compile "$LINENO"; then :
7939 ac_cv_header_stdc=yes
7941 ac_cv_header_stdc=no
7943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 if test $ac_cv_header_stdc = yes; then
7946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7953 $EGREP "memchr" >/dev/null 2>&1; then :
7956 ac_cv_header_stdc=no
7962 if test $ac_cv_header_stdc = yes; then
7963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7970 $EGREP "free" >/dev/null 2>&1; then :
7973 ac_cv_header_stdc=no
7979 if test $ac_cv_header_stdc = yes; then
7980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7981 if test "$cross_compiling" = yes; then :
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7988 #if ((' ' & 0x0FF) == 0x020)
7989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7992 # define ISLOWER(c) \
7993 (('a' <= (c) && (c) <= 'i') \
7994 || ('j' <= (c) && (c) <= 'r') \
7995 || ('s' <= (c) && (c) <= 'z'))
7996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8004 for (i = 0; i < 256; i++)
8005 if (XOR (islower (i), ISLOWER (i))
8006 || toupper (i) != TOUPPER (i))
8011 if ac_fn_c_try_run "$LINENO"; then :
8014 ac_cv_header_stdc=no
8016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8017 conftest.$ac_objext conftest.beam conftest.$ac_ext
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8023 $as_echo "$ac_cv_header_stdc" >&6; }
8024 if test $ac_cv_header_stdc = yes; then
8026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8030 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8032 inttypes.h stdint.h unistd.h
8034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8038 cat >>confdefs.h <<_ACEOF
8039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8047 for ac_header in dlfcn.h
8049 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8051 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8052 cat >>confdefs.h <<_ACEOF
8053 #define HAVE_DLFCN_H 1
8074 # Check whether --enable-shared was given.
8075 if test "${enable_shared+set}" = set; then :
8076 enableval=$enable_shared; p=${PACKAGE-default}
8078 yes) enable_shared=yes ;;
8079 no) enable_shared=no ;;
8082 # Look at the argument we got. We use all the common list separators.
8083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8084 for pkg in $enableval; do
8086 if test "X$pkg" = "X$p"; then
8105 # Check whether --enable-static was given.
8106 if test "${enable_static+set}" = set; then :
8107 enableval=$enable_static; p=${PACKAGE-default}
8109 yes) enable_static=yes ;;
8110 no) enable_static=no ;;
8113 # Look at the argument we got. We use all the common list separators.
8114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8115 for pkg in $enableval; do
8117 if test "X$pkg" = "X$p"; then
8137 # Check whether --with-pic was given.
8138 if test "${with_pic+set}" = set; then :
8139 withval=$with_pic; lt_p=${PACKAGE-default}
8141 yes|no) pic_mode=$withval ;;
8144 # Look at the argument we got. We use all the common list separators.
8145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8146 for lt_pkg in $withval; do
8148 if test "X$lt_pkg" = "X$lt_p"; then
8160 test -z "$pic_mode" && pic_mode=default
8168 # Check whether --enable-fast-install was given.
8169 if test "${enable_fast_install+set}" = set; then :
8170 enableval=$enable_fast_install; p=${PACKAGE-default}
8172 yes) enable_fast_install=yes ;;
8173 no) enable_fast_install=no ;;
8175 enable_fast_install=no
8176 # Look at the argument we got. We use all the common list separators.
8177 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8178 for pkg in $enableval; do
8180 if test "X$pkg" = "X$p"; then
8181 enable_fast_install=yes
8188 enable_fast_install=yes
8201 # This can be used to rebuild libtool when needed
8202 LIBTOOL_DEPS="$ltmain"
8204 # Always use our own libtool.
8205 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8236 test -z "$LN_S" && LN_S="ln -s"
8251 if test -n "${ZSH_VERSION+set}" ; then
8252 setopt NO_GLOB_SUBST
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8256 $as_echo_n "checking for objdir... " >&6; }
8257 if ${lt_cv_objdir+:} false; then :
8258 $as_echo_n "(cached) " >&6
8260 rm -f .libs 2>/dev/null
8261 mkdir .libs 2>/dev/null
8262 if test -d .libs; then
8265 # MS-DOS does not allow filenames that begin with a dot.
8268 rmdir .libs 2>/dev/null
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8271 $as_echo "$lt_cv_objdir" >&6; }
8272 objdir=$lt_cv_objdir
8278 cat >>confdefs.h <<_ACEOF
8279 #define LT_OBJDIR "$lt_cv_objdir/"
8287 # AIX sometimes has problems with the GCC collect2 program. For some
8288 # reason, if we set the COLLECT_NAMES environment variable, the problems
8289 # vanish in a puff of smoke.
8290 if test "X${COLLECT_NAMES+set}" != Xset; then
8292 export COLLECT_NAMES
8299 can_build_shared=yes
8301 # All known linkers require a `.a' archive for static linking (except MSVC,
8302 # which needs '.lib').
8305 with_gnu_ld="$lt_cv_prog_gnu_ld"
8308 old_CFLAGS="$CFLAGS"
8310 # Set sane defaults for various variables
8311 test -z "$CC" && CC=cc
8312 test -z "$LTCC" && LTCC=$CC
8313 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8314 test -z "$LD" && LD=ld
8315 test -z "$ac_objext" && ac_objext=o
8317 for cc_temp in $compiler""; do
8319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8325 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8328 # Only perform the check for file, if the check method requires it
8329 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8330 case $deplibs_check_method in
8332 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8334 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8335 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8336 $as_echo_n "(cached) " >&6
8340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8343 lt_save_MAGIC_CMD="$MAGIC_CMD"
8344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8346 for ac_dir in $ac_dummy; do
8348 test -z "$ac_dir" && ac_dir=.
8349 if test -f $ac_dir/${ac_tool_prefix}file; then
8350 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8351 if test -n "$file_magic_test_file"; then
8352 case $deplibs_check_method in
8354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8357 $EGREP "$file_magic_regex" > /dev/null; then
8362 *** Warning: the command libtool uses to detect shared libraries,
8363 *** $file_magic_cmd, produces output that libtool cannot recognize.
8364 *** The result is that libtool may fail to recognize shared libraries
8365 *** as such. This will affect the creation of libtool libraries that
8366 *** depend on shared libraries, but programs linked with such libtool
8367 *** libraries will work regardless of this problem. Nevertheless, you
8368 *** may want to report the problem to your system manager and/or to
8369 *** bug-libtool@gnu.org
8379 MAGIC_CMD="$lt_save_MAGIC_CMD"
8384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8385 if test -n "$MAGIC_CMD"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8387 $as_echo "$MAGIC_CMD" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8397 if test -z "$lt_cv_path_MAGIC_CMD"; then
8398 if test -n "$ac_tool_prefix"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8400 $as_echo_n "checking for file... " >&6; }
8401 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8402 $as_echo_n "(cached) " >&6
8406 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8409 lt_save_MAGIC_CMD="$MAGIC_CMD"
8410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8411 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8412 for ac_dir in $ac_dummy; do
8414 test -z "$ac_dir" && ac_dir=.
8415 if test -f $ac_dir/file; then
8416 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8417 if test -n "$file_magic_test_file"; then
8418 case $deplibs_check_method in
8420 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8423 $EGREP "$file_magic_regex" > /dev/null; then
8428 *** Warning: the command libtool uses to detect shared libraries,
8429 *** $file_magic_cmd, produces output that libtool cannot recognize.
8430 *** The result is that libtool may fail to recognize shared libraries
8431 *** as such. This will affect the creation of libtool libraries that
8432 *** depend on shared libraries, but programs linked with such libtool
8433 *** libraries will work regardless of this problem. Nevertheless, you
8434 *** may want to report the problem to your system manager and/or to
8435 *** bug-libtool@gnu.org
8445 MAGIC_CMD="$lt_save_MAGIC_CMD"
8450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8451 if test -n "$MAGIC_CMD"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8453 $as_echo "$MAGIC_CMD" >&6; }
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8469 # Use C for the default configuration in the libtool script
8473 ac_cpp='$CPP $CPPFLAGS'
8474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8479 # Source file extension for C test sources.
8482 # Object file extension for compiled C test sources.
8486 # Code to be used in simple compile tests
8487 lt_simple_compile_test_code="int some_variable = 0;"
8489 # Code to be used in simple link tests
8490 lt_simple_link_test_code='int main(){return(0);}'
8498 # If no C compiler was specified, use CC.
8501 # If no C compiler flags were specified, use CFLAGS.
8502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8504 # Allow CC to be a program name with arguments.
8507 # Save the default compiler, since it gets overwritten when the other
8508 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8509 compiler_DEFAULT=$CC
8511 # save warnings/boilerplate of simple test code
8512 ac_outfile=conftest.$ac_objext
8513 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8514 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8515 _lt_compiler_boilerplate=`cat conftest.err`
8518 ac_outfile=conftest.$ac_objext
8519 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8520 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8521 _lt_linker_boilerplate=`cat conftest.err`
8526 ## There is no encapsulation within the following macros, do not change
8527 ## the running order or otherwise move them around unless you know exactly
8528 ## what you are doing...
8529 if test -n "$compiler"; then
8531 lt_prog_compiler_no_builtin_flag=
8533 if test "$GCC" = yes; then
8534 case $cc_basename in
8536 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8538 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8542 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8543 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8544 $as_echo_n "(cached) " >&6
8546 lt_cv_prog_compiler_rtti_exceptions=no
8547 ac_outfile=conftest.$ac_objext
8548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549 lt_compiler_flag="-fno-rtti -fno-exceptions"
8550 # Insert the option either (1) after the last *FLAGS variable, or
8551 # (2) before a word containing "conftest.", or (3) at the end.
8552 # Note that $ac_compile itself does not contain backslashes and begins
8553 # with a dollar sign (not a hyphen), so the echo should work correctly.
8554 # The option is referenced via a variable to avoid confusing sed.
8555 lt_compile=`echo "$ac_compile" | $SED \
8556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558 -e 's:$: $lt_compiler_flag:'`
8559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560 (eval "$lt_compile" 2>conftest.err)
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 if (exit $ac_status) && test -s "$ac_outfile"; then
8565 # The compiler can only warn and ignore the option if not recognized
8566 # So say no if there are warnings other than the usual output.
8567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8570 lt_cv_prog_compiler_rtti_exceptions=yes
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8577 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8579 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8580 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8592 lt_prog_compiler_wl=
8593 lt_prog_compiler_pic=
8594 lt_prog_compiler_static=
8597 if test "$GCC" = yes; then
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_static='-static'
8603 # All AIX code is PIC.
8604 if test "$host_cpu" = ia64; then
8605 # AIX 5 now supports IA64 processor
8606 lt_prog_compiler_static='-Bstatic'
8613 # see comment about AmigaOS4 .so support
8614 lt_prog_compiler_pic='-fPIC'
8617 # FIXME: we need at least 68020 code to build shared libraries, but
8618 # adding the `-m68020' flag to GCC prevents building anything better,
8620 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8625 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8626 # PIC is the default for these OSes.
8629 mingw* | cygwin* | pw32* | os2* | cegcc*)
8630 # This hack is so that the source file can tell whether it is being
8631 # built for inclusion in a dll (and should export symbols for example).
8632 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8633 # (--disable-auto-import) libraries
8634 lt_prog_compiler_pic='-DDLL_EXPORT'
8637 darwin* | rhapsody*)
8638 # PIC is the default on this platform
8639 # Common symbols not allowed in MH_DYLIB files
8640 lt_prog_compiler_pic='-fno-common'
8644 # PIC is the default for Haiku.
8645 # The "-static" flag exists, but is broken.
8646 lt_prog_compiler_static=
8650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8652 # sets the default TLS model and affects inlining.
8658 lt_prog_compiler_pic='-fPIC'
8664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8665 # Instead, we relocate shared libraries at runtime.
8669 # Just because we use GCC doesn't mean we suddenly get shared libraries
8670 # on systems that don't support them.
8671 lt_prog_compiler_can_build_shared=no
8676 # QNX uses GNU C++, but need to define -shared option too, otherwise
8678 lt_prog_compiler_pic='-fPIC -shared'
8682 if test -d /usr/nec; then
8683 lt_prog_compiler_pic=-Kconform_pic
8688 lt_prog_compiler_pic='-fPIC'
8692 case $cc_basename in
8693 nvcc*) # Cuda Compiler Driver 2.2
8694 lt_prog_compiler_wl='-Xlinker '
8695 if test -n "$lt_prog_compiler_pic"; then
8696 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8701 # PORTME Check for flag to pass linker flags through the system compiler.
8704 lt_prog_compiler_wl='-Wl,'
8705 if test "$host_cpu" = ia64; then
8706 # AIX 5 now supports IA64 processor
8707 lt_prog_compiler_static='-Bstatic'
8709 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8713 mingw* | cygwin* | pw32* | os2* | cegcc*)
8714 # This hack is so that the source file can tell whether it is being
8715 # built for inclusion in a dll (and should export symbols for example).
8716 lt_prog_compiler_pic='-DDLL_EXPORT'
8719 hpux9* | hpux10* | hpux11*)
8720 lt_prog_compiler_wl='-Wl,'
8721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8728 lt_prog_compiler_pic='+Z'
8731 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8732 lt_prog_compiler_static='${wl}-a ${wl}archive'
8735 irix5* | irix6* | nonstopux*)
8736 lt_prog_compiler_wl='-Wl,'
8737 # PIC (with -KPIC) is the default.
8738 lt_prog_compiler_static='-non_shared'
8741 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8742 case $cc_basename in
8743 # old Intel for x86_64 which still supported -KPIC.
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='-KPIC'
8747 lt_prog_compiler_static='-static'
8749 # icc used to be incompatible with GCC.
8750 # ICC 10 doesn't accept -KPIC any more.
8752 lt_prog_compiler_wl='-Wl,'
8753 lt_prog_compiler_pic='-fPIC'
8754 lt_prog_compiler_static='-static'
8756 # Lahey Fortran 8.1.
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='--shared'
8760 lt_prog_compiler_static='--static'
8763 # NAG Fortran compiler
8764 lt_prog_compiler_wl='-Wl,-Wl,,'
8765 lt_prog_compiler_pic='-PIC'
8766 lt_prog_compiler_static='-Bstatic'
8768 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8769 # Portland Group compilers (*not* the Pentium gcc compiler,
8770 # which looks to be a dead project)
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-fpic'
8773 lt_prog_compiler_static='-Bstatic'
8776 lt_prog_compiler_wl='-Wl,'
8777 # All Alpha code is PIC.
8778 lt_prog_compiler_static='-non_shared'
8780 xl* | bgxl* | bgf* | mpixl*)
8781 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8782 lt_prog_compiler_wl='-Wl,'
8783 lt_prog_compiler_pic='-qpic'
8784 lt_prog_compiler_static='-qstaticlink'
8787 case `$CC -V 2>&1 | sed 5q` in
8788 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8789 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8790 lt_prog_compiler_pic='-KPIC'
8791 lt_prog_compiler_static='-Bstatic'
8792 lt_prog_compiler_wl=''
8794 *Sun\ F* | *Sun*Fortran*)
8795 lt_prog_compiler_pic='-KPIC'
8796 lt_prog_compiler_static='-Bstatic'
8797 lt_prog_compiler_wl='-Qoption ld '
8801 lt_prog_compiler_pic='-KPIC'
8802 lt_prog_compiler_static='-Bstatic'
8803 lt_prog_compiler_wl='-Wl,'
8805 *Intel*\ [CF]*Compiler*)
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-fPIC'
8808 lt_prog_compiler_static='-static'
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-fpic'
8813 lt_prog_compiler_static='-Bstatic'
8821 lt_prog_compiler_pic='-KPIC'
8822 lt_prog_compiler_static='-Bstatic'
8826 # QNX uses GNU C++, but need to define -shared option too, otherwise
8828 lt_prog_compiler_pic='-fPIC -shared'
8831 osf3* | osf4* | osf5*)
8832 lt_prog_compiler_wl='-Wl,'
8833 # All OSF/1 code is PIC.
8834 lt_prog_compiler_static='-non_shared'
8838 lt_prog_compiler_static='-non_shared'
8842 lt_prog_compiler_pic='-KPIC'
8843 lt_prog_compiler_static='-Bstatic'
8844 case $cc_basename in
8845 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8846 lt_prog_compiler_wl='-Qoption ld ';;
8848 lt_prog_compiler_wl='-Wl,';;
8853 lt_prog_compiler_wl='-Qoption ld '
8854 lt_prog_compiler_pic='-PIC'
8855 lt_prog_compiler_static='-Bstatic'
8858 sysv4 | sysv4.2uw2* | sysv4.3*)
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-Bstatic'
8865 if test -d /usr/nec ;then
8866 lt_prog_compiler_pic='-Kconform_pic'
8867 lt_prog_compiler_static='-Bstatic'
8871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl='-Wl,'
8879 lt_prog_compiler_can_build_shared=no
8883 lt_prog_compiler_pic='-pic'
8884 lt_prog_compiler_static='-Bstatic'
8888 lt_prog_compiler_can_build_shared=no
8894 # For platforms which do not support PIC, -DPIC is meaningless:
8896 lt_prog_compiler_pic=
8899 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8904 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8905 if ${lt_cv_prog_compiler_pic+:} false; then :
8906 $as_echo_n "(cached) " >&6
8908 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8911 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8912 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8915 # Check to make sure the PIC flag actually works.
8917 if test -n "$lt_prog_compiler_pic"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8919 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8920 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8921 $as_echo_n "(cached) " >&6
8923 lt_cv_prog_compiler_pic_works=no
8924 ac_outfile=conftest.$ac_objext
8925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8926 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8927 # Insert the option either (1) after the last *FLAGS variable, or
8928 # (2) before a word containing "conftest.", or (3) at the end.
8929 # Note that $ac_compile itself does not contain backslashes and begins
8930 # with a dollar sign (not a hyphen), so the echo should work correctly.
8931 # The option is referenced via a variable to avoid confusing sed.
8932 lt_compile=`echo "$ac_compile" | $SED \
8933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8935 -e 's:$: $lt_compiler_flag:'`
8936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8937 (eval "$lt_compile" 2>conftest.err)
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 if (exit $ac_status) && test -s "$ac_outfile"; then
8942 # The compiler can only warn and ignore the option if not recognized
8943 # So say no if there are warnings other than the usual output.
8944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8947 lt_cv_prog_compiler_pic_works=yes
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8954 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8956 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8957 case $lt_prog_compiler_pic in
8959 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8962 lt_prog_compiler_pic=
8963 lt_prog_compiler_can_build_shared=no
8979 # Check to make sure the static flag actually works.
8981 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8983 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8984 if ${lt_cv_prog_compiler_static_works+:} false; then :
8985 $as_echo_n "(cached) " >&6
8987 lt_cv_prog_compiler_static_works=no
8988 save_LDFLAGS="$LDFLAGS"
8989 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8990 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8991 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8992 # The linker can only warn and ignore the option if not recognized
8993 # So say no if there are warnings
8994 if test -s conftest.err; then
8995 # Append any errors to the config.log.
8996 cat conftest.err 1>&5
8997 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8999 if diff conftest.exp conftest.er2 >/dev/null; then
9000 lt_cv_prog_compiler_static_works=yes
9003 lt_cv_prog_compiler_static_works=yes
9007 LDFLAGS="$save_LDFLAGS"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9011 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9013 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9016 lt_prog_compiler_static=
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9026 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9027 if ${lt_cv_prog_compiler_c_o+:} false; then :
9028 $as_echo_n "(cached) " >&6
9030 lt_cv_prog_compiler_c_o=no
9031 $RM -r conftest 2>/dev/null
9035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9037 lt_compiler_flag="-o out/conftest2.$ac_objext"
9038 # Insert the option either (1) after the last *FLAGS variable, or
9039 # (2) before a word containing "conftest.", or (3) at the end.
9040 # Note that $ac_compile itself does not contain backslashes and begins
9041 # with a dollar sign (not a hyphen), so the echo should work correctly.
9042 lt_compile=`echo "$ac_compile" | $SED \
9043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9045 -e 's:$: $lt_compiler_flag:'`
9046 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9047 (eval "$lt_compile" 2>out/conftest.err)
9049 cat out/conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9053 # The compiler can only warn and ignore the option if not recognized
9054 # So say no if there are warnings
9055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9058 lt_cv_prog_compiler_c_o=yes
9063 # SGI C++ compiler will create directory out/ii_files/ for
9064 # template instantiation
9065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9066 $RM out/* && rmdir out
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9073 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9082 if ${lt_cv_prog_compiler_c_o+:} false; then :
9083 $as_echo_n "(cached) " >&6
9085 lt_cv_prog_compiler_c_o=no
9086 $RM -r conftest 2>/dev/null
9090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9092 lt_compiler_flag="-o out/conftest2.$ac_objext"
9093 # Insert the option either (1) after the last *FLAGS variable, or
9094 # (2) before a word containing "conftest.", or (3) at the end.
9095 # Note that $ac_compile itself does not contain backslashes and begins
9096 # with a dollar sign (not a hyphen), so the echo should work correctly.
9097 lt_compile=`echo "$ac_compile" | $SED \
9098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9100 -e 's:$: $lt_compiler_flag:'`
9101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9102 (eval "$lt_compile" 2>out/conftest.err)
9104 cat out/conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9108 # The compiler can only warn and ignore the option if not recognized
9109 # So say no if there are warnings
9110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9113 lt_cv_prog_compiler_c_o=yes
9118 # SGI C++ compiler will create directory out/ii_files/ for
9119 # template instantiation
9120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9121 $RM out/* && rmdir out
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9128 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9133 hard_links="nottested"
9134 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9135 # do not overwrite the value of need_locks provided by the user
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9137 $as_echo_n "checking if we can lock with hard links... " >&6; }
9140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9142 ln conftest.a conftest.b 2>&5 || hard_links=no
9143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9145 $as_echo "$hard_links" >&6; }
9146 if test "$hard_links" = no; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9161 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9164 allow_undefined_flag=
9165 always_export_symbols=no
9167 archive_expsym_cmds=
9168 compiler_needs_object=no
9169 enable_shared_with_static_runtimes=no
9170 export_dynamic_flag_spec=
9171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9172 hardcode_automatic=no
9174 hardcode_direct_absolute=no
9175 hardcode_libdir_flag_spec=
9176 hardcode_libdir_separator=
9178 hardcode_shlibpath_var=unsupported
9180 link_all_deplibs=unknown
9183 old_archive_from_new_cmds=
9184 old_archive_from_expsyms_cmds=
9185 thread_safe_flag_spec=
9186 whole_archive_flag_spec=
9187 # include_expsyms should be a list of space-separated symbols to be *always*
9188 # included in the symbol list
9190 # exclude_expsyms can be an extended regexp of symbols to exclude
9191 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9192 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9193 # as well as any symbol that contains `d'.
9194 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9195 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9196 # platforms (ab)use it in PIC code, but their linkers get confused if
9197 # the symbol is explicitly referenced. Since portable code cannot
9198 # rely on this symbol name, it's probably fine to never include it in
9199 # preloaded symbol tables.
9200 # Exclude shared library initialization/finalization symbols.
9201 extract_expsyms_cmds=
9204 cygwin* | mingw* | pw32* | cegcc*)
9205 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9206 # When not using gcc, we currently assume that we are using
9207 # Microsoft Visual C++.
9208 if test "$GCC" != yes; then
9213 # we just hope/assume this is gcc and not c89 (= MSVC++)
9223 # On some targets, GNU ld is compatible enough with the native linker
9224 # that we're better off using the native interface for both.
9225 lt_use_gnu_ld_interface=no
9226 if test "$with_gnu_ld" = yes; then
9229 # The AIX port of GNU ld has always aspired to compatibility
9230 # with the native linker. However, as the warning in the GNU ld
9231 # block says, versions before 2.19.5* couldn't really create working
9232 # shared libraries, regardless of the interface used.
9233 case `$LD -v 2>&1` in
9234 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9235 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9236 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9238 lt_use_gnu_ld_interface=yes
9243 lt_use_gnu_ld_interface=yes
9248 if test "$lt_use_gnu_ld_interface" = yes; then
9249 # If archive_cmds runs LD, not CC, wlarc should be empty
9252 # Set some defaults for GNU ld with shared library support. These
9253 # are reset later if shared libraries are not supported. Putting them
9254 # here allows them to be overridden if necessary.
9255 runpath_var=LD_RUN_PATH
9256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9257 export_dynamic_flag_spec='${wl}--export-dynamic'
9258 # ancient GNU ld didn't support --whole-archive et. al.
9259 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9260 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9262 whole_archive_flag_spec=
9264 supports_anon_versioning=no
9265 case `$LD -v 2>&1` in
9266 *GNU\ gold*) supports_anon_versioning=yes ;;
9267 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9268 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9269 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9270 *\ 2.11.*) ;; # other 2.11 versions
9271 *) supports_anon_versioning=yes ;;
9274 # See if GNU ld supports shared libraries.
9277 # On AIX/PPC, the GNU linker is very broken
9278 if test "$host_cpu" != ia64; then
9282 *** Warning: the GNU linker, at least up to release 2.19, is reported
9283 *** to be unable to reliably create shared libraries on AIX.
9284 *** Therefore, libtool is disabling shared libraries support. If you
9285 *** really care for shared libraries, you may want to install binutils
9286 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9287 *** You will then need to restart the configuration process.
9296 # see comment about AmigaOS4 .so support
9297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds=''
9301 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)'
9302 hardcode_libdir_flag_spec='-L$libdir'
9303 hardcode_minus_L=yes
9309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310 allow_undefined_flag=unsupported
9311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9312 # support --undefined. This deserves some investigation. FIXME
9313 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319 cygwin* | mingw* | pw32* | cegcc*)
9320 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9321 # as there is no search path for DLLs.
9322 hardcode_libdir_flag_spec='-L$libdir'
9323 export_dynamic_flag_spec='${wl}--export-all-symbols'
9324 allow_undefined_flag=unsupported
9325 always_export_symbols=no
9326 enable_shared_with_static_runtimes=yes
9327 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'
9328 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9330 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9332 # If the export-symbols file already is a .def file (1st line
9333 # is EXPORTS), use it as is; otherwise, prepend...
9334 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9335 cp $export_symbols $output_objdir/$soname.def;
9337 echo EXPORTS > $output_objdir/$soname.def;
9338 cat $export_symbols >> $output_objdir/$soname.def;
9340 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9348 link_all_deplibs=yes
9353 hardcode_shlibpath_var=no
9354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9355 export_dynamic_flag_spec='${wl}-E'
9356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9357 # Instead, shared libraries are loaded at an image base (0x10000000 by
9358 # default) and relocated if they conflict, which is a slow very memory
9359 # consuming and fragmenting process. To avoid this, we pick a random,
9360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9363 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'
9366 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9368 if test "$host_os" = linux-dietlibc; then
9369 case $cc_basename in
9370 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9373 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9374 && test "$tmp_diet" = no
9376 tmp_addflag=' $pic_flag'
9377 tmp_sharedflag='-shared'
9378 case $cc_basename,$host_cpu in
9379 pgcc*) # Portland Group C compiler
9380 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'
9381 tmp_addflag=' $pic_flag'
9383 pgf77* | pgf90* | pgf95* | pgfortran*)
9384 # Portland Group f77 and f90 compilers
9385 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'
9386 tmp_addflag=' $pic_flag -Mnomain' ;;
9387 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9388 tmp_addflag=' -i_dynamic' ;;
9389 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9390 tmp_addflag=' -i_dynamic -nofor_main' ;;
9391 ifc* | ifort*) # Intel Fortran compiler
9392 tmp_addflag=' -nofor_main' ;;
9393 lf95*) # Lahey Fortran 8.1
9394 whole_archive_flag_spec=
9395 tmp_sharedflag='--shared' ;;
9396 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9397 tmp_sharedflag='-qmkshrobj'
9399 nvcc*) # Cuda Compiler Driver 2.2
9400 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'
9401 compiler_needs_object=yes
9404 case `$CC -V 2>&1 | sed 5q` in
9405 *Sun\ C*) # Sun C 5.9
9406 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'
9407 compiler_needs_object=yes
9408 tmp_sharedflag='-G' ;;
9409 *Sun\ F*) # Sun Fortran 8.3
9410 tmp_sharedflag='-G' ;;
9412 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414 if test "x$supports_anon_versioning" = xyes; then
9415 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9416 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9417 echo "local: *; };" >> $output_objdir/$libname.ver~
9418 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9421 case $cc_basename in
9422 xlf* | bgf* | bgxlf* | mpixlf*)
9423 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9424 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9426 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9427 if test "x$supports_anon_versioning" = xyes; then
9428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9430 echo "local: *; };" >> $output_objdir/$libname.ver~
9431 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9442 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9445 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9451 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9455 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9456 *** create shared libraries on Solaris systems. Therefore, libtool
9457 *** is disabling shared libraries support. We urge you to upgrade GNU
9458 *** binutils to release 2.9.1 or newer. Another option is to modify
9459 *** your PATH or compiler configuration so that the native linker is
9460 *** used, and then restart.
9463 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9472 case `$LD -v 2>&1` in
9473 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9477 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9478 *** reliably create shared libraries on SCO systems. Therefore, libtool
9479 *** is disabling shared libraries support. We urge you to upgrade GNU
9480 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9481 *** your PATH or compiler configuration so that the native linker is
9482 *** used, and then restart.
9487 # For security reasons, it is highly recommended that you always
9488 # use absolute paths for naming shared libraries, and exclude the
9489 # DT_RUNPATH tag from executables and libraries. But doing so
9490 # requires that you compile everything twice, which is a pain.
9491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9503 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9506 hardcode_shlibpath_var=no
9510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9511 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9519 if test "$ld_shlibs" = no; then
9521 hardcode_libdir_flag_spec=
9522 export_dynamic_flag_spec=
9523 whole_archive_flag_spec=
9526 # PORTME fill in a description of your system's linker (not GNU ld)
9529 allow_undefined_flag=unsupported
9530 always_export_symbols=yes
9531 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'
9532 # Note: this linker hardcodes the directories in LIBPATH if there
9533 # are no directories specified by -L.
9534 hardcode_minus_L=yes
9535 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9536 # Neither direct hardcoding nor static linking is supported with a
9538 hardcode_direct=unsupported
9543 if test "$host_cpu" = ia64; then
9544 # On IA64, the linker does run time linking by default, so we don't
9545 # have to do anything special.
9546 aix_use_runtimelinking=no
9547 exp_sym_flag='-Bexport'
9550 # If we're using GNU nm, then we don't want the "-C" option.
9551 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9552 # Also, AIX nm treats weak defined symbols like other global
9553 # defined symbols, whereas GNU nm marks them as "W".
9554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9555 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'
9557 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'
9559 aix_use_runtimelinking=no
9561 # Test if we are trying to use run time linking or normal
9562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9563 # need to do runtime linking.
9564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9565 for ld_flag in $LDFLAGS; do
9566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9567 aix_use_runtimelinking=yes
9574 exp_sym_flag='-bexport'
9575 no_entry_flag='-bnoentry'
9578 # When large executables or shared objects are built, AIX ld can
9579 # have problems creating the table of contents. If linking a library
9580 # or program results in "error TOC overflow" add -mminimal-toc to
9581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9586 hardcode_direct_absolute=yes
9587 hardcode_libdir_separator=':'
9588 link_all_deplibs=yes
9589 file_list_spec='${wl}-f,'
9591 if test "$GCC" = yes; then
9592 case $host_os in aix4.[012]|aix4.[012].*)
9593 # We only want to do this on AIX 4.2 and lower, the check
9594 # below for broken collect2 doesn't work under 4.3+
9595 collect2name=`${CC} -print-prog-name=collect2`
9596 if test -f "$collect2name" &&
9597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9599 # We have reworked collect2
9602 # We have old collect2
9603 hardcode_direct=unsupported
9604 # It fails to find uninstalled libraries when the uninstalled
9605 # path is not listed in the libpath. Setting hardcode_minus_L
9606 # to unsupported forces relinking
9607 hardcode_minus_L=yes
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_libdir_separator=
9613 shared_flag='-shared'
9614 if test "$aix_use_runtimelinking" = yes; then
9615 shared_flag="$shared_flag "'${wl}-G'
9619 if test "$host_cpu" = ia64; then
9620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9621 # chokes on -Wl,-G. The following line is correct:
9624 if test "$aix_use_runtimelinking" = yes; then
9625 shared_flag='${wl}-G'
9627 shared_flag='${wl}-bM:SRE'
9632 export_dynamic_flag_spec='${wl}-bexpall'
9633 # It seems that -bexpall does not export symbols beginning with
9634 # underscore (_), so it is better to generate a list of symbols to export.
9635 always_export_symbols=yes
9636 if test "$aix_use_runtimelinking" = yes; then
9637 # Warning - without using the other runtime loading flags (-brtl),
9638 # -berok will link without error, but may produce a broken library.
9639 allow_undefined_flag='-berok'
9640 # Determine the default libpath from the value encoded in an
9642 if test "${lt_cv_aix_libpath+set}" = set; then
9643 aix_libpath=$lt_cv_aix_libpath
9645 if ${lt_cv_aix_libpath_+:} false; then :
9646 $as_echo_n "(cached) " >&6
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9659 if ac_fn_c_try_link "$LINENO"; then :
9661 lt_aix_libpath_sed='
9662 /Import File Strings/,/^$/ {
9664 s/^0 *\([^ ]*\) *$/\1/
9668 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9669 # Check for a 64-bit object if we didn't find anything.
9670 if test -z "$lt_cv_aix_libpath_"; then
9671 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9674 rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676 if test -z "$lt_cv_aix_libpath_"; then
9677 lt_cv_aix_libpath_="/usr/lib:/lib"
9682 aix_libpath=$lt_cv_aix_libpath_
9685 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9686 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"
9688 if test "$host_cpu" = ia64; then
9689 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9690 allow_undefined_flag="-z nodefs"
9691 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"
9693 # Determine the default libpath from the value encoded in an
9695 if test "${lt_cv_aix_libpath+set}" = set; then
9696 aix_libpath=$lt_cv_aix_libpath
9698 if ${lt_cv_aix_libpath_+:} false; then :
9699 $as_echo_n "(cached) " >&6
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9712 if ac_fn_c_try_link "$LINENO"; then :
9714 lt_aix_libpath_sed='
9715 /Import File Strings/,/^$/ {
9717 s/^0 *\([^ ]*\) *$/\1/
9721 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9722 # Check for a 64-bit object if we didn't find anything.
9723 if test -z "$lt_cv_aix_libpath_"; then
9724 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9727 rm -f core conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729 if test -z "$lt_cv_aix_libpath_"; then
9730 lt_cv_aix_libpath_="/usr/lib:/lib"
9735 aix_libpath=$lt_cv_aix_libpath_
9738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9739 # Warning - without using the other run time loading flags,
9740 # -berok will link without error, but may produce a broken library.
9741 no_undefined_flag=' ${wl}-bernotok'
9742 allow_undefined_flag=' ${wl}-berok'
9743 if test "$with_gnu_ld" = yes; then
9744 # We only use this code for GNU lds that support --whole-archive.
9745 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9747 # Exported symbols can be pulled into shared objects from archives
9748 whole_archive_flag_spec='$convenience'
9750 archive_cmds_need_lc=yes
9751 # This is similar to how AIX traditionally builds its shared libraries.
9752 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'
9760 # see comment about AmigaOS4 .so support
9761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762 archive_expsym_cmds=''
9765 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)'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_minus_L=yes
9773 export_dynamic_flag_spec=-rdynamic
9776 cygwin* | mingw* | pw32* | cegcc*)
9777 # When not using gcc, we currently assume that we are using
9778 # Microsoft Visual C++.
9779 # hardcode_libdir_flag_spec is actually meaningless, as there is
9780 # no search path for DLLs.
9781 case $cc_basename in
9784 hardcode_libdir_flag_spec=' '
9785 allow_undefined_flag=unsupported
9786 always_export_symbols=yes
9788 # Tell ltmain to make .lib files, not .a files.
9790 # Tell ltmain to make .dll files, not .so files.
9792 # FIXME: Setting linknames here is a bad hack.
9793 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9794 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9795 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9797 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9799 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9801 # The linker will not automatically build a static lib if we build a DLL.
9802 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9803 enable_shared_with_static_runtimes=yes
9804 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9805 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9807 old_postinstall_cmds='chmod 644 $oldlib'
9808 postlink_cmds='lt_outputfile="@OUTPUT@"~
9809 lt_tool_outputfile="@TOOL_OUTPUT@"~
9810 case $lt_outputfile in
9813 lt_outputfile="$lt_outputfile.exe"
9814 lt_tool_outputfile="$lt_tool_outputfile.exe"
9817 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9818 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9819 $RM "$lt_outputfile.manifest";
9823 # Assume MSVC wrapper
9824 hardcode_libdir_flag_spec=' '
9825 allow_undefined_flag=unsupported
9826 # Tell ltmain to make .lib files, not .a files.
9828 # Tell ltmain to make .dll files, not .so files.
9830 # FIXME: Setting linknames here is a bad hack.
9831 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9832 # The linker will automatically build a .lib file if we build a DLL.
9833 old_archive_from_new_cmds='true'
9834 # FIXME: Should let the user specify the lib program.
9835 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9836 enable_shared_with_static_runtimes=yes
9841 darwin* | rhapsody*)
9844 archive_cmds_need_lc=no
9846 hardcode_automatic=yes
9847 hardcode_shlibpath_var=unsupported
9848 if test "$lt_cv_ld_force_load" = "yes"; then
9849 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\"`'
9852 whole_archive_flag_spec=''
9854 link_all_deplibs=yes
9855 allow_undefined_flag="$_lt_dar_allow_undefined"
9856 case $cc_basename in
9857 ifort*) _lt_dar_can_shared=yes ;;
9858 *) _lt_dar_can_shared=$GCC ;;
9860 if test "$_lt_dar_can_shared" = "yes"; then
9861 output_verbose_link_cmd=func_echo_all
9862 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9863 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9864 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}"
9865 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}"
9874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_libdir_flag_spec='-L$libdir'
9876 hardcode_shlibpath_var=no
9879 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9880 # support. Future versions do this automatically, but an explicit c++rt0.o
9881 # does not break anything, and helps significantly (at the cost of a little
9884 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9885 hardcode_libdir_flag_spec='-R$libdir'
9887 hardcode_shlibpath_var=no
9890 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_minus_L=yes
9895 hardcode_shlibpath_var=no
9898 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9899 freebsd* | dragonfly*)
9900 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9901 hardcode_libdir_flag_spec='-R$libdir'
9903 hardcode_shlibpath_var=no
9907 if test "$GCC" = yes; then
9908 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'
9910 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'
9912 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator=:
9916 # hardcode_minus_L: Not really in the search PATH,
9917 # but as the default location of the library.
9918 hardcode_minus_L=yes
9919 export_dynamic_flag_spec='${wl}-E'
9923 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9924 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9928 if test "$with_gnu_ld" = no; then
9929 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9930 hardcode_libdir_separator=:
9932 hardcode_direct_absolute=yes
9933 export_dynamic_flag_spec='${wl}-E'
9934 # hardcode_minus_L: Not really in the search PATH,
9935 # but as the default location of the library.
9936 hardcode_minus_L=yes
9941 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9944 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9950 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9956 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9963 # Older versions of the 11.00 compiler do not understand -b yet
9964 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9966 $as_echo_n "checking if $CC understands -b... " >&6; }
9967 if ${lt_cv_prog_compiler__b+:} false; then :
9968 $as_echo_n "(cached) " >&6
9970 lt_cv_prog_compiler__b=no
9971 save_LDFLAGS="$LDFLAGS"
9972 LDFLAGS="$LDFLAGS -b"
9973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9975 # The linker can only warn and ignore the option if not recognized
9976 # So say no if there are warnings
9977 if test -s conftest.err; then
9978 # Append any errors to the config.log.
9979 cat conftest.err 1>&5
9980 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9982 if diff conftest.exp conftest.er2 >/dev/null; then
9983 lt_cv_prog_compiler__b=yes
9986 lt_cv_prog_compiler__b=yes
9990 LDFLAGS="$save_LDFLAGS"
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9994 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9996 if test x"$lt_cv_prog_compiler__b" = xyes; then
9997 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10005 if test "$with_gnu_ld" = no; then
10006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10007 hardcode_libdir_separator=:
10012 hardcode_shlibpath_var=no
10015 hardcode_direct=yes
10016 hardcode_direct_absolute=yes
10017 export_dynamic_flag_spec='${wl}-E'
10019 # hardcode_minus_L: Not really in the search PATH,
10020 # but as the default location of the library.
10021 hardcode_minus_L=yes
10027 irix5* | irix6* | nonstopux*)
10028 if test "$GCC" = yes; then
10029 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'
10030 # Try to use the -exported_symbol ld option, if it does not
10031 # work, assume that -exports_file does not work either and
10032 # implicitly export all symbols.
10033 # This should be the same for all languages, so no per-tag cache variable.
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10035 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10036 if ${lt_cv_irix_exported_symbol+:} false; then :
10037 $as_echo_n "(cached) " >&6
10039 save_LDFLAGS="$LDFLAGS"
10040 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 int foo (void) { return 0; }
10045 if ac_fn_c_try_link "$LINENO"; then :
10046 lt_cv_irix_exported_symbol=yes
10048 lt_cv_irix_exported_symbol=no
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 LDFLAGS="$save_LDFLAGS"
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10055 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10056 if test "$lt_cv_irix_exported_symbol" = yes; then
10057 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'
10060 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'
10061 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'
10063 archive_cmds_need_lc='no'
10064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065 hardcode_libdir_separator=:
10067 link_all_deplibs=yes
10071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10074 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10076 hardcode_libdir_flag_spec='-R$libdir'
10077 hardcode_direct=yes
10078 hardcode_shlibpath_var=no
10082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_direct=yes
10084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10085 hardcode_libdir_separator=:
10086 hardcode_shlibpath_var=no
10093 if test -f /usr/libexec/ld.so; then
10094 hardcode_direct=yes
10095 hardcode_shlibpath_var=no
10096 hardcode_direct_absolute=yes
10097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10101 export_dynamic_flag_spec='${wl}-E'
10104 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10106 hardcode_libdir_flag_spec='-R$libdir'
10109 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10110 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10120 hardcode_libdir_flag_spec='-L$libdir'
10121 hardcode_minus_L=yes
10122 allow_undefined_flag=unsupported
10123 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'
10124 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10128 if test "$GCC" = yes; then
10129 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10130 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'
10132 allow_undefined_flag=' -expect_unresolved \*'
10133 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'
10135 archive_cmds_need_lc='no'
10136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10137 hardcode_libdir_separator=:
10140 osf4* | osf5*) # as osf3* with the addition of -msym flag
10141 if test "$GCC" = yes; then
10142 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10143 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'
10144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146 allow_undefined_flag=' -expect_unresolved \*'
10147 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'
10148 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~
10149 $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'
10151 # Both c and cxx compiler support -rpath directly
10152 hardcode_libdir_flag_spec='-rpath $libdir'
10154 archive_cmds_need_lc='no'
10155 hardcode_libdir_separator=:
10159 no_undefined_flag=' -z defs'
10160 if test "$GCC" = yes; then
10162 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10164 $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'
10166 case `$CC -V 2>&1` in
10169 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10175 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10177 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10181 hardcode_libdir_flag_spec='-R$libdir'
10182 hardcode_shlibpath_var=no
10184 solaris2.[0-5] | solaris2.[0-5].*) ;;
10186 # The compiler driver will combine and reorder linker options,
10187 # but understands `-z linker_flag'. GCC discards it without `$wl',
10188 # but is careful enough not to reorder.
10189 # Supported since Solaris 2.6 (maybe 2.5.1?)
10190 if test "$GCC" = yes; then
10191 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10193 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10197 link_all_deplibs=yes
10201 if test "x$host_vendor" = xsequent; then
10202 # Use $CC to link under sequent, because it throws in some extra .o
10203 # files that make .init and .fini sections work.
10204 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10206 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_libdir_flag_spec='-L$libdir'
10209 hardcode_direct=yes
10210 hardcode_minus_L=yes
10211 hardcode_shlibpath_var=no
10215 case $host_vendor in
10217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218 hardcode_direct=yes # is this really true???
10221 ## LD is ld it makes a PLAMLIB
10222 ## CC just makes a GrossModule.
10223 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10224 reload_cmds='$CC -r -o $output$reload_objs'
10228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10232 runpath_var='LD_RUN_PATH'
10233 hardcode_shlibpath_var=no
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_shlibpath_var=no
10239 export_dynamic_flag_spec='-Bexport'
10243 if test -d /usr/nec; then
10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245 hardcode_shlibpath_var=no
10246 runpath_var=LD_RUN_PATH
10247 hardcode_runpath_var=yes
10252 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10253 no_undefined_flag='${wl}-z,text'
10254 archive_cmds_need_lc=no
10255 hardcode_shlibpath_var=no
10256 runpath_var='LD_RUN_PATH'
10258 if test "$GCC" = yes; then
10259 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 sysv5* | sco3.2v5* | sco5v6*)
10268 # Note: We can NOT use -z defs as we might desire, because we do not
10269 # link with -lc, and that would cause any symbols used from libc to
10270 # always be unresolved, which means just about no library would
10271 # ever link correctly. If we're not using GNU ld we use -z text
10272 # though, which does catch some bad symbols but isn't as heavy-handed
10274 no_undefined_flag='${wl}-z,text'
10275 allow_undefined_flag='${wl}-z,nodefs'
10276 archive_cmds_need_lc=no
10277 hardcode_shlibpath_var=no
10278 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10279 hardcode_libdir_separator=':'
10280 link_all_deplibs=yes
10281 export_dynamic_flag_spec='${wl}-Bexport'
10282 runpath_var='LD_RUN_PATH'
10284 if test "$GCC" = yes; then
10285 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 hardcode_libdir_flag_spec='-L$libdir'
10296 hardcode_shlibpath_var=no
10304 if test x$host_vendor = xsni; then
10306 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10307 export_dynamic_flag_spec='${wl}-Blargedynsym'
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10314 $as_echo "$ld_shlibs" >&6; }
10315 test "$ld_shlibs" = no && can_build_shared=no
10317 with_gnu_ld=$with_gnu_ld
10334 # Do we need to explicitly link libc?
10336 case "x$archive_cmds_need_lc" in
10338 # Assume -lc should be added
10339 archive_cmds_need_lc=yes
10341 if test "$enable_shared" = yes && test "$GCC" = yes; then
10342 case $archive_cmds in
10344 # FIXME: we may have to deal with multi-command sequences.
10347 # Test whether the compiler implicitly links with -lc since on some
10348 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10349 # to ld, don't add -lc before -lgcc.
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10351 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10352 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10353 $as_echo_n "(cached) " >&6
10356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10359 (eval $ac_compile) 2>&5
10361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10362 test $ac_status = 0; } 2>conftest.err; then
10365 libobjs=conftest.$ac_objext
10367 wl=$lt_prog_compiler_wl
10368 pic_flag=$lt_prog_compiler_pic
10374 lt_save_allow_undefined_flag=$allow_undefined_flag
10375 allow_undefined_flag=
10376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10377 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10380 test $ac_status = 0; }
10382 lt_cv_archive_cmds_need_lc=no
10384 lt_cv_archive_cmds_need_lc=yes
10386 allow_undefined_flag=$lt_save_allow_undefined_flag
10388 cat conftest.err 1>&5
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10394 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10395 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10554 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10556 if test "$GCC" = yes; then
10558 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10559 *) lt_awk_arg="/^libraries:/" ;;
10562 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10563 *) lt_sed_strip_eq="s,=/,/,g" ;;
10565 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10566 case $lt_search_path_spec in
10568 # if the path contains ";" then we assume it to be the separator
10569 # otherwise default to the standard path separator (i.e. ":") - it is
10570 # assumed that no part of a normal pathname contains ";" but that should
10571 # okay in the real world where ";" in dirpaths is itself problematic.
10572 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10575 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10578 # Ok, now we have the path, separated by spaces, we can step through it
10579 # and add multilib dir if necessary.
10580 lt_tmp_lt_search_path_spec=
10581 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10582 for lt_sys_path in $lt_search_path_spec; do
10583 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10584 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10586 test -d "$lt_sys_path" && \
10587 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10590 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10591 BEGIN {RS=" "; FS="/|\n";} {
10594 for (lt_i = NF; lt_i > 0; lt_i--) {
10595 if ($lt_i != "" && $lt_i != ".") {
10596 if ($lt_i == "..") {
10599 if (lt_count == 0) {
10600 lt_foo="/" $lt_i lt_foo;
10607 if (lt_foo != "") { lt_freq[lt_foo]++; }
10608 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10610 # AWK program above erroneously prepends '/' to C:/dos/paths
10613 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10614 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10616 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10620 library_names_spec=
10621 libname_spec='lib$name'
10625 postuninstall_cmds=
10629 shlibpath_overrides_runpath=unknown
10631 dynamic_linker="$host_os ld.so"
10632 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10633 need_lib_prefix=unknown
10634 hardcode_into_libs=no
10636 # when you set need_version to no, make sure it does not cause -set_version
10637 # flags to be left without arguments
10638 need_version=unknown
10642 version_type=linux # correct to gnu/linux during the next big refactor
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10644 shlibpath_var=LIBPATH
10646 # AIX 3 has no versioning support, so we append a major version to the name.
10647 soname_spec='${libname}${release}${shared_ext}$major'
10651 version_type=linux # correct to gnu/linux during the next big refactor
10654 hardcode_into_libs=yes
10655 if test "$host_cpu" = ia64; then
10656 # AIX 5 supports IA64
10657 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10658 shlibpath_var=LD_LIBRARY_PATH
10660 # With GCC up to 2.95.x, collect2 would create an import file
10661 # for dependence libraries. The import file would start with
10662 # the line `#! .'. This would cause the generated library to
10663 # depend on `.', always an invalid library. This was fixed in
10664 # development snapshots of GCC prior to 3.0.
10666 aix4 | aix4.[01] | aix4.[01].*)
10667 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10669 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10672 can_build_shared=no
10676 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10677 # soname into executable. Probably we can add versioning support to
10678 # collect2, so additional links can be useful in future.
10679 if test "$aix_use_runtimelinking" = yes; then
10680 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10681 # instead of lib<name>.a to let people know that these are not
10682 # typical AIX shared libraries.
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685 # We preserve .a as extension for shared libraries through AIX4.2
10686 # and later when we are not doing run time linking.
10687 library_names_spec='${libname}${release}.a $libname.a'
10688 soname_spec='${libname}${release}${shared_ext}$major'
10690 shlibpath_var=LIBPATH
10697 # Since July 2007 AmigaOS4 officially supports .so libraries.
10698 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702 library_names_spec='$libname.ixlibrary $libname.a'
10703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10704 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'
10710 library_names_spec='${libname}${shared_ext}'
10711 dynamic_linker="$host_os ld.so"
10712 shlibpath_var=LIBRARY_PATH
10716 version_type=linux # correct to gnu/linux during the next big refactor
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10723 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10724 # the default ld.so.conf also contains /usr/contrib/lib and
10725 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10726 # libtool to hard-code these into programs
10729 cygwin* | mingw* | pw32* | cegcc*)
10730 version_type=windows
10735 case $GCC,$cc_basename in
10738 library_names_spec='$libname.dll.a'
10739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10740 postinstall_cmds='base_file=`basename \${file}`~
10741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10742 dldir=$destdir/`dirname \$dlpath`~
10743 test -d \$dldir || mkdir -p \$dldir~
10744 $install_prog $dir/$dlname \$dldir/$dlname~
10745 chmod a+x \$dldir/$dlname~
10746 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10747 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10749 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10750 dlpath=$dir/\$dldll~
10752 shlibpath_overrides_runpath=yes
10756 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10757 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10762 # MinGW DLLs use traditional 'lib' prefix
10763 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10766 # pw32 DLLs use 'pw' prefix rather than 'lib'
10767 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10770 dynamic_linker='Win32 ld.exe'
10775 libname_spec='$name'
10776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10777 library_names_spec='${libname}.dll.lib'
10781 sys_lib_search_path_spec=
10784 for lt_path in $LIB
10787 # Let DOS variable expansion print the short 8.3 style file name.
10788 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10789 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10792 # Convert to MSYS style.
10793 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10796 # Convert to unix form, then to dos form, then back to unix form
10797 # but this time dos style (no spaces!) so that the unix form looks
10798 # like /cygdrive/c/PROGRA~1:/cygdr...
10799 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10800 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10801 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10804 sys_lib_search_path_spec="$LIB"
10805 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10806 # It is most probably a Windows format PATH.
10807 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10811 # FIXME: find the short name or the path components, as spaces are
10812 # common. (e.g. "Program Files" -> "PROGRA~1")
10816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10817 postinstall_cmds='base_file=`basename \${file}`~
10818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10819 dldir=$destdir/`dirname \$dlpath`~
10820 test -d \$dldir || mkdir -p \$dldir~
10821 $install_prog $dir/$dlname \$dldir/$dlname'
10822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10823 dlpath=$dir/\$dldll~
10825 shlibpath_overrides_runpath=yes
10826 dynamic_linker='Win32 link.exe'
10830 # Assume MSVC wrapper
10831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10832 dynamic_linker='Win32 ld.exe'
10835 # FIXME: first we should search . and the directory the executable is in
10839 darwin* | rhapsody*)
10840 dynamic_linker="$host_os dyld"
10841 version_type=darwin
10844 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10845 soname_spec='${libname}${release}${major}$shared_ext'
10846 shlibpath_overrides_runpath=yes
10847 shlibpath_var=DYLD_LIBRARY_PATH
10848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10850 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10855 version_type=linux # correct to gnu/linux during the next big refactor
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 shlibpath_var=LD_LIBRARY_PATH
10863 freebsd* | dragonfly*)
10864 # DragonFly does not have aout. When/if they implement a new
10865 # versioning mechanism, adjust this.
10866 if test -x /usr/bin/objformat; then
10867 objformat=`/usr/bin/objformat`
10870 freebsd[23].*) objformat=aout ;;
10871 *) objformat=elf ;;
10874 version_type=freebsd-$objformat
10875 case $version_type in
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10886 shlibpath_var=LD_LIBRARY_PATH
10889 shlibpath_overrides_runpath=yes
10891 freebsd3.[01]* | freebsdelf3.[01]*)
10892 shlibpath_overrides_runpath=yes
10893 hardcode_into_libs=yes
10895 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10896 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10897 shlibpath_overrides_runpath=no
10898 hardcode_into_libs=yes
10900 *) # from 4.6 on, and DragonFly
10901 shlibpath_overrides_runpath=yes
10902 hardcode_into_libs=yes
10908 version_type=linux # correct to gnu/linux during the next big refactor
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 shlibpath_var=LD_LIBRARY_PATH
10914 shlibpath_overrides_runpath=no
10915 hardcode_into_libs=yes
10919 version_type=linux # correct to gnu/linux during the next big refactor
10922 dynamic_linker="$host_os runtime_loader"
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LIBRARY_PATH
10926 shlibpath_overrides_runpath=yes
10927 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10928 hardcode_into_libs=yes
10931 hpux9* | hpux10* | hpux11*)
10932 # Give a soname corresponding to the major version so that dld.sl refuses to
10933 # link against other versions.
10940 hardcode_into_libs=yes
10941 dynamic_linker="$host_os dld.so"
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 if test "X$HPUX_IA64_MODE" = X32; then
10947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955 hardcode_into_libs=yes
10956 dynamic_linker="$host_os dld.sl"
10957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10966 dynamic_linker="$host_os dld.sl"
10967 shlibpath_var=SHLIB_PATH
10968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10973 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10974 postinstall_cmds='chmod 555 $lib'
10975 # or fails outright, so override atomically:
10976 install_override_mode=555
10980 version_type=linux # correct to gnu/linux during the next big refactor
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=no
10988 hardcode_into_libs=yes
10991 irix5* | irix6* | nonstopux*)
10993 nonstopux*) version_type=nonstopux ;;
10995 if test "$lt_cv_prog_gnu_ld" = yes; then
10996 version_type=linux # correct to gnu/linux during the next big refactor
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11006 irix5* | nonstopux*)
11007 libsuff= shlibsuff=
11010 case $LD in # libtool.m4 will add one of these switches to LD
11011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11012 libsuff= shlibsuff= libmagic=32-bit;;
11013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11014 libsuff=32 shlibsuff=N32 libmagic=N32;;
11015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11017 *) libsuff= shlibsuff= libmagic=never-match;;
11021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11022 shlibpath_overrides_runpath=no
11023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11025 hardcode_into_libs=yes
11028 # No shared lib support for Linux oldld, aout, or coff.
11029 linux*oldld* | linux*aout* | linux*coff*)
11033 # This must be glibc/ELF.
11034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11035 version_type=linux # correct to gnu/linux during the next big refactor
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=no
11044 # Some binutils ld are patched to set DT_RUNPATH
11045 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11046 $as_echo_n "(cached) " >&6
11048 lt_cv_shlibpath_overrides_runpath=no
11049 save_LDFLAGS=$LDFLAGS
11050 save_libdir=$libdir
11051 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11052 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11066 lt_cv_shlibpath_overrides_runpath=yes
11069 rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LDFLAGS=$save_LDFLAGS
11072 libdir=$save_libdir
11076 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11078 # This implies no fast_install, which is unacceptable.
11079 # Some rework will be needed to allow for fast_install
11080 # before this can be enabled.
11081 hardcode_into_libs=yes
11083 # Add ABI-specific directories to the system library path.
11084 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11086 # Append ld.so.conf contents to the search path
11087 if test -f /etc/ld.so.conf; then
11088 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' ' '`
11089 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11093 # We used to test for /lib/ld.so.1 and disable shared libraries on
11094 # powerpc, because MkLinux only supported shared libraries with the
11095 # GNU dynamic linker. Since this was broken with cross compilers,
11096 # most powerpc-linux boxes support dynamic linking these days and
11097 # people can always --disable-shared, the test was removed, and we
11098 # assume the GNU/Linux dynamic linker is in use.
11099 dynamic_linker='GNU/Linux ld.so'
11106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11109 dynamic_linker='NetBSD (a.out) ld.so'
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 dynamic_linker='NetBSD ld.elf_so'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 hardcode_into_libs=yes
11121 version_type=linux # correct to gnu/linux during the next big refactor
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=yes
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11136 dynamic_linker='ldqnx.so'
11141 sys_lib_dlsearch_path_spec="/usr/lib"
11143 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11145 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11146 *) need_version=no ;;
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11153 openbsd2.[89] | openbsd2.[89].*)
11154 shlibpath_overrides_runpath=no
11157 shlibpath_overrides_runpath=yes
11161 shlibpath_overrides_runpath=yes
11166 libname_spec='$name'
11169 library_names_spec='$libname${shared_ext} $libname.a'
11170 dynamic_linker='OS/2 ld.exe'
11171 shlibpath_var=LIBPATH
11174 osf3* | osf4* | osf5*)
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11182 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11190 version_type=linux # correct to gnu/linux during the next big refactor
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 hardcode_into_libs=yes
11198 # ldd complains unless libraries are executable
11199 postinstall_cmds='chmod +x $lib'
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11205 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 shlibpath_overrides_runpath=yes
11208 if test "$with_gnu_ld" = yes; then
11215 version_type=linux # correct to gnu/linux during the next big refactor
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 case $host_vendor in
11221 shlibpath_overrides_runpath=no
11223 runpath_var=LD_RUN_PATH
11231 shlibpath_overrides_runpath=no
11232 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11238 if test -d /usr/nec ;then
11239 version_type=linux # correct to gnu/linux during the next big refactor
11240 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11241 soname_spec='$libname${shared_ext}.$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11247 version_type=freebsd-elf
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 shlibpath_overrides_runpath=yes
11254 hardcode_into_libs=yes
11255 if test "$with_gnu_ld" = yes; then
11256 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11258 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11261 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11265 sys_lib_dlsearch_path_spec='/usr/lib'
11269 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11270 version_type=linux # correct to gnu/linux during the next big refactor
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=no
11276 hardcode_into_libs=yes
11280 version_type=linux # correct to gnu/linux during the next big refactor
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 shlibpath_var=LD_LIBRARY_PATH
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11291 $as_echo "$dynamic_linker" >&6; }
11292 test "$dynamic_linker" = no && can_build_shared=no
11294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11295 if test "$GCC" = yes; then
11296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11299 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11300 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11302 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11303 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11398 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11400 if test -n "$hardcode_libdir_flag_spec" ||
11401 test -n "$runpath_var" ||
11402 test "X$hardcode_automatic" = "Xyes" ; then
11404 # We can hardcode non-existent directories.
11405 if test "$hardcode_direct" != no &&
11406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11407 # have to relink, otherwise we might link with an installed library
11408 # when we should be linking with a yet-to-be-installed one
11409 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11410 test "$hardcode_minus_L" != no; then
11411 # Linking always hardcodes the temporary library directory.
11412 hardcode_action=relink
11414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11415 hardcode_action=immediate
11418 # We cannot hardcode anything, or else we can only hardcode existing
11420 hardcode_action=unsupported
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11423 $as_echo "$hardcode_action" >&6; }
11425 if test "$hardcode_action" = relink ||
11426 test "$inherit_rpath" = yes; then
11427 # Fast installation is not supported
11428 enable_fast_install=no
11429 elif test "$shlibpath_overrides_runpath" = yes ||
11430 test "$enable_shared" = no; then
11431 # Fast installation is not necessary
11432 enable_fast_install=needless
11440 if test "x$enable_dlopen" != xyes; then
11441 enable_dlopen=unknown
11442 enable_dlopen_self=unknown
11443 enable_dlopen_self_static=unknown
11450 lt_cv_dlopen="load_add_on"
11452 lt_cv_dlopen_self=yes
11455 mingw* | pw32* | cegcc*)
11456 lt_cv_dlopen="LoadLibrary"
11461 lt_cv_dlopen="dlopen"
11466 # if libdl is installed we need to link against it
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11468 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11469 if ${ac_cv_lib_dl_dlopen+:} false; then :
11470 $as_echo_n "(cached) " >&6
11472 ac_check_lib_save_LIBS=$LIBS
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11492 if ac_fn_c_try_link "$LINENO"; then :
11493 ac_cv_lib_dl_dlopen=yes
11495 ac_cv_lib_dl_dlopen=no
11497 rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11499 LIBS=$ac_check_lib_save_LIBS
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11502 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11503 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11507 lt_cv_dlopen="dyld"
11509 lt_cv_dlopen_self=yes
11516 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11517 if test "x$ac_cv_func_shl_load" = xyes; then :
11518 lt_cv_dlopen="shl_load"
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11521 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11522 if ${ac_cv_lib_dld_shl_load+:} false; then :
11523 $as_echo_n "(cached) " >&6
11525 ac_check_lib_save_LIBS=$LIBS
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11530 /* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
11540 return shl_load ();
11545 if ac_fn_c_try_link "$LINENO"; then :
11546 ac_cv_lib_dld_shl_load=yes
11548 ac_cv_lib_dld_shl_load=no
11550 rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552 LIBS=$ac_check_lib_save_LIBS
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11555 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11556 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11557 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11559 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11560 if test "x$ac_cv_func_dlopen" = xyes; then :
11561 lt_cv_dlopen="dlopen"
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11564 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11565 if ${ac_cv_lib_dl_dlopen+:} false; then :
11566 $as_echo_n "(cached) " >&6
11568 ac_check_lib_save_LIBS=$LIBS
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11573 /* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 ac_cv_lib_dl_dlopen=yes
11591 ac_cv_lib_dl_dlopen=no
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_lib_save_LIBS
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11598 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11599 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11603 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11604 if ${ac_cv_lib_svld_dlopen+:} false; then :
11605 $as_echo_n "(cached) " >&6
11607 ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-lsvld $LIBS"
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h. */
11612 /* Override any GCC internal prototype to avoid an error.
11613 Use char because int might match the return type of a GCC
11614 builtin and then its argument prototype would still apply. */
11627 if ac_fn_c_try_link "$LINENO"; then :
11628 ac_cv_lib_svld_dlopen=yes
11630 ac_cv_lib_svld_dlopen=no
11632 rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11637 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11638 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11642 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11643 if ${ac_cv_lib_dld_dld_link+:} false; then :
11644 $as_echo_n "(cached) " >&6
11646 ac_check_lib_save_LIBS=$LIBS
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11651 /* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11661 return dld_link ();
11666 if ac_fn_c_try_link "$LINENO"; then :
11667 ac_cv_lib_dld_dld_link=yes
11669 ac_cv_lib_dld_dld_link=no
11671 rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673 LIBS=$ac_check_lib_save_LIBS
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11676 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11677 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11678 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11699 if test "x$lt_cv_dlopen" != xno; then
11705 case $lt_cv_dlopen in
11707 save_CPPFLAGS="$CPPFLAGS"
11708 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11710 save_LDFLAGS="$LDFLAGS"
11711 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11714 LIBS="$lt_cv_dlopen_libs $LIBS"
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11717 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11718 if ${lt_cv_dlopen_self+:} false; then :
11719 $as_echo_n "(cached) " >&6
11721 if test "$cross_compiling" = yes; then :
11722 lt_cv_dlopen_self=cross
11724 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11725 lt_status=$lt_dlunknown
11726 cat > conftest.$ac_ext <<_LT_EOF
11727 #line $LINENO "configure"
11728 #include "confdefs.h"
11737 # define LT_DLGLOBAL RTLD_GLOBAL
11740 # define LT_DLGLOBAL DL_GLOBAL
11742 # define LT_DLGLOBAL 0
11746 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11747 find out it does not work in some platform. */
11748 #ifndef LT_DLLAZY_OR_NOW
11750 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11753 # define LT_DLLAZY_OR_NOW DL_LAZY
11756 # define LT_DLLAZY_OR_NOW RTLD_NOW
11759 # define LT_DLLAZY_OR_NOW DL_NOW
11761 # define LT_DLLAZY_OR_NOW 0
11768 /* When -fvisbility=hidden is used, assume the code has been annotated
11769 correspondingly for the symbols needed. */
11770 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11771 int fnord () __attribute__((visibility("default")));
11774 int fnord () { return 42; }
11777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11778 int status = $lt_dlunknown;
11782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11785 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11786 else puts (dlerror ());
11788 /* dlclose (self); */
11796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11797 (eval $ac_link) 2>&5
11799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11801 (./conftest; exit; ) >&5 2>/dev/null
11803 case x$lt_status in
11804 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11805 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11806 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11809 # compilation failed
11810 lt_cv_dlopen_self=no
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11818 $as_echo "$lt_cv_dlopen_self" >&6; }
11820 if test "x$lt_cv_dlopen_self" = xyes; then
11821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11823 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11824 if ${lt_cv_dlopen_self_static+:} false; then :
11825 $as_echo_n "(cached) " >&6
11827 if test "$cross_compiling" = yes; then :
11828 lt_cv_dlopen_self_static=cross
11830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11831 lt_status=$lt_dlunknown
11832 cat > conftest.$ac_ext <<_LT_EOF
11833 #line $LINENO "configure"
11834 #include "confdefs.h"
11843 # define LT_DLGLOBAL RTLD_GLOBAL
11846 # define LT_DLGLOBAL DL_GLOBAL
11848 # define LT_DLGLOBAL 0
11852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11853 find out it does not work in some platform. */
11854 #ifndef LT_DLLAZY_OR_NOW
11856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11859 # define LT_DLLAZY_OR_NOW DL_LAZY
11862 # define LT_DLLAZY_OR_NOW RTLD_NOW
11865 # define LT_DLLAZY_OR_NOW DL_NOW
11867 # define LT_DLLAZY_OR_NOW 0
11874 /* When -fvisbility=hidden is used, assume the code has been annotated
11875 correspondingly for the symbols needed. */
11876 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11877 int fnord () __attribute__((visibility("default")));
11880 int fnord () { return 42; }
11883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11884 int status = $lt_dlunknown;
11888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11892 else puts (dlerror ());
11894 /* dlclose (self); */
11902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11903 (eval $ac_link) 2>&5
11905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11906 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11907 (./conftest; exit; ) >&5 2>/dev/null
11909 case x$lt_status in
11910 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11911 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11912 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11915 # compilation failed
11916 lt_cv_dlopen_self_static=no
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11924 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11927 CPPFLAGS="$save_CPPFLAGS"
11928 LDFLAGS="$save_LDFLAGS"
11933 case $lt_cv_dlopen_self in
11934 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11935 *) enable_dlopen_self=unknown ;;
11938 case $lt_cv_dlopen_self_static in
11939 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11940 *) enable_dlopen_self_static=unknown ;;
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11963 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11964 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11965 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11966 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11968 $as_echo "yes" >&6; }
11970 # FIXME - insert some real tests, host_os isn't really good enough
11973 if test -n "$STRIP" ; then
11974 striplib="$STRIP -x"
11975 old_striplib="$STRIP -S"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11977 $as_echo "yes" >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
12001 # Report which library types will actually be built
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12003 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12005 $as_echo "$can_build_shared" >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12008 $as_echo_n "checking whether to build shared libraries... " >&6; }
12009 test "$can_build_shared" = "no" && enable_shared=no
12011 # On AIX, shared libraries and static libraries use the same namespace, and
12012 # are all built from PIC.
12015 test "$enable_shared" = yes && enable_static=no
12016 if test -n "$RANLIB"; then
12017 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12018 postinstall_cmds='$RANLIB $lib'
12023 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12024 test "$enable_shared" = yes && enable_static=no
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12029 $as_echo "$enable_shared" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12032 $as_echo_n "checking whether to build static libraries... " >&6; }
12033 # Make sure either enable_shared or enable_static is yes.
12034 test "$enable_shared" = yes || enable_static=yes
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12036 $as_echo "$enable_static" >&6; }
12043 ac_cpp='$CPP $CPPFLAGS'
12044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12064 ac_config_commands="$ac_config_commands libtool"
12069 # Only expand once:
12074 # Test for 64-bit build.
12075 # The cast to long int works around a bug in the HP C Compiler
12076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12078 # This bug is HP SR number 8606223364.
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12080 $as_echo_n "checking size of size_t... " >&6; }
12081 if ${ac_cv_sizeof_size_t+:} false; then :
12082 $as_echo_n "(cached) " >&6
12084 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
12087 if test "$ac_cv_type_size_t" = yes; then
12088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12090 as_fn_error 77 "cannot compute sizeof (size_t)
12091 See \`config.log' for more details" "$LINENO" 5; }
12093 ac_cv_sizeof_size_t=0
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12099 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12103 cat >>confdefs.h <<_ACEOF
12104 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12110 $as_echo_n "checking for C compiler vendor... " >&6; }
12111 if ${ax_cv_c_compiler_vendor+:} false; then :
12112 $as_echo_n "(cached) " >&6
12114 # note: don't check for gcc first since some other compilers define __GNUC__
12115 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
12116 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
12117 pathscale: __PATHCC__,__PATHSCALE__
12120 sun: __SUNPRO_C,__SUNPRO_CC
12121 hp: __HP_cc,__HP_aCC
12122 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12123 borland: __BORLANDC__,__TURBOC__
12129 microsoft: _MSC_VER
12130 metrowerks: __MWERKS__
12131 watcom: __WATCOMC__
12134 for ventest in $vendors; do
12136 *:) vendor=$ventest; continue ;;
12137 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12154 if ac_fn_c_try_compile "$LINENO"; then :
12157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12163 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12170 # Check whether --enable-portable-binary was given.
12171 if test "${enable_portable_binary+set}" = set; then :
12172 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12174 acx_maxopt_portable=no
12178 # Try to determine "good" native compiler flags if none specified via CFLAGS
12179 if test "$ac_test_CFLAGS" != "set"; then
12181 case $ax_cv_c_compiler_vendor in
12182 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12183 if test "x$acx_maxopt_portable" = xno; then
12184 CFLAGS="$CFLAGS -arch host"
12187 sun) CFLAGS="-native -fast -xO5 -dalign"
12188 if test "x$acx_maxopt_portable" = xyes; then
12189 CFLAGS="$CFLAGS -xarch=generic"
12192 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
12193 if test "x$acx_maxopt_portable" = xyes; then
12194 CFLAGS="$CFLAGS +DAportable"
12197 ibm) if test "x$acx_maxopt_portable" = xno; then
12198 xlc_opt="-qarch=auto -qtune=auto"
12200 xlc_opt="-qtune=auto"
12202 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12204 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12205 if eval \${$as_CACHEVAR+:} false; then :
12206 $as_echo_n "(cached) " >&6
12209 ax_check_save_flags=$CFLAGS
12210 CFLAGS="$CFLAGS $xlc_opt"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12222 if ac_fn_c_try_compile "$LINENO"; then :
12223 eval "$as_CACHEVAR=yes"
12225 eval "$as_CACHEVAR=no"
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 CFLAGS=$ax_check_save_flags
12230 eval ac_res=\$$as_CACHEVAR
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12232 $as_echo "$ac_res" >&6; }
12233 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12234 CFLAGS="-O3 -qansialias -w $xlc_opt"
12236 CFLAGS="-O3 -qansialias -w"
12237 echo "******************************************************"
12238 echo "* You seem to have the IBM C compiler. It is *"
12239 echo "* recommended for best performance that you use: *"
12241 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12243 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
12244 echo "* CPU you have. (Set the CFLAGS environment var. *"
12245 echo "* and re-run configure.) For more info, man cc. *"
12246 echo "******************************************************"
12251 intel) CFLAGS="-O3 -ansi_alias"
12252 if test "x$acx_maxopt_portable" = xno; then
12253 icc_archflag=unknown
12257 # icc accepts gcc assembly syntax, so these should work:
12260 ac_cpp='$CPP $CPPFLAGS'
12261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12266 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12267 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12268 $as_echo_n "(cached) " >&6
12270 if test "$cross_compiling" = yes; then :
12271 ax_cv_gcc_x86_cpuid_0=unknown
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12280 int op = 0, eax, ebx, ecx, edx;
12283 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12285 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12286 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12294 if ac_fn_c_try_run "$LINENO"; then :
12295 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12297 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12300 conftest.$ac_objext conftest.beam conftest.$ac_ext
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12305 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12307 ac_cpp='$CPP $CPPFLAGS'
12308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12315 ac_cpp='$CPP $CPPFLAGS'
12316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12321 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12322 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12323 $as_echo_n "(cached) " >&6
12325 if test "$cross_compiling" = yes; then :
12326 ax_cv_gcc_x86_cpuid_1=unknown
12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12335 int op = 1, eax, ebx, ecx, edx;
12338 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12340 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12341 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12349 if ac_fn_c_try_run "$LINENO"; then :
12350 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12352 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12355 conftest.$ac_objext conftest.beam conftest.$ac_ext
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12360 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12362 ac_cpp='$CPP $CPPFLAGS'
12363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12368 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12369 *:756e6547:*:*) # Intel
12370 case $ax_cv_gcc_x86_cpuid_1 in
12371 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12372 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12373 *f??:*:*:*) icc_flags="-xN -xW -xK";;
12377 if test "x$icc_flags" != x; then
12378 for flag in $icc_flags; do
12379 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12381 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12382 if eval \${$as_CACHEVAR+:} false; then :
12383 $as_echo_n "(cached) " >&6
12386 ax_check_save_flags=$CFLAGS
12387 CFLAGS="$CFLAGS $flag"
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12399 if ac_fn_c_try_compile "$LINENO"; then :
12400 eval "$as_CACHEVAR=yes"
12402 eval "$as_CACHEVAR=no"
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 CFLAGS=$ax_check_save_flags
12407 eval ac_res=\$$as_CACHEVAR
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12409 $as_echo "$ac_res" >&6; }
12410 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12411 icc_archflag=$flag; break
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12419 $as_echo_n "checking for icc architecture flag... " >&6; }
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12421 $as_echo "$icc_archflag" >&6; }
12422 if test "x$icc_archflag" != xunknown; then
12423 CFLAGS="$CFLAGS $icc_archflag"
12429 # default optimization flags for gcc on all systems
12430 CFLAGS="-O3 -fomit-frame-pointer"
12432 # -malign-double for x86 systems
12433 # LIBFFI -- DON'T DO THIS - CHANGES ABI
12434 # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12436 # -fstrict-aliasing for gcc-2.95+
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12438 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12439 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12440 $as_echo_n "(cached) " >&6
12443 ax_check_save_flags=$CFLAGS
12444 CFLAGS="$CFLAGS -fstrict-aliasing"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12456 if ac_fn_c_try_compile "$LINENO"; then :
12457 ax_cv_check_cflags___fstrict_aliasing=yes
12459 ax_cv_check_cflags___fstrict_aliasing=no
12461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12462 CFLAGS=$ax_check_save_flags
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12465 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12466 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12467 CFLAGS="$CFLAGS -fstrict-aliasing"
12473 # note that we enable "unsafe" fp optimization with other compilers, too
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12475 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12476 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12477 $as_echo_n "(cached) " >&6
12480 ax_check_save_flags=$CFLAGS
12481 CFLAGS="$CFLAGS -ffast-math"
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12493 if ac_fn_c_try_compile "$LINENO"; then :
12494 ax_cv_check_cflags___ffast_math=yes
12496 ax_cv_check_cflags___ffast_math=no
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12499 CFLAGS=$ax_check_save_flags
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12502 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12503 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12504 CFLAGS="$CFLAGS -ffast-math"
12514 # Check whether --with-gcc-arch was given.
12515 if test "${with_gcc_arch+set}" = set; then :
12516 withval=$with_gcc_arch; ax_gcc_arch=$withval
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12523 $as_echo_n "checking for gcc architecture flag... " >&6; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12526 if ${ax_cv_gcc_archflag+:} false; then :
12527 $as_echo_n "(cached) " >&6
12530 ax_cv_gcc_archflag="unknown"
12532 if test "$GCC" = yes; then
12534 if test "x$ax_gcc_arch" = xyes; then
12536 if test "$cross_compiling" = no; then
12538 i[3456]86*|x86_64*) # use cpuid codes
12541 ac_cpp='$CPP $CPPFLAGS'
12542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12547 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12548 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12549 $as_echo_n "(cached) " >&6
12551 if test "$cross_compiling" = yes; then :
12552 ax_cv_gcc_x86_cpuid_0=unknown
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12561 int op = 0, eax, ebx, ecx, edx;
12564 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12566 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12567 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12575 if ac_fn_c_try_run "$LINENO"; then :
12576 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12578 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12581 conftest.$ac_objext conftest.beam conftest.$ac_ext
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12586 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12588 ac_cpp='$CPP $CPPFLAGS'
12589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12596 ac_cpp='$CPP $CPPFLAGS'
12597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12602 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12603 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12604 $as_echo_n "(cached) " >&6
12606 if test "$cross_compiling" = yes; then :
12607 ax_cv_gcc_x86_cpuid_1=unknown
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12616 int op = 1, eax, ebx, ecx, edx;
12619 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12621 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12622 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12630 if ac_fn_c_try_run "$LINENO"; then :
12631 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12633 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12636 conftest.$ac_objext conftest.beam conftest.$ac_ext
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12641 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12643 ac_cpp='$CPP $CPPFLAGS'
12644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12649 case $ax_cv_gcc_x86_cpuid_0 in
12650 *:756e6547:*:*) # Intel
12651 case $ax_cv_gcc_x86_cpuid_1 in
12652 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12653 *5??:*:*:*) ax_gcc_arch=pentium ;;
12654 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12655 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12656 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12657 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12658 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12659 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12660 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12661 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12662 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12663 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12664 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12665 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12666 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12668 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12669 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12671 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12673 *:68747541:*:*) # AMD
12674 case $ax_cv_gcc_x86_cpuid_1 in
12675 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12676 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12677 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12678 *60?:*:*:*) ax_gcc_arch=k7 ;;
12679 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12680 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12681 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12685 ac_cpp='$CPP $CPPFLAGS'
12686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12691 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12692 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12693 $as_echo_n "(cached) " >&6
12695 if test "$cross_compiling" = yes; then :
12696 ax_cv_gcc_x86_cpuid_0x80000006=unknown
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12705 int op = 0x80000006, eax, ebx, ecx, edx;
12708 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12710 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12711 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12719 if ac_fn_c_try_run "$LINENO"; then :
12720 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12722 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12725 conftest.$ac_objext conftest.beam conftest.$ac_ext
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12730 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12732 ac_cpp='$CPP $CPPFLAGS'
12733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12738 case $ax_cv_gcc_x86_cpuid_0x80000006 in
12739 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12740 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12741 *) ax_gcc_arch="athlon-4 athlon k7" ;;
12743 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12744 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12745 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12746 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12747 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12748 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12749 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12751 *:746e6543:*:*) # IDT
12752 case $ax_cv_gcc_x86_cpuid_1 in
12753 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12754 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12755 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12756 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12759 if test x"$ax_gcc_arch" = x; then # fallback
12761 i586*) ax_gcc_arch=pentium ;;
12762 i686*) ax_gcc_arch=pentiumpro ;;
12768 # Extract the first word of "prtdiag", so it can be a program name with args.
12769 set dummy prtdiag; ac_word=$2
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771 $as_echo_n "checking for $ac_word... " >&6; }
12772 if ${ac_cv_path_PRTDIAG+:} false; then :
12773 $as_echo_n "(cached) " >&6
12777 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12782 for as_dir in $as_dummy
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12788 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12800 PRTDIAG=$ac_cv_path_PRTDIAG
12801 if test -n "$PRTDIAG"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12803 $as_echo "$PRTDIAG" >&6; }
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806 $as_echo "no" >&6; }
12810 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`
12811 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12813 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12814 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12815 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12816 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12817 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12818 *cypress*) ax_gcc_arch=cypress ;;
12821 alphaev5) ax_gcc_arch=ev5 ;;
12822 alphaev56) ax_gcc_arch=ev56 ;;
12823 alphapca56) ax_gcc_arch="pca56 ev56" ;;
12824 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12825 alphaev6) ax_gcc_arch=ev6 ;;
12826 alphaev67) ax_gcc_arch=ev67 ;;
12827 alphaev68) ax_gcc_arch="ev68 ev67" ;;
12828 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12829 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12830 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12833 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`
12834 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12836 *750*) ax_gcc_arch="750 G3" ;;
12837 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12838 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12839 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12840 *970*) ax_gcc_arch="970 G5 power4";;
12841 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12842 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12843 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12844 *) ax_gcc_arch=$cputype ;;
12846 ax_gcc_arch="$ax_gcc_arch powerpc"
12849 fi # not cross-compiling
12852 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12853 for arch in $ax_gcc_arch; do
12854 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12855 flags="-mtune=$arch"
12856 # -mcpu=$arch and m$arch generate nonportable code on every arch except
12857 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
12858 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12860 flags="-march=$arch -mcpu=$arch -m$arch"
12862 for flag in $flags; do
12863 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12865 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12866 if eval \${$as_CACHEVAR+:} false; then :
12867 $as_echo_n "(cached) " >&6
12870 ax_check_save_flags=$CFLAGS
12871 CFLAGS="$CFLAGS $flag"
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12883 if ac_fn_c_try_compile "$LINENO"; then :
12884 eval "$as_CACHEVAR=yes"
12886 eval "$as_CACHEVAR=no"
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889 CFLAGS=$ax_check_save_flags
12891 eval ac_res=\$$as_CACHEVAR
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12893 $as_echo "$ac_res" >&6; }
12894 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12895 ax_cv_gcc_archflag=$flag; break
12901 test "x$ax_cv_gcc_archflag" = xunknown || break
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12910 $as_echo_n "checking for gcc architecture flag... " >&6; }
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12912 $as_echo "$ax_cv_gcc_archflag" >&6; }
12913 if test "x$ax_cv_gcc_archflag" = xunknown; then
12916 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12922 if test -z "$CFLAGS"; then
12924 echo "********************************************************"
12925 echo "* WARNING: Don't know the best CFLAGS for this system *"
12926 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12927 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
12928 echo "********************************************************"
12933 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12935 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12936 if eval \${$as_CACHEVAR+:} false; then :
12937 $as_echo_n "(cached) " >&6
12940 ax_check_save_flags=$CFLAGS
12941 CFLAGS="$CFLAGS $CFLAGS"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h. */
12953 if ac_fn_c_try_compile "$LINENO"; then :
12954 eval "$as_CACHEVAR=yes"
12956 eval "$as_CACHEVAR=no"
12958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959 CFLAGS=$ax_check_save_flags
12961 eval ac_res=\$$as_CACHEVAR
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12963 $as_echo "$ac_res" >&6; }
12964 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12969 echo "********************************************************"
12970 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
12971 echo "* your compiler. *"
12972 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12973 echo "********************************************************"
12982 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
12984 if test "$ax_cv_c_compiler_vendor" != "sun"; then
12985 if ${CFLAGS+:} false; then :
12986 case " $CFLAGS " in
12988 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12989 (: CFLAGS already contains ) 2>&5
12991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12992 test $ac_status = 0; }
12995 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12996 (: CFLAGS="$CFLAGS ") 2>&5
12998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12999 test $ac_status = 0; }
13008 ac_cpp='$CPP $CPPFLAGS'
13009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13014 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13015 if ${ac_cv_cflags_warn_all+:} false; then :
13016 $as_echo_n "(cached) " >&6
13018 ac_cv_cflags_warn_all="no, unknown"
13019 ac_save_CFLAGS="$CFLAGS"
13020 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" #
13021 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13033 if ac_fn_c_try_compile "$LINENO"; then :
13034 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 CFLAGS="$ac_save_CFLAGS"
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13042 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13044 case ".$ac_cv_cflags_warn_all" in
13047 *) if ${CFLAGS+:} false; then :
13048 case " $CFLAGS " in
13049 *" $ac_cv_cflags_warn_all "*)
13050 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13051 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13054 test $ac_status = 0; }
13057 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13058 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13061 test $ac_status = 0; }
13062 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13066 CFLAGS="$ac_cv_cflags_warn_all"
13072 ac_cpp='$CPP $CPPFLAGS'
13073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13080 if test "x$GCC" = "xyes"; then
13081 CFLAGS="$CFLAGS -fexceptions"
13084 cat > local.exp <<EOF
13085 set CC_FOR_TARGET "$CC"
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13091 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13092 # Check whether --enable-maintainer-mode was given.
13093 if test "${enable_maintainer_mode+set}" = set; then :
13094 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13096 USE_MAINTAINER_MODE=no
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13100 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13101 if test $USE_MAINTAINER_MODE = yes; then
13102 MAINTAINER_MODE_TRUE=
13103 MAINTAINER_MODE_FALSE='#'
13105 MAINTAINER_MODE_TRUE='#'
13106 MAINTAINER_MODE_FALSE=
13109 MAINT=$MAINTAINER_MODE_TRUE
13113 for ac_header in sys/mman.h
13115 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13116 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13117 cat >>confdefs.h <<_ACEOF
13118 #define HAVE_SYS_MMAN_H 1
13125 for ac_func in mmap
13127 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13128 if test "x$ac_cv_func_mmap" = xyes; then :
13129 cat >>confdefs.h <<_ACEOF
13130 #define HAVE_MMAP 1
13137 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13138 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13139 libffi_header_sys_mman_h=yes
13141 libffi_header_sys_mman_h=no
13145 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13146 if test "x$ac_cv_func_mmap" = xyes; then :
13147 libffi_func_mmap=yes
13149 libffi_func_mmap=no
13152 if test "$libffi_header_sys_mman_h" != yes \
13153 || test "$libffi_func_mmap" != yes; then
13154 ac_cv_func_mmap_file=no
13155 ac_cv_func_mmap_dev_zero=no
13156 ac_cv_func_mmap_anon=no
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13159 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13160 if ${ac_cv_func_mmap_file+:} false; then :
13161 $as_echo_n "(cached) " >&6
13163 # Add a system to this blacklist if
13164 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13165 # memory area containing the same data that you'd get if you applied
13166 # read() to the same fd. The only system known to have a problem here
13167 # is VMS, where text files have record structure.
13170 ac_cv_func_mmap_file=no ;;
13172 ac_cv_func_mmap_file=yes;;
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13176 $as_echo "$ac_cv_func_mmap_file" >&6; }
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13178 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13179 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13180 $as_echo_n "(cached) " >&6
13182 # Add a system to this blacklist if it has mmap() but /dev/zero
13183 # does not exist, or if mmapping /dev/zero does not give anonymous
13184 # zeroed pages with both the following properties:
13185 # 1. If you map N consecutive pages in with one call, and then
13186 # unmap any subset of those pages, the pages that were not
13187 # explicitly unmapped remain accessible.
13188 # 2. If you map two adjacent blocks of memory and then unmap them
13189 # both at once, they must both go away.
13190 # Systems known to be in this category are Windows (all variants),
13193 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13194 ac_cv_func_mmap_dev_zero=no ;;
13196 ac_cv_func_mmap_dev_zero=yes;;
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13200 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13202 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13204 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13205 if ${ac_cv_decl_map_anon+:} false; then :
13206 $as_echo_n "(cached) " >&6
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 #include <sys/types.h>
13211 #include <sys/mman.h>
13212 #include <unistd.h>
13214 #ifndef MAP_ANONYMOUS
13215 #define MAP_ANONYMOUS MAP_ANON
13221 int n = MAP_ANONYMOUS;
13226 if ac_fn_c_try_compile "$LINENO"; then :
13227 ac_cv_decl_map_anon=yes
13229 ac_cv_decl_map_anon=no
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13234 $as_echo "$ac_cv_decl_map_anon" >&6; }
13236 if test $ac_cv_decl_map_anon = no; then
13237 ac_cv_func_mmap_anon=no
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13240 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13241 if ${ac_cv_func_mmap_anon+:} false; then :
13242 $as_echo_n "(cached) " >&6
13244 # Add a system to this blacklist if it has mmap() and MAP_ANON or
13245 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13246 # doesn't give anonymous zeroed pages with the same properties listed
13247 # above for use of /dev/zero.
13248 # Systems known to be in this category are Windows, VMS, and SCO Unix.
13250 vms* | cygwin* | pe | mingw* | sco* | udk* )
13251 ac_cv_func_mmap_anon=no ;;
13253 ac_cv_func_mmap_anon=yes;;
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13257 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13261 if test $ac_cv_func_mmap_file = yes; then
13263 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13266 if test $ac_cv_func_mmap_dev_zero = yes; then
13268 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13271 if test $ac_cv_func_mmap_anon = yes; then
13273 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13278 if test -d $srcdir/testsuite; then
13280 TESTSUBDIR_FALSE='#'
13282 TESTSUBDIR_TRUE='#'
13287 TARGETDIR="unknown"
13290 TARGET=AARCH64; TARGETDIR=aarch64
13294 TARGET=ALPHA; TARGETDIR=alpha;
13295 # Support 128-bit long double, changeable via command-line switch.
13296 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13300 TARGET=ARM; TARGETDIR=arm
13303 amd64-*-freebsd* | amd64-*-openbsd*)
13304 TARGET=X86_64; TARGETDIR=x86
13308 TARGET=X86_64; TARGETDIR=x86
13312 TARGET=X86_64; TARGETDIR=x86
13316 TARGET=AVR32; TARGETDIR=avr32
13320 TARGET=BFIN; TARGETDIR=bfin
13324 TARGET=LIBFFI_CRIS; TARGETDIR=cris
13328 TARGET=FRV; TARGETDIR=frv
13331 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13332 TARGET=PA_LINUX; TARGETDIR=pa
13335 TARGET=PA64_HPUX; TARGETDIR=pa
13338 TARGET=PA_HPUX; TARGETDIR=pa
13341 i?86-*-freebsd* | i?86-*-openbsd*)
13342 TARGET=X86_FREEBSD; TARGETDIR=x86
13344 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13345 TARGET=X86_WIN32; TARGETDIR=x86
13346 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13347 # We must also check with_cross_host to decide if this is a native
13348 # or cross-build and select where to install dlls appropriately.
13349 if test -n "$with_cross_host" &&
13350 test x"$with_cross_host" != x"no"; then
13351 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13353 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13357 TARGET=X86_DARWIN; TARGETDIR=x86
13359 i?86-*-solaris2.1[0-9]*)
13361 if test $ac_cv_sizeof_size_t = 4; then
13368 i?86-*-* | x86_64-*-*)
13370 if test $ac_cv_sizeof_size_t = 4; then
13378 TARGET=IA64; TARGETDIR=ia64
13382 TARGET=M32R; TARGETDIR=m32r
13386 TARGET=M68K; TARGETDIR=m68k
13390 TARGET=MICROBLAZE; TARGETDIR=microblaze
13393 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13394 TARGET=MIPS; TARGETDIR=mips
13396 mips*-*-linux* | mips*-*-openbsd*)
13397 # Support 128-bit long double for NewABI.
13398 HAVE_LONG_DOUBLE='defined(__mips64)'
13399 TARGET=MIPS; TARGETDIR=mips
13402 powerpc*-*-linux* | powerpc-*-sysv*)
13403 TARGET=POWERPC; TARGETDIR=powerpc
13405 powerpc-*-amigaos*)
13406 TARGET=POWERPC; TARGETDIR=powerpc
13409 TARGET=POWERPC; TARGETDIR=powerpc
13411 powerpc-*-darwin* | powerpc64-*-darwin*)
13412 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13414 powerpc-*-aix* | rs6000-*-aix*)
13415 TARGET=POWERPC_AIX; TARGETDIR=powerpc
13417 powerpc-*-freebsd* | powerpc-*-openbsd*)
13418 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13420 powerpc64-*-freebsd*)
13421 TARGET=POWERPC; TARGETDIR=powerpc
13424 TARGET=POWERPC; TARGETDIR=powerpc
13427 s390-*-* | s390x-*-*)
13428 TARGET=S390; TARGETDIR=s390
13431 sh-*-* | sh[34]*-*-*)
13432 TARGET=SH; TARGETDIR=sh
13434 sh64-*-* | sh5*-*-*)
13435 TARGET=SH64; TARGETDIR=sh64
13439 TARGET=SPARC; TARGETDIR=sparc
13443 TARGET=TILE; TARGETDIR=tile
13447 TARGET=X86_DARWIN; TARGETDIR=x86
13450 x86_64-*-cygwin* | x86_64-*-mingw*)
13451 TARGET=X86_WIN64; TARGETDIR=x86
13452 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13453 # We must also check with_cross_host to decide if this is a native
13454 # or cross-build and select where to install dlls appropriately.
13455 if test -n "$with_cross_host" &&
13456 test x"$with_cross_host" != x"no"; then
13457 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13459 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13464 TARGET=XTENSA; TARGETDIR=xtensa
13472 if test $TARGETDIR = unknown; then
13473 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13476 if test x$TARGET = xMIPS; then
13484 if test x$TARGET = xBFIN; then
13492 if test x$TARGET = xSPARC; then
13500 if test x$TARGET = xX86; then
13508 if test x$TARGET = xX86_FREEBSD; then
13510 X86_FREEBSD_FALSE='#'
13512 X86_FREEBSD_TRUE='#'
13516 if test x$TARGET = xX86_WIN32; then
13518 X86_WIN32_FALSE='#'
13524 if test x$TARGET = xX86_WIN64; then
13526 X86_WIN64_FALSE='#'
13532 if test x$TARGET = xX86_DARWIN; then
13534 X86_DARWIN_FALSE='#'
13536 X86_DARWIN_TRUE='#'
13540 if test x$TARGET = xALPHA; then
13548 if test x$TARGET = xIA64; then
13556 if test x$TARGET = xM32R; then
13564 if test x$TARGET = xM68K; then
13572 if test x$TARGET = xMICROBLAZE; then
13574 MICROBLAZE_FALSE='#'
13576 MICROBLAZE_TRUE='#'
13580 if test x$TARGET = xMOXIE; then
13588 if test x$TARGET = xPOWERPC; then
13596 if test x$TARGET = xPOWERPC_AIX; then
13598 POWERPC_AIX_FALSE='#'
13600 POWERPC_AIX_TRUE='#'
13604 if test x$TARGET = xPOWERPC_DARWIN; then
13605 POWERPC_DARWIN_TRUE=
13606 POWERPC_DARWIN_FALSE='#'
13608 POWERPC_DARWIN_TRUE='#'
13609 POWERPC_DARWIN_FALSE=
13612 if test x$TARGET = xPOWERPC_FREEBSD; then
13613 POWERPC_FREEBSD_TRUE=
13614 POWERPC_FREEBSD_FALSE='#'
13616 POWERPC_FREEBSD_TRUE='#'
13617 POWERPC_FREEBSD_FALSE=
13620 if test x$TARGET = xAARCH64; then
13628 if test x$TARGET = xARM; then
13636 if test x$TARGET = xAVR32; then
13644 if test x$TARGET = xLIBFFI_CRIS; then
13646 LIBFFI_CRIS_FALSE='#'
13648 LIBFFI_CRIS_TRUE='#'
13652 if test x$TARGET = xFRV; then
13660 if test x$TARGET = xS390; then
13668 if test x$TARGET = xX86_64; then
13676 if test x$TARGET = xSH; then
13684 if test x$TARGET = xSH64; then
13692 if test x$TARGET = xPA_LINUX; then
13700 if test x$TARGET = xPA_HPUX; then
13708 if test x$TARGET = xPA64_HPUX; then
13710 PA64_HPUX_FALSE='#'
13716 if test x$TARGET = xTILE; then
13724 if test x$TARGET = xXTENSA; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13734 $as_echo_n "checking for ANSI C header files... " >&6; }
13735 if ${ac_cv_header_stdc+:} false; then :
13736 $as_echo_n "(cached) " >&6
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13740 #include <stdlib.h>
13741 #include <stdarg.h>
13742 #include <string.h>
13753 if ac_fn_c_try_compile "$LINENO"; then :
13754 ac_cv_header_stdc=yes
13756 ac_cv_header_stdc=no
13758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760 if test $ac_cv_header_stdc = yes; then
13761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 #include <string.h>
13767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13768 $EGREP "memchr" >/dev/null 2>&1; then :
13771 ac_cv_header_stdc=no
13777 if test $ac_cv_header_stdc = yes; then
13778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781 #include <stdlib.h>
13784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13785 $EGREP "free" >/dev/null 2>&1; then :
13788 ac_cv_header_stdc=no
13794 if test $ac_cv_header_stdc = yes; then
13795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13796 if test "$cross_compiling" = yes; then :
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13802 #include <stdlib.h>
13803 #if ((' ' & 0x0FF) == 0x020)
13804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13807 # define ISLOWER(c) \
13808 (('a' <= (c) && (c) <= 'i') \
13809 || ('j' <= (c) && (c) <= 'r') \
13810 || ('s' <= (c) && (c) <= 'z'))
13811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13819 for (i = 0; i < 256; i++)
13820 if (XOR (islower (i), ISLOWER (i))
13821 || toupper (i) != TOUPPER (i))
13826 if ac_fn_c_try_run "$LINENO"; then :
13829 ac_cv_header_stdc=no
13831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13832 conftest.$ac_objext conftest.beam conftest.$ac_ext
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13838 $as_echo "$ac_cv_header_stdc" >&6; }
13839 if test $ac_cv_header_stdc = yes; then
13841 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13845 for ac_func in memcpy
13847 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13848 if test "x$ac_cv_func_memcpy" = xyes; then :
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_MEMCPY 1
13856 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13857 if test "x$ac_cv_type_size_t" = xyes; then :
13861 cat >>confdefs.h <<_ACEOF
13862 #define size_t unsigned int
13867 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13868 # for constant arguments. Useless!
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13870 $as_echo_n "checking for working alloca.h... " >&6; }
13871 if ${ac_cv_working_alloca_h+:} false; then :
13872 $as_echo_n "(cached) " >&6
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876 #include <alloca.h>
13880 char *p = (char *) alloca (2 * sizeof (int));
13886 if ac_fn_c_try_link "$LINENO"; then :
13887 ac_cv_working_alloca_h=yes
13889 ac_cv_working_alloca_h=no
13891 rm -f core conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13895 $as_echo "$ac_cv_working_alloca_h" >&6; }
13896 if test $ac_cv_working_alloca_h = yes; then
13898 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13903 $as_echo_n "checking for alloca... " >&6; }
13904 if ${ac_cv_func_alloca_works+:} false; then :
13905 $as_echo_n "(cached) " >&6
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13910 # define alloca __builtin_alloca
13913 # include <malloc.h>
13914 # define alloca _alloca
13916 # ifdef HAVE_ALLOCA_H
13917 # include <alloca.h>
13922 # ifndef alloca /* predefined by HP cc +Olibcalls */
13923 void *alloca (size_t);
13933 char *p = (char *) alloca (1);
13939 if ac_fn_c_try_link "$LINENO"; then :
13940 ac_cv_func_alloca_works=yes
13942 ac_cv_func_alloca_works=no
13944 rm -f core conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13948 $as_echo "$ac_cv_func_alloca_works" >&6; }
13950 if test $ac_cv_func_alloca_works = yes; then
13952 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13955 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13956 # that cause trouble. Some versions do not even contain alloca or
13957 # contain a buggy version. If you still want to use their alloca,
13958 # use ar to extract alloca.o from them instead of compiling alloca.c.
13960 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13962 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13966 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13967 if ${ac_cv_os_cray+:} false; then :
13968 $as_echo_n "(cached) " >&6
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 #if defined CRAY && ! defined CRAY2
13979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13980 $EGREP "webecray" >/dev/null 2>&1; then :
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13989 $as_echo "$ac_cv_os_cray" >&6; }
13990 if test $ac_cv_os_cray = yes; then
13991 for ac_func in _getb67 GETB67 getb67; do
13992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13994 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13996 cat >>confdefs.h <<_ACEOF
13997 #define CRAY_STACKSEG_END $ac_func
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14007 $as_echo_n "checking stack direction for C alloca... " >&6; }
14008 if ${ac_cv_c_stack_direction+:} false; then :
14009 $as_echo_n "(cached) " >&6
14011 if test "$cross_compiling" = yes; then :
14012 ac_cv_c_stack_direction=0
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14016 $ac_includes_default
14018 find_stack_direction (int *addr, int depth)
14020 int dir, dummy = 0;
14023 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14024 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14025 return dir + dummy;
14029 main (int argc, char **argv)
14031 return find_stack_direction (0, argc + !argv + 20) < 0;
14034 if ac_fn_c_try_run "$LINENO"; then :
14035 ac_cv_c_stack_direction=1
14037 ac_cv_c_stack_direction=-1
14039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14040 conftest.$ac_objext conftest.beam conftest.$ac_ext
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14045 $as_echo "$ac_cv_c_stack_direction" >&6; }
14046 cat >>confdefs.h <<_ACEOF
14047 #define STACK_DIRECTION $ac_cv_c_stack_direction
14054 # The cast to long int works around a bug in the HP C Compiler
14055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14057 # This bug is HP SR number 8606223364.
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14059 $as_echo_n "checking size of double... " >&6; }
14060 if ${ac_cv_sizeof_double+:} false; then :
14061 $as_echo_n "(cached) " >&6
14063 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
14066 if test "$ac_cv_type_double" = yes; then
14067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14069 as_fn_error 77 "cannot compute sizeof (double)
14070 See \`config.log' for more details" "$LINENO" 5; }
14072 ac_cv_sizeof_double=0
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14078 $as_echo "$ac_cv_sizeof_double" >&6; }
14082 cat >>confdefs.h <<_ACEOF
14083 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14087 # The cast to long int works around a bug in the HP C Compiler
14088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14090 # This bug is HP SR number 8606223364.
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14092 $as_echo_n "checking size of long double... " >&6; }
14093 if ${ac_cv_sizeof_long_double+:} false; then :
14094 $as_echo_n "(cached) " >&6
14096 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
14099 if test "$ac_cv_type_long_double" = yes; then
14100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14102 as_fn_error 77 "cannot compute sizeof (long double)
14103 See \`config.log' for more details" "$LINENO" 5; }
14105 ac_cv_sizeof_long_double=0
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14111 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14115 cat >>confdefs.h <<_ACEOF
14116 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14121 # Also AC_SUBST this variable for ffi.h.
14122 if test -z "$HAVE_LONG_DOUBLE"; then
14124 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14125 if test $ac_cv_sizeof_long_double != 0; then
14128 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14136 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14137 if ${ac_cv_c_bigendian+:} false; then :
14138 $as_echo_n "(cached) " >&6
14140 ac_cv_c_bigendian=unknown
14141 # See if we're dealing with a universal compiler.
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144 #ifndef __APPLE_CC__
14145 not a universal capable compiler
14150 if ac_fn_c_try_compile "$LINENO"; then :
14152 # Check for potential -arch flags. It is not universal unless
14153 # there are at least two -arch flags with different values.
14156 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14157 if test -n "$ac_prev"; then
14159 i?86 | x86_64 | ppc | ppc64)
14160 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14163 ac_cv_c_bigendian=universal
14169 elif test "x$ac_word" = "x-arch"; then
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 if test $ac_cv_c_bigendian = unknown; then
14176 # See if sys/param.h defines the BYTE_ORDER macro.
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 #include <sys/types.h>
14180 #include <sys/param.h>
14185 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14186 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14188 bogus endian macros
14195 if ac_fn_c_try_compile "$LINENO"; then :
14196 # It does; now see whether it defined to BIG_ENDIAN or not.
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14199 #include <sys/types.h>
14200 #include <sys/param.h>
14205 #if BYTE_ORDER != BIG_ENDIAN
14213 if ac_fn_c_try_compile "$LINENO"; then :
14214 ac_cv_c_bigendian=yes
14216 ac_cv_c_bigendian=no
14218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 if test $ac_cv_c_bigendian = unknown; then
14223 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 #include <limits.h>
14231 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14232 bogus endian macros
14239 if ac_fn_c_try_compile "$LINENO"; then :
14240 # It does; now see whether it defined to _BIG_ENDIAN or not.
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243 #include <limits.h>
14248 #ifndef _BIG_ENDIAN
14256 if ac_fn_c_try_compile "$LINENO"; then :
14257 ac_cv_c_bigendian=yes
14259 ac_cv_c_bigendian=no
14261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 if test $ac_cv_c_bigendian = unknown; then
14266 # Compile a test program.
14267 if test "$cross_compiling" = yes; then :
14268 # Try to guess by grepping values from an object file.
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 short int ascii_mm[] =
14272 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14273 short int ascii_ii[] =
14274 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14275 int use_ascii (int i) {
14276 return ascii_mm[i] + ascii_ii[i];
14278 short int ebcdic_ii[] =
14279 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14280 short int ebcdic_mm[] =
14281 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14282 int use_ebcdic (int i) {
14283 return ebcdic_mm[i] + ebcdic_ii[i];
14290 return use_ascii (foo) == use_ebcdic (foo);
14295 if ac_fn_c_try_compile "$LINENO"; then :
14296 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14297 ac_cv_c_bigendian=yes
14299 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14300 if test "$ac_cv_c_bigendian" = unknown; then
14301 ac_cv_c_bigendian=no
14303 # finding both strings is unlikely to happen, but who knows?
14304 ac_cv_c_bigendian=unknown
14308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312 $ac_includes_default
14317 /* Are we little or big endian? From Harbison&Steele. */
14321 char c[sizeof (long int)];
14324 return u.c[sizeof (long int) - 1] == 1;
14330 if ac_fn_c_try_run "$LINENO"; then :
14331 ac_cv_c_bigendian=no
14333 ac_cv_c_bigendian=yes
14335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14336 conftest.$ac_objext conftest.beam conftest.$ac_ext
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14342 $as_echo "$ac_cv_c_bigendian" >&6; }
14343 case $ac_cv_c_bigendian in #(
14345 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14351 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14355 as_fn_error $? "unknown endianness
14356 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14361 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14362 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14363 $as_echo_n "(cached) " >&6
14366 gcc_cv_as_cfi_pseudo_op=unknown
14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14369 asm (".cfi_startproc\n\t.cfi_endproc");
14378 if ac_fn_c_try_compile "$LINENO"; then :
14379 gcc_cv_as_cfi_pseudo_op=yes
14381 gcc_cv_as_cfi_pseudo_op=no
14383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14387 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14388 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14390 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14395 if test x$TARGET = xSPARC; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14397 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14398 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14399 $as_echo_n "(cached) " >&6
14402 save_CFLAGS="$CFLAGS"
14403 save_LDFLAGS="$LDFLAGS"
14404 CFLAGS="$CFLAGS -fpic"
14405 LDFLAGS="$LDFLAGS -shared"
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14417 if ac_fn_c_try_link "$LINENO"; then :
14418 libffi_cv_as_sparc_ua_pcrel=yes
14420 libffi_cv_as_sparc_ua_pcrel=no
14422 rm -f core conftest.err conftest.$ac_objext \
14423 conftest$ac_exeext conftest.$ac_ext
14424 CFLAGS="$save_CFLAGS"
14425 LDFLAGS="$save_LDFLAGS"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14428 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14429 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14431 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14436 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14437 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14438 $as_echo_n "(cached) " >&6
14441 libffi_cv_as_register_pseudo_op=unknown
14442 # Check if we have .register
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 asm (".register %g2, #scratch");
14454 if ac_fn_c_try_compile "$LINENO"; then :
14455 libffi_cv_as_register_pseudo_op=yes
14457 libffi_cv_as_register_pseudo_op=no
14459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14463 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14464 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14466 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14471 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14473 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14474 if ${libffi_cv_as_x86_pcrel+:} false; then :
14475 $as_echo_n "(cached) " >&6
14478 libffi_cv_as_x86_pcrel=no
14479 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14480 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14481 libffi_cv_as_x86_pcrel=yes
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14486 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14487 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14489 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14494 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14495 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14496 $as_echo_n "(cached) " >&6
14499 libffi_cv_as_ascii_pseudo_op=unknown
14500 # Check if we have .ascii
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14503 asm (".ascii \\"string\\"");
14512 if ac_fn_c_try_compile "$LINENO"; then :
14513 libffi_cv_as_ascii_pseudo_op=yes
14515 libffi_cv_as_ascii_pseudo_op=no
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14521 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14522 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14524 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14529 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14530 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14531 $as_echo_n "(cached) " >&6
14534 libffi_cv_as_string_pseudo_op=unknown
14535 # Check if we have .string
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 asm (".string \\"string\\"");
14547 if ac_fn_c_try_compile "$LINENO"; then :
14548 libffi_cv_as_string_pseudo_op=yes
14550 libffi_cv_as_string_pseudo_op=no
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14556 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14557 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14559 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14564 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14565 # Check whether --enable-pax_emutramp was given.
14566 if test "${enable_pax_emutramp+set}" = set; then :
14567 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14569 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14575 if test x$TARGET = xX86_WIN64; then
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14577 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14578 if ${lt_cv_sys_symbol_underscore+:} false; then :
14579 $as_echo_n "(cached) " >&6
14581 lt_cv_sys_symbol_underscore=no
14582 cat > conftest.$ac_ext <<_LT_EOF
14583 void nm_test_func(){}
14584 int main(){nm_test_func;return 0;}
14586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14587 (eval $ac_compile) 2>&5
14589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590 test $ac_status = 0; }; then
14591 # Now try to grab the symbols.
14592 ac_nlist=conftest.nm
14593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597 test $ac_status = 0; } && test -s "$ac_nlist"; then
14598 # See whether the symbols have a leading underscore.
14599 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14600 lt_cv_sys_symbol_underscore=yes
14602 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14605 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14609 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14612 echo "configure: failed program was:" >&5
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14619 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14620 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14623 if test "x$sys_symbol_underscore" = xyes; then
14625 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14630 FFI_EXEC_TRAMPOLINE_TABLE=0
14632 *arm*-apple-darwin*)
14633 FFI_EXEC_TRAMPOLINE_TABLE=1
14635 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14638 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14640 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14644 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14645 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14646 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14648 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14649 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14654 if test x$TARGET = xX86_64; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14656 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14657 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14658 $as_echo_n "(cached) " >&6
14661 libffi_cv_as_x86_64_unwind_section_type=yes
14662 echo '.section .eh_frame,"a",@unwind' > conftest.s
14663 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14664 libffi_cv_as_x86_64_unwind_section_type=no
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14669 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14670 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14672 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14677 if test "x$GCC" = "xyes"; then
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14679 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14680 if ${libffi_cv_ro_eh_frame+:} false; then :
14681 $as_echo_n "(cached) " >&6
14684 libffi_cv_ro_eh_frame=no
14685 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14686 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14687 objdump -h conftest.o > conftest.dump 2>&1
14688 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14689 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14690 sed -n $libffi_test_line conftest.dump > conftest.line
14691 if grep READONLY conftest.line > /dev/null; then
14692 libffi_cv_ro_eh_frame=yes
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14699 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14700 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14702 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14705 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14709 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14714 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14715 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14716 $as_echo_n "(cached) " >&6
14719 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
14720 libffi_cv_hidden_visibility_attribute=no
14721 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14723 (eval $ac_try) 2>&5
14725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14726 test $ac_status = 0; }; }; then
14727 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14728 libffi_cv_hidden_visibility_attribute=yes
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14735 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14736 if test $libffi_cv_hidden_visibility_attribute = yes; then
14738 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14750 # Check whether --enable-debug was given.
14751 if test "${enable_debug+set}" = set; then :
14752 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14754 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14759 if test "$enable_debug" = "yes"; then
14761 FFI_DEBUG_FALSE='#'
14768 # Check whether --enable-structs was given.
14769 if test "${enable_structs+set}" = set; then :
14770 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14772 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14777 if test "$enable_debug" = "yes"; then
14779 FFI_DEBUG_FALSE='#'
14786 # Check whether --enable-raw-api was given.
14787 if test "${enable_raw_api+set}" = set; then :
14788 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14790 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14796 # Check whether --enable-purify-safety was given.
14797 if test "${enable_purify_safety+set}" = set; then :
14798 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14800 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14806 # These variables are only ever used when we cross-build to X86_WIN32.
14807 # And we only support this with GCC, so...
14808 if test x"$GCC" != x"no"; then
14809 if test -n "$with_cross_host" &&
14810 test x"$with_cross_host" != x"no"; then
14811 toolexecdir='$(exec_prefix)/$(target_alias)'
14812 toolexeclibdir='$(toolexecdir)/lib'
14814 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14815 toolexeclibdir='$(libdir)'
14817 multi_os_directory=`$CC -print-multi-os-directory`
14818 case $multi_os_directory in
14819 .) ;; # Avoid trailing /.
14820 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14826 ac_config_commands="$ac_config_commands include"
14828 ac_config_commands="$ac_config_commands src"
14831 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14834 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14837 cat >confcache <<\_ACEOF
14838 # This file is a shell script that caches the results of configure
14839 # tests run on this system so they can be shared between configure
14840 # scripts and configure runs, see configure's option --config-cache.
14841 # It is not useful on other systems. If it contains results you don't
14842 # want to keep, you may remove or edit it.
14844 # config.status only pays attention to the cache file if you give it
14845 # the --recheck option to rerun configure.
14847 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14848 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14849 # following values.
14853 # The following way of writing the cache mishandles newlines in values,
14854 # but we know of no workaround that is simple, portable, and efficient.
14855 # So, we kill variables containing newlines.
14856 # Ultrix sh set writes to stderr and can't be redirected directly,
14857 # and sets the high bit in the cache file unless we assign to the vars.
14859 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14860 eval ac_val=\$$ac_var
14864 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14868 _ | IFS | as_nl) ;; #(
14869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14870 *) { eval $ac_var=; unset $ac_var;} ;;
14876 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14877 *${as_nl}ac_space=\ *)
14878 # `set' does not quote correctly, so add quotes: double-quote
14879 # substitution turns \\\\ into \\, and sed turns \\ into \.
14882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14885 # `set' quotes correctly as required by POSIX, so do not add quotes.
14886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14895 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14897 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14899 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14900 if test -w "$cache_file"; then
14901 if test "x$cache_file" != "x/dev/null"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14903 $as_echo "$as_me: updating cache $cache_file" >&6;}
14904 if test ! -f "$cache_file" || test -h "$cache_file"; then
14905 cat confcache >"$cache_file"
14907 case $cache_file in #(
14909 mv -f confcache "$cache_file"$$ &&
14910 mv -f "$cache_file"$$ "$cache_file" ;; #(
14912 mv -f confcache "$cache_file" ;;
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14918 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14924 # Let make expand exec_prefix.
14925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14927 DEFS=-DHAVE_CONFIG_H
14932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14933 # 1. Remove the extension, and $U if already installed.
14934 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14935 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14936 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14937 # will be set to the directory where LIBOBJS objects are built.
14938 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14939 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14941 LIBOBJS=$ac_libobjs
14943 LTLIBOBJS=$ac_ltlibobjs
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14947 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14948 if test -n "$am_sleep_pid"; then
14949 # Hide warnings about reused PIDs.
14950 wait $am_sleep_pid 2>/dev/null
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14953 $as_echo "done" >&6; }
14954 if test -n "$EXEEXT"; then
14956 am__EXEEXT_FALSE='#'
14958 am__EXEEXT_TRUE='#'
14962 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14963 as_fn_error $? "conditional \"AMDEP\" was never defined.
14964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14966 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14967 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14970 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14971 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14974 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14975 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14978 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14979 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14982 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14983 as_fn_error $? "conditional \"MIPS\" was never defined.
14984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14986 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14987 as_fn_error $? "conditional \"BFIN\" was never defined.
14988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14990 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14991 as_fn_error $? "conditional \"SPARC\" was never defined.
14992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14994 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14995 as_fn_error $? "conditional \"X86\" was never defined.
14996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14998 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14999 as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15002 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15003 as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15006 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15007 as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15010 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15011 as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15014 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15015 as_fn_error $? "conditional \"ALPHA\" was never defined.
15016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15018 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15019 as_fn_error $? "conditional \"IA64\" was never defined.
15020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15022 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15023 as_fn_error $? "conditional \"M32R\" was never defined.
15024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15026 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15027 as_fn_error $? "conditional \"M68K\" was never defined.
15028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15030 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15031 as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15034 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15035 as_fn_error $? "conditional \"MOXIE\" was never defined.
15036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15038 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15039 as_fn_error $? "conditional \"POWERPC\" was never defined.
15040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15042 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15043 as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15046 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15047 as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15050 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15051 as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15054 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15055 as_fn_error $? "conditional \"AARCH64\" was never defined.
15056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15058 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15059 as_fn_error $? "conditional \"ARM\" was never defined.
15060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15062 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15063 as_fn_error $? "conditional \"AVR32\" was never defined.
15064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15066 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15067 as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15070 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15071 as_fn_error $? "conditional \"FRV\" was never defined.
15072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15074 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15075 as_fn_error $? "conditional \"S390\" was never defined.
15076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15078 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15079 as_fn_error $? "conditional \"X86_64\" was never defined.
15080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15082 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15083 as_fn_error $? "conditional \"SH\" was never defined.
15084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15086 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15087 as_fn_error $? "conditional \"SH64\" was never defined.
15088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15091 as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15095 as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15099 as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15102 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15103 as_fn_error $? "conditional \"TILE\" was never defined.
15104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15107 as_fn_error $? "conditional \"XTENSA\" was never defined.
15108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15111 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15112 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15116 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15120 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15124 : "${CONFIG_STATUS=./config.status}"
15126 ac_clean_files_save=$ac_clean_files
15127 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15129 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15131 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15133 # Generated by $as_me.
15134 # Run this file to recreate the current configuration.
15135 # Compiler output produced by configure, useful for debugging
15136 # configure, is in config.log if it exists.
15139 ac_cs_recheck=false
15142 SHELL=\${CONFIG_SHELL-$SHELL}
15145 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15146 ## -------------------- ##
15147 ## M4sh Initialization. ##
15148 ## -------------------- ##
15150 # Be more Bourne compatible
15151 DUALCASE=1; export DUALCASE # for MKS sh
15152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15155 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15156 # is contrary to our usage. Disable this feature.
15157 alias -g '${1+"$@"}'='"$@"'
15158 setopt NO_GLOB_SUBST
15160 case `(set -o) 2>/dev/null` in #(
15172 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15173 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15174 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15176 # Prefer a ksh shell builtin over an external printf program on Solaris,
15177 # but without wasting forks for bash or zsh.
15178 if test -z "$BASH_VERSION$ZSH_VERSION" \
15179 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15180 as_echo='print -r --'
15181 as_echo_n='print -rn --'
15182 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15183 as_echo='printf %s\n'
15184 as_echo_n='printf %s'
15186 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15187 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15188 as_echo_n='/usr/ucb/echo -n'
15190 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15191 as_echo_n_body='eval
15195 expr "X$arg" : "X\\(.*\\)$as_nl";
15196 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15198 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15200 export as_echo_n_body
15201 as_echo_n='sh -c $as_echo_n_body as_echo'
15203 export as_echo_body
15204 as_echo='sh -c $as_echo_body as_echo'
15207 # The user is always right.
15208 if test "${PATH_SEPARATOR+set}" != set; then
15210 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15211 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15218 # We need space, tab and new line, in precisely that order. Quoting is
15219 # there to prevent editors from complaining about space-tab.
15220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15221 # splitting by setting IFS to empty value.)
15224 # Find who we are. Look in the path if we contain no directory separator.
15227 *[\\/]* ) as_myself=$0 ;;
15228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15229 for as_dir in $PATH
15232 test -z "$as_dir" && as_dir=.
15233 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15239 # We did not find ourselves, most probably we were run as `sh COMMAND'
15240 # in which case we are not to be found in the path.
15241 if test "x$as_myself" = x; then
15244 if test ! -f "$as_myself"; then
15245 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15249 # Unset variables that we do not need and which cause bugs (e.g. in
15250 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15251 # suppresses any "Segmentation fault" message there. '((' could
15252 # trigger a bug in pdksh 5.2.14.
15253 for as_var in BASH_ENV ENV MAIL MAILPATH
15254 do eval test x\${$as_var+set} = xset \
15255 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15268 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15271 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15272 # ----------------------------------------
15273 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15274 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15275 # script with STATUS, using 1 if that was 0.
15278 as_status=$1; test $as_status -eq 0 && as_status=1
15280 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15281 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15283 $as_echo "$as_me: error: $2" >&2
15284 as_fn_exit $as_status
15288 # as_fn_set_status STATUS
15289 # -----------------------
15290 # Set $? to STATUS, without forking.
15291 as_fn_set_status ()
15294 } # as_fn_set_status
15296 # as_fn_exit STATUS
15297 # -----------------
15298 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15302 as_fn_set_status $1
15308 # Portably unset VAR.
15311 { eval $1=; unset $1;}
15313 as_unset=as_fn_unset
15314 # as_fn_append VAR VALUE
15315 # ----------------------
15316 # Append the text in VALUE to the end of the definition contained in VAR. Take
15317 # advantage of any shell optimizations that allow amortized linear growth over
15318 # repeated appends, instead of the typical quadratic growth present in naive
15320 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15321 eval 'as_fn_append ()
15332 # as_fn_arith ARG...
15333 # ------------------
15334 # Perform arithmetic evaluation on the ARGs, and store the result in the
15335 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15336 # must be portable across $(()) and expr.
15337 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15338 eval 'as_fn_arith ()
15345 as_val=`expr "$@" || test $? -eq 1`
15350 if expr a : '\(a\)' >/dev/null 2>&1 &&
15351 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15357 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15358 as_basename=basename
15363 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15369 as_me=`$as_basename -- "$0" ||
15370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15371 X"$0" : 'X\(//\)$' \| \
15372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15374 sed '/^.*\/\([^/][^/]*\)\/*$/{
15388 # Avoid depending upon Character Ranges.
15389 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15390 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15391 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15392 as_cr_digits='0123456789'
15393 as_cr_alnum=$as_cr_Letters$as_cr_digits
15395 ECHO_C= ECHO_N= ECHO_T=
15396 case `echo -n x` in #(((((
15398 case `echo 'xy\c'` in
15399 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15401 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15408 rm -f conf$$ conf$$.exe conf$$.file
15409 if test -d conf$$.dir; then
15410 rm -f conf$$.dir/conf$$.file
15413 mkdir conf$$.dir 2>/dev/null
15415 if (echo >conf$$.file) 2>/dev/null; then
15416 if ln -s conf$$.file conf$$ 2>/dev/null; then
15418 # ... but there are two gotchas:
15419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15421 # In both cases, we have to default to `cp -pR'.
15422 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15424 elif ln conf$$.file conf$$ 2>/dev/null; then
15432 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15433 rmdir conf$$.dir 2>/dev/null
15438 # Create "$as_dir" as a directory, including parents if necessary.
15443 -*) as_dir=./$as_dir;;
15445 test -d "$as_dir" || eval $as_mkdir_p || {
15449 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15450 *) as_qdir=$as_dir;;
15452 as_dirs="'$as_qdir' $as_dirs"
15453 as_dir=`$as_dirname -- "$as_dir" ||
15454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15455 X"$as_dir" : 'X\(//\)[^/]' \| \
15456 X"$as_dir" : 'X\(//\)$' \| \
15457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15458 $as_echo X"$as_dir" |
15459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15463 /^X\(\/\/\)[^/].*/{
15476 test -d "$as_dir" && break
15478 test -z "$as_dirs" || eval "mkdir $as_dirs"
15479 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15483 if mkdir -p . 2>/dev/null; then
15484 as_mkdir_p='mkdir -p "$as_dir"'
15486 test -d ./-p && rmdir ./-p
15491 # as_fn_executable_p FILE
15492 # -----------------------
15493 # Test if FILE is an executable regular file.
15494 as_fn_executable_p ()
15496 test -f "$1" && test -x "$1"
15497 } # as_fn_executable_p
15498 as_test_x='test -x'
15499 as_executable_p=as_fn_executable_p
15501 # Sed expression to map a string onto a valid CPP name.
15502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15504 # Sed expression to map a string onto a valid variable name.
15505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15509 ## ----------------------------------- ##
15510 ## Main body of $CONFIG_STATUS script. ##
15511 ## ----------------------------------- ##
15513 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15516 # Save the log message, to keep $0 and so on meaningful, and to
15517 # report actual input values of CONFIG_FILES etc. instead of their
15518 # values after options handling.
15520 This file was extended by libffi $as_me 3.0.12-rc0, which was
15521 generated by GNU Autoconf 2.69. Invocation command line was
15523 CONFIG_FILES = $CONFIG_FILES
15524 CONFIG_HEADERS = $CONFIG_HEADERS
15525 CONFIG_LINKS = $CONFIG_LINKS
15526 CONFIG_COMMANDS = $CONFIG_COMMANDS
15529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15534 case $ac_config_files in *"
15535 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15538 case $ac_config_headers in *"
15539 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544 # Files that config.status was made for.
15545 config_files="$ac_config_files"
15546 config_headers="$ac_config_headers"
15547 config_links="$ac_config_links"
15548 config_commands="$ac_config_commands"
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 \`$as_me' instantiates files and other configuration actions
15555 from templates according to the current configuration. Unless the files
15556 and actions are specified as TAGs, all are instantiated by default.
15558 Usage: $0 [OPTION]... [TAG]...
15560 -h, --help print this help, then exit
15561 -V, --version print version number and configuration settings, then exit
15562 --config print configuration, then exit
15563 -q, --quiet, --silent
15564 do not print progress messages
15565 -d, --debug don't remove temporary files
15566 --recheck update $as_me by reconfiguring in the same conditions
15567 --file=FILE[:TEMPLATE]
15568 instantiate the configuration file FILE
15569 --header=FILE[:TEMPLATE]
15570 instantiate the configuration header FILE
15572 Configuration files:
15575 Configuration headers:
15578 Configuration links:
15581 Configuration commands:
15584 Report bugs to <http://gcc.gnu.org/bugs.html>."
15587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15588 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15590 libffi config.status 3.0.12-rc0
15591 configured by $0, generated by GNU Autoconf 2.69,
15592 with options \\"\$ac_cs_config\\"
15594 Copyright (C) 2012 Free Software Foundation, Inc.
15595 This config.status script is free software; the Free Software Foundation
15596 gives unlimited permission to copy, distribute and modify it."
15603 test -n "\$AWK" || AWK=awk
15606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15607 # The default lists apply if the user does not specify any file.
15613 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15614 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15618 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15630 # Handling of the options.
15631 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15633 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15634 $as_echo "$ac_cs_version"; exit ;;
15635 --config | --confi | --conf | --con | --co | --c )
15636 $as_echo "$ac_cs_config"; exit ;;
15637 --debug | --debu | --deb | --de | --d | -d )
15639 --file | --fil | --fi | --f )
15642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15643 '') as_fn_error $? "missing file argument" ;;
15645 as_fn_append CONFIG_FILES " '$ac_optarg'"
15646 ac_need_defaults=false;;
15647 --header | --heade | --head | --hea )
15650 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15652 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15653 ac_need_defaults=false;;
15655 # Conflict between --help and --header
15656 as_fn_error $? "ambiguous option: \`$1'
15657 Try \`$0 --help' for more information.";;
15658 --help | --hel | -h )
15659 $as_echo "$ac_cs_usage"; exit ;;
15660 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15661 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15664 # This is an error.
15665 -*) as_fn_error $? "unrecognized option: \`$1'
15666 Try \`$0 --help' for more information." ;;
15668 *) as_fn_append ac_config_targets " $1"
15669 ac_need_defaults=false ;;
15675 ac_configure_extra_args=
15677 if $ac_cs_silent; then
15679 ac_configure_extra_args="$ac_configure_extra_args --silent"
15683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15684 if \$ac_cs_recheck; then
15685 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15687 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15688 CONFIG_SHELL='$SHELL'
15689 export CONFIG_SHELL
15694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15698 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15699 ## Running $as_me. ##
15705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15709 ax_enable_builddir_srcdir="$srcdir" # $srcdir
15710 ax_enable_builddir_host="$HOST" # $HOST / $host
15711 ax_enable_builddir_version="$VERSION" # $VERSION
15712 ax_enable_builddir_package="$PACKAGE" # $PACKAGE
15713 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15714 ax_enable_builddir_sed="$ax_enable_builddir_sed" # $SED
15715 ax_enable_builddir="$ax_enable_builddir" # $SUB
15717 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15720 # The HP-UX ksh and POSIX shell print the target directory to stdout
15721 # if CDPATH is set.
15722 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15724 sed_quote_subst='$sed_quote_subst'
15725 double_quote_subst='$double_quote_subst'
15726 delay_variable_subst='$delay_variable_subst'
15727 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15728 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15729 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15730 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15731 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15732 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15733 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15734 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15735 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15736 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15737 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15738 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15739 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15740 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15741 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15742 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15743 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15744 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15745 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15746 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15747 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15748 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15749 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15750 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15751 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15752 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15753 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15754 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15755 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15756 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15757 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15758 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15759 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15760 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15761 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15762 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15763 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15764 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15765 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15766 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15767 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15768 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15769 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15770 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15771 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15772 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15773 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15774 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15775 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15776 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15777 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15778 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15779 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15780 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15781 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15782 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15783 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"`'
15784 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15785 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15786 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15787 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15788 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15789 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15790 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15791 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15792 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15793 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15794 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15795 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15796 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15797 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15798 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15799 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15800 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15801 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15802 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15803 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15804 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15805 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15806 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15807 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15808 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15809 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15810 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15811 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15812 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15813 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15814 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15815 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15816 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15817 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15818 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15819 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15820 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15821 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15822 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15823 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15824 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15825 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15826 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15827 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15828 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15829 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15830 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15831 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15832 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15833 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15834 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15835 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15836 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15837 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15838 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15839 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15840 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15841 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15842 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15843 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15844 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15845 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15846 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15847 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15848 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15849 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15850 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15851 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15852 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15853 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15854 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15855 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15856 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15859 LTCFLAGS='$LTCFLAGS'
15860 compiler='$compiler_DEFAULT'
15862 # A function that is used when there is no print builtin or printf.
15863 func_fallback_echo ()
15865 eval 'cat <<_LTECHO_EOF
15870 # Quote evaled strings.
15885 deplibs_check_method \
15890 sharedlib_from_linklib_cmd \
15893 archiver_list_spec \
15899 lt_cv_sys_global_symbol_pipe \
15900 lt_cv_sys_global_symbol_to_cdecl \
15901 lt_cv_sys_global_symbol_to_c_name_address \
15902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15903 nm_file_list_spec \
15904 lt_prog_compiler_no_builtin_flag \
15905 lt_prog_compiler_pic \
15906 lt_prog_compiler_wl \
15907 lt_prog_compiler_static \
15908 lt_cv_prog_compiler_c_o \
15917 export_dynamic_flag_spec \
15918 whole_archive_flag_spec \
15919 compiler_needs_object \
15921 allow_undefined_flag \
15922 no_undefined_flag \
15923 hardcode_libdir_flag_spec \
15924 hardcode_libdir_separator \
15928 variables_saved_for_relink \
15930 library_names_spec \
15932 install_override_mode \
15936 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15937 *[\\\\\\\`\\"\\\$]*)
15938 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15941 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15946 # Double-quote double-evaled strings.
15947 for var in reload_cmds \
15948 old_postinstall_cmds \
15949 old_postuninstall_cmds \
15951 extract_expsyms_cmds \
15952 old_archive_from_new_cmds \
15953 old_archive_from_expsyms_cmds \
15955 archive_expsym_cmds \
15957 module_expsym_cmds \
15958 export_symbols_cmds \
15962 postuninstall_cmds \
15964 sys_lib_search_path_spec \
15965 sys_lib_dlsearch_path_spec; do
15966 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15967 *[\\\\\\\`\\"\\\$]*)
15968 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15971 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15976 ac_aux_dir='$ac_aux_dir'
15977 xsi_shell='$xsi_shell'
15978 lt_shell_append='$lt_shell_append'
15980 # See if we are running on zsh, and set the options which allow our
15981 # commands through without removal of \ escapes INIT.
15982 if test -n "\${ZSH_VERSION+set}" ; then
15983 setopt NO_GLOB_SUBST
15989 TIMESTAMP='$TIMESTAMP'
15995 TARGETDIR="$TARGETDIR"
15999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16001 # Handling of arguments.
16002 for ac_config_target in $ac_config_targets
16004 case $ac_config_target in
16005 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16006 "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16007 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16008 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16009 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16010 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16011 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16012 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16013 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16014 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16015 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16016 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16017 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16019 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16024 # If the user did not use the arguments to specify the items to instantiate,
16025 # then the envvar interface is used. Set only those that are not.
16026 # We use the long form for the default assignment because of an extremely
16027 # bizarre bug on SunOS 4.1.3.
16028 if $ac_need_defaults; then
16029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16031 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16035 # Have a temporary directory for convenience. Make it in the build tree
16036 # simply because there is no reason against having it here, and in addition,
16037 # creating and moving files from /tmp can sometimes cause problems.
16038 # Hook for its removal unless debugging.
16039 # Note that there is a small window in which the directory will not be cleaned:
16040 # after its creation but before its name has been assigned to `$tmp'.
16044 trap 'exit_status=$?
16045 : "${ac_tmp:=$tmp}"
16046 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16048 trap 'as_fn_exit 1' 1 2 13 15
16050 # Create a (secure) tmp directory for tmp files.
16053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16057 tmp=./conf$$-$RANDOM
16058 (umask 077 && mkdir "$tmp")
16059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16062 # Set up the scripts for CONFIG_FILES section.
16063 # No need to generate them if there are no CONFIG_FILES.
16064 # This happens for instance with `./config.status config.h'.
16065 if test -n "$CONFIG_FILES"; then
16068 ac_cr=`echo X | tr X '\015'`
16069 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16070 # But we know of no other shell where ac_cr would be empty at this
16071 # point, so we can use a bashism as a fallback.
16072 if test "x$ac_cr" = x; then
16073 eval ac_cr=\$\'\\r\'
16075 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16076 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16079 ac_cs_awk_cr=$ac_cr
16082 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16087 echo "cat >conf$$subs.awk <<_ACEOF" &&
16088 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16090 } >conf$$subs.sh ||
16091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16092 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16094 for ac_last_try in false false false false false :; do
16095 . ./conf$$subs.sh ||
16096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16098 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16099 if test $ac_delim_n = $ac_delim_num; then
16101 elif $ac_last_try; then
16102 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16104 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16107 rm -f conf$$subs.sh
16109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16110 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16114 s/^/S["/; s/!.*/"]=/
16124 s/\(.\{148\}\)..*/\1/
16126 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16131 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16138 s/\(.\{148\}\)..*/\1/
16140 s/["\\]/\\&/g; s/^/"/; s/$/"/
16144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16149 ' <conf$$subs.awk | sed '
16154 ' >>$CONFIG_STATUS || ac_write_fail=1
16155 rm -f conf$$subs.awk
16156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16158 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16159 for (key in S) S_is_set[key] = 1
16165 nfields = split(line, field, "@")
16167 len = length(field[1])
16168 for (i = 2; i < nfields; i++) {
16170 keylen = length(key)
16171 if (S_is_set[key]) {
16173 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16174 len += length(value) + length(field[++i])
16185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16186 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16187 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16190 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16191 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16194 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16195 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16196 # trailing colons and then remove the whole line if VPATH becomes empty
16197 # (actually we leave an empty line to preserve line numbers).
16198 if test "x$srcdir" = x.; then
16199 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16218 fi # test -n "$CONFIG_FILES"
16220 # Set up the scripts for CONFIG_HEADERS section.
16221 # No need to generate them if there are no CONFIG_HEADERS.
16222 # This happens for instance with `./config.status Makefile'.
16223 if test -n "$CONFIG_HEADERS"; then
16224 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16228 # Transform confdefs.h into an awk script `defines.awk', embedded as
16229 # here-document in config.status, that substitutes the proper values into
16230 # config.h.in to produce config.h.
16232 # Create a delimiter string that does not exist in confdefs.h, to ease
16233 # handling of long lines.
16235 for ac_last_try in false false :; do
16236 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16237 if test -z "$ac_tt"; then
16239 elif $ac_last_try; then
16240 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16246 # For the awk script, D is an array of macro values keyed by name,
16247 # likewise P contains macro parameters if any. Preserve backslash
16248 # newline sequences.
16250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16252 s/.\{148\}/&'"$ac_delim"'/g
16255 s/^[ ]*#[ ]*define[ ][ ]*/ /
16262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16264 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16268 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16269 D["\1"]=" \3\\\\\\n"\\/p
16271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16276 s/.\{148\}/&'"$ac_delim"'/g
16281 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16284 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16286 ' <confdefs.h | sed '
16287 s/'"$ac_delim"'/"\\\
16288 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16291 for (key in D) D_is_set[key] = 1
16294 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16296 split(line, arg, " ")
16297 if (arg[1] == "#") {
16301 defundef = substr(arg[1], 2)
16304 split(mac1, mac2, "(") #)
16306 prefix = substr(line, 1, index(line, defundef) - 1)
16307 if (D_is_set[macro]) {
16308 # Preserve the white space surrounding the "#".
16309 print prefix "define", macro P[macro] D[macro]
16312 # Replace #undef with comments. This is necessary, for example,
16313 # in the case of _POSIX_SOURCE, which is predefined and required
16314 # on some systems where configure will not decide to define it.
16315 if (defundef == "undef") {
16316 print "/*", prefix defundef, macro, "*/"
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16325 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16326 fi # test -n "$CONFIG_HEADERS"
16329 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16334 :[FHLC]) ac_mode=$ac_tag; continue;;
16336 case $ac_mode$ac_tag in
16338 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16339 :[FH]-) ac_tag=-:-;;
16340 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16357 -) ac_f="$ac_tmp/stdin";;
16358 *) # Look for the file first in the build tree, then in the source tree
16359 # (if the path is not absolute). The absolute path cannot be DOS-style,
16360 # because $ac_f cannot contain `:'.
16364 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16366 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16368 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16369 as_fn_append ac_file_inputs " '$ac_f'"
16372 # Let's still pretend it is `configure' which instantiates (i.e., don't
16373 # use $as_me), people would be surprised to read:
16374 # /* config.h. Generated by config.status. */
16375 configure_input='Generated from '`
16376 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16378 if test x"$ac_file" != x-; then
16379 configure_input="$ac_file. $configure_input"
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16381 $as_echo "$as_me: creating $ac_file" >&6;}
16383 # Neutralize special characters interpreted by sed in replacement strings.
16384 case $configure_input in #(
16385 *\&* | *\|* | *\\* )
16386 ac_sed_conf_input=`$as_echo "$configure_input" |
16387 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16388 *) ac_sed_conf_input=$configure_input;;
16392 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16398 ac_dir=`$as_dirname -- "$ac_file" ||
16399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16400 X"$ac_file" : 'X\(//\)[^/]' \| \
16401 X"$ac_file" : 'X\(//\)$' \| \
16402 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16403 $as_echo X"$ac_file" |
16404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16408 /^X\(\/\/\)[^/].*/{
16421 as_dir="$ac_dir"; as_fn_mkdir_p
16425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16428 # A ".." for each directory in $ac_dir_suffix.
16429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16430 case $ac_top_builddir_sub in
16431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16435 ac_abs_top_builddir=$ac_pwd
16436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16437 # for backward compatibility:
16438 ac_top_builddir=$ac_top_build_prefix
16441 .) # We are building in place.
16443 ac_top_srcdir=$ac_top_builddir_sub
16444 ac_abs_top_srcdir=$ac_pwd ;;
16445 [\\/]* | ?:[\\/]* ) # Absolute name.
16446 ac_srcdir=$srcdir$ac_dir_suffix;
16447 ac_top_srcdir=$srcdir
16448 ac_abs_top_srcdir=$srcdir ;;
16449 *) # Relative name.
16450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16451 ac_top_srcdir=$ac_top_build_prefix$srcdir
16452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16464 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16465 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16467 ac_MKDIR_P=$MKDIR_P
16469 [\\/$]* | ?:[\\/]* ) ;;
16470 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16475 # If the template does not know about datarootdir, expand it.
16476 # FIXME: This hack should be removed a few years after 2.60.
16477 ac_datarootdir_hack=; ac_datarootdir_seen=
16488 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16489 *datarootdir*) ac_datarootdir_seen=yes;;
16490 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16492 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16495 ac_datarootdir_hack='
16496 s&@datadir@&$datadir&g
16497 s&@docdir@&$docdir&g
16498 s&@infodir@&$infodir&g
16499 s&@localedir@&$localedir&g
16500 s&@mandir@&$mandir&g
16501 s&\\\${datarootdir}&$datarootdir&g' ;;
16505 # Neutralize VPATH when `$srcdir' = `.'.
16506 # Shell code in configure.ac might set extrasub.
16507 # FIXME: do we really want to maintain this feature?
16508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16509 ac_sed_extra="$ac_vpsub
16512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16515 s|@configure_input@|$ac_sed_conf_input|;t t
16516 s&@top_builddir@&$ac_top_builddir_sub&;t t
16517 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16518 s&@srcdir@&$ac_srcdir&;t t
16519 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16520 s&@top_srcdir@&$ac_top_srcdir&;t t
16521 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16522 s&@builddir@&$ac_builddir&;t t
16523 s&@abs_builddir@&$ac_abs_builddir&;t t
16524 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16525 s&@INSTALL@&$ac_INSTALL&;t t
16526 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16527 $ac_datarootdir_hack
16529 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16530 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16532 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16533 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16534 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16535 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16537 which seems to be undefined. Please make sure it is defined" >&5
16538 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16539 which seems to be undefined. Please make sure it is defined" >&2;}
16541 rm -f "$ac_tmp/stdin"
16543 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16544 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16552 if test x"$ac_file" != x-; then
16554 $as_echo "/* $configure_input */" \
16555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16556 } >"$ac_tmp/config.h" \
16557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16558 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16560 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16563 mv "$ac_tmp/config.h" "$ac_file" \
16564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16567 $as_echo "/* $configure_input */" \
16568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16569 || as_fn_error $? "could not create -" "$LINENO" 5
16571 # Compute "$ac_file"'s index in $config_headers.
16574 for _am_header in $config_headers :; do
16575 case $_am_header in
16576 $_am_arg | $_am_arg:* )
16579 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16582 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16583 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16584 X"$_am_arg" : 'X\(//\)[^/]' \| \
16585 X"$_am_arg" : 'X\(//\)$' \| \
16586 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16587 $as_echo X"$_am_arg" |
16588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16592 /^X\(\/\/\)[^/].*/{
16604 s/.*/./; q'`/stamp-h$_am_stamp_count
16611 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16614 # Prefer the file from the source tree if names are identical.
16615 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16616 ac_source=$srcdir/$ac_source
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16620 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16622 if test ! -r "$ac_source"; then
16623 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16627 # Try a relative symlink, then a hard link, then a copy.
16629 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16630 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16632 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16633 ln "$ac_source" "$ac_file" 2>/dev/null ||
16634 cp -p "$ac_source" "$ac_file" ||
16635 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16638 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16639 $as_echo "$as_me: executing $ac_file commands" >&6;}
16644 case $ac_file$ac_mode in
16645 "buildir":C) ac_top_srcdir="$ax_enable_builddir_srcdir"
16646 if test ".$ax_enable_builddir" = ".." ; then
16647 if test -f "$top_srcdir/Makefile" ; then
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16649 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16652 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16655 if test -f "$ac_top_srcdir/Makefile" ; then
16656 a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16657 test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16659 if test -f "$ac_top_srcdir/Makefile" ; then
16660 echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16661 echo " @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16662 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16663 if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16664 then rm $ac_top_srcdir/Makefile ; fi
16665 cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~ ## DEBUGGING
16667 if test ! -f "$ac_top_srcdir/Makefile" ; then
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16669 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16670 x='`' ; cat >$tmp/conftemp.sed <<_EOF
16683 s/\\(\\n\\) /\\1 /g
16687 s/^srcdir *=.*/srcdir = ./
16688 s/^top_srcdir *=.*/top_srcdir = ./
16696 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16697 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16699 /^all all-all[ :]/i\\
16700 all-configured : all-all
16701 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16704 @ HOST="\$(HOST)\" \\\\\\
16705 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16706 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16707 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16708 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16709 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16710 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16711 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16712 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16713 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16715 @ HOST="\$(HOST)\" \\\\\\
16716 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16717 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16718 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16719 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16720 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16721 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16722 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16723 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16724 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16725 /dist-[a-zA-Z0-9]*-all *:/a\\
16726 @ HOST="\$(HOST)\" \\\\\\
16727 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16728 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16729 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16730 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16731 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16732 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16733 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16734 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16735 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16736 /distclean-all *:/a\\
16737 @ HOST="\$(HOST)\" \\\\\\
16738 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16739 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16740 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16741 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16742 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16743 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16744 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16745 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16746 ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16747 ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16748 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16750 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~" ## DEBUGGING
16751 $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16752 if test -f "$ac_top_srcdir/Makefile.mk" ; then
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16754 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16755 cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16757 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16759 if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16761 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16762 $ax_enable_builddir_sed -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $ac_top_srcdir/Makefile \
16763 >$ac_top_srcdir/Makefile~
16764 (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16767 xxxx="\\#\\#\\#\\#"
16768 # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16769 echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16770 $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16771 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~" ## DEBUGGING
16772 cp "$tmp/mkfile.tmp" "$ac_top_srcdir/makefiles.out~" ## DEBUGGING
16773 if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16775 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16776 rm "$tmp/mkfile.tmp"
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16779 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16780 mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16784 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16786 echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16789 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16790 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16791 # are listed without --file. Let's play safe and only enable the eval
16792 # if we detect the quoting.
16793 case $CONFIG_FILES in
16794 *\'*) eval set x "$CONFIG_FILES" ;;
16795 *) set x $CONFIG_FILES ;;
16800 # Strip MF so we end up with the name of the file.
16801 mf=`echo "$mf" | sed -e 's/:.*$//'`
16802 # Check whether this is an Automake generated Makefile or not.
16803 # We used to match only the files named 'Makefile.in', but
16804 # some people rename them; so instead we look at the file content.
16805 # Grep'ing the first line is not enough: some people post-process
16806 # each Makefile.in and add a new line on top of each file to say so.
16807 # Grep'ing the whole file is not good either: AIX grep has a line
16808 # limit of 2048, but all sed's we know have understand at least 4000.
16809 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16810 dirpart=`$as_dirname -- "$mf" ||
16811 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16812 X"$mf" : 'X\(//\)[^/]' \| \
16813 X"$mf" : 'X\(//\)$' \| \
16814 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16820 /^X\(\/\/\)[^/].*/{
16836 # Extract the definition of DEPDIR, am__include, and am__quote
16837 # from the Makefile without running 'make'.
16838 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16839 test -z "$DEPDIR" && continue
16840 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16841 test -z "am__include" && continue
16842 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16843 # Find all dependency output files, they are included files with
16844 # $(DEPDIR) in their names. We invoke sed twice because it is the
16845 # simplest approach to changing $(DEPDIR) to its actual value in the
16847 for file in `sed -n "
16848 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16849 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16850 # Make sure the directory exists.
16851 test -f "$dirpart/$file" && continue
16852 fdir=`$as_dirname -- "$file" ||
16853 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16854 X"$file" : 'X\(//\)[^/]' \| \
16855 X"$file" : 'X\(//\)$' \| \
16856 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16857 $as_echo X"$file" |
16858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16862 /^X\(\/\/\)[^/].*/{
16875 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16876 # echo "creating $dirpart/$file"
16877 echo '# dummy' > "$dirpart/$file"
16884 # See if we are running on zsh, and set the options which allow our
16885 # commands through without removal of \ escapes.
16886 if test -n "${ZSH_VERSION+set}" ; then
16887 setopt NO_GLOB_SUBST
16890 cfgfile="${ofile}T"
16891 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16894 cat <<_LT_EOF >> "$cfgfile"
16897 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16898 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16900 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16902 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16903 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16905 # Written by Gordon Matzigkeit, 1996
16907 # This file is part of GNU Libtool.
16909 # GNU Libtool is free software; you can redistribute it and/or
16910 # modify it under the terms of the GNU General Public License as
16911 # published by the Free Software Foundation; either version 2 of
16912 # the License, or (at your option) any later version.
16914 # As a special exception to the GNU General Public License,
16915 # if you distribute this file as part of a program or library that
16916 # is built using GNU Libtool, you may include this file under the
16917 # same distribution terms that you use for the rest of that program.
16919 # GNU Libtool is distributed in the hope that it will be useful,
16920 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16921 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16922 # GNU General Public License for more details.
16924 # You should have received a copy of the GNU General Public License
16925 # along with GNU Libtool; see the file COPYING. If not, a copy
16926 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16927 # obtained by writing to the Free Software Foundation, Inc.,
16928 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16931 # The names of the tagged configurations supported by this script.
16934 # ### BEGIN LIBTOOL CONFIG
16936 # Which release of libtool.m4 was used?
16937 macro_version=$macro_version
16938 macro_revision=$macro_revision
16940 # Whether or not to build shared libraries.
16941 build_libtool_libs=$enable_shared
16943 # Whether or not to build static libraries.
16944 build_old_libs=$enable_static
16946 # What type of objects to build.
16949 # Whether or not to optimize for fast installation.
16950 fast_install=$enable_fast_install
16952 # Shell to use when invoking shell scripts.
16955 # An echo program that protects backslashes.
16958 # The PATH separator for the build system.
16959 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16962 host_alias=$host_alias
16966 # The build system.
16967 build_alias=$build_alias
16971 # A sed program that does not truncate output.
16974 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16975 Xsed="\$SED -e 1s/^X//"
16977 # A grep program that handles long lines.
16983 # A literal string matcher.
16986 # A BSD- or MS-compatible name lister.
16989 # Whether we need soft or hard links.
16992 # What is the maximum length of a command?
16993 max_cmd_len=$max_cmd_len
16995 # Object file suffix (normally "o").
16998 # Executable file suffix (normally "").
17001 # whether the shell understands "unset".
17004 # turn spaces into newlines.
17007 # turn newlines into spaces.
17010 # convert \$build file names to \$host format.
17011 to_host_file_cmd=$lt_cv_to_host_file_cmd
17013 # convert \$build files to toolchain format.
17014 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17016 # An object symbol dumper.
17017 OBJDUMP=$lt_OBJDUMP
17019 # Method to check whether dependent libraries are shared objects.
17020 deplibs_check_method=$lt_deplibs_check_method
17022 # Command to use when deplibs_check_method = "file_magic".
17023 file_magic_cmd=$lt_file_magic_cmd
17025 # How to find potential files when deplibs_check_method = "file_magic".
17026 file_magic_glob=$lt_file_magic_glob
17028 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17029 want_nocaseglob=$lt_want_nocaseglob
17031 # DLL creation program.
17032 DLLTOOL=$lt_DLLTOOL
17034 # Command to associate shared and link libraries.
17035 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17040 # Flags to create an archive.
17041 AR_FLAGS=$lt_AR_FLAGS
17043 # How to feed a file listing to the archiver.
17044 archiver_list_spec=$lt_archiver_list_spec
17046 # A symbol stripping program.
17049 # Commands used to install an old-style archive.
17051 old_postinstall_cmds=$lt_old_postinstall_cmds
17052 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17054 # Whether to use a lock for old archive extraction.
17055 lock_old_archive_extraction=$lock_old_archive_extraction
17060 # LTCC compiler flags.
17061 LTCFLAGS=$lt_CFLAGS
17063 # Take the output of nm and produce a listing of raw symbols and C names.
17064 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17066 # Transform the output of nm in a proper C declaration.
17067 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17069 # Transform the output of nm in a C name address pair.
17070 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17072 # Transform the output of nm in a C name address pair when lib prefix is needed.
17073 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17075 # Specify filename containing input files for \$NM.
17076 nm_file_list_spec=$lt_nm_file_list_spec
17078 # The root where to search for dependent libraries,and in which our libraries should be installed.
17079 lt_sysroot=$lt_sysroot
17081 # The name of the directory that contains temporary libtool files.
17084 # Used to examine libraries when file_magic_cmd begins with "file".
17085 MAGIC_CMD=$MAGIC_CMD
17087 # Must we lock files when doing compilation?
17088 need_locks=$lt_need_locks
17091 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17093 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17094 DSYMUTIL=$lt_DSYMUTIL
17096 # Tool to change global to local symbols on Mac OS X.
17099 # Tool to manipulate fat objects and archives on Mac OS X.
17102 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17105 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17106 OTOOL64=$lt_OTOOL64
17108 # Old archive suffix (normally "a").
17111 # Shared library suffix (normally ".so").
17112 shrext_cmds=$lt_shrext_cmds
17114 # The commands to extract the exported symbol list from a shared archive.
17115 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17117 # Variables whose values should be saved in libtool wrapper scripts and
17118 # restored at link time.
17119 variables_saved_for_relink=$lt_variables_saved_for_relink
17121 # Do we need the "lib" prefix for modules?
17122 need_lib_prefix=$need_lib_prefix
17124 # Do we need a version for libraries?
17125 need_version=$need_version
17127 # Library versioning type.
17128 version_type=$version_type
17130 # Shared library runtime path variable.
17131 runpath_var=$runpath_var
17133 # Shared library path variable.
17134 shlibpath_var=$shlibpath_var
17136 # Is shlibpath searched before the hard-coded library search path?
17137 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17139 # Format of library name prefix.
17140 libname_spec=$lt_libname_spec
17142 # List of archive names. First name is the real one, the rest are links.
17143 # The last name is the one that the linker finds with -lNAME
17144 library_names_spec=$lt_library_names_spec
17146 # The coded name of the library, if different from the real name.
17147 soname_spec=$lt_soname_spec
17149 # Permission mode override for installation of shared libraries.
17150 install_override_mode=$lt_install_override_mode
17152 # Command to use after installation of a shared archive.
17153 postinstall_cmds=$lt_postinstall_cmds
17155 # Command to use after uninstallation of a shared archive.
17156 postuninstall_cmds=$lt_postuninstall_cmds
17158 # Commands used to finish a libtool library installation in a directory.
17159 finish_cmds=$lt_finish_cmds
17161 # As "finish_cmds", except a single script fragment to be evaled but
17163 finish_eval=$lt_finish_eval
17165 # Whether we should hardcode library paths into libraries.
17166 hardcode_into_libs=$hardcode_into_libs
17168 # Compile-time system search path for libraries.
17169 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17171 # Run-time system search path for libraries.
17172 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17174 # Whether dlopen is supported.
17175 dlopen_support=$enable_dlopen
17177 # Whether dlopen of programs is supported.
17178 dlopen_self=$enable_dlopen_self
17180 # Whether dlopen of statically linked programs is supported.
17181 dlopen_self_static=$enable_dlopen_self_static
17183 # Commands to strip libraries.
17184 old_striplib=$lt_old_striplib
17185 striplib=$lt_striplib
17188 # The linker used to build libraries.
17191 # How to create reloadable object files.
17192 reload_flag=$lt_reload_flag
17193 reload_cmds=$lt_reload_cmds
17195 # Commands used to build an old-style archive.
17196 old_archive_cmds=$lt_old_archive_cmds
17198 # A language specific compiler.
17201 # Is the compiler the GNU compiler?
17204 # Compiler flag to turn off builtin functions.
17205 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17207 # Additional compiler flags for building library objects.
17208 pic_flag=$lt_lt_prog_compiler_pic
17210 # How to pass a linker flag through the compiler.
17211 wl=$lt_lt_prog_compiler_wl
17213 # Compiler flag to prevent dynamic linking.
17214 link_static_flag=$lt_lt_prog_compiler_static
17216 # Does compiler simultaneously support -c and -o options?
17217 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17219 # Whether or not to add -lc for building shared libraries.
17220 build_libtool_need_lc=$archive_cmds_need_lc
17222 # Whether or not to disallow shared libs when runtime libs are static.
17223 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17225 # Compiler flag to allow reflexive dlopens.
17226 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17228 # Compiler flag to generate shared objects directly from archives.
17229 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17231 # Whether the compiler copes with passing no objects directly.
17232 compiler_needs_object=$lt_compiler_needs_object
17234 # Create an old-style archive from a shared archive.
17235 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17237 # Create a temporary old-style archive to link instead of a shared archive.
17238 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17240 # Commands used to build a shared archive.
17241 archive_cmds=$lt_archive_cmds
17242 archive_expsym_cmds=$lt_archive_expsym_cmds
17244 # Commands used to build a loadable module if different from building
17245 # a shared archive.
17246 module_cmds=$lt_module_cmds
17247 module_expsym_cmds=$lt_module_expsym_cmds
17249 # Whether we are building with GNU ld or not.
17250 with_gnu_ld=$lt_with_gnu_ld
17252 # Flag that allows shared libraries with undefined symbols to be built.
17253 allow_undefined_flag=$lt_allow_undefined_flag
17255 # Flag that enforces no undefined symbols.
17256 no_undefined_flag=$lt_no_undefined_flag
17258 # Flag to hardcode \$libdir into a binary during linking.
17259 # This must work even if \$libdir does not exist
17260 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17262 # Whether we need a single "-rpath" flag with a separated argument.
17263 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17265 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17266 # DIR into the resulting binary.
17267 hardcode_direct=$hardcode_direct
17269 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17270 # DIR into the resulting binary and the resulting library dependency is
17271 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17272 # library is relocated.
17273 hardcode_direct_absolute=$hardcode_direct_absolute
17275 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17276 # into the resulting binary.
17277 hardcode_minus_L=$hardcode_minus_L
17279 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17280 # into the resulting binary.
17281 hardcode_shlibpath_var=$hardcode_shlibpath_var
17283 # Set to "yes" if building a shared library automatically hardcodes DIR
17284 # into the library and all subsequent libraries and executables linked
17286 hardcode_automatic=$hardcode_automatic
17288 # Set to yes if linker adds runtime paths of dependent libraries
17289 # to runtime path list.
17290 inherit_rpath=$inherit_rpath
17292 # Whether libtool must link a program against all its dependency libraries.
17293 link_all_deplibs=$link_all_deplibs
17295 # Set to "yes" if exported symbols are required.
17296 always_export_symbols=$always_export_symbols
17298 # The commands to list exported symbols.
17299 export_symbols_cmds=$lt_export_symbols_cmds
17301 # Symbols that should not be listed in the preloaded symbols.
17302 exclude_expsyms=$lt_exclude_expsyms
17304 # Symbols that must always be exported.
17305 include_expsyms=$lt_include_expsyms
17307 # Commands necessary for linking programs (against libraries) with templates.
17308 prelink_cmds=$lt_prelink_cmds
17310 # Commands necessary for finishing linking programs.
17311 postlink_cmds=$lt_postlink_cmds
17313 # Specify filename containing input files.
17314 file_list_spec=$lt_file_list_spec
17316 # How to hardcode a shared library path into an executable.
17317 hardcode_action=$hardcode_action
17319 # ### END LIBTOOL CONFIG
17325 cat <<\_LT_EOF >> "$cfgfile"
17326 # AIX sometimes has problems with the GCC collect2 program. For some
17327 # reason, if we set the COLLECT_NAMES environment variable, the problems
17328 # vanish in a puff of smoke.
17329 if test "X${COLLECT_NAMES+set}" != Xset; then
17331 export COLLECT_NAMES
17338 ltmain="$ac_aux_dir/ltmain.sh"
17341 # We use sed instead of cat because bash on DJGPP gets confused if
17342 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17343 # text mode, it properly converts lines to CR/LF. This bash problem
17344 # is reportedly fixed, but why not run on old versions too?
17345 sed '$q' "$ltmain" >> "$cfgfile" \
17346 || (rm -f "$cfgfile"; exit 1)
17348 if test x"$xsi_shell" = xyes; then
17349 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17353 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17354 \ * ) func_dirname_result="${3}" ;;\
17356 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17357 && mv -f "$cfgfile.tmp" "$cfgfile" \
17358 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17359 test 0 -eq $? || _lt_function_replace_fail=:
17362 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17365 \ func_basename_result="${1##*/}"\
17366 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17367 && mv -f "$cfgfile.tmp" "$cfgfile" \
17368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17369 test 0 -eq $? || _lt_function_replace_fail=:
17372 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17373 func_dirname_and_basename ()\
17376 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17377 \ * ) func_dirname_result="${3}" ;;\
17379 \ func_basename_result="${1##*/}"\
17380 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17381 && mv -f "$cfgfile.tmp" "$cfgfile" \
17382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17383 test 0 -eq $? || _lt_function_replace_fail=:
17386 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17389 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17390 \ # positional parameters, so assign one to ordinary parameter first.\
17391 \ func_stripname_result=${3}\
17392 \ func_stripname_result=${func_stripname_result#"${1}"}\
17393 \ func_stripname_result=${func_stripname_result%"${2}"}\
17394 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17395 && mv -f "$cfgfile.tmp" "$cfgfile" \
17396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17397 test 0 -eq $? || _lt_function_replace_fail=:
17400 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17401 func_split_long_opt ()\
17403 \ func_split_long_opt_name=${1%%=*}\
17404 \ func_split_long_opt_arg=${1#*=}\
17405 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17406 && mv -f "$cfgfile.tmp" "$cfgfile" \
17407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17408 test 0 -eq $? || _lt_function_replace_fail=:
17411 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17412 func_split_short_opt ()\
17414 \ func_split_short_opt_arg=${1#??}\
17415 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17416 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17417 && mv -f "$cfgfile.tmp" "$cfgfile" \
17418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17419 test 0 -eq $? || _lt_function_replace_fail=:
17422 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17426 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17427 \ *) func_lo2o_result=${1} ;;\
17429 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17430 && mv -f "$cfgfile.tmp" "$cfgfile" \
17431 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17432 test 0 -eq $? || _lt_function_replace_fail=:
17435 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17438 func_xform_result=${1%.*}.lo\
17439 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17440 && mv -f "$cfgfile.tmp" "$cfgfile" \
17441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17442 test 0 -eq $? || _lt_function_replace_fail=:
17445 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17448 func_arith_result=$(( $* ))\
17449 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17450 && mv -f "$cfgfile.tmp" "$cfgfile" \
17451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17452 test 0 -eq $? || _lt_function_replace_fail=:
17455 sed -e '/^func_len ()$/,/^} # func_len /c\
17458 func_len_result=${#1}\
17459 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17460 && mv -f "$cfgfile.tmp" "$cfgfile" \
17461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17462 test 0 -eq $? || _lt_function_replace_fail=:
17466 if test x"$lt_shell_append" = xyes; then
17467 sed -e '/^func_append ()$/,/^} # func_append /c\
17470 eval "${1}+=\\${2}"\
17471 } # Extended-shell func_append implementation' "$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=:
17477 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17478 func_append_quoted ()\
17480 \ func_quote_for_eval "${2}"\
17481 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17482 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17483 && mv -f "$cfgfile.tmp" "$cfgfile" \
17484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17485 test 0 -eq $? || _lt_function_replace_fail=:
17488 # Save a `func_append' function call where possible by direct use of '+='
17489 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17490 && mv -f "$cfgfile.tmp" "$cfgfile" \
17491 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17492 test 0 -eq $? || _lt_function_replace_fail=:
17494 # Save a `func_append' function call even when '+=' is not available
17495 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17496 && mv -f "$cfgfile.tmp" "$cfgfile" \
17497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17498 test 0 -eq $? || _lt_function_replace_fail=:
17501 if test x"$_lt_function_replace_fail" = x":"; then
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17503 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17507 mv -f "$cfgfile" "$ofile" ||
17508 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17512 "include":C) test -d include || mkdir include ;;
17514 test -d src || mkdir src
17515 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17524 ac_clean_files=$ac_clean_files_save
17526 test $ac_write_fail = 0 ||
17527 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17530 # configure is writing to config.log, and then calls config.status.
17531 # config.status does its own redirection, appending to config.log.
17532 # Unfortunately, on DOS this fails, as config.log is still kept open
17533 # by configure, so config.status won't be able to write to it; its
17534 # output is simply discarded. So we exec the FD to /dev/null,
17535 # effectively closing config.log, so it can be properly (re)opened and
17536 # appended to by config.status. When coming back to configure, we
17537 # need to make the FD available again.
17538 if test "$no_create" != yes; then
17540 ac_config_status_args=
17541 test "$silent" = yes &&
17542 ac_config_status_args="$ac_config_status_args --quiet"
17544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17547 # would make configure fail if this is the last instruction.
17548 $ac_cs_success || as_fn_exit 1
17550 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17552 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}