2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libffi 3.0.11.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://github.com/atgreen/libffi/issues about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='libffi'
572 PACKAGE_TARNAME='libffi'
573 PACKAGE_VERSION='3.0.11'
574 PACKAGE_STRING='libffi 3.0.11'
575 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
578 # Factoring default headers for most tests.
579 ac_includes_default="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
614 ac_subst_vars='am__EXEEXT_FALSE
624 FFI_EXEC_TRAMPOLINE_TABLE
625 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
626 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
627 sys_symbol_underscore
652 POWERPC_FREEBSD_FALSE
689 MAINTAINER_MODE_FALSE
714 am__fastdepCCAS_FALSE
743 INSTALL_STRIP_PROGRAM
758 ax_enable_builddir_sed
798 program_transform_name
811 enable_option_checking
813 enable_dependency_tracking
821 enable_portable_binary
823 enable_maintainer_mode
829 ac_precious_vars='build_alias
838 # Initialize some variables set by options.
840 ac_init_version=false
841 ac_unrecognized_opts=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
852 program_transform_name=s,x,x,
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
955 eval enable_$ac_useropt=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=\$ac_optarg ;;
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
996 -help | --help | --hel | --he | -h)
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 htmldir=$ac_optarg ;;
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1026 -libdir | --libdir | --libdi | --libd)
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1117 -psdir | --psdir | --psdi | --psd | --ps)
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 sbindir=$ac_optarg ;;
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 sharedstatedir=$ac_optarg ;;
1143 -site | --site | --sit)
1145 -site=* | --site=* | --sit=*)
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151 srcdir=$ac_optarg ;;
1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158 sysconfdir=$ac_optarg ;;
1160 -target | --target | --targe | --targ | --tar | --ta | --t)
1161 ac_prev=target_alias ;;
1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163 target_alias=$ac_optarg ;;
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 as_fn_error $? "invalid package name: $ac_useropt"
1192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1201 eval with_$ac_useropt=no ;;
1204 # Obsolete; use --with-x.
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212 x_includes=$ac_optarg ;;
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219 x_libraries=$ac_optarg ;;
1221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232 eval $ac_envvar=\$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 if test -n "$ac_prev"; then
1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $? "missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 # Check all directory arguments for consistency.
1260 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
1265 eval ac_val=\$$ac_var
1266 # Remove trailing slashes.
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1272 # Be sure to have absolute directory names.
1274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1285 target=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
1291 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used" >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of libffi 3.0.11:";;
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --disable-builddir disable automatic build in subdir of sources
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --enable-shared[=PKGS] build shared libraries [default=yes]
1462 --enable-static[=PKGS] build static libraries [default=yes]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --disable-libtool-lock avoid locking (might break parallel builds)
1466 --enable-portable-binary
1467 disable compiler optimizations that would produce
1469 --enable-maintainer-mode enable make rules and dependencies not useful
1470 (and sometimes confusing) to the casual installer
1471 --enable-debug debugging mode
1472 --disable-structs omit code for struct support
1473 --disable-raw-api make the raw api unavailable
1474 --enable-purify-safety purify-safe mode
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-sysroot=DIR Search for dependent libraries within DIR
1483 (or the compiler's sysroot if not specified).
1484 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CCAS assembler compiler command (defaults to CC)
1496 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to <http://github.com/atgreen/libffi/issues>.
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1532 .) # We are building in place.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1565 libffi configure 3.0.11
1566 generated by GNU Autoconf 2.68
1568 Copyright (C) 2010 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1615 } # ac_fn_c_try_compile
1617 # ac_fn_c_try_link LINENO
1618 # -----------------------
1619 # Try to link conftest.$ac_ext, and return whether this succeeded.
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext conftest$ac_exeext
1624 if { { ac_try="$ac_link"
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_link") 2>conftest.err
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest$ac_exeext && {
1643 test "$cross_compiling" = yes ||
1644 $as_test_x conftest$ac_exeext
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655 # interfere with the next link command; also delete a directory that is
1656 # left behind by Apple's compiler. We do this before executing the actions.
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_link
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673 $as_echo_n "(cached) " >&6
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1680 if ac_fn_c_try_compile "$LINENO"; then :
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 } # ac_fn_c_check_header_compile
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } > conftest.i && {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1765 ac_retval=$ac_status
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (); below.
1792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793 <limits.h> exists even on freestanding compilers. */
1796 # include <limits.h>
1798 # include <assert.h>
1803 /* Override any GCC internal prototype to avoid an error.
1804 Use char because int might match the return type of a GCC
1805 builtin and then its argument prototype would still apply. */
1810 /* The GNU C library defines this for functions which it implements
1811 to always fail with ENOSYS. Some functions are actually named
1812 something starting with __ and the normal name is an alias. */
1813 #if defined __stub_$2 || defined __stub___$2
1825 if ac_fn_c_try_link "$LINENO"; then :
1830 rm -f core conftest.err conftest.$ac_objext \
1831 conftest$ac_exeext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_func
1840 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1843 # the include files in INCLUDES and setting the cache variable VAR
1845 ac_fn_c_check_header_mongrel ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if eval \${$3+:} false; then :
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1858 # Is the header compilable?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1860 $as_echo_n "checking $2 usability... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 ac_header_compiler=yes
1869 ac_header_compiler=no
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1873 $as_echo "$ac_header_compiler" >&6; }
1875 # Is the header present?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1877 $as_echo_n "checking $2 presence... " >&6; }
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1882 if ac_fn_c_try_cpp "$LINENO"; then :
1883 ac_header_preproc=yes
1885 ac_header_preproc=no
1887 rm -f conftest.err conftest.i conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1889 $as_echo "$ac_header_preproc" >&6; }
1891 # So? What about this header?
1892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1895 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1901 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1903 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1905 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1907 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 ( $as_echo "## ------------------------------------------------------ ##
1911 ## Report this to http://github.com/atgreen/libffi/issues ##
1912 ## ------------------------------------------------------ ##"
1913 ) | sed "s/^/$as_me: WARNING: /" >&2
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1921 eval "$3=\$ac_header_compiler"
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_header_mongrel
1931 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932 # -------------------------------------------
1933 # Tests whether TYPE exists after having included INCLUDES, setting cache
1934 # variable VAR accordingly.
1935 ac_fn_c_check_type ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_type
1985 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1986 # --------------------------------------------
1987 # Tries to find the compile-time value of EXPR in a program that includes
1988 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1990 ac_fn_c_compute_int ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if test "$cross_compiling" = yes; then
1994 # Depending upon the size, compute the lo and hi bounds.
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2001 static int test_array [1 - 2 * !(($2) >= 0)];
2008 if ac_fn_c_try_compile "$LINENO"; then :
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2017 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 ac_hi=$ac_mid; break
2027 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2028 if test $ac_lo -le $ac_mid; then
2032 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2043 static int test_array [1 - 2 * !(($2) < 0)];
2050 if ac_fn_c_try_compile "$LINENO"; then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 ac_lo=$ac_mid; break
2069 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2070 if test $ac_mid -le $ac_hi; then
2074 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 # Binary search between lo and hi bounds.
2085 while test "x$ac_lo" != "x$ac_hi"; do
2086 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2093 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2100 if ac_fn_c_try_compile "$LINENO"; then :
2103 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2115 static long int longval () { return $2; }
2116 static unsigned long int ulongval () { return $2; }
2123 FILE *f = fopen ("conftest.val", "w");
2128 long int i = longval ();
2131 fprintf (f, "%ld", i);
2135 unsigned long int i = ulongval ();
2138 fprintf (f, "%lu", i);
2140 /* Do not output a trailing newline, as this causes \r\n confusion
2141 on some platforms. */
2142 return ferror (f) || fclose (f) != 0;
2148 if ac_fn_c_try_run "$LINENO"; then :
2149 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2154 conftest.$ac_objext conftest.beam conftest.$ac_ext
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 as_fn_set_status $ac_retval
2161 } # ac_fn_c_compute_int
2162 cat >config.log <<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2166 It was created by libffi $as_me 3.0.11, which was
2167 generated by GNU Autoconf 2.68. Invocation command line was
2179 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2185 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2188 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2227 ac_must_keep_next=false
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2243 as_fn_append ac_configure_args1 " '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256 -* ) ac_must_keep_next=true ;;
2259 as_fn_append ac_configure_args " '$ac_arg'"
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2277 $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2281 # The following way of writing the cache mishandles newlines in values,
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2317 for ac_var in $ac_subst_vars
2319 eval ac_val=\$$ac_var
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323 $as_echo "$ac_var='\''$ac_val'\''"
2327 if test -n "$ac_subst_files"; then
2328 $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2332 for ac_var in $ac_subst_files
2334 eval ac_val=\$$ac_var
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 $as_echo "$ac_var='\''$ac_val'\''"
2343 if test -s confdefs.h; then
2344 $as_echo "## ----------- ##
2351 test "$ac_signal" != 0 &&
2352 $as_echo "$as_me: caught signal $ac_signal"
2353 $as_echo "$as_me: exit $exit_status"
2355 rm -f core *.core core.conftest.* &&
2356 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2359 for ac_signal in 1 2 13 15; do
2360 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest* confdefs.h
2367 $as_echo "/* confdefs.h */" > confdefs.h
2369 # Predefined preprocessor variables.
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2400 if test -n "$CONFIG_SITE"; then
2401 # We do not want a PATH search for config.site.
2402 case $CONFIG_SITE in #((
2403 -*) ac_site_file1=./$CONFIG_SITE;;
2404 */*) ac_site_file1=$CONFIG_SITE;;
2405 *) ac_site_file1=./$CONFIG_SITE;;
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416 test "x$ac_site_file" = xNONE && continue
2417 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2422 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $? "failed to load site script $ac_site_file
2425 See \`config.log' for more details" "$LINENO" 5; }
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2446 # Check that the precious variables saved in the cache have kept the same
2448 ac_cache_corrupted=false
2449 for ac_var in $ac_precious_vars; do
2450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2451 eval ac_new_set=\$ac_env_${ac_var}_set
2452 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2453 eval ac_new_val=\$ac_env_${ac_var}_value
2454 case $ac_old_set,$ac_new_set in
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2461 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2465 if test "x$ac_old_val" != "x$ac_new_val"; then
2466 # differences in whitespace do not lead to failure.
2467 ac_old_val_w=`echo x $ac_old_val`
2468 ac_new_val_w=`echo x $ac_new_val`
2469 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2471 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2472 ac_cache_corrupted=:
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2475 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2476 eval $ac_var=\$ac_old_val
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2479 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2481 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2484 # Pass precious variables to config.status.
2485 if test "$ac_new_set" = set; then
2487 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2488 *) ac_arg=$ac_var=$ac_new_val ;;
2490 case " $ac_configure_args " in
2491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2492 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2496 if $ac_cache_corrupted; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 ac_config_headers="$ac_config_headers fficonfig.h"
2518 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2519 if test -f "$ac_dir/install-sh"; then
2521 ac_install_sh="$ac_aux_dir/install-sh -c"
2523 elif test -f "$ac_dir/install.sh"; then
2525 ac_install_sh="$ac_aux_dir/install.sh -c"
2527 elif test -f "$ac_dir/shtool"; then
2529 ac_install_sh="$ac_aux_dir/shtool install -c"
2533 if test -z "$ac_aux_dir"; then
2534 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2537 # These three variables are undocumented and unsupported,
2538 # and are intended to be withdrawn in a future Autoconf release.
2539 # They can cause serious problems if a builder's source tree is in a directory
2540 # whose full name contains unusual characters.
2541 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2542 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2543 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2546 # Make sure we can run config.sub.
2547 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2548 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2551 $as_echo_n "checking build system type... " >&6; }
2552 if ${ac_cv_build+:} false; then :
2553 $as_echo_n "(cached) " >&6
2555 ac_build_alias=$build_alias
2556 test "x$ac_build_alias" = x &&
2557 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2558 test "x$ac_build_alias" = x &&
2559 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2560 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2561 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2565 $as_echo "$ac_cv_build" >&6; }
2566 case $ac_cv_build in
2568 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2571 ac_save_IFS=$IFS; IFS='-'
2577 # Remember, the first character of IFS is used to create $*,
2578 # except with old shells:
2581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2585 $as_echo_n "checking host system type... " >&6; }
2586 if ${ac_cv_host+:} false; then :
2587 $as_echo_n "(cached) " >&6
2589 if test "x$host_alias" = x; then
2590 ac_cv_host=$ac_cv_build
2592 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2593 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2598 $as_echo "$ac_cv_host" >&6; }
2601 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2604 ac_save_IFS=$IFS; IFS='-'
2610 # Remember, the first character of IFS is used to create $*,
2611 # except with old shells:
2614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2618 $as_echo_n "checking target system type... " >&6; }
2619 if ${ac_cv_target+:} false; then :
2620 $as_echo_n "(cached) " >&6
2622 if test "x$target_alias" = x; then
2623 ac_cv_target=$ac_cv_host
2625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2626 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2631 $as_echo "$ac_cv_target" >&6; }
2632 case $ac_cv_target in
2634 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2636 target=$ac_cv_target
2637 ac_save_IFS=$IFS; IFS='-'
2643 # Remember, the first character of IFS is used to create $*,
2644 # except with old shells:
2647 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2650 # The aliases save the names the user supplied, while $host etc.
2651 # will get canonicalized.
2652 test -n "$target_alias" &&
2653 test "$program_prefix$program_suffix$program_transform_name" = \
2655 program_prefix=${target_alias}-
2657 target_alias=${target_alias-$host_alias}
2659 . ${srcdir}/configure.host
2662 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2663 if test "${ac_configure_args+set}" != "set" ; then
2665 for ac_arg in ${1+"$@"}; do
2666 ac_configure_args="$ac_configure_args '$ac_arg'"
2670 # expand $ac_aux_dir to an absolute path
2671 am_aux_dir=`cd $ac_aux_dir && pwd`
2674 ax_enable_builddir="."
2675 # Check whether --enable-builddir was given.
2676 if test "${enable_builddir+set}" = set; then :
2677 enableval=$enable_builddir; ax_enable_builddir="$enableval"
2679 ax_enable_builddir="auto"
2682 if test ".$ac_srcdir_defaulted" != ".no" ; then
2683 if test ".$srcdir" = ".." ; then
2684 if test -f config.status ; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2686 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2688 test ".$ax_enable_builddir" = "." && ax_enable_builddir="."
2689 test ".$ax_enable_builddir" = ".no" && ax_enable_builddir="."
2690 test ".$TARGET" = "." && TARGET="$target"
2691 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2692 if test ".$ax_enable_builddir" != ".." ; then # we know where to go and
2693 as_dir=$ax_enable_builddir; as_fn_mkdir_p
2694 echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2695 cd $ax_enable_builddir
2696 if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2699 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2701 as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2703 srcdir=`echo "$ax_enable_builddir" |
2704 sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2705 # going to restart from subdirectory location
2706 test -f $srcdir/config.log && mv $srcdir/config.log .
2707 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
2708 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2709 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2711 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2712 case "$0" in # restart
2713 /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2714 *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2719 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2720 # Extract the first word of "gsed sed", so it can be a program name with args.
2721 set dummy gsed sed; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2725 $as_echo_n "(cached) " >&6
2727 case $ax_enable_builddir_sed in
2729 ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2751 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2752 if test -n "$ax_enable_builddir_sed"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2754 $as_echo "$ax_enable_builddir_sed" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2761 ax_enable_builddir_auxdir="$am_aux_dir"
2762 ac_config_commands="$ac_config_commands buildir"
2765 am__api_version='1.11'
2767 # Find a good install program. We prefer a C program (faster),
2768 # so one script is as good as another. But avoid the broken or
2769 # incompatible versions:
2770 # SysV /etc/install, /usr/sbin/install
2771 # SunOS /usr/etc/install
2772 # IRIX /sbin/install
2774 # AmigaOS /C/install, which installs bootblocks on floppy discs
2775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2778 # OS/2's system install, which has a completely different semantic
2779 # ./install, which can be erroneously created by make from ./install.sh.
2780 # Reject install programs that cannot install multiple files.
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2782 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2783 if test -z "$INSTALL"; then
2784 if ${ac_cv_path_install+:} false; then :
2785 $as_echo_n "(cached) " >&6
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 # Account for people who put trailing slashes in PATH elements.
2793 case $as_dir/ in #((
2794 ./ | .// | /[cC]/* | \
2795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2796 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2799 # OSF1 and SCO ODT 3.0 have their own names for install.
2800 # Don't use installbsd from OSF since it installs stuff as root
2802 for ac_prog in ginstall scoinst install; do
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2805 if test $ac_prog = install &&
2806 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2807 # AIX install. It has an incompatible calling convention.
2809 elif test $ac_prog = install &&
2810 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2811 # program-specific install script used by HP pwplus--don't use.
2814 rm -rf conftest.one conftest.two conftest.dir
2815 echo one > conftest.one
2816 echo two > conftest.two
2818 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2819 test -s conftest.one && test -s conftest.two &&
2820 test -s conftest.dir/conftest.one &&
2821 test -s conftest.dir/conftest.two
2823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2836 rm -rf conftest.one conftest.two conftest.dir
2839 if test "${ac_cv_path_install+set}" = set; then
2840 INSTALL=$ac_cv_path_install
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for INSTALL within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 INSTALL=$ac_install_sh
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2850 $as_echo "$INSTALL" >&6; }
2852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2853 # It thinks the first close brace ends the variable substitution.
2854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2861 $as_echo_n "checking whether build environment is sane... " >&6; }
2864 echo timestamp > conftest.file
2865 # Reject unsafe characters in $srcdir or the absolute working directory
2866 # name. Accept space and tab only in the latter.
2870 *[\\\"\#\$\&\'\`$am_lf]*)
2871 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2874 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2875 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2878 # Do `set' in a subshell so we don't clobber the current shell's
2879 # arguments. Must try -L first in case configure is actually a
2880 # symlink; some systems play weird games with the mod time of symlinks
2881 # (eg FreeBSD returns the mod time of the symlink's containing
2884 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2885 if test "$*" = "X"; then
2887 set X `ls -t "$srcdir/configure" conftest.file`
2890 if test "$*" != "X $srcdir/configure conftest.file" \
2891 && test "$*" != "X conftest.file $srcdir/configure"; then
2893 # If neither matched, then we have a broken ls. This can happen
2894 # if, for instance, CONFIG_SHELL is bash and it inherits a
2895 # broken ls alias from the environment. This has actually
2896 # happened. Such a system could not be considered "sane".
2897 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2898 alias in your environment" "$LINENO" 5
2901 test "$2" = conftest.file
2907 as_fn_error $? "newly created file is older than distributed files!
2908 Check your system clock" "$LINENO" 5
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2912 test "$program_prefix" != NONE &&
2913 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2914 # Use a double $ so make ignores it.
2915 test "$program_suffix" != NONE &&
2916 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2917 # Double any \ or $.
2918 # By default was `s,x,x', remove it if useless.
2919 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2920 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2922 if test x"${MISSING+set}" != xset; then
2925 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2927 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2930 # Use eval to expand $SHELL
2931 if eval "$MISSING --run true"; then
2932 am_missing_run="$MISSING --run "
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2936 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2939 if test x"${install_sh}" != xset; then
2942 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2944 install_sh="\${SHELL} $am_aux_dir/install-sh"
2948 # Installed binaries are usually stripped using `strip' when the user
2949 # run `make install-strip'. However `strip' might not be the right
2950 # tool to use in cross-compilation environments, therefore Automake
2951 # will honor the `STRIP' environment variable to overrule this program.
2952 if test "$cross_compiling" != no; then
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2955 set dummy ${ac_tool_prefix}strip; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_STRIP+:} false; then :
2959 $as_echo_n "(cached) " >&6
2961 if test -n "$STRIP"; then
2962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 STRIP=$ac_cv_prog_STRIP
2982 if test -n "$STRIP"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2984 $as_echo "$STRIP" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2992 if test -z "$ac_cv_prog_STRIP"; then
2994 # Extract the first word of "strip", so it can be a program name with args.
2995 set dummy strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2999 $as_echo_n "(cached) " >&6
3001 if test -n "$ac_ct_STRIP"; then
3002 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_ac_ct_STRIP="strip"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3022 if test -n "$ac_ct_STRIP"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3024 $as_echo "$ac_ct_STRIP" >&6; }
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3030 if test "x$ac_ct_STRIP" = x; then
3033 case $cross_compiling:$ac_tool_warned in
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037 ac_tool_warned=yes ;;
3042 STRIP="$ac_cv_prog_STRIP"
3046 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3049 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3050 if test -z "$MKDIR_P"; then
3051 if ${ac_cv_path_mkdir+:} false; then :
3052 $as_echo_n "(cached) " >&6
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3058 test -z "$as_dir" && as_dir=.
3059 for ac_prog in mkdir gmkdir; do
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3062 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3063 'mkdir (GNU coreutils) '* | \
3064 'mkdir (coreutils) '* | \
3065 'mkdir (fileutils) '4.1*)
3066 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3076 test -d ./--version && rmdir ./--version
3077 if test "${ac_cv_path_mkdir+set}" = set; then
3078 MKDIR_P="$ac_cv_path_mkdir -p"
3080 # As a last resort, use the slow shell script. Don't cache a
3081 # value for MKDIR_P within a source directory, because that will
3082 # break other packages using the cache if that directory is
3083 # removed, or if the value is a relative name.
3084 MKDIR_P="$ac_install_sh -d"
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3088 $as_echo "$MKDIR_P" >&6; }
3092 [\\/$]* | ?:[\\/]*) ;;
3093 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3096 for ac_prog in gawk mawk nawk awk
3098 # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_AWK+:} false; then :
3103 $as_echo_n "(cached) " >&6
3105 if test -n "$AWK"; then
3106 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 ac_cv_prog_AWK="$ac_prog"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test -n "$AWK"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3128 $as_echo "$AWK" >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3135 test -n "$AWK" && break
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3139 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3141 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3142 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 cat >conftest.make <<\_ACEOF
3148 @echo '@@@%%%=$(MAKE)=@@@%%%'
3150 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3151 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3153 eval ac_cv_prog_make_${ac_make}_set=yes;;
3155 eval ac_cv_prog_make_${ac_make}_set=no;;
3159 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 SET_MAKE="MAKE=${MAKE-make}"
3169 rm -rf .tst 2>/dev/null
3170 mkdir .tst 2>/dev/null
3171 if test -d .tst; then
3176 rmdir .tst 2>/dev/null
3178 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3179 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3180 # is not polluted with repeated "-I."
3181 am__isrc=' -I$(srcdir)'
3182 # test to see if srcdir already configured
3183 if test -f $srcdir/config.status; then
3184 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3188 # test whether we have cygpath
3189 if test -z "$CYGPATH_W"; then
3190 if (cygpath --version) >/dev/null 2>/dev/null; then
3191 CYGPATH_W='cygpath -w'
3198 # Define the identity of the package.
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE "$PACKAGE"
3208 cat >>confdefs.h <<_ACEOF
3209 #define VERSION "$VERSION"
3212 # Some tools Automake needs.
3214 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3217 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3220 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3223 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3226 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3228 # We need awk for the "check" target. The system "awk" is bad on
3230 # Always define AMTAR for backward compatibility.
3232 AMTAR=${AMTAR-"${am_missing_run}tar"}
3234 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3241 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3242 # We must force CC to /not/ be precious variables; otherwise
3243 # the wrong, non-multilib-adjusted value will be used in multilibs.
3244 # As a side effect, we have to subst CFLAGS ourselves.
3245 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3246 # defaults of its own if none are provided.
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3258 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3295 if test -z "$ac_cv_prog_CC"; then
3297 # Extract the first word of "gcc", so it can be a program name with args.
3298 set dummy gcc; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_prog_ac_ct_CC="gcc"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325 if test -n "$ac_ct_CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327 $as_echo "$ac_ct_CC" >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3333 if test "x$ac_ct_CC" = x; then
3336 case $cross_compiling:$ac_tool_warned in
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3340 ac_tool_warned=yes ;;
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}cc; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3389 if test -z "$CC"; then
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test $ac_prog_rejected = yes; then
3421 # We found a bogon in the path, so make sure we never use it.
3422 set dummy $ac_cv_prog_CC
3424 if test $# != 0; then
3425 # We chose a different compiler from the bogus one.
3426 # However, it has the same basename, so the bogon will be chosen
3427 # first if we set CC to just the basename; use the full file name.
3429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3435 if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 $as_echo "$CC" >&6; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3445 if test -z "$CC"; then
3446 if test -n "$ac_tool_prefix"; then
3447 for ac_prog in cl.exe
3449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_CC+:} false; then :
3454 $as_echo_n "(cached) " >&6
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3486 test -n "$CC" && break
3489 if test -z "$CC"; then
3491 for ac_prog in cl.exe
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_ac_ct_CC="$ac_prog"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523 $as_echo "$ac_ct_CC" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3530 test -n "$ac_ct_CC" && break
3533 if test "x$ac_ct_CC" = x; then
3536 case $cross_compiling:$ac_tool_warned in
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540 ac_tool_warned=yes ;;
3549 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "no acceptable C compiler found in \$PATH
3552 See \`config.log' for more details" "$LINENO" 5; }
3554 # Provide some information about the compiler.
3555 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3558 for ac_option in --version -v -V -qversion; do
3559 { { ac_try="$ac_compiler $ac_option >&5"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3568 if test -s conftest.err; then
3570 ... rest of stderr output deleted ...
3571 10q' conftest.err >conftest.er1
3572 cat conftest.er1 >&5
3574 rm -f conftest.er1 conftest.err
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3590 ac_clean_files_save=$ac_clean_files
3591 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3592 # Try to create an executable without -o first, disregard a.out.
3593 # It will help us diagnose broken compilers, and finding out an intuition
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3596 $as_echo_n "checking whether the C compiler works... " >&6; }
3597 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3599 # The possible output files:
3600 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3603 for ac_file in $ac_files
3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3612 if { { ac_try="$ac_link_default"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link_default") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3624 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3625 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3626 # so that the user can short-circuit this test for compilers unknown to
3628 for ac_file in $ac_files ''
3630 test -f "$ac_file" || continue
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3635 # We found the default executable, but exeext='' is most
3639 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3641 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3643 # We set ac_cv_exeext here because the later test for it is not
3644 # safe: cross compilers may not add the suffix if given an `-o'
3645 # argument, so we may need to know it at that point already.
3646 # Even if this section looks crufty: it has the advantage of
3653 test "$ac_cv_exeext" = no && ac_cv_exeext=
3658 if test -z "$ac_file"; then :
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error 77 "C compiler cannot create executables
3667 See \`config.log' for more details" "$LINENO" 5; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3673 $as_echo_n "checking for C compiler default output file name... " >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3675 $as_echo "$ac_file" >&6; }
3676 ac_exeext=$ac_cv_exeext
3678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3681 $as_echo_n "checking for suffix of executables... " >&6; }
3682 if { { ac_try="$ac_link"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link") 2>&5
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3695 # work properly (i.e., refer to `conftest.exe'), while it won't with
3697 for ac_file in conftest.exe conftest conftest.*; do
3698 test -f "$ac_file" || continue
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3710 See \`config.log' for more details" "$LINENO" 5; }
3712 rm -f conftest conftest$ac_cv_exeext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3725 FILE *f = fopen ("conftest.out", "w");
3726 return ferror (f) || fclose (f) != 0;
3732 ac_clean_files="$ac_clean_files conftest.out"
3733 # Check that the compiler produces executables we can run. If not, either
3734 # the compiler is broken, or we cross compile.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3736 $as_echo_n "checking whether we are cross compiling... " >&6; }
3737 if test "$cross_compiling" != yes; then
3738 { { ac_try="$ac_link"
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745 (eval "$ac_link") 2>&5
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749 if { ac_try='./conftest$ac_cv_exeext'
3750 { { case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_try") 2>&5
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; }; then
3762 if test "$cross_compiling" = maybe; then
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "cannot run C compiled programs.
3768 If you meant to cross compile, use \`--host'.
3769 See \`config.log' for more details" "$LINENO" 5; }
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774 $as_echo "$cross_compiling" >&6; }
3776 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3779 $as_echo_n "checking for suffix of object files... " >&6; }
3780 if ${ac_cv_objext+:} false; then :
3781 $as_echo_n "(cached) " >&6
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3794 rm -f conftest.o conftest.obj
3795 if { { ac_try="$ac_compile"
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compile") 2>&5
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; then :
3806 for ac_file in conftest.o conftest.obj conftest.*; do
3807 test -f "$ac_file" || continue;
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3815 $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details" "$LINENO" 5; }
3823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3826 $as_echo "$ac_cv_objext" >&6; }
3827 OBJEXT=$ac_cv_objext
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831 if ${ac_cv_c_compiler_gnu+:} false; then :
3832 $as_echo_n "(cached) " >&6
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3848 if ac_fn_c_try_compile "$LINENO"; then :
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3859 if test $ac_compiler_gnu = yes; then
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3868 if ${ac_cv_prog_cc_g+:} false; then :
3869 $as_echo_n "(cached) " >&6
3871 ac_save_c_werror_flag=$ac_c_werror_flag
3872 ac_c_werror_flag=yes
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3886 if ac_fn_c_try_compile "$LINENO"; then :
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3901 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3917 if ac_fn_c_try_compile "$LINENO"; then :
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3928 $as_echo "$ac_cv_prog_cc_g" >&6; }
3929 if test "$ac_test_CFLAGS" = set; then
3930 CFLAGS=$ac_save_CFLAGS
3931 elif test $ac_cv_prog_cc_g = yes; then
3932 if test "$GCC" = yes; then
3938 if test "$GCC" = yes; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3945 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3946 if ${ac_cv_prog_cc_c89+:} false; then :
3947 $as_echo_n "(cached) " >&6
3949 ac_cv_prog_cc_c89=no
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 #include <sys/types.h>
3956 #include <sys/stat.h>
3957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3958 struct buf { int x; };
3959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960 static char *e (p, i)
3966 static char *f (char * (*g) (char **, int), char **p, ...)
3971 s = g (p, va_arg (v,int));
3976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3977 function prototypes and stuff, but not '\xHH' hex character constants.
3978 These don't provoke an error unfortunately, instead are silently treated
3979 as 'x'. The following induces an error, until -std is added to get
3980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3981 array size at least. It's necessary to write '\x00'==0 to get something
3982 that's true only with -std. */
3983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986 inside strings and character constants. */
3988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3999 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4007 CC="$ac_save_CC $ac_arg"
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_cv_prog_cc_c89=$ac_arg
4011 rm -f core conftest.err conftest.$ac_objext
4012 test "x$ac_cv_prog_cc_c89" != "xno" && break
4014 rm -f conftest.$ac_ext
4019 case "x$ac_cv_prog_cc_c89" in
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4027 CC="$CC $ac_cv_prog_cc_c89"
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4031 if test "x$ac_cv_prog_cc_c89" != xno; then :
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 DEPDIR="${am__leading_dot}deps"
4042 ac_config_commands="$ac_config_commands depfiles"
4045 am_make=${MAKE-make}
4046 cat > confinc << 'END'
4048 @echo this is the am__doit target
4051 # If we don't find an include directive, just comment out the code.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4053 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4057 # First try GNU make style include.
4058 echo "include confinc" > confmf
4059 # Ignore all kinds of additional output from `make'.
4060 case `$am_make -s -f confmf 2> /dev/null` in #(
4061 *the\ am__doit\ target*)
4067 # Now try BSD make style include.
4068 if test "$am__include" = "#"; then
4069 echo '.include "confinc"' > confmf
4070 case `$am_make -s -f confmf 2> /dev/null` in #(
4071 *the\ am__doit\ target*)
4072 am__include=.include
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4081 $as_echo "$_am_result" >&6; }
4082 rm -f confinc confmf
4084 # Check whether --enable-dependency-tracking was given.
4085 if test "${enable_dependency_tracking+set}" = set; then :
4086 enableval=$enable_dependency_tracking;
4089 if test "x$enable_dependency_tracking" != xno; then
4090 am_depcomp="$ac_aux_dir/depcomp"
4093 if test "x$enable_dependency_tracking" != xno; then
4103 depcc="$CC" am_compiler_list=
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4106 $as_echo_n "checking dependency style of $depcc... " >&6; }
4107 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4108 $as_echo_n "(cached) " >&6
4110 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4111 # We make a subdir and do the tests there. Otherwise we can end up
4112 # making bogus files that we don't know about and never remove. For
4113 # instance it was reported that on HP-UX the gcc test will end up
4114 # making a dummy file named `D' -- because `-MD' means `put the output
4117 # Copy depcomp to subdir because otherwise we won't find it if we're
4118 # using a relative directory.
4119 cp "$am_depcomp" conftest.dir
4121 # We will build objects and dependencies in a subdirectory because
4122 # it helps to detect inapplicable dependency modes. For instance
4123 # both Tru64's cc and ICC support -MD to output dependencies as a
4124 # side effect of compilation, but ICC will put the dependencies in
4125 # the current directory while Tru64 will put them in the object
4129 am_cv_CC_dependencies_compiler_type=none
4130 if test "$am_compiler_list" = ""; then
4131 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4134 case " $depcc " in #(
4135 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4138 for depmode in $am_compiler_list; do
4139 # Setup a source with many dependencies, because some compilers
4140 # like to wrap large dependency lists on column 80 (with \), and
4141 # we should not choose a depcomp mode which is confused by this.
4143 # We need to recreate these files for each test, as the compiler may
4144 # overwrite some of them when testing with obscure command lines.
4145 # This happens at least with the AIX C compiler.
4147 for i in 1 2 3 4 5 6; do
4148 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4149 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4150 # Solaris 8's {/usr,}/bin/sh.
4151 touch sub/conftst$i.h
4153 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4155 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4156 # mode. It turns out that the SunPro C++ compiler does not properly
4157 # handle `-M -o', and we need to detect this. Also, some Intel
4158 # versions had trouble with output in subdirs
4159 am__obj=sub/conftest.${OBJEXT-o}
4160 am__minus_obj="-o $am__obj"
4163 # This depmode causes a compiler race in universal mode.
4164 test "$am__universal" = false || continue
4167 # after this tag, mechanisms are not by side-effect, so they'll
4168 # only be used when explicitly requested
4169 if test "x$enable_dependency_tracking" = xyes; then
4175 msvisualcpp | msvcmsys)
4176 # This compiler won't grok `-c -o', but also, the minuso test has
4177 # not run yet. These depmodes are late enough in the game, and
4178 # so weak that their functioning should not be impacted.
4179 am__obj=conftest.${OBJEXT-o}
4184 if depmode=$depmode \
4185 source=sub/conftest.c object=$am__obj \
4186 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4187 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4188 >/dev/null 2>conftest.err &&
4189 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4191 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4193 # icc doesn't choke on unknown options, it will just issue warnings
4194 # or remarks (even with -Werror). So we grep stderr for any message
4195 # that says an option was ignored or not supported.
4196 # When given -MP, icc 7.0 and 7.1 complain thusly:
4197 # icc: Command line warning: ignoring option '-M'; no argument required
4198 # The diagnosis changed in icc 8.0:
4199 # icc: Command line remark: option '-MP' not supported
4200 if (grep 'ignoring option' conftest.err ||
4201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4202 am_cv_CC_dependencies_compiler_type=$depmode
4211 am_cv_CC_dependencies_compiler_type=none
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4216 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4217 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4220 test "x$enable_dependency_tracking" != xno \
4221 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4223 am__fastdepCC_FALSE='#'
4225 am__fastdepCC_TRUE='#'
4226 am__fastdepCC_FALSE=
4236 # By default we simply use the C compiler to build assembly code.
4238 test "${CCAS+set}" = set || CCAS=$CC
4239 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4243 depcc="$CCAS" am_compiler_list=
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246 $as_echo_n "checking dependency style of $depcc... " >&6; }
4247 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4248 $as_echo_n "(cached) " >&6
4250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4251 # We make a subdir and do the tests there. Otherwise we can end up
4252 # making bogus files that we don't know about and never remove. For
4253 # instance it was reported that on HP-UX the gcc test will end up
4254 # making a dummy file named `D' -- because `-MD' means `put the output
4257 # Copy depcomp to subdir because otherwise we won't find it if we're
4258 # using a relative directory.
4259 cp "$am_depcomp" conftest.dir
4261 # We will build objects and dependencies in a subdirectory because
4262 # it helps to detect inapplicable dependency modes. For instance
4263 # both Tru64's cc and ICC support -MD to output dependencies as a
4264 # side effect of compilation, but ICC will put the dependencies in
4265 # the current directory while Tru64 will put them in the object
4269 am_cv_CCAS_dependencies_compiler_type=none
4270 if test "$am_compiler_list" = ""; then
4271 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4276 for depmode in $am_compiler_list; do
4277 # Setup a source with many dependencies, because some compilers
4278 # like to wrap large dependency lists on column 80 (with \), and
4279 # we should not choose a depcomp mode which is confused by this.
4281 # We need to recreate these files for each test, as the compiler may
4282 # overwrite some of them when testing with obscure command lines.
4283 # This happens at least with the AIX C compiler.
4285 for i in 1 2 3 4 5 6; do
4286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4287 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4288 # Solaris 8's {/usr,}/bin/sh.
4289 touch sub/conftst$i.h
4291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4293 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4294 # mode. It turns out that the SunPro C++ compiler does not properly
4295 # handle `-M -o', and we need to detect this. Also, some Intel
4296 # versions had trouble with output in subdirs
4297 am__obj=sub/conftest.${OBJEXT-o}
4298 am__minus_obj="-o $am__obj"
4301 # This depmode causes a compiler race in universal mode.
4302 test "$am__universal" = false || continue
4305 # after this tag, mechanisms are not by side-effect, so they'll
4306 # only be used when explicitly requested
4307 if test "x$enable_dependency_tracking" = xyes; then
4313 msvisualcpp | msvcmsys)
4314 # This compiler won't grok `-c -o', but also, the minuso test has
4315 # not run yet. These depmodes are late enough in the game, and
4316 # so weak that their functioning should not be impacted.
4317 am__obj=conftest.${OBJEXT-o}
4322 if depmode=$depmode \
4323 source=sub/conftest.c object=$am__obj \
4324 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4325 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4326 >/dev/null 2>conftest.err &&
4327 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4328 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4329 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4330 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4331 # icc doesn't choke on unknown options, it will just issue warnings
4332 # or remarks (even with -Werror). So we grep stderr for any message
4333 # that says an option was ignored or not supported.
4334 # When given -MP, icc 7.0 and 7.1 complain thusly:
4335 # icc: Command line warning: ignoring option '-M'; no argument required
4336 # The diagnosis changed in icc 8.0:
4337 # icc: Command line remark: option '-MP' not supported
4338 if (grep 'ignoring option' conftest.err ||
4339 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4340 am_cv_CCAS_dependencies_compiler_type=$depmode
4349 am_cv_CCAS_dependencies_compiler_type=none
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4354 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4355 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4358 test "x$enable_dependency_tracking" != xno \
4359 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4360 am__fastdepCCAS_TRUE=
4361 am__fastdepCCAS_FALSE='#'
4363 am__fastdepCCAS_TRUE='#'
4364 am__fastdepCCAS_FALSE=
4368 if test "x$CC" != xcc; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4370 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4373 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4375 set dummy $CC; ac_cc=`$as_echo "$2" |
4376 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4377 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4378 $as_echo_n "(cached) " >&6
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4391 # Make sure it works both with $CC and with simple cc.
4392 # We do the test twice because some compilers refuse to overwrite an
4393 # existing .o file with -o, though they will create one.
4394 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4396 if { { case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401 $as_echo "$ac_try_echo"; } >&5
4402 (eval "$ac_try") 2>&5
4404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405 test $ac_status = 0; } &&
4406 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412 (eval "$ac_try") 2>&5
4414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415 test $ac_status = 0; };
4417 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4418 if test "x$CC" != xcc; then
4419 # Test first that cc exists at all.
4420 if { ac_try='cc -c conftest.$ac_ext >&5'
4421 { { case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4426 $as_echo "$ac_try_echo"; } >&5
4427 (eval "$ac_try") 2>&5
4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430 test $ac_status = 0; }; }; then
4431 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4433 if { { case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439 (eval "$ac_try") 2>&5
4441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; } &&
4443 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449 (eval "$ac_try") 2>&5
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; };
4457 # cc exists but doesn't like -o.
4458 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4463 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4465 rm -f core conftest*
4468 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4470 $as_echo "yes" >&6; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4475 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4479 # FIXME: we rely on the cache variable name because
4480 # there is no other way.
4482 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4483 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4484 if test "$am_t" != yes; then
4485 # Losing compiler, so override with the script.
4486 # FIXME: It is wrong to rewrite CC.
4487 # But if we don't then we get into trouble of one sort or another.
4488 # A longer-term fix would be to have automake use am__CC in this case,
4489 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4490 CC="$am_aux_dir/compile $CC"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4497 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4503 macro_revision='1.3293'
4517 ltmain="$ac_aux_dir/ltmain.sh"
4519 # Backslashify metacharacters that are still active within
4520 # double-quoted strings.
4521 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4523 # Same as above, but do not quote variable references.
4524 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4526 # Sed substitution to delay expansion of an escaped shell variable in a
4527 # double_quote_subst'ed string.
4528 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4530 # Sed substitution to delay expansion of an escaped single quote.
4531 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4533 # Sed substitution to avoid accidental globbing in evaled expressions
4534 no_glob_subst='s/\*/\\\*/g'
4536 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4537 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4538 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4541 $as_echo_n "checking how to print strings... " >&6; }
4542 # Test print first, because it will be a builtin if present.
4543 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4544 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4546 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4549 # Use this function as a fallback that always works.
4550 func_fallback_echo ()
4552 eval 'cat <<_LTECHO_EOF
4556 ECHO='func_fallback_echo'
4559 # func_echo_all arg...
4560 # Invoke $ECHO with all args, space-separated.
4567 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4568 $as_echo "printf" >&6; } ;;
4569 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4570 $as_echo "print -r" >&6; } ;;
4571 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4572 $as_echo "cat" >&6; } ;;
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4589 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4590 if ${ac_cv_path_SED+:} false; then :
4591 $as_echo_n "(cached) " >&6
4593 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4594 for ac_i in 1 2 3 4 5 6 7; do
4595 ac_script="$ac_script$as_nl$ac_script"
4597 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4598 { ac_script=; unset ac_script;}
4599 if test -z "$SED"; then
4600 ac_path_SED_found=false
4601 # Loop through the user's path and test for each of PROGNAME-LIST
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_prog in sed gsed; do
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4610 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4611 # Check for GNU ac_path_SED and select it if it is found.
4612 # Check for GNU $ac_path_SED
4613 case `"$ac_path_SED" --version 2>&1` in
4615 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4618 $as_echo_n 0123456789 >"conftest.in"
4621 cat "conftest.in" "conftest.in" >"conftest.tmp"
4622 mv "conftest.tmp" "conftest.in"
4623 cp "conftest.in" "conftest.nl"
4624 $as_echo '' >> "conftest.nl"
4625 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4627 as_fn_arith $ac_count + 1 && ac_count=$as_val
4628 if test $ac_count -gt ${ac_path_SED_max-0}; then
4629 # Best one so far, save it but keep looking for a better one
4630 ac_cv_path_SED="$ac_path_SED"
4631 ac_path_SED_max=$ac_count
4633 # 10*(2^10) chars as input seems more than enough
4634 test $ac_count -gt 10 && break
4636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 $ac_path_SED_found && break 3
4644 if test -z "$ac_cv_path_SED"; then
4645 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4653 $as_echo "$ac_cv_path_SED" >&6; }
4654 SED="$ac_cv_path_SED"
4657 test -z "$SED" && SED=sed
4658 Xsed="$SED -e 1s/^X//"
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4671 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4672 if ${ac_cv_path_GREP+:} false; then :
4673 $as_echo_n "(cached) " >&6
4675 if test -z "$GREP"; then
4676 ac_path_GREP_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in grep ggrep; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4686 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4687 # Check for GNU ac_path_GREP and select it if it is found.
4688 # Check for GNU $ac_path_GREP
4689 case `"$ac_path_GREP" --version 2>&1` in
4691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4694 $as_echo_n 0123456789 >"conftest.in"
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo 'GREP' >> "conftest.nl"
4701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_GREP="$ac_path_GREP"
4707 ac_path_GREP_max=$ac_count
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 $ac_path_GREP_found && break 3
4720 if test -z "$ac_cv_path_GREP"; then
4721 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724 ac_cv_path_GREP=$GREP
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4729 $as_echo "$ac_cv_path_GREP" >&6; }
4730 GREP="$ac_cv_path_GREP"
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4734 $as_echo_n "checking for egrep... " >&6; }
4735 if ${ac_cv_path_EGREP+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4739 then ac_cv_path_EGREP="$GREP -E"
4741 if test -z "$EGREP"; then
4742 ac_path_EGREP_found=false
4743 # Loop through the user's path and test for each of PROGNAME-LIST
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4748 test -z "$as_dir" && as_dir=.
4749 for ac_prog in egrep; do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4752 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4753 # Check for GNU ac_path_EGREP and select it if it is found.
4754 # Check for GNU $ac_path_EGREP
4755 case `"$ac_path_EGREP" --version 2>&1` in
4757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4760 $as_echo_n 0123456789 >"conftest.in"
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo 'EGREP' >> "conftest.nl"
4767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769 as_fn_arith $ac_count + 1 && ac_count=$as_val
4770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_EGREP="$ac_path_EGREP"
4773 ac_path_EGREP_max=$ac_count
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781 $ac_path_EGREP_found && break 3
4786 if test -z "$ac_cv_path_EGREP"; then
4787 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790 ac_cv_path_EGREP=$EGREP
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4796 $as_echo "$ac_cv_path_EGREP" >&6; }
4797 EGREP="$ac_cv_path_EGREP"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4801 $as_echo_n "checking for fgrep... " >&6; }
4802 if ${ac_cv_path_FGREP+:} false; then :
4803 $as_echo_n "(cached) " >&6
4805 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4806 then ac_cv_path_FGREP="$GREP -F"
4808 if test -z "$FGREP"; then
4809 ac_path_FGREP_found=false
4810 # Loop through the user's path and test for each of PROGNAME-LIST
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4815 test -z "$as_dir" && as_dir=.
4816 for ac_prog in fgrep; do
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4819 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4820 # Check for GNU ac_path_FGREP and select it if it is found.
4821 # Check for GNU $ac_path_FGREP
4822 case `"$ac_path_FGREP" --version 2>&1` in
4824 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4827 $as_echo_n 0123456789 >"conftest.in"
4830 cat "conftest.in" "conftest.in" >"conftest.tmp"
4831 mv "conftest.tmp" "conftest.in"
4832 cp "conftest.in" "conftest.nl"
4833 $as_echo 'FGREP' >> "conftest.nl"
4834 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4836 as_fn_arith $ac_count + 1 && ac_count=$as_val
4837 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4838 # Best one so far, save it but keep looking for a better one
4839 ac_cv_path_FGREP="$ac_path_FGREP"
4840 ac_path_FGREP_max=$ac_count
4842 # 10*(2^10) chars as input seems more than enough
4843 test $ac_count -gt 10 && break
4845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 $ac_path_FGREP_found && break 3
4853 if test -z "$ac_cv_path_FGREP"; then
4854 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4857 ac_cv_path_FGREP=$FGREP
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4863 $as_echo "$ac_cv_path_FGREP" >&6; }
4864 FGREP="$ac_cv_path_FGREP"
4867 test -z "$GREP" && GREP=grep
4887 # Check whether --with-gnu-ld was given.
4888 if test "${with_gnu_ld+set}" = set; then :
4889 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4895 if test "$GCC" = yes; then
4896 # Check if gcc -print-prog-name=ld gives a path.
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4898 $as_echo_n "checking for ld used by $CC... " >&6; }
4901 # gcc leaves a trailing carriage return which upsets mingw
4902 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4904 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4907 # Accept absolute paths.
4909 re_direlt='/[^/][^/]*/\.\./'
4910 # Canonicalize the pathname of ld
4911 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4912 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4913 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4915 test -z "$LD" && LD="$ac_prog"
4918 # If it fails, then pretend we aren't using GCC.
4922 # If it is relative, then search for the first ld in PATH.
4926 elif test "$with_gnu_ld" = yes; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4928 $as_echo_n "checking for GNU ld... " >&6; }
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4931 $as_echo_n "checking for non-GNU ld... " >&6; }
4933 if ${lt_cv_path_LD+:} false; then :
4934 $as_echo_n "(cached) " >&6
4936 if test -z "$LD"; then
4937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4938 for ac_dir in $PATH; do
4940 test -z "$ac_dir" && ac_dir=.
4941 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4942 lt_cv_path_LD="$ac_dir/$ac_prog"
4943 # Check to see if the program is GNU ld. I'd rather use --version,
4944 # but apparently some variants of GNU ld only accept -v.
4945 # Break only if it was the GNU/non-GNU ld that we prefer.
4946 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4947 *GNU* | *'with BFD'*)
4948 test "$with_gnu_ld" != no && break
4951 test "$with_gnu_ld" != yes && break
4958 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4963 if test -n "$LD"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4965 $as_echo "$LD" >&6; }
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4970 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4972 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4973 if ${lt_cv_prog_gnu_ld+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4977 case `$LD -v 2>&1 </dev/null` in
4978 *GNU* | *'with BFD'*)
4979 lt_cv_prog_gnu_ld=yes
4982 lt_cv_prog_gnu_ld=no
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4987 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4988 with_gnu_ld=$lt_cv_prog_gnu_ld
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4999 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5000 if ${lt_cv_path_NM+:} false; then :
5001 $as_echo_n "(cached) " >&6
5003 if test -n "$NM"; then
5004 # Let the user override the test.
5007 lt_nm_to_check="${ac_tool_prefix}nm"
5008 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5009 lt_nm_to_check="$lt_nm_to_check nm"
5011 for lt_tmp_nm in $lt_nm_to_check; do
5012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5013 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5015 test -z "$ac_dir" && ac_dir=.
5016 tmp_nm="$ac_dir/$lt_tmp_nm"
5017 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5018 # Check to see if the nm accepts a BSD-compat flag.
5019 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5020 # nm: unknown option "B" ignored
5021 # Tru64's nm complains that /dev/null is an invalid object file
5022 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5023 */dev/null* | *'Invalid file or object type'*)
5024 lt_cv_path_NM="$tmp_nm -B"
5028 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5030 lt_cv_path_NM="$tmp_nm -p"
5034 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5035 continue # so that we can try to find one that supports BSD flags
5044 : ${lt_cv_path_NM=no}
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5048 $as_echo "$lt_cv_path_NM" >&6; }
5049 if test "$lt_cv_path_NM" != "no"; then
5052 # Didn't find any BSD compatible name lister, look for dumpbin.
5053 if test -n "$DUMPBIN"; then :
5054 # Let the user override the test.
5056 if test -n "$ac_tool_prefix"; then
5057 for ac_prog in dumpbin "link -dump"
5059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_prog_DUMPBIN+:} false; then :
5064 $as_echo_n "(cached) " >&6
5066 if test -n "$DUMPBIN"; then
5067 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 DUMPBIN=$ac_cv_prog_DUMPBIN
5087 if test -n "$DUMPBIN"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5089 $as_echo "$DUMPBIN" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5096 test -n "$DUMPBIN" && break
5099 if test -z "$DUMPBIN"; then
5100 ac_ct_DUMPBIN=$DUMPBIN
5101 for ac_prog in dumpbin "link -dump"
5103 # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5108 $as_echo_n "(cached) " >&6
5110 if test -n "$ac_ct_DUMPBIN"; then
5111 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5131 if test -n "$ac_ct_DUMPBIN"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5133 $as_echo "$ac_ct_DUMPBIN" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 test -n "$ac_ct_DUMPBIN" && break
5143 if test "x$ac_ct_DUMPBIN" = x; then
5146 case $cross_compiling:$ac_tool_warned in
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5152 DUMPBIN=$ac_ct_DUMPBIN
5156 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5158 DUMPBIN="$DUMPBIN -symbols"
5166 if test "$DUMPBIN" != ":"; then
5170 test -z "$NM" && NM=nm
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5178 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5179 if ${lt_cv_nm_interface+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 lt_cv_nm_interface="BSD nm"
5183 echo "int some_variable = 0;" > conftest.$ac_ext
5184 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5185 (eval "$ac_compile" 2>conftest.err)
5186 cat conftest.err >&5
5187 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5188 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5189 cat conftest.err >&5
5190 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5191 cat conftest.out >&5
5192 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5193 lt_cv_nm_interface="MS dumpbin"
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5198 $as_echo "$lt_cv_nm_interface" >&6; }
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5201 $as_echo_n "checking whether ln -s works... " >&6; }
5203 if test "$LN_S" = "ln -s"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205 $as_echo "yes" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5208 $as_echo "no, using $LN_S" >&6; }
5211 # find the maximum length of command line arguments
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5213 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5214 if ${lt_cv_sys_max_cmd_len+:} false; then :
5215 $as_echo_n "(cached) " >&6
5222 # On DJGPP, this test can blow up pretty badly due to problems in libc
5223 # (any single argument exceeding 2000 bytes causes a buffer overrun
5224 # during glob expansion). Even if it were fixed, the result of this
5225 # check would be larger than it should be.
5226 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5230 # Under GNU Hurd, this test is not required because there is
5231 # no limit to the length of command line arguments.
5232 # Libtool will interpret -1 as no limit whatsoever
5233 lt_cv_sys_max_cmd_len=-1;
5236 cygwin* | mingw* | cegcc*)
5237 # On Win9x/ME, this test blows up -- it succeeds, but takes
5238 # about 5 minutes as the teststring grows exponentially.
5239 # Worse, since 9x/ME are not pre-emptively multitasking,
5240 # you end up with a "frozen" computer, even though with patience
5241 # the test eventually succeeds (with a max line length of 256k).
5242 # Instead, let's just punt: use the minimum linelength reported by
5243 # all of the supported platforms: 8192 (on NT/2K/XP).
5244 lt_cv_sys_max_cmd_len=8192;
5248 # On MiNT this can take a long time and run out of memory.
5249 lt_cv_sys_max_cmd_len=8192;
5253 # On AmigaOS with pdksh, this test takes hours, literally.
5254 # So we just punt and use a minimum line length of 8192.
5255 lt_cv_sys_max_cmd_len=8192;
5258 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5259 # This has been around since 386BSD, at least. Likely further.
5260 if test -x /sbin/sysctl; then
5261 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5262 elif test -x /usr/sbin/sysctl; then
5263 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5265 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5267 # And add a safety zone
5268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5273 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5274 lt_cv_sys_max_cmd_len=196608
5278 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5279 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5280 # nice to cause kernel panics so lets avoid the loop below.
5281 # First set a reasonable default.
5282 lt_cv_sys_max_cmd_len=16384
5284 if test -x /sbin/sysconfig; then
5285 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5286 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5291 lt_cv_sys_max_cmd_len=102400
5293 sysv5* | sco5v6* | sysv4.2uw2*)
5294 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5295 if test -n "$kargmax"; then
5296 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5298 lt_cv_sys_max_cmd_len=32768
5302 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5303 if test -n "$lt_cv_sys_max_cmd_len"; then
5304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5307 # Make teststring a little bigger before we do anything with it.
5308 # a 1K string should be a reasonable start.
5309 for i in 1 2 3 4 5 6 7 8 ; do
5310 teststring=$teststring$teststring
5312 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5313 # If test is not a shell built-in, we'll probably end up computing a
5314 # maximum length that is only half of the actual maximum length, but
5316 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5317 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5318 test $i != 17 # 1/2 MB should be enough
5321 teststring=$teststring$teststring
5323 # Only check the string length outside the loop.
5324 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5326 # Add a significant safety factor because C++ compilers can tack on
5327 # massive amounts of additional arguments before passing them to the
5328 # linker. It appears as though 1/2 is a usable value.
5329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5336 if test -n $lt_cv_sys_max_cmd_len ; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5338 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5341 $as_echo "none" >&6; }
5343 max_cmd_len=$lt_cv_sys_max_cmd_len
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5355 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5356 # Try some XSI features
5359 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5361 && eval 'test $(( 1 + 1 )) -eq 2 \
5362 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5365 $as_echo "$xsi_shell" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5369 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5371 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5373 && lt_shell_append=yes
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5375 $as_echo "$lt_shell_append" >&6; }
5378 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5388 # test EBCDIC or ASCII
5389 case `echo X|tr X '\101'` in
5390 A) # ASCII based system
5391 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5392 lt_SP2NL='tr \040 \012'
5393 lt_NL2SP='tr \015\012 \040\040'
5395 *) # EBCDIC based system
5396 lt_SP2NL='tr \100 \n'
5397 lt_NL2SP='tr \r\n \100\100'
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5410 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5411 if ${lt_cv_to_host_file_cmd+:} false; then :
5412 $as_echo_n "(cached) " >&6
5417 *-*-mingw* ) # actually msys
5418 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5421 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5423 * ) # otherwise, assume *nix
5424 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5430 *-*-mingw* ) # actually msys
5431 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5434 lt_cv_to_host_file_cmd=func_convert_file_noop
5436 * ) # otherwise, assume *nix
5437 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5441 * ) # unhandled hosts (and "normal" native builds)
5442 lt_cv_to_host_file_cmd=func_convert_file_noop
5448 to_host_file_cmd=$lt_cv_to_host_file_cmd
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5450 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5457 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5458 if ${lt_cv_to_tool_file_cmd+:} false; then :
5459 $as_echo_n "(cached) " >&6
5461 #assume ordinary cross tools, or native build.
5462 lt_cv_to_tool_file_cmd=func_convert_file_noop
5466 *-*-mingw* ) # actually msys
5467 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5475 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5477 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5484 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5485 if ${lt_cv_ld_reload_flag+:} false; then :
5486 $as_echo_n "(cached) " >&6
5488 lt_cv_ld_reload_flag='-r'
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5491 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5492 reload_flag=$lt_cv_ld_reload_flag
5493 case $reload_flag in
5495 *) reload_flag=" $reload_flag" ;;
5497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5499 cygwin* | mingw* | pw32* | cegcc*)
5500 if test "$GCC" != yes; then
5505 if test "$GCC" = yes; then
5506 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5521 if test -n "$ac_tool_prefix"; then
5522 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5523 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_prog_OBJDUMP+:} false; then :
5527 $as_echo_n "(cached) " >&6
5529 if test -n "$OBJDUMP"; then
5530 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 OBJDUMP=$ac_cv_prog_OBJDUMP
5550 if test -n "$OBJDUMP"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5552 $as_echo "$OBJDUMP" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5560 if test -z "$ac_cv_prog_OBJDUMP"; then
5561 ac_ct_OBJDUMP=$OBJDUMP
5562 # Extract the first word of "objdump", so it can be a program name with args.
5563 set dummy objdump; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5567 $as_echo_n "(cached) " >&6
5569 if test -n "$ac_ct_OBJDUMP"; then
5570 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5590 if test -n "$ac_ct_OBJDUMP"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5592 $as_echo "$ac_ct_OBJDUMP" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5598 if test "x$ac_ct_OBJDUMP" = x; then
5601 case $cross_compiling:$ac_tool_warned in
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5605 ac_tool_warned=yes ;;
5607 OBJDUMP=$ac_ct_OBJDUMP
5610 OBJDUMP="$ac_cv_prog_OBJDUMP"
5613 test -z "$OBJDUMP" && OBJDUMP=objdump
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5624 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5625 if ${lt_cv_deplibs_check_method+:} false; then :
5626 $as_echo_n "(cached) " >&6
5628 lt_cv_file_magic_cmd='$MAGIC_CMD'
5629 lt_cv_file_magic_test_file=
5630 lt_cv_deplibs_check_method='unknown'
5631 # Need to set the preceding variable on all platforms that support
5632 # interlibrary dependencies.
5633 # 'none' -- dependencies not supported.
5634 # `unknown' -- same as none, but documents that we really don't know.
5635 # 'pass_all' -- all dependencies passed with no checks.
5636 # 'test_compile' -- check by making test program.
5637 # 'file_magic [[regex]]' -- check by looking for files in library path
5638 # which responds to the $file_magic_cmd with a given extended regex.
5639 # If you have `file' or equivalent on your system and you're not sure
5640 # whether `pass_all' will *always* work, you probably want this one.
5644 lt_cv_deplibs_check_method=pass_all
5648 lt_cv_deplibs_check_method=pass_all
5652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5653 lt_cv_file_magic_cmd='/usr/bin/file -L'
5654 lt_cv_file_magic_test_file=/shlib/libc.so
5658 # func_win32_libid is a shell function defined in ltmain.sh
5659 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5660 lt_cv_file_magic_cmd='func_win32_libid'
5664 # Base MSYS/MinGW do not provide the 'file' command needed by
5665 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5666 # unless we find 'file', for example because we are cross-compiling.
5667 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5668 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5669 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5670 lt_cv_file_magic_cmd='func_win32_libid'
5672 # Keep this pattern in sync with the one in func_win32_libid.
5673 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5674 lt_cv_file_magic_cmd='$OBJDUMP -f'
5679 # use the weaker test based on 'objdump'. See mingw*.
5680 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5681 lt_cv_file_magic_cmd='$OBJDUMP -f'
5684 darwin* | rhapsody*)
5685 lt_cv_deplibs_check_method=pass_all
5688 freebsd* | dragonfly*)
5689 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5692 # Not sure whether the presence of OpenBSD here was a mistake.
5693 # Let's accept both of them until this is cleared up.
5694 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5695 lt_cv_file_magic_cmd=/usr/bin/file
5696 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5700 lt_cv_deplibs_check_method=pass_all
5705 lt_cv_deplibs_check_method=pass_all
5709 lt_cv_deplibs_check_method=pass_all
5712 hpux10.20* | hpux11*)
5713 lt_cv_file_magic_cmd=/usr/bin/file
5716 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5717 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5720 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]'
5721 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5725 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5731 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5735 irix5* | irix6* | nonstopux*)
5737 *-32|*"-32 ") libmagic=32-bit;;
5738 *-n32|*"-n32 ") libmagic=N32;;
5739 *-64|*"-64 ") libmagic=64-bit;;
5740 *) libmagic=never-match;;
5742 lt_cv_deplibs_check_method=pass_all
5745 # This must be Linux ELF.
5746 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5747 lt_cv_deplibs_check_method=pass_all
5751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5760 lt_cv_file_magic_cmd=/usr/bin/file
5761 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5765 lt_cv_deplibs_check_method=pass_all
5769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5776 osf3* | osf4* | osf5*)
5777 lt_cv_deplibs_check_method=pass_all
5781 lt_cv_deplibs_check_method=pass_all
5785 lt_cv_deplibs_check_method=pass_all
5788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5789 lt_cv_deplibs_check_method=pass_all
5793 case $host_vendor in
5795 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]'
5796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5799 lt_cv_deplibs_check_method=pass_all
5802 lt_cv_file_magic_cmd='/bin/file'
5803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5806 lt_cv_file_magic_cmd='/bin/file'
5807 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5808 lt_cv_file_magic_test_file=/lib/libc.so
5811 lt_cv_deplibs_check_method=pass_all
5814 lt_cv_deplibs_check_method=pass_all
5820 lt_cv_deplibs_check_method=pass_all
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5826 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5830 if test "$build" = "$host"; then
5833 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5836 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5842 file_magic_cmd=$lt_cv_file_magic_cmd
5843 deplibs_check_method=$lt_cv_deplibs_check_method
5844 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5867 if test -n "$ac_tool_prefix"; then
5868 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5869 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_DLLTOOL+:} false; then :
5873 $as_echo_n "(cached) " >&6
5875 if test -n "$DLLTOOL"; then
5876 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 DLLTOOL=$ac_cv_prog_DLLTOOL
5896 if test -n "$DLLTOOL"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5898 $as_echo "$DLLTOOL" >&6; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5906 if test -z "$ac_cv_prog_DLLTOOL"; then
5907 ac_ct_DLLTOOL=$DLLTOOL
5908 # Extract the first word of "dlltool", so it can be a program name with args.
5909 set dummy dlltool; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5913 $as_echo_n "(cached) " >&6
5915 if test -n "$ac_ct_DLLTOOL"; then
5916 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5936 if test -n "$ac_ct_DLLTOOL"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5938 $as_echo "$ac_ct_DLLTOOL" >&6; }
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5944 if test "x$ac_ct_DLLTOOL" = x; then
5947 case $cross_compiling:$ac_tool_warned in
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951 ac_tool_warned=yes ;;
5953 DLLTOOL=$ac_ct_DLLTOOL
5956 DLLTOOL="$ac_cv_prog_DLLTOOL"
5959 test -z "$DLLTOOL" && DLLTOOL=dlltool
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5971 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5972 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5973 $as_echo_n "(cached) " >&6
5975 lt_cv_sharedlib_from_linklib_cmd='unknown'
5978 cygwin* | mingw* | pw32* | cegcc*)
5979 # two different shell functions defined in ltmain.sh
5980 # decide which to use based on capabilities of $DLLTOOL
5981 case `$DLLTOOL --help 2>&1` in
5982 *--identify-strict*)
5983 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5986 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5991 # fallback: assume linklib IS sharedlib
5992 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5998 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5999 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6000 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6009 if test -n "$ac_tool_prefix"; then
6012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if ${ac_cv_prog_AR+:} false; then :
6017 $as_echo_n "(cached) " >&6
6019 if test -n "$AR"; then
6020 ac_cv_prog_AR="$AR" # Let the user override the test.
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 if test -n "$AR"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6042 $as_echo "$AR" >&6; }
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6049 test -n "$AR" && break
6052 if test -z "$AR"; then
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 if test -n "$ac_ct_AR"; then
6064 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_ac_ct_AR="$ac_prog"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6084 if test -n "$ac_ct_AR"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6086 $as_echo "$ac_ct_AR" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6093 test -n "$ac_ct_AR" && break
6096 if test "x$ac_ct_AR" = x; then
6099 case $cross_compiling:$ac_tool_warned in
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned=yes ;;
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6123 $as_echo_n "checking for archiver @FILE support... " >&6; }
6124 if ${lt_cv_ar_at_file+:} false; then :
6125 $as_echo_n "(cached) " >&6
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 echo conftest.$ac_objext > conftest.lst
6141 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6143 (eval $lt_ar_try) 2>&5
6145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146 test $ac_status = 0; }
6147 if test "$ac_status" -eq 0; then
6148 # Ensure the archiver fails upon bogus file names.
6149 rm -f conftest.$ac_objext libconftest.a
6150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6151 (eval $lt_ar_try) 2>&5
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }
6155 if test "$ac_status" -ne 0; then
6159 rm -f conftest.* libconftest.a
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6166 $as_echo "$lt_cv_ar_at_file" >&6; }
6168 if test "x$lt_cv_ar_at_file" = xno; then
6171 archiver_list_spec=$lt_cv_ar_at_file
6180 if test -n "$ac_tool_prefix"; then
6181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}strip; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_STRIP+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 if test -n "$STRIP"; then
6189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 STRIP=$ac_cv_prog_STRIP
6209 if test -n "$STRIP"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6211 $as_echo "$STRIP" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6219 if test -z "$ac_cv_prog_STRIP"; then
6221 # Extract the first word of "strip", so it can be a program name with args.
6222 set dummy strip; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6226 $as_echo_n "(cached) " >&6
6228 if test -n "$ac_ct_STRIP"; then
6229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_ac_ct_STRIP="strip"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6249 if test -n "$ac_ct_STRIP"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6251 $as_echo "$ac_ct_STRIP" >&6; }
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6257 if test "x$ac_ct_STRIP" = x; then
6260 case $cross_compiling:$ac_tool_warned in
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6269 STRIP="$ac_cv_prog_STRIP"
6272 test -z "$STRIP" && STRIP=:
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_RANLIB+:} false; then :
6285 $as_echo_n "(cached) " >&6
6287 if test -n "$RANLIB"; then
6288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 RANLIB=$ac_cv_prog_RANLIB
6308 if test -n "$RANLIB"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6310 $as_echo "$RANLIB" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6318 if test -z "$ac_cv_prog_RANLIB"; then
6319 ac_ct_RANLIB=$RANLIB
6320 # Extract the first word of "ranlib", so it can be a program name with args.
6321 set dummy ranlib; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6325 $as_echo_n "(cached) " >&6
6327 if test -n "$ac_ct_RANLIB"; then
6328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_ac_ct_RANLIB="ranlib"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6348 if test -n "$ac_ct_RANLIB"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6350 $as_echo "$ac_ct_RANLIB" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6356 if test "x$ac_ct_RANLIB" = x; then
6359 case $cross_compiling:$ac_tool_warned in
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6365 RANLIB=$ac_ct_RANLIB
6368 RANLIB="$ac_cv_prog_RANLIB"
6371 test -z "$RANLIB" && RANLIB=:
6378 # Determine commands to create old-style static archives.
6379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6380 old_postinstall_cmds='chmod 644 $oldlib'
6381 old_postuninstall_cmds=
6383 if test -n "$RANLIB"; then
6386 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6389 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6392 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6397 lock_old_archive_extraction=yes ;;
6399 lock_old_archive_extraction=no ;;
6440 # If no C compiler was specified, use CC.
6443 # If no C compiler flags were specified, use CFLAGS.
6444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6446 # Allow CC to be a program name with arguments.
6450 # Check for command to grab the raw symbol name followed by C symbol from nm.
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6452 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6453 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6454 $as_echo_n "(cached) " >&6
6457 # These are sane defaults that work on at least a few old systems.
6458 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6460 # Character class describing NM global symbol codes.
6461 symcode='[BCDEGRST]'
6463 # Regexp to match symbols that can be accessed directly from C.
6464 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6466 # Define system-specific variables.
6471 cygwin* | mingw* | pw32* | cegcc*)
6472 symcode='[ABCDGISTW]'
6475 if test "$host_cpu" = ia64; then
6476 symcode='[ABCDEGRST]'
6480 symcode='[BCDEGRST]'
6483 symcode='[BCDEGQRST]'
6494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6502 # If we're using GNU nm, then use its standard symbol codes.
6503 case `$NM -V 2>&1` in
6504 *GNU* | *'with BFD'*)
6505 symcode='[ABCDGIRSTW]' ;;
6508 # Transform an extracted symbol line into a proper C declaration.
6509 # Some systems (esp. on ia64) link data and code symbols differently,
6510 # so use this general approach.
6511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6513 # Transform an extracted symbol line into symbol name and symbol address
6514 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6515 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'"
6517 # Handle CRLF in mingw tool chain
6521 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6525 # Try without a prefix underscore, then with it.
6526 for ac_symprfx in "" "_"; do
6528 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6529 symxfrm="\\1 $ac_symprfx\\2 \\2"
6531 # Write the raw and C identifiers.
6532 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6533 # Fake it for dumpbin and say T for any non-static function
6534 # and D for any global variable.
6535 # Also find C++ and __fastcall symbols from MSVC++,
6536 # which start with @ or ?.
6537 lt_cv_sys_global_symbol_pipe="$AWK '"\
6538 " {last_section=section; section=\$ 3};"\
6539 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6540 " \$ 0!~/External *\|/{next};"\
6541 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6542 " {if(hide[section]) next};"\
6543 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6544 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6545 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6546 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6547 " ' prfx=^$ac_symprfx"
6549 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6551 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6553 # Check to see that the pipe works correctly.
6557 cat > conftest.$ac_ext <<_LT_EOF
6562 void nm_test_func(void);
6563 void nm_test_func(void){}
6567 int main(){nm_test_var='a';nm_test_func();return(0);}
6570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6571 (eval $ac_compile) 2>&5
6573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574 test $ac_status = 0; }; then
6575 # Now try to grab the symbols.
6577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6578 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581 test $ac_status = 0; } && test -s "$nlist"; then
6582 # Try sorting and uniquifying the output.
6583 if sort "$nlist" | uniq > "$nlist"T; then
6584 mv -f "$nlist"T "$nlist"
6589 # Make sure that we snagged all the symbols we need.
6590 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6591 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6592 cat <<_LT_EOF > conftest.$ac_ext
6593 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6594 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6595 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6596 relocations are performed -- see ld's documentation on pseudo-relocs. */
6597 # define LT_DLSYM_CONST
6598 #elif defined(__osf__)
6599 /* This system does not cope well with relocations in const data. */
6600 # define LT_DLSYM_CONST
6602 # define LT_DLSYM_CONST const
6610 # Now generate the symbol file.
6611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6613 cat <<_LT_EOF >> conftest.$ac_ext
6615 /* The mapping between symbol names and symbols. */
6616 LT_DLSYM_CONST struct {
6620 lt__PROGRAM__LTX_preloaded_symbols[] =
6622 { "@PROGRAM@", (void *) 0 },
6624 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6625 cat <<\_LT_EOF >> conftest.$ac_ext
6629 /* This works around a problem in FreeBSD linker */
6630 #ifdef FREEBSD_WORKAROUND
6631 static const void *lt_preloaded_setup() {
6632 return lt__PROGRAM__LTX_preloaded_symbols;
6640 # Now try linking the two files.
6641 mv conftest.$ac_objext conftstm.$ac_objext
6642 lt_globsym_save_LIBS=$LIBS
6643 lt_globsym_save_CFLAGS=$CFLAGS
6644 LIBS="conftstm.$ac_objext"
6645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6647 (eval $ac_link) 2>&5
6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6653 LIBS=$lt_globsym_save_LIBS
6654 CFLAGS=$lt_globsym_save_CFLAGS
6656 echo "cannot find nm_test_func in $nlist" >&5
6659 echo "cannot find nm_test_var in $nlist" >&5
6662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6665 echo "$progname: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 rm -rf conftest* conftst*
6670 # Do not use the global_symbol_pipe unless it works.
6671 if test "$pipe_works" = yes; then
6674 lt_cv_sys_global_symbol_pipe=
6680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6681 lt_cv_sys_global_symbol_to_cdecl=
6683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6685 $as_echo "failed" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6688 $as_echo "ok" >&6; }
6691 # Response file support.
6692 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6693 nm_file_list_spec='@'
6694 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6695 nm_file_list_spec='@'
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6725 $as_echo_n "checking for sysroot... " >&6; }
6727 # Check whether --with-sysroot was given.
6728 if test "${with_sysroot+set}" = set; then :
6729 withval=$with_sysroot;
6736 case ${with_sysroot} in #(
6738 if test "$GCC" = yes; then
6739 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6743 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6749 $as_echo "${with_sysroot}" >&6; }
6750 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6755 $as_echo "${lt_sysroot:-no}" >&6; }
6761 # Check whether --enable-libtool-lock was given.
6762 if test "${enable_libtool_lock+set}" = set; then :
6763 enableval=$enable_libtool_lock;
6766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6768 # Some flags need to be propagated to the compiler or linker for good
6772 # Find out which ABI we are using.
6773 echo 'int i;' > conftest.$ac_ext
6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6775 (eval $ac_compile) 2>&5
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; }; then
6779 case `/usr/bin/file conftest.$ac_objext` in
6791 # Find out which ABI we are using.
6792 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794 (eval $ac_compile) 2>&5
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; }; then
6798 if test "$lt_cv_prog_gnu_ld" = yes; then
6799 case `/usr/bin/file conftest.$ac_objext` in
6801 LD="${LD-ld} -melf32bsmip"
6804 LD="${LD-ld} -melf32bmipn32"
6807 LD="${LD-ld} -melf64bmip"
6811 case `/usr/bin/file conftest.$ac_objext` in
6827 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6828 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6829 # Find out which ABI we are using.
6830 echo 'int i;' > conftest.$ac_ext
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.o` in
6839 x86_64-*kfreebsd*-gnu)
6840 LD="${LD-ld} -m elf_i386_fbsd"
6843 case `/usr/bin/file conftest.o` in
6845 LD="${LD-ld} -m elf32_x86_64"
6848 LD="${LD-ld} -m elf_i386"
6852 ppc64-*linux*|powerpc64-*linux*)
6853 LD="${LD-ld} -m elf32ppclinux"
6856 LD="${LD-ld} -m elf_s390"
6859 LD="${LD-ld} -m elf32_sparc"
6865 x86_64-*kfreebsd*-gnu)
6866 LD="${LD-ld} -m elf_x86_64_fbsd"
6869 LD="${LD-ld} -m elf_x86_64"
6871 ppc*-*linux*|powerpc*-*linux*)
6872 LD="${LD-ld} -m elf64ppc"
6874 s390*-*linux*|s390*-*tpf*)
6875 LD="${LD-ld} -m elf64_s390"
6878 LD="${LD-ld} -m elf64_sparc"
6888 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6889 SAVE_CFLAGS="$CFLAGS"
6890 CFLAGS="$CFLAGS -belf"
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6892 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6893 if ${lt_cv_cc_needs_belf+:} false; then :
6894 $as_echo_n "(cached) " >&6
6897 ac_cpp='$CPP $CPPFLAGS'
6898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6913 if ac_fn_c_try_link "$LINENO"; then :
6914 lt_cv_cc_needs_belf=yes
6916 lt_cv_cc_needs_belf=no
6918 rm -f core conftest.err conftest.$ac_objext \
6919 conftest$ac_exeext conftest.$ac_ext
6921 ac_cpp='$CPP $CPPFLAGS'
6922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6928 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6929 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6930 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6931 CFLAGS="$SAVE_CFLAGS"
6935 # Find out which ABI we are using.
6936 echo 'int i;' > conftest.$ac_ext
6937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6938 (eval $ac_compile) 2>&5
6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941 test $ac_status = 0; }; then
6942 case `/usr/bin/file conftest.o` in
6944 case $lt_cv_prog_gnu_ld in
6945 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6947 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6959 need_locks="$enable_libtool_lock"
6961 if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}mt; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6967 $as_echo_n "(cached) " >&6
6969 if test -n "$MANIFEST_TOOL"; then
6970 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6990 if test -n "$MANIFEST_TOOL"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6992 $as_echo "$MANIFEST_TOOL" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
7000 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7001 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7002 # Extract the first word of "mt", so it can be a program name with args.
7003 set dummy mt; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7007 $as_echo_n "(cached) " >&6
7009 if test -n "$ac_ct_MANIFEST_TOOL"; then
7010 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7030 if test -n "$ac_ct_MANIFEST_TOOL"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7032 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7038 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7041 case $cross_compiling:$ac_tool_warned in
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045 ac_tool_warned=yes ;;
7047 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7050 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7053 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7055 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7056 if ${lt_cv_path_mainfest_tool+:} false; then :
7057 $as_echo_n "(cached) " >&6
7059 lt_cv_path_mainfest_tool=no
7060 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7061 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7062 cat conftest.err >&5
7063 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7064 lt_cv_path_mainfest_tool=yes
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7069 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7070 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7080 rhapsody* | darwin*)
7081 if test -n "$ac_tool_prefix"; then
7082 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7087 $as_echo_n "(cached) " >&6
7089 if test -n "$DSYMUTIL"; then
7090 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7110 if test -n "$DSYMUTIL"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7112 $as_echo "$DSYMUTIL" >&6; }
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7120 if test -z "$ac_cv_prog_DSYMUTIL"; then
7121 ac_ct_DSYMUTIL=$DSYMUTIL
7122 # Extract the first word of "dsymutil", so it can be a program name with args.
7123 set dummy dsymutil; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 if test -n "$ac_ct_DSYMUTIL"; then
7130 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7150 if test -n "$ac_ct_DSYMUTIL"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7152 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7158 if test "x$ac_ct_DSYMUTIL" = x; then
7161 case $cross_compiling:$ac_tool_warned in
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165 ac_tool_warned=yes ;;
7167 DSYMUTIL=$ac_ct_DSYMUTIL
7170 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7173 if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7175 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_NMEDIT+:} false; then :
7179 $as_echo_n "(cached) " >&6
7181 if test -n "$NMEDIT"; then
7182 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 NMEDIT=$ac_cv_prog_NMEDIT
7202 if test -n "$NMEDIT"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7204 $as_echo "$NMEDIT" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7212 if test -z "$ac_cv_prog_NMEDIT"; then
7213 ac_ct_NMEDIT=$NMEDIT
7214 # Extract the first word of "nmedit", so it can be a program name with args.
7215 set dummy nmedit; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7219 $as_echo_n "(cached) " >&6
7221 if test -n "$ac_ct_NMEDIT"; then
7222 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7242 if test -n "$ac_ct_NMEDIT"; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7244 $as_echo "$ac_ct_NMEDIT" >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247 $as_echo "no" >&6; }
7250 if test "x$ac_ct_NMEDIT" = x; then
7253 case $cross_compiling:$ac_tool_warned in
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257 ac_tool_warned=yes ;;
7259 NMEDIT=$ac_ct_NMEDIT
7262 NMEDIT="$ac_cv_prog_NMEDIT"
7265 if test -n "$ac_tool_prefix"; then
7266 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7267 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if ${ac_cv_prog_LIPO+:} false; then :
7271 $as_echo_n "(cached) " >&6
7273 if test -n "$LIPO"; then
7274 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 LIPO=$ac_cv_prog_LIPO
7294 if test -n "$LIPO"; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7296 $as_echo "$LIPO" >&6; }
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7304 if test -z "$ac_cv_prog_LIPO"; then
7306 # Extract the first word of "lipo", so it can be a program name with args.
7307 set dummy lipo; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7311 $as_echo_n "(cached) " >&6
7313 if test -n "$ac_ct_LIPO"; then
7314 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_prog_ac_ct_LIPO="lipo"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7334 if test -n "$ac_ct_LIPO"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7336 $as_echo "$ac_ct_LIPO" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7342 if test "x$ac_ct_LIPO" = x; then
7345 case $cross_compiling:$ac_tool_warned in
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349 ac_tool_warned=yes ;;
7354 LIPO="$ac_cv_prog_LIPO"
7357 if test -n "$ac_tool_prefix"; then
7358 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7359 set dummy ${ac_tool_prefix}otool; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_OTOOL+:} false; then :
7363 $as_echo_n "(cached) " >&6
7365 if test -n "$OTOOL"; then
7366 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 OTOOL=$ac_cv_prog_OTOOL
7386 if test -n "$OTOOL"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7388 $as_echo "$OTOOL" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7396 if test -z "$ac_cv_prog_OTOOL"; then
7398 # Extract the first word of "otool", so it can be a program name with args.
7399 set dummy otool; ac_word=$2
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7401 $as_echo_n "checking for $ac_word... " >&6; }
7402 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7403 $as_echo_n "(cached) " >&6
7405 if test -n "$ac_ct_OTOOL"; then
7406 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7415 ac_cv_prog_ac_ct_OTOOL="otool"
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7426 if test -n "$ac_ct_OTOOL"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7428 $as_echo "$ac_ct_OTOOL" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7434 if test "x$ac_ct_OTOOL" = x; then
7437 case $cross_compiling:$ac_tool_warned in
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7441 ac_tool_warned=yes ;;
7446 OTOOL="$ac_cv_prog_OTOOL"
7449 if test -n "$ac_tool_prefix"; then
7450 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_OTOOL64+:} false; then :
7455 $as_echo_n "(cached) " >&6
7457 if test -n "$OTOOL64"; then
7458 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 OTOOL64=$ac_cv_prog_OTOOL64
7478 if test -n "$OTOOL64"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7480 $as_echo "$OTOOL64" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7488 if test -z "$ac_cv_prog_OTOOL64"; then
7489 ac_ct_OTOOL64=$OTOOL64
7490 # Extract the first word of "otool64", so it can be a program name with args.
7491 set dummy otool64; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7495 $as_echo_n "(cached) " >&6
7497 if test -n "$ac_ct_OTOOL64"; then
7498 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_prog_ac_ct_OTOOL64="otool64"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7518 if test -n "$ac_ct_OTOOL64"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7520 $as_echo "$ac_ct_OTOOL64" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7526 if test "x$ac_ct_OTOOL64" = x; then
7529 case $cross_compiling:$ac_tool_warned in
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7535 OTOOL64=$ac_ct_OTOOL64
7538 OTOOL64="$ac_cv_prog_OTOOL64"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7568 $as_echo_n "checking for -single_module linker flag... " >&6; }
7569 if ${lt_cv_apple_cc_single_mod+:} false; then :
7570 $as_echo_n "(cached) " >&6
7572 lt_cv_apple_cc_single_mod=no
7573 if test -z "${LT_MULTI_MODULE}"; then
7574 # By default we will add the -single_module flag. You can override
7575 # by either setting the environment variable LT_MULTI_MODULE
7576 # non-empty at configure time, or by adding -multi_module to the
7578 rm -rf libconftest.dylib*
7579 echo "int foo(void){return 1;}" > conftest.c
7580 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7581 -dynamiclib -Wl,-single_module conftest.c" >&5
7582 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7583 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7585 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7586 lt_cv_apple_cc_single_mod=yes
7588 cat conftest.err >&5
7590 rm -rf libconftest.dylib*
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7595 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7597 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7598 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7599 $as_echo_n "(cached) " >&6
7601 lt_cv_ld_exported_symbols_list=no
7602 save_LDFLAGS=$LDFLAGS
7603 echo "_main" > conftest.sym
7604 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7616 if ac_fn_c_try_link "$LINENO"; then :
7617 lt_cv_ld_exported_symbols_list=yes
7619 lt_cv_ld_exported_symbols_list=no
7621 rm -f core conftest.err conftest.$ac_objext \
7622 conftest$ac_exeext conftest.$ac_ext
7623 LDFLAGS="$save_LDFLAGS"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7627 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7629 $as_echo_n "checking for -force_load linker flag... " >&6; }
7630 if ${lt_cv_ld_force_load+:} false; then :
7631 $as_echo_n "(cached) " >&6
7633 lt_cv_ld_force_load=no
7634 cat > conftest.c << _LT_EOF
7635 int forced_loaded() { return 2;}
7637 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7638 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7639 echo "$AR cru libconftest.a conftest.o" >&5
7640 $AR cru libconftest.a conftest.o 2>&5
7641 echo "$RANLIB libconftest.a" >&5
7642 $RANLIB libconftest.a 2>&5
7643 cat > conftest.c << _LT_EOF
7644 int main() { return 0;}
7646 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7647 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7649 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7650 lt_cv_ld_force_load=yes
7652 cat conftest.err >&5
7654 rm -f conftest.err libconftest.a conftest conftest.c
7655 rm -rf conftest.dSYM
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7659 $as_echo "$lt_cv_ld_force_load" >&6; }
7661 rhapsody* | darwin1.[012])
7662 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7664 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7665 darwin*) # darwin 5.x on
7666 # if running on 10.5 or later, the deployment target defaults
7667 # to the OS version, if on x86, and 10.4, the deployment
7668 # target defaults to 10.4. Don't you love it?
7669 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7670 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7671 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7673 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7675 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7679 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7680 _lt_dar_single_mod='$single_module'
7682 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7683 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7685 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7687 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7688 _lt_dsymutil='~$DSYMUTIL $lib || :'
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7701 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7702 # On Suns, sometimes $CPP names a directory.
7703 if test -n "$CPP" && test -d "$CPP"; then
7706 if test -z "$CPP"; then
7707 if ${ac_cv_prog_CPP+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 # Double quotes because CPP needs to be expanded
7711 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7714 for ac_c_preproc_warn_flag in '' yes
7716 # Use a header file that comes with gcc, so configuring glibc
7717 # with a fresh cross-compiler works.
7718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7719 # <limits.h> exists even on freestanding compilers.
7720 # On the NeXT, cc -E runs the code through the compiler's parser,
7721 # not just through cpp. "Syntax error" is here to catch this case.
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7725 # include <limits.h>
7727 # include <assert.h>
7731 if ac_fn_c_try_cpp "$LINENO"; then :
7734 # Broken: fails on valid input.
7737 rm -f conftest.err conftest.i conftest.$ac_ext
7739 # OK, works on sane cases. Now check whether nonexistent headers
7740 # can be detected and how.
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 #include <ac_nonexistent.h>
7745 if ac_fn_c_try_cpp "$LINENO"; then :
7746 # Broken: success on invalid input.
7749 # Passes both tests.
7753 rm -f conftest.err conftest.i conftest.$ac_ext
7756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7757 rm -f conftest.i conftest.err conftest.$ac_ext
7758 if $ac_preproc_ok; then :
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7771 $as_echo "$CPP" >&6; }
7773 for ac_c_preproc_warn_flag in '' yes
7775 # Use a header file that comes with gcc, so configuring glibc
7776 # with a fresh cross-compiler works.
7777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7778 # <limits.h> exists even on freestanding compilers.
7779 # On the NeXT, cc -E runs the code through the compiler's parser,
7780 # not just through cpp. "Syntax error" is here to catch this case.
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7784 # include <limits.h>
7786 # include <assert.h>
7790 if ac_fn_c_try_cpp "$LINENO"; then :
7793 # Broken: fails on valid input.
7796 rm -f conftest.err conftest.i conftest.$ac_ext
7798 # OK, works on sane cases. Now check whether nonexistent headers
7799 # can be detected and how.
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 #include <ac_nonexistent.h>
7804 if ac_fn_c_try_cpp "$LINENO"; then :
7805 # Broken: success on invalid input.
7808 # Passes both tests.
7812 rm -f conftest.err conftest.i conftest.$ac_ext
7815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7816 rm -f conftest.i conftest.err conftest.$ac_ext
7817 if $ac_preproc_ok; then :
7820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7822 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7823 See \`config.log' for more details" "$LINENO" 5; }
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7834 $as_echo_n "checking for ANSI C header files... " >&6; }
7835 if ${ac_cv_header_stdc+:} false; then :
7836 $as_echo_n "(cached) " >&6
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854 ac_cv_header_stdc=yes
7856 ac_cv_header_stdc=no
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 if test $ac_cv_header_stdc = yes; then
7861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7868 $EGREP "memchr" >/dev/null 2>&1; then :
7871 ac_cv_header_stdc=no
7877 if test $ac_cv_header_stdc = yes; then
7878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7885 $EGREP "free" >/dev/null 2>&1; then :
7888 ac_cv_header_stdc=no
7894 if test $ac_cv_header_stdc = yes; then
7895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7896 if test "$cross_compiling" = yes; then :
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7903 #if ((' ' & 0x0FF) == 0x020)
7904 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7905 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7907 # define ISLOWER(c) \
7908 (('a' <= (c) && (c) <= 'i') \
7909 || ('j' <= (c) && (c) <= 'r') \
7910 || ('s' <= (c) && (c) <= 'z'))
7911 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7919 for (i = 0; i < 256; i++)
7920 if (XOR (islower (i), ISLOWER (i))
7921 || toupper (i) != TOUPPER (i))
7926 if ac_fn_c_try_run "$LINENO"; then :
7929 ac_cv_header_stdc=no
7931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7932 conftest.$ac_objext conftest.beam conftest.$ac_ext
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7938 $as_echo "$ac_cv_header_stdc" >&6; }
7939 if test $ac_cv_header_stdc = yes; then
7941 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7945 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7946 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7947 inttypes.h stdint.h unistd.h
7949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7950 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7952 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7953 cat >>confdefs.h <<_ACEOF
7954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7962 for ac_header in dlfcn.h
7964 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7966 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7967 cat >>confdefs.h <<_ACEOF
7968 #define HAVE_DLFCN_H 1
7989 # Check whether --enable-shared was given.
7990 if test "${enable_shared+set}" = set; then :
7991 enableval=$enable_shared; p=${PACKAGE-default}
7993 yes) enable_shared=yes ;;
7994 no) enable_shared=no ;;
7997 # Look at the argument we got. We use all the common list separators.
7998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7999 for pkg in $enableval; do
8001 if test "X$pkg" = "X$p"; then
8020 # Check whether --enable-static was given.
8021 if test "${enable_static+set}" = set; then :
8022 enableval=$enable_static; p=${PACKAGE-default}
8024 yes) enable_static=yes ;;
8025 no) enable_static=no ;;
8028 # Look at the argument we got. We use all the common list separators.
8029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8030 for pkg in $enableval; do
8032 if test "X$pkg" = "X$p"; then
8052 # Check whether --with-pic was given.
8053 if test "${with_pic+set}" = set; then :
8054 withval=$with_pic; pic_mode="$withval"
8060 test -z "$pic_mode" && pic_mode=default
8068 # Check whether --enable-fast-install was given.
8069 if test "${enable_fast_install+set}" = set; then :
8070 enableval=$enable_fast_install; p=${PACKAGE-default}
8072 yes) enable_fast_install=yes ;;
8073 no) enable_fast_install=no ;;
8075 enable_fast_install=no
8076 # Look at the argument we got. We use all the common list separators.
8077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8078 for pkg in $enableval; do
8080 if test "X$pkg" = "X$p"; then
8081 enable_fast_install=yes
8088 enable_fast_install=yes
8101 # This can be used to rebuild libtool when needed
8102 LIBTOOL_DEPS="$ltmain"
8104 # Always use our own libtool.
8105 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8132 test -z "$LN_S" && LN_S="ln -s"
8147 if test -n "${ZSH_VERSION+set}" ; then
8148 setopt NO_GLOB_SUBST
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8152 $as_echo_n "checking for objdir... " >&6; }
8153 if ${lt_cv_objdir+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 rm -f .libs 2>/dev/null
8157 mkdir .libs 2>/dev/null
8158 if test -d .libs; then
8161 # MS-DOS does not allow filenames that begin with a dot.
8164 rmdir .libs 2>/dev/null
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8167 $as_echo "$lt_cv_objdir" >&6; }
8168 objdir=$lt_cv_objdir
8174 cat >>confdefs.h <<_ACEOF
8175 #define LT_OBJDIR "$lt_cv_objdir/"
8183 # AIX sometimes has problems with the GCC collect2 program. For some
8184 # reason, if we set the COLLECT_NAMES environment variable, the problems
8185 # vanish in a puff of smoke.
8186 if test "X${COLLECT_NAMES+set}" != Xset; then
8188 export COLLECT_NAMES
8195 can_build_shared=yes
8197 # All known linkers require a `.a' archive for static linking (except MSVC,
8198 # which needs '.lib').
8201 with_gnu_ld="$lt_cv_prog_gnu_ld"
8204 old_CFLAGS="$CFLAGS"
8206 # Set sane defaults for various variables
8207 test -z "$CC" && CC=cc
8208 test -z "$LTCC" && LTCC=$CC
8209 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8210 test -z "$LD" && LD=ld
8211 test -z "$ac_objext" && ac_objext=o
8213 for cc_temp in $compiler""; do
8215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8221 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8224 # Only perform the check for file, if the check method requires it
8225 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8226 case $deplibs_check_method in
8228 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8230 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8231 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8232 $as_echo_n "(cached) " >&6
8236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8239 lt_save_MAGIC_CMD="$MAGIC_CMD"
8240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8242 for ac_dir in $ac_dummy; do
8244 test -z "$ac_dir" && ac_dir=.
8245 if test -f $ac_dir/${ac_tool_prefix}file; then
8246 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8247 if test -n "$file_magic_test_file"; then
8248 case $deplibs_check_method in
8250 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8253 $EGREP "$file_magic_regex" > /dev/null; then
8258 *** Warning: the command libtool uses to detect shared libraries,
8259 *** $file_magic_cmd, produces output that libtool cannot recognize.
8260 *** The result is that libtool may fail to recognize shared libraries
8261 *** as such. This will affect the creation of libtool libraries that
8262 *** depend on shared libraries, but programs linked with such libtool
8263 *** libraries will work regardless of this problem. Nevertheless, you
8264 *** may want to report the problem to your system manager and/or to
8265 *** bug-libtool@gnu.org
8275 MAGIC_CMD="$lt_save_MAGIC_CMD"
8280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8281 if test -n "$MAGIC_CMD"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8283 $as_echo "$MAGIC_CMD" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8293 if test -z "$lt_cv_path_MAGIC_CMD"; then
8294 if test -n "$ac_tool_prefix"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8296 $as_echo_n "checking for file... " >&6; }
8297 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8298 $as_echo_n "(cached) " >&6
8302 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8305 lt_save_MAGIC_CMD="$MAGIC_CMD"
8306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8307 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8308 for ac_dir in $ac_dummy; do
8310 test -z "$ac_dir" && ac_dir=.
8311 if test -f $ac_dir/file; then
8312 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8313 if test -n "$file_magic_test_file"; then
8314 case $deplibs_check_method in
8316 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8319 $EGREP "$file_magic_regex" > /dev/null; then
8324 *** Warning: the command libtool uses to detect shared libraries,
8325 *** $file_magic_cmd, produces output that libtool cannot recognize.
8326 *** The result is that libtool may fail to recognize shared libraries
8327 *** as such. This will affect the creation of libtool libraries that
8328 *** depend on shared libraries, but programs linked with such libtool
8329 *** libraries will work regardless of this problem. Nevertheless, you
8330 *** may want to report the problem to your system manager and/or to
8331 *** bug-libtool@gnu.org
8341 MAGIC_CMD="$lt_save_MAGIC_CMD"
8346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8347 if test -n "$MAGIC_CMD"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8349 $as_echo "$MAGIC_CMD" >&6; }
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8365 # Use C for the default configuration in the libtool script
8369 ac_cpp='$CPP $CPPFLAGS'
8370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8375 # Source file extension for C test sources.
8378 # Object file extension for compiled C test sources.
8382 # Code to be used in simple compile tests
8383 lt_simple_compile_test_code="int some_variable = 0;"
8385 # Code to be used in simple link tests
8386 lt_simple_link_test_code='int main(){return(0);}'
8394 # If no C compiler was specified, use CC.
8397 # If no C compiler flags were specified, use CFLAGS.
8398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8400 # Allow CC to be a program name with arguments.
8403 # Save the default compiler, since it gets overwritten when the other
8404 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8405 compiler_DEFAULT=$CC
8407 # save warnings/boilerplate of simple test code
8408 ac_outfile=conftest.$ac_objext
8409 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8411 _lt_compiler_boilerplate=`cat conftest.err`
8414 ac_outfile=conftest.$ac_objext
8415 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8417 _lt_linker_boilerplate=`cat conftest.err`
8422 ## There is no encapsulation within the following macros, do not change
8423 ## the running order or otherwise move them around unless you know exactly
8424 ## what you are doing...
8425 if test -n "$compiler"; then
8427 lt_prog_compiler_no_builtin_flag=
8429 if test "$GCC" = yes; then
8430 case $cc_basename in
8432 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8434 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8438 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8439 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8440 $as_echo_n "(cached) " >&6
8442 lt_cv_prog_compiler_rtti_exceptions=no
8443 ac_outfile=conftest.$ac_objext
8444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8445 lt_compiler_flag="-fno-rtti -fno-exceptions"
8446 # Insert the option either (1) after the last *FLAGS variable, or
8447 # (2) before a word containing "conftest.", or (3) at the end.
8448 # Note that $ac_compile itself does not contain backslashes and begins
8449 # with a dollar sign (not a hyphen), so the echo should work correctly.
8450 # The option is referenced via a variable to avoid confusing sed.
8451 lt_compile=`echo "$ac_compile" | $SED \
8452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8454 -e 's:$: $lt_compiler_flag:'`
8455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8456 (eval "$lt_compile" 2>conftest.err)
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 if (exit $ac_status) && test -s "$ac_outfile"; then
8461 # The compiler can only warn and ignore the option if not recognized
8462 # So say no if there are warnings other than the usual output.
8463 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8466 lt_cv_prog_compiler_rtti_exceptions=yes
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8473 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8475 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8476 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8488 lt_prog_compiler_wl=
8489 lt_prog_compiler_pic=
8490 lt_prog_compiler_static=
8493 if test "$GCC" = yes; then
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_static='-static'
8499 # All AIX code is PIC.
8500 if test "$host_cpu" = ia64; then
8501 # AIX 5 now supports IA64 processor
8502 lt_prog_compiler_static='-Bstatic'
8509 # see comment about AmigaOS4 .so support
8510 lt_prog_compiler_pic='-fPIC'
8513 # FIXME: we need at least 68020 code to build shared libraries, but
8514 # adding the `-m68020' flag to GCC prevents building anything better,
8516 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8521 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8522 # PIC is the default for these OSes.
8525 mingw* | cygwin* | pw32* | os2* | cegcc*)
8526 # This hack is so that the source file can tell whether it is being
8527 # built for inclusion in a dll (and should export symbols for example).
8528 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8529 # (--disable-auto-import) libraries
8530 lt_prog_compiler_pic='-DDLL_EXPORT'
8533 darwin* | rhapsody*)
8534 # PIC is the default on this platform
8535 # Common symbols not allowed in MH_DYLIB files
8536 lt_prog_compiler_pic='-fno-common'
8540 # PIC is the default for Haiku.
8541 # The "-static" flag exists, but is broken.
8542 lt_prog_compiler_static=
8546 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8547 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8548 # sets the default TLS model and affects inlining.
8554 lt_prog_compiler_pic='-fPIC'
8560 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8561 # Instead, we relocate shared libraries at runtime.
8565 # Just because we use GCC doesn't mean we suddenly get shared libraries
8566 # on systems that don't support them.
8567 lt_prog_compiler_can_build_shared=no
8572 # QNX uses GNU C++, but need to define -shared option too, otherwise
8574 lt_prog_compiler_pic='-fPIC -shared'
8578 if test -d /usr/nec; then
8579 lt_prog_compiler_pic=-Kconform_pic
8584 lt_prog_compiler_pic='-fPIC'
8588 case $cc_basename in
8589 nvcc*) # Cuda Compiler Driver 2.2
8590 lt_prog_compiler_wl='-Xlinker '
8591 lt_prog_compiler_pic='-Xcompiler -fPIC'
8595 # PORTME Check for flag to pass linker flags through the system compiler.
8598 lt_prog_compiler_wl='-Wl,'
8599 if test "$host_cpu" = ia64; then
8600 # AIX 5 now supports IA64 processor
8601 lt_prog_compiler_static='-Bstatic'
8603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8607 mingw* | cygwin* | pw32* | os2* | cegcc*)
8608 # This hack is so that the source file can tell whether it is being
8609 # built for inclusion in a dll (and should export symbols for example).
8610 lt_prog_compiler_pic='-DDLL_EXPORT'
8613 hpux9* | hpux10* | hpux11*)
8614 lt_prog_compiler_wl='-Wl,'
8615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8622 lt_prog_compiler_pic='+Z'
8625 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8626 lt_prog_compiler_static='${wl}-a ${wl}archive'
8629 irix5* | irix6* | nonstopux*)
8630 lt_prog_compiler_wl='-Wl,'
8631 # PIC (with -KPIC) is the default.
8632 lt_prog_compiler_static='-non_shared'
8635 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8636 case $cc_basename in
8637 # old Intel for x86_64 which still supported -KPIC.
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-static'
8643 # icc used to be incompatible with GCC.
8644 # ICC 10 doesn't accept -KPIC any more.
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-fPIC'
8648 lt_prog_compiler_static='-static'
8650 # Lahey Fortran 8.1.
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='--shared'
8654 lt_prog_compiler_static='--static'
8657 # NAG Fortran compiler
8658 lt_prog_compiler_wl='-Wl,-Wl,,'
8659 lt_prog_compiler_pic='-PIC'
8660 lt_prog_compiler_static='-Bstatic'
8662 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8663 # Portland Group compilers (*not* the Pentium gcc compiler,
8664 # which looks to be a dead project)
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_pic='-fpic'
8667 lt_prog_compiler_static='-Bstatic'
8670 lt_prog_compiler_wl='-Wl,'
8671 # All Alpha code is PIC.
8672 lt_prog_compiler_static='-non_shared'
8674 xl* | bgxl* | bgf* | mpixl*)
8675 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8676 lt_prog_compiler_wl='-Wl,'
8677 lt_prog_compiler_pic='-qpic'
8678 lt_prog_compiler_static='-qstaticlink'
8681 case `$CC -V 2>&1 | sed 5q` in
8682 *Sun\ F* | *Sun*Fortran*)
8683 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8684 lt_prog_compiler_pic='-KPIC'
8685 lt_prog_compiler_static='-Bstatic'
8686 lt_prog_compiler_wl=''
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-KPIC'
8701 lt_prog_compiler_static='-Bstatic'
8705 # QNX uses GNU C++, but need to define -shared option too, otherwise
8707 lt_prog_compiler_pic='-fPIC -shared'
8710 osf3* | osf4* | osf5*)
8711 lt_prog_compiler_wl='-Wl,'
8712 # All OSF/1 code is PIC.
8713 lt_prog_compiler_static='-non_shared'
8717 lt_prog_compiler_static='-non_shared'
8721 lt_prog_compiler_pic='-KPIC'
8722 lt_prog_compiler_static='-Bstatic'
8723 case $cc_basename in
8724 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8725 lt_prog_compiler_wl='-Qoption ld ';;
8727 lt_prog_compiler_wl='-Wl,';;
8732 lt_prog_compiler_wl='-Qoption ld '
8733 lt_prog_compiler_pic='-PIC'
8734 lt_prog_compiler_static='-Bstatic'
8737 sysv4 | sysv4.2uw2* | sysv4.3*)
8738 lt_prog_compiler_wl='-Wl,'
8739 lt_prog_compiler_pic='-KPIC'
8740 lt_prog_compiler_static='-Bstatic'
8744 if test -d /usr/nec ;then
8745 lt_prog_compiler_pic='-Kconform_pic'
8746 lt_prog_compiler_static='-Bstatic'
8750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_pic='-KPIC'
8753 lt_prog_compiler_static='-Bstatic'
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_can_build_shared=no
8762 lt_prog_compiler_pic='-pic'
8763 lt_prog_compiler_static='-Bstatic'
8767 lt_prog_compiler_can_build_shared=no
8773 # For platforms which do not support PIC, -DPIC is meaningless:
8775 lt_prog_compiler_pic=
8778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8783 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8784 if ${lt_cv_prog_compiler_pic+:} false; then :
8785 $as_echo_n "(cached) " >&6
8787 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8790 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8791 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8794 # Check to make sure the PIC flag actually works.
8796 if test -n "$lt_prog_compiler_pic"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8798 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8799 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8800 $as_echo_n "(cached) " >&6
8802 lt_cv_prog_compiler_pic_works=no
8803 ac_outfile=conftest.$ac_objext
8804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8805 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8806 # Insert the option either (1) after the last *FLAGS variable, or
8807 # (2) before a word containing "conftest.", or (3) at the end.
8808 # Note that $ac_compile itself does not contain backslashes and begins
8809 # with a dollar sign (not a hyphen), so the echo should work correctly.
8810 # The option is referenced via a variable to avoid confusing sed.
8811 lt_compile=`echo "$ac_compile" | $SED \
8812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8814 -e 's:$: $lt_compiler_flag:'`
8815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8816 (eval "$lt_compile" 2>conftest.err)
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 if (exit $ac_status) && test -s "$ac_outfile"; then
8821 # The compiler can only warn and ignore the option if not recognized
8822 # So say no if there are warnings other than the usual output.
8823 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8826 lt_cv_prog_compiler_pic_works=yes
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8833 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8835 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8836 case $lt_prog_compiler_pic in
8838 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8841 lt_prog_compiler_pic=
8842 lt_prog_compiler_can_build_shared=no
8858 # Check to make sure the static flag actually works.
8860 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8862 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8863 if ${lt_cv_prog_compiler_static_works+:} false; then :
8864 $as_echo_n "(cached) " >&6
8866 lt_cv_prog_compiler_static_works=no
8867 save_LDFLAGS="$LDFLAGS"
8868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8869 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8871 # The linker can only warn and ignore the option if not recognized
8872 # So say no if there are warnings
8873 if test -s conftest.err; then
8874 # Append any errors to the config.log.
8875 cat conftest.err 1>&5
8876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8878 if diff conftest.exp conftest.er2 >/dev/null; then
8879 lt_cv_prog_compiler_static_works=yes
8882 lt_cv_prog_compiler_static_works=yes
8886 LDFLAGS="$save_LDFLAGS"
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8890 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8892 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8895 lt_prog_compiler_static=
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8905 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8906 if ${lt_cv_prog_compiler_c_o+:} false; then :
8907 $as_echo_n "(cached) " >&6
8909 lt_cv_prog_compiler_c_o=no
8910 $RM -r conftest 2>/dev/null
8914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8916 lt_compiler_flag="-o out/conftest2.$ac_objext"
8917 # Insert the option either (1) after the last *FLAGS variable, or
8918 # (2) before a word containing "conftest.", or (3) at the end.
8919 # Note that $ac_compile itself does not contain backslashes and begins
8920 # with a dollar sign (not a hyphen), so the echo should work correctly.
8921 lt_compile=`echo "$ac_compile" | $SED \
8922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8924 -e 's:$: $lt_compiler_flag:'`
8925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8926 (eval "$lt_compile" 2>out/conftest.err)
8928 cat out/conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8932 # The compiler can only warn and ignore the option if not recognized
8933 # So say no if there are warnings
8934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8937 lt_cv_prog_compiler_c_o=yes
8942 # SGI C++ compiler will create directory out/ii_files/ for
8943 # template instantiation
8944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8945 $RM out/* && rmdir out
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8952 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8961 if ${lt_cv_prog_compiler_c_o+:} false; then :
8962 $as_echo_n "(cached) " >&6
8964 lt_cv_prog_compiler_c_o=no
8965 $RM -r conftest 2>/dev/null
8969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8971 lt_compiler_flag="-o out/conftest2.$ac_objext"
8972 # Insert the option either (1) after the last *FLAGS variable, or
8973 # (2) before a word containing "conftest.", or (3) at the end.
8974 # Note that $ac_compile itself does not contain backslashes and begins
8975 # with a dollar sign (not a hyphen), so the echo should work correctly.
8976 lt_compile=`echo "$ac_compile" | $SED \
8977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8979 -e 's:$: $lt_compiler_flag:'`
8980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8981 (eval "$lt_compile" 2>out/conftest.err)
8983 cat out/conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8987 # The compiler can only warn and ignore the option if not recognized
8988 # So say no if there are warnings
8989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8992 lt_cv_prog_compiler_c_o=yes
8997 # SGI C++ compiler will create directory out/ii_files/ for
8998 # template instantiation
8999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9000 $RM out/* && rmdir out
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9007 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9012 hard_links="nottested"
9013 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9014 # do not overwrite the value of need_locks provided by the user
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9016 $as_echo_n "checking if we can lock with hard links... " >&6; }
9019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9021 ln conftest.a conftest.b 2>&5 || hard_links=no
9022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9024 $as_echo "$hard_links" >&6; }
9025 if test "$hard_links" = no; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9027 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9040 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9043 allow_undefined_flag=
9044 always_export_symbols=no
9046 archive_expsym_cmds=
9047 compiler_needs_object=no
9048 enable_shared_with_static_runtimes=no
9049 export_dynamic_flag_spec=
9050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9051 hardcode_automatic=no
9053 hardcode_direct_absolute=no
9054 hardcode_libdir_flag_spec=
9055 hardcode_libdir_flag_spec_ld=
9056 hardcode_libdir_separator=
9058 hardcode_shlibpath_var=unsupported
9060 link_all_deplibs=unknown
9063 old_archive_from_new_cmds=
9064 old_archive_from_expsyms_cmds=
9065 thread_safe_flag_spec=
9066 whole_archive_flag_spec=
9067 # include_expsyms should be a list of space-separated symbols to be *always*
9068 # included in the symbol list
9070 # exclude_expsyms can be an extended regexp of symbols to exclude
9071 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9072 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9073 # as well as any symbol that contains `d'.
9074 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9075 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9076 # platforms (ab)use it in PIC code, but their linkers get confused if
9077 # the symbol is explicitly referenced. Since portable code cannot
9078 # rely on this symbol name, it's probably fine to never include it in
9079 # preloaded symbol tables.
9080 # Exclude shared library initialization/finalization symbols.
9081 extract_expsyms_cmds=
9084 cygwin* | mingw* | pw32* | cegcc*)
9085 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9086 # When not using gcc, we currently assume that we are using
9087 # Microsoft Visual C++.
9088 if test "$GCC" != yes; then
9093 # we just hope/assume this is gcc and not c89 (= MSVC++)
9103 # On some targets, GNU ld is compatible enough with the native linker
9104 # that we're better off using the native interface for both.
9105 lt_use_gnu_ld_interface=no
9106 if test "$with_gnu_ld" = yes; then
9109 # The AIX port of GNU ld has always aspired to compatibility
9110 # with the native linker. However, as the warning in the GNU ld
9111 # block says, versions before 2.19.5* couldn't really create working
9112 # shared libraries, regardless of the interface used.
9113 case `$LD -v 2>&1` in
9114 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9115 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9116 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9118 lt_use_gnu_ld_interface=yes
9123 lt_use_gnu_ld_interface=yes
9128 if test "$lt_use_gnu_ld_interface" = yes; then
9129 # If archive_cmds runs LD, not CC, wlarc should be empty
9132 # Set some defaults for GNU ld with shared library support. These
9133 # are reset later if shared libraries are not supported. Putting them
9134 # here allows them to be overridden if necessary.
9135 runpath_var=LD_RUN_PATH
9136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9137 export_dynamic_flag_spec='${wl}--export-dynamic'
9138 # ancient GNU ld didn't support --whole-archive et. al.
9139 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9140 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9142 whole_archive_flag_spec=
9144 supports_anon_versioning=no
9145 case `$LD -v 2>&1` in
9146 *GNU\ gold*) supports_anon_versioning=yes ;;
9147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9150 *\ 2.11.*) ;; # other 2.11 versions
9151 *) supports_anon_versioning=yes ;;
9154 # See if GNU ld supports shared libraries.
9157 # On AIX/PPC, the GNU linker is very broken
9158 if test "$host_cpu" != ia64; then
9162 *** Warning: the GNU linker, at least up to release 2.19, is reported
9163 *** to be unable to reliably create shared libraries on AIX.
9164 *** Therefore, libtool is disabling shared libraries support. If you
9165 *** really care for shared libraries, you may want to install binutils
9166 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9167 *** You will then need to restart the configuration process.
9176 # see comment about AmigaOS4 .so support
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178 archive_expsym_cmds=''
9181 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)'
9182 hardcode_libdir_flag_spec='-L$libdir'
9183 hardcode_minus_L=yes
9189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9190 allow_undefined_flag=unsupported
9191 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9192 # support --undefined. This deserves some investigation. FIXME
9193 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9199 cygwin* | mingw* | pw32* | cegcc*)
9200 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9201 # as there is no search path for DLLs.
9202 hardcode_libdir_flag_spec='-L$libdir'
9203 export_dynamic_flag_spec='${wl}--export-all-symbols'
9204 allow_undefined_flag=unsupported
9205 always_export_symbols=no
9206 enable_shared_with_static_runtimes=yes
9207 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'
9208 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9210 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9212 # If the export-symbols file already is a .def file (1st line
9213 # is EXPORTS), use it as is; otherwise, prepend...
9214 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9215 cp $export_symbols $output_objdir/$soname.def;
9217 echo EXPORTS > $output_objdir/$soname.def;
9218 cat $export_symbols >> $output_objdir/$soname.def;
9220 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228 link_all_deplibs=yes
9233 hardcode_shlibpath_var=no
9234 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9235 export_dynamic_flag_spec='${wl}-E'
9236 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9237 # Instead, shared libraries are loaded at an image base (0x10000000 by
9238 # default) and relocated if they conflict, which is a slow very memory
9239 # consuming and fragmenting process. To avoid this, we pick a random,
9240 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9241 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9242 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9243 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'
9246 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9248 if test "$host_os" = linux-dietlibc; then
9249 case $cc_basename in
9250 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9253 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9254 && test "$tmp_diet" = no
9256 tmp_addflag=' $pic_flag'
9257 tmp_sharedflag='-shared'
9258 case $cc_basename,$host_cpu in
9259 pgcc*) # Portland Group C compiler
9260 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'
9261 tmp_addflag=' $pic_flag'
9263 pgf77* | pgf90* | pgf95* | pgfortran*)
9264 # Portland Group f77 and f90 compilers
9265 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'
9266 tmp_addflag=' $pic_flag -Mnomain' ;;
9267 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9268 tmp_addflag=' -i_dynamic' ;;
9269 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9270 tmp_addflag=' -i_dynamic -nofor_main' ;;
9271 ifc* | ifort*) # Intel Fortran compiler
9272 tmp_addflag=' -nofor_main' ;;
9273 lf95*) # Lahey Fortran 8.1
9274 whole_archive_flag_spec=
9275 tmp_sharedflag='--shared' ;;
9276 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9277 tmp_sharedflag='-qmkshrobj'
9279 nvcc*) # Cuda Compiler Driver 2.2
9280 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'
9281 compiler_needs_object=yes
9284 case `$CC -V 2>&1 | sed 5q` in
9285 *Sun\ C*) # Sun C 5.9
9286 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'
9287 compiler_needs_object=yes
9288 tmp_sharedflag='-G' ;;
9289 *Sun\ F*) # Sun Fortran 8.3
9290 tmp_sharedflag='-G' ;;
9292 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 if test "x$supports_anon_versioning" = xyes; then
9295 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9297 echo "local: *; };" >> $output_objdir/$libname.ver~
9298 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9301 case $cc_basename in
9302 xlf* | bgf* | bgxlf* | mpixlf*)
9303 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9304 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9305 hardcode_libdir_flag_spec=
9306 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9307 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9308 if test "x$supports_anon_versioning" = xyes; then
9309 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9311 echo "local: *; };" >> $output_objdir/$libname.ver~
9312 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9323 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9332 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9337 *** create shared libraries on Solaris systems. Therefore, libtool
9338 *** is disabling shared libraries support. We urge you to upgrade GNU
9339 *** binutils to release 2.9.1 or newer. Another option is to modify
9340 *** your PATH or compiler configuration so that the native linker is
9341 *** used, and then restart.
9344 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9345 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9353 case `$LD -v 2>&1` in
9354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9359 *** reliably create shared libraries on SCO systems. Therefore, libtool
9360 *** is disabling shared libraries support. We urge you to upgrade GNU
9361 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9362 *** your PATH or compiler configuration so that the native linker is
9363 *** used, and then restart.
9368 # For security reasons, it is highly recommended that you always
9369 # use absolute paths for naming shared libraries, and exclude the
9370 # DT_RUNPATH tag from executables and libraries. But doing so
9371 # requires that you compile everything twice, which is a pain.
9372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_shlibpath_var=no
9391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400 if test "$ld_shlibs" = no; then
9402 hardcode_libdir_flag_spec=
9403 export_dynamic_flag_spec=
9404 whole_archive_flag_spec=
9407 # PORTME fill in a description of your system's linker (not GNU ld)
9410 allow_undefined_flag=unsupported
9411 always_export_symbols=yes
9412 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'
9413 # Note: this linker hardcodes the directories in LIBPATH if there
9414 # are no directories specified by -L.
9415 hardcode_minus_L=yes
9416 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9417 # Neither direct hardcoding nor static linking is supported with a
9419 hardcode_direct=unsupported
9424 if test "$host_cpu" = ia64; then
9425 # On IA64, the linker does run time linking by default, so we don't
9426 # have to do anything special.
9427 aix_use_runtimelinking=no
9428 exp_sym_flag='-Bexport'
9431 # If we're using GNU nm, then we don't want the "-C" option.
9432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9433 # Also, AIX nm treats weak defined symbols like other global
9434 # defined symbols, whereas GNU nm marks them as "W".
9435 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9436 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'
9438 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'
9440 aix_use_runtimelinking=no
9442 # Test if we are trying to use run time linking or normal
9443 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9444 # need to do runtime linking.
9445 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9446 for ld_flag in $LDFLAGS; do
9447 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9448 aix_use_runtimelinking=yes
9455 exp_sym_flag='-bexport'
9456 no_entry_flag='-bnoentry'
9459 # When large executables or shared objects are built, AIX ld can
9460 # have problems creating the table of contents. If linking a library
9461 # or program results in "error TOC overflow" add -mminimal-toc to
9462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9467 hardcode_direct_absolute=yes
9468 hardcode_libdir_separator=':'
9469 link_all_deplibs=yes
9470 file_list_spec='${wl}-f,'
9472 if test "$GCC" = yes; then
9473 case $host_os in aix4.[012]|aix4.[012].*)
9474 # We only want to do this on AIX 4.2 and lower, the check
9475 # below for broken collect2 doesn't work under 4.3+
9476 collect2name=`${CC} -print-prog-name=collect2`
9477 if test -f "$collect2name" &&
9478 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9480 # We have reworked collect2
9483 # We have old collect2
9484 hardcode_direct=unsupported
9485 # It fails to find uninstalled libraries when the uninstalled
9486 # path is not listed in the libpath. Setting hardcode_minus_L
9487 # to unsupported forces relinking
9488 hardcode_minus_L=yes
9489 hardcode_libdir_flag_spec='-L$libdir'
9490 hardcode_libdir_separator=
9494 shared_flag='-shared'
9495 if test "$aix_use_runtimelinking" = yes; then
9496 shared_flag="$shared_flag "'${wl}-G'
9500 if test "$host_cpu" = ia64; then
9501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9502 # chokes on -Wl,-G. The following line is correct:
9505 if test "$aix_use_runtimelinking" = yes; then
9506 shared_flag='${wl}-G'
9508 shared_flag='${wl}-bM:SRE'
9513 export_dynamic_flag_spec='${wl}-bexpall'
9514 # It seems that -bexpall does not export symbols beginning with
9515 # underscore (_), so it is better to generate a list of symbols to export.
9516 always_export_symbols=yes
9517 if test "$aix_use_runtimelinking" = yes; then
9518 # Warning - without using the other runtime loading flags (-brtl),
9519 # -berok will link without error, but may produce a broken library.
9520 allow_undefined_flag='-berok'
9521 # Determine the default libpath from the value encoded in an
9523 if test "${lt_cv_aix_libpath+set}" = set; then
9524 aix_libpath=$lt_cv_aix_libpath
9526 if ${lt_cv_aix_libpath_+:} false; then :
9527 $as_echo_n "(cached) " >&6
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9540 if ac_fn_c_try_link "$LINENO"; then :
9542 lt_aix_libpath_sed='
9543 /Import File Strings/,/^$/ {
9545 s/^0 *\([^ ]*\) *$/\1/
9549 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9550 # Check for a 64-bit object if we didn't find anything.
9551 if test -z "$lt_cv_aix_libpath_"; then
9552 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 if test -z "$lt_cv_aix_libpath_"; then
9558 lt_cv_aix_libpath_="/usr/lib:/lib"
9563 aix_libpath=$lt_cv_aix_libpath_
9566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9567 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"
9569 if test "$host_cpu" = ia64; then
9570 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9571 allow_undefined_flag="-z nodefs"
9572 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"
9574 # Determine the default libpath from the value encoded in an
9576 if test "${lt_cv_aix_libpath+set}" = set; then
9577 aix_libpath=$lt_cv_aix_libpath
9579 if ${lt_cv_aix_libpath_+:} false; then :
9580 $as_echo_n "(cached) " >&6
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9593 if ac_fn_c_try_link "$LINENO"; then :
9595 lt_aix_libpath_sed='
9596 /Import File Strings/,/^$/ {
9598 s/^0 *\([^ ]*\) *$/\1/
9602 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9603 # Check for a 64-bit object if we didn't find anything.
9604 if test -z "$lt_cv_aix_libpath_"; then
9605 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 if test -z "$lt_cv_aix_libpath_"; then
9611 lt_cv_aix_libpath_="/usr/lib:/lib"
9616 aix_libpath=$lt_cv_aix_libpath_
9619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9620 # Warning - without using the other run time loading flags,
9621 # -berok will link without error, but may produce a broken library.
9622 no_undefined_flag=' ${wl}-bernotok'
9623 allow_undefined_flag=' ${wl}-berok'
9624 if test "$with_gnu_ld" = yes; then
9625 # We only use this code for GNU lds that support --whole-archive.
9626 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9628 # Exported symbols can be pulled into shared objects from archives
9629 whole_archive_flag_spec='$convenience'
9631 archive_cmds_need_lc=yes
9632 # This is similar to how AIX traditionally builds its shared libraries.
9633 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'
9641 # see comment about AmigaOS4 .so support
9642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9643 archive_expsym_cmds=''
9646 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)'
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_minus_L=yes
9654 export_dynamic_flag_spec=-rdynamic
9657 cygwin* | mingw* | pw32* | cegcc*)
9658 # When not using gcc, we currently assume that we are using
9659 # Microsoft Visual C++.
9660 # hardcode_libdir_flag_spec is actually meaningless, as there is
9661 # no search path for DLLs.
9662 case $cc_basename in
9665 hardcode_libdir_flag_spec=' '
9666 allow_undefined_flag=unsupported
9667 always_export_symbols=yes
9669 # Tell ltmain to make .lib files, not .a files.
9671 # Tell ltmain to make .dll files, not .so files.
9673 # FIXME: Setting linknames here is a bad hack.
9674 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9675 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9676 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9678 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9680 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9682 # The linker will not automatically build a static lib if we build a DLL.
9683 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9684 enable_shared_with_static_runtimes=yes
9685 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9687 old_postinstall_cmds='chmod 644 $oldlib'
9688 postlink_cmds='lt_outputfile="@OUTPUT@"~
9689 lt_tool_outputfile="@TOOL_OUTPUT@"~
9690 case $lt_outputfile in
9693 lt_outputfile="$lt_outputfile.exe"
9694 lt_tool_outputfile="$lt_tool_outputfile.exe"
9697 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9698 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9699 $RM "$lt_outputfile.manifest";
9703 # Assume MSVC wrapper
9704 hardcode_libdir_flag_spec=' '
9705 allow_undefined_flag=unsupported
9706 # Tell ltmain to make .lib files, not .a files.
9708 # Tell ltmain to make .dll files, not .so files.
9710 # FIXME: Setting linknames here is a bad hack.
9711 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9712 # The linker will automatically build a .lib file if we build a DLL.
9713 old_archive_from_new_cmds='true'
9714 # FIXME: Should let the user specify the lib program.
9715 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9716 enable_shared_with_static_runtimes=yes
9721 darwin* | rhapsody*)
9724 archive_cmds_need_lc=no
9726 hardcode_automatic=yes
9727 hardcode_shlibpath_var=unsupported
9728 if test "$lt_cv_ld_force_load" = "yes"; then
9729 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\"`'
9731 whole_archive_flag_spec=''
9733 link_all_deplibs=yes
9734 allow_undefined_flag="$_lt_dar_allow_undefined"
9735 case $cc_basename in
9736 ifort*) _lt_dar_can_shared=yes ;;
9737 *) _lt_dar_can_shared=$GCC ;;
9739 if test "$_lt_dar_can_shared" = "yes"; then
9740 output_verbose_link_cmd=func_echo_all
9741 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9742 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9743 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}"
9744 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}"
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_libdir_flag_spec='-L$libdir'
9755 hardcode_shlibpath_var=no
9762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9763 # support. Future versions do this automatically, but an explicit c++rt0.o
9764 # does not break anything, and helps significantly (at the cost of a little
9767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9768 hardcode_libdir_flag_spec='-R$libdir'
9770 hardcode_shlibpath_var=no
9773 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_minus_L=yes
9778 hardcode_shlibpath_var=no
9781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9782 freebsd* | dragonfly*)
9783 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9784 hardcode_libdir_flag_spec='-R$libdir'
9786 hardcode_shlibpath_var=no
9790 if test "$GCC" = yes; then
9791 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'
9793 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'
9795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9796 hardcode_libdir_separator=:
9799 # hardcode_minus_L: Not really in the search PATH,
9800 # but as the default location of the library.
9801 hardcode_minus_L=yes
9802 export_dynamic_flag_spec='${wl}-E'
9806 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9807 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9811 if test "$with_gnu_ld" = no; then
9812 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9813 hardcode_libdir_flag_spec_ld='+b $libdir'
9814 hardcode_libdir_separator=:
9816 hardcode_direct_absolute=yes
9817 export_dynamic_flag_spec='${wl}-E'
9818 # hardcode_minus_L: Not really in the search PATH,
9819 # but as the default location of the library.
9820 hardcode_minus_L=yes
9825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9831 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9840 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9847 # Older versions of the 11.00 compiler do not understand -b yet
9848 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9850 $as_echo_n "checking if $CC understands -b... " >&6; }
9851 if ${lt_cv_prog_compiler__b+:} false; then :
9852 $as_echo_n "(cached) " >&6
9854 lt_cv_prog_compiler__b=no
9855 save_LDFLAGS="$LDFLAGS"
9856 LDFLAGS="$LDFLAGS -b"
9857 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9859 # The linker can only warn and ignore the option if not recognized
9860 # So say no if there are warnings
9861 if test -s conftest.err; then
9862 # Append any errors to the config.log.
9863 cat conftest.err 1>&5
9864 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9866 if diff conftest.exp conftest.er2 >/dev/null; then
9867 lt_cv_prog_compiler__b=yes
9870 lt_cv_prog_compiler__b=yes
9874 LDFLAGS="$save_LDFLAGS"
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9878 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9880 if test x"$lt_cv_prog_compiler__b" = xyes; then
9881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9889 if test "$with_gnu_ld" = no; then
9890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9891 hardcode_libdir_separator=:
9896 hardcode_shlibpath_var=no
9900 hardcode_direct_absolute=yes
9901 export_dynamic_flag_spec='${wl}-E'
9903 # hardcode_minus_L: Not really in the search PATH,
9904 # but as the default location of the library.
9905 hardcode_minus_L=yes
9911 irix5* | irix6* | nonstopux*)
9912 if test "$GCC" = yes; then
9913 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'
9914 # Try to use the -exported_symbol ld option, if it does not
9915 # work, assume that -exports_file does not work either and
9916 # implicitly export all symbols.
9917 # This should be the same for all languages, so no per-tag cache variable.
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9919 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9920 if ${lt_cv_irix_exported_symbol+:} false; then :
9921 $as_echo_n "(cached) " >&6
9923 save_LDFLAGS="$LDFLAGS"
9924 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 int foo (void) { return 0; }
9929 if ac_fn_c_try_link "$LINENO"; then :
9930 lt_cv_irix_exported_symbol=yes
9932 lt_cv_irix_exported_symbol=no
9934 rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LDFLAGS="$save_LDFLAGS"
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9939 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9940 if test "$lt_cv_irix_exported_symbol" = yes; then
9941 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'
9944 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'
9945 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'
9947 archive_cmds_need_lc='no'
9948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9949 hardcode_libdir_separator=:
9951 link_all_deplibs=yes
9955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9958 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9960 hardcode_libdir_flag_spec='-R$libdir'
9962 hardcode_shlibpath_var=no
9966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 hardcode_libdir_separator=:
9970 hardcode_shlibpath_var=no
9977 if test -f /usr/libexec/ld.so; then
9979 hardcode_shlibpath_var=no
9980 hardcode_direct_absolute=yes
9981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9985 export_dynamic_flag_spec='${wl}-E'
9988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_libdir_flag_spec='-R$libdir'
9993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10004 hardcode_libdir_flag_spec='-L$libdir'
10005 hardcode_minus_L=yes
10006 allow_undefined_flag=unsupported
10007 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'
10008 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10012 if test "$GCC" = yes; then
10013 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10014 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'
10016 allow_undefined_flag=' -expect_unresolved \*'
10017 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'
10019 archive_cmds_need_lc='no'
10020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10021 hardcode_libdir_separator=:
10024 osf4* | osf5*) # as osf3* with the addition of -msym flag
10025 if test "$GCC" = yes; then
10026 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10027 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'
10028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030 allow_undefined_flag=' -expect_unresolved \*'
10031 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'
10032 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~
10033 $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'
10035 # Both c and cxx compiler support -rpath directly
10036 hardcode_libdir_flag_spec='-rpath $libdir'
10038 archive_cmds_need_lc='no'
10039 hardcode_libdir_separator=:
10043 no_undefined_flag=' -z defs'
10044 if test "$GCC" = yes; then
10046 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10048 $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'
10050 case `$CC -V 2>&1` in
10053 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10055 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10059 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10061 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10065 hardcode_libdir_flag_spec='-R$libdir'
10066 hardcode_shlibpath_var=no
10068 solaris2.[0-5] | solaris2.[0-5].*) ;;
10070 # The compiler driver will combine and reorder linker options,
10071 # but understands `-z linker_flag'. GCC discards it without `$wl',
10072 # but is careful enough not to reorder.
10073 # Supported since Solaris 2.6 (maybe 2.5.1?)
10074 if test "$GCC" = yes; then
10075 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10077 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10081 link_all_deplibs=yes
10085 if test "x$host_vendor" = xsequent; then
10086 # Use $CC to link under sequent, because it throws in some extra .o
10087 # files that make .init and .fini sections work.
10088 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_libdir_flag_spec='-L$libdir'
10093 hardcode_direct=yes
10094 hardcode_minus_L=yes
10095 hardcode_shlibpath_var=no
10099 case $host_vendor in
10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_direct=yes # is this really true???
10105 ## LD is ld it makes a PLAMLIB
10106 ## CC just makes a GrossModule.
10107 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10108 reload_cmds='$CC -r -o $output$reload_objs'
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10116 runpath_var='LD_RUN_PATH'
10117 hardcode_shlibpath_var=no
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_shlibpath_var=no
10123 export_dynamic_flag_spec='-Bexport'
10127 if test -d /usr/nec; then
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_shlibpath_var=no
10130 runpath_var=LD_RUN_PATH
10131 hardcode_runpath_var=yes
10136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10137 no_undefined_flag='${wl}-z,text'
10138 archive_cmds_need_lc=no
10139 hardcode_shlibpath_var=no
10140 runpath_var='LD_RUN_PATH'
10142 if test "$GCC" = yes; then
10143 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 sysv5* | sco3.2v5* | sco5v6*)
10152 # Note: We can NOT use -z defs as we might desire, because we do not
10153 # link with -lc, and that would cause any symbols used from libc to
10154 # always be unresolved, which means just about no library would
10155 # ever link correctly. If we're not using GNU ld we use -z text
10156 # though, which does catch some bad symbols but isn't as heavy-handed
10158 no_undefined_flag='${wl}-z,text'
10159 allow_undefined_flag='${wl}-z,nodefs'
10160 archive_cmds_need_lc=no
10161 hardcode_shlibpath_var=no
10162 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10163 hardcode_libdir_separator=':'
10164 link_all_deplibs=yes
10165 export_dynamic_flag_spec='${wl}-Bexport'
10166 runpath_var='LD_RUN_PATH'
10168 if test "$GCC" = yes; then
10169 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 hardcode_libdir_flag_spec='-L$libdir'
10180 hardcode_shlibpath_var=no
10188 if test x$host_vendor = xsni; then
10190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10191 export_dynamic_flag_spec='${wl}-Blargedynsym'
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10198 $as_echo "$ld_shlibs" >&6; }
10199 test "$ld_shlibs" = no && can_build_shared=no
10201 with_gnu_ld=$with_gnu_ld
10218 # Do we need to explicitly link libc?
10220 case "x$archive_cmds_need_lc" in
10222 # Assume -lc should be added
10223 archive_cmds_need_lc=yes
10225 if test "$enable_shared" = yes && test "$GCC" = yes; then
10226 case $archive_cmds in
10228 # FIXME: we may have to deal with multi-command sequences.
10231 # Test whether the compiler implicitly links with -lc since on some
10232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10233 # to ld, don't add -lc before -lgcc.
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10235 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10236 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10237 $as_echo_n "(cached) " >&6
10240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10243 (eval $ac_compile) 2>&5
10245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10246 test $ac_status = 0; } 2>conftest.err; then
10249 libobjs=conftest.$ac_objext
10251 wl=$lt_prog_compiler_wl
10252 pic_flag=$lt_prog_compiler_pic
10258 lt_save_allow_undefined_flag=$allow_undefined_flag
10259 allow_undefined_flag=
10260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10261 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10264 test $ac_status = 0; }
10266 lt_cv_archive_cmds_need_lc=no
10268 lt_cv_archive_cmds_need_lc=yes
10270 allow_undefined_flag=$lt_save_allow_undefined_flag
10272 cat conftest.err 1>&5
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10278 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10279 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10443 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10445 if test "$GCC" = yes; then
10447 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10448 *) lt_awk_arg="/^libraries:/" ;;
10451 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10452 *) lt_sed_strip_eq="s,=/,/,g" ;;
10454 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10455 case $lt_search_path_spec in
10457 # if the path contains ";" then we assume it to be the separator
10458 # otherwise default to the standard path separator (i.e. ":") - it is
10459 # assumed that no part of a normal pathname contains ";" but that should
10460 # okay in the real world where ";" in dirpaths is itself problematic.
10461 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10464 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10467 # Ok, now we have the path, separated by spaces, we can step through it
10468 # and add multilib dir if necessary.
10469 lt_tmp_lt_search_path_spec=
10470 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10471 for lt_sys_path in $lt_search_path_spec; do
10472 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10473 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10475 test -d "$lt_sys_path" && \
10476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10479 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10480 BEGIN {RS=" "; FS="/|\n";} {
10483 for (lt_i = NF; lt_i > 0; lt_i--) {
10484 if ($lt_i != "" && $lt_i != ".") {
10485 if ($lt_i == "..") {
10488 if (lt_count == 0) {
10489 lt_foo="/" $lt_i lt_foo;
10496 if (lt_foo != "") { lt_freq[lt_foo]++; }
10497 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10499 # AWK program above erroneously prepends '/' to C:/dos/paths
10502 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10503 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10505 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10507 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10509 library_names_spec=
10510 libname_spec='lib$name'
10514 postuninstall_cmds=
10518 shlibpath_overrides_runpath=unknown
10520 dynamic_linker="$host_os ld.so"
10521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10522 need_lib_prefix=unknown
10523 hardcode_into_libs=no
10525 # when you set need_version to no, make sure it does not cause -set_version
10526 # flags to be left without arguments
10527 need_version=unknown
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10533 shlibpath_var=LIBPATH
10535 # AIX 3 has no versioning support, so we append a major version to the name.
10536 soname_spec='${libname}${release}${shared_ext}$major'
10543 hardcode_into_libs=yes
10544 if test "$host_cpu" = ia64; then
10545 # AIX 5 supports IA64
10546 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10547 shlibpath_var=LD_LIBRARY_PATH
10549 # With GCC up to 2.95.x, collect2 would create an import file
10550 # for dependence libraries. The import file would start with
10551 # the line `#! .'. This would cause the generated library to
10552 # depend on `.', always an invalid library. This was fixed in
10553 # development snapshots of GCC prior to 3.0.
10555 aix4 | aix4.[01] | aix4.[01].*)
10556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10558 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10561 can_build_shared=no
10565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10566 # soname into executable. Probably we can add versioning support to
10567 # collect2, so additional links can be useful in future.
10568 if test "$aix_use_runtimelinking" = yes; then
10569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10570 # instead of lib<name>.a to let people know that these are not
10571 # typical AIX shared libraries.
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 # We preserve .a as extension for shared libraries through AIX4.2
10575 # and later when we are not doing run time linking.
10576 library_names_spec='${libname}${release}.a $libname.a'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10579 shlibpath_var=LIBPATH
10586 # Since July 2007 AmigaOS4 officially supports .so libraries.
10587 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591 library_names_spec='$libname.ixlibrary $libname.a'
10592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10593 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'
10599 library_names_spec='${libname}${shared_ext}'
10600 dynamic_linker="$host_os ld.so"
10601 shlibpath_var=LIBRARY_PATH
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10613 # the default ld.so.conf also contains /usr/contrib/lib and
10614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10615 # libtool to hard-code these into programs
10618 cygwin* | mingw* | pw32* | cegcc*)
10619 version_type=windows
10624 case $GCC,$cc_basename in
10627 library_names_spec='$libname.dll.a'
10628 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10629 postinstall_cmds='base_file=`basename \${file}`~
10630 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10631 dldir=$destdir/`dirname \$dlpath`~
10632 test -d \$dldir || mkdir -p \$dldir~
10633 $install_prog $dir/$dlname \$dldir/$dlname~
10634 chmod a+x \$dldir/$dlname~
10635 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10636 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10638 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10639 dlpath=$dir/\$dldll~
10641 shlibpath_overrides_runpath=yes
10645 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10646 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10648 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10651 # MinGW DLLs use traditional 'lib' prefix
10652 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10655 # pw32 DLLs use 'pw' prefix rather than 'lib'
10656 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659 dynamic_linker='Win32 ld.exe'
10664 libname_spec='$name'
10665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10666 library_names_spec='${libname}.dll.lib'
10670 sys_lib_search_path_spec=
10673 for lt_path in $LIB
10676 # Let DOS variable expansion print the short 8.3 style file name.
10677 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10678 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10681 # Convert to MSYS style.
10682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10685 # Convert to unix form, then to dos form, then back to unix form
10686 # but this time dos style (no spaces!) so that the unix form looks
10687 # like /cygdrive/c/PROGRA~1:/cygdr...
10688 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10689 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10690 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10693 sys_lib_search_path_spec="$LIB"
10694 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10695 # It is most probably a Windows format PATH.
10696 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10698 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10700 # FIXME: find the short name or the path components, as spaces are
10701 # common. (e.g. "Program Files" -> "PROGRA~1")
10705 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10706 postinstall_cmds='base_file=`basename \${file}`~
10707 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10708 dldir=$destdir/`dirname \$dlpath`~
10709 test -d \$dldir || mkdir -p \$dldir~
10710 $install_prog $dir/$dlname \$dldir/$dlname'
10711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10712 dlpath=$dir/\$dldll~
10714 shlibpath_overrides_runpath=yes
10715 dynamic_linker='Win32 link.exe'
10719 # Assume MSVC wrapper
10720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10721 dynamic_linker='Win32 ld.exe'
10724 # FIXME: first we should search . and the directory the executable is in
10728 darwin* | rhapsody*)
10729 dynamic_linker="$host_os dyld"
10730 version_type=darwin
10733 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10734 soname_spec='${libname}${release}${major}$shared_ext'
10735 shlibpath_overrides_runpath=yes
10736 shlibpath_var=DYLD_LIBRARY_PATH
10737 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10739 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10740 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10756 freebsd* | dragonfly*)
10757 # DragonFly does not have aout. When/if they implement a new
10758 # versioning mechanism, adjust this.
10759 if test -x /usr/bin/objformat; then
10760 objformat=`/usr/bin/objformat`
10763 freebsd[123]*) objformat=aout ;;
10764 *) objformat=elf ;;
10767 version_type=freebsd-$objformat
10768 case $version_type in
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10779 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=yes
10784 freebsd3.[01]* | freebsdelf3.[01]*)
10785 shlibpath_overrides_runpath=yes
10786 hardcode_into_libs=yes
10788 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10789 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10790 shlibpath_overrides_runpath=no
10791 hardcode_into_libs=yes
10793 *) # from 4.6 on, and DragonFly
10794 shlibpath_overrides_runpath=yes
10795 hardcode_into_libs=yes
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 hardcode_into_libs=yes
10814 dynamic_linker="$host_os runtime_loader"
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 shlibpath_var=LIBRARY_PATH
10818 shlibpath_overrides_runpath=yes
10819 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10820 hardcode_into_libs=yes
10823 hpux9* | hpux10* | hpux11*)
10824 # Give a soname corresponding to the major version so that dld.sl refuses to
10825 # link against other versions.
10832 hardcode_into_libs=yes
10833 dynamic_linker="$host_os dld.so"
10834 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 if test "X$HPUX_IA64_MODE" = X32; then
10839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10847 hardcode_into_libs=yes
10848 dynamic_linker="$host_os dld.sl"
10849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10858 dynamic_linker="$host_os dld.sl"
10859 shlibpath_var=SHLIB_PATH
10860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10865 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10866 postinstall_cmds='chmod 555 $lib'
10867 # or fails outright, so override atomically:
10868 install_override_mode=555
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10878 shlibpath_var=LD_LIBRARY_PATH
10879 shlibpath_overrides_runpath=no
10880 hardcode_into_libs=yes
10883 irix5* | irix6* | nonstopux*)
10885 nonstopux*) version_type=nonstopux ;;
10887 if test "$lt_cv_prog_gnu_ld" = yes; then
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10898 irix5* | nonstopux*)
10899 libsuff= shlibsuff=
10902 case $LD in # libtool.m4 will add one of these switches to LD
10903 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10904 libsuff= shlibsuff= libmagic=32-bit;;
10905 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10906 libsuff=32 shlibsuff=N32 libmagic=N32;;
10907 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10908 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10909 *) libsuff= shlibsuff= libmagic=never-match;;
10913 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10914 shlibpath_overrides_runpath=no
10915 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10916 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10917 hardcode_into_libs=yes
10920 # No shared lib support for Linux oldld, aout, or coff.
10921 linux*oldld* | linux*aout* | linux*coff*)
10925 # This must be Linux ELF.
10926 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931 soname_spec='${libname}${release}${shared_ext}$major'
10932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10933 shlibpath_var=LD_LIBRARY_PATH
10934 shlibpath_overrides_runpath=no
10936 # Some binutils ld are patched to set DT_RUNPATH
10937 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10938 $as_echo_n "(cached) " >&6
10940 lt_cv_shlibpath_overrides_runpath=no
10941 save_LDFLAGS=$LDFLAGS
10942 save_libdir=$libdir
10943 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10944 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10956 if ac_fn_c_try_link "$LINENO"; then :
10957 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10958 lt_cv_shlibpath_overrides_runpath=yes
10961 rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963 LDFLAGS=$save_LDFLAGS
10964 libdir=$save_libdir
10968 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10970 # This implies no fast_install, which is unacceptable.
10971 # Some rework will be needed to allow for fast_install
10972 # before this can be enabled.
10973 hardcode_into_libs=yes
10975 # Append ld.so.conf contents to the search path
10976 if test -f /etc/ld.so.conf; then
10977 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' ' '`
10978 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10981 # We used to test for /lib/ld.so.1 and disable shared libraries on
10982 # powerpc, because MkLinux only supported shared libraries with the
10983 # GNU dynamic linker. Since this was broken with cross compilers,
10984 # most powerpc-linux boxes support dynamic linking these days and
10985 # people can always --disable-shared, the test was removed, and we
10986 # assume the GNU/Linux dynamic linker is in use.
10987 dynamic_linker='GNU/Linux ld.so'
10994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10997 dynamic_linker='NetBSD (a.out) ld.so'
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 dynamic_linker='NetBSD ld.elf_so'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 shlibpath_overrides_runpath=yes
11005 hardcode_into_libs=yes
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=yes
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11022 shlibpath_overrides_runpath=no
11023 hardcode_into_libs=yes
11024 dynamic_linker='ldqnx.so'
11029 sys_lib_dlsearch_path_spec="/usr/lib"
11031 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11033 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11034 *) need_version=no ;;
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11041 openbsd2.[89] | openbsd2.[89].*)
11042 shlibpath_overrides_runpath=no
11045 shlibpath_overrides_runpath=yes
11049 shlibpath_overrides_runpath=yes
11054 libname_spec='$name'
11057 library_names_spec='$libname${shared_ext} $libname.a'
11058 dynamic_linker='OS/2 ld.exe'
11059 shlibpath_var=LIBPATH
11062 osf3* | osf4* | osf5*)
11066 soname_spec='${libname}${release}${shared_ext}$major'
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11070 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 soname_spec='${libname}${release}${shared_ext}$major'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 shlibpath_overrides_runpath=yes
11085 hardcode_into_libs=yes
11086 # ldd complains unless libraries are executable
11087 postinstall_cmds='chmod +x $lib'
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11093 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=yes
11096 if test "$with_gnu_ld" = yes; then
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 case $host_vendor in
11109 shlibpath_overrides_runpath=no
11111 runpath_var=LD_RUN_PATH
11119 shlibpath_overrides_runpath=no
11120 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11126 if test -d /usr/nec ;then
11128 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11129 soname_spec='$libname${shared_ext}.$major'
11130 shlibpath_var=LD_LIBRARY_PATH
11134 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11135 version_type=freebsd-elf
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11139 soname_spec='${libname}${release}${shared_ext}$major'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=yes
11142 hardcode_into_libs=yes
11143 if test "$with_gnu_ld" = yes; then
11144 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11146 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11149 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11153 sys_lib_dlsearch_path_spec='/usr/lib'
11157 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=no
11164 hardcode_into_libs=yes
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 shlibpath_var=LD_LIBRARY_PATH
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11179 $as_echo "$dynamic_linker" >&6; }
11180 test "$dynamic_linker" = no && can_build_shared=no
11182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11183 if test "$GCC" = yes; then
11184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11187 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11188 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11190 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11191 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11286 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11288 if test -n "$hardcode_libdir_flag_spec" ||
11289 test -n "$runpath_var" ||
11290 test "X$hardcode_automatic" = "Xyes" ; then
11292 # We can hardcode non-existent directories.
11293 if test "$hardcode_direct" != no &&
11294 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11295 # have to relink, otherwise we might link with an installed library
11296 # when we should be linking with a yet-to-be-installed one
11297 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11298 test "$hardcode_minus_L" != no; then
11299 # Linking always hardcodes the temporary library directory.
11300 hardcode_action=relink
11302 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11303 hardcode_action=immediate
11306 # We cannot hardcode anything, or else we can only hardcode existing
11308 hardcode_action=unsupported
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11311 $as_echo "$hardcode_action" >&6; }
11313 if test "$hardcode_action" = relink ||
11314 test "$inherit_rpath" = yes; then
11315 # Fast installation is not supported
11316 enable_fast_install=no
11317 elif test "$shlibpath_overrides_runpath" = yes ||
11318 test "$enable_shared" = no; then
11319 # Fast installation is not necessary
11320 enable_fast_install=needless
11328 if test "x$enable_dlopen" != xyes; then
11329 enable_dlopen=unknown
11330 enable_dlopen_self=unknown
11331 enable_dlopen_self_static=unknown
11338 lt_cv_dlopen="load_add_on"
11340 lt_cv_dlopen_self=yes
11343 mingw* | pw32* | cegcc*)
11344 lt_cv_dlopen="LoadLibrary"
11349 lt_cv_dlopen="dlopen"
11354 # if libdl is installed we need to link against it
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11356 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11357 if ${ac_cv_lib_dl_dlopen+:} false; then :
11358 $as_echo_n "(cached) " >&6
11360 ac_check_lib_save_LIBS=$LIBS
11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11365 /* Override any GCC internal prototype to avoid an error.
11366 Use char because int might match the return type of a GCC
11367 builtin and then its argument prototype would still apply. */
11380 if ac_fn_c_try_link "$LINENO"; then :
11381 ac_cv_lib_dl_dlopen=yes
11383 ac_cv_lib_dl_dlopen=no
11385 rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
11387 LIBS=$ac_check_lib_save_LIBS
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11390 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11391 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11395 lt_cv_dlopen="dyld"
11397 lt_cv_dlopen_self=yes
11404 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11405 if test "x$ac_cv_func_shl_load" = xyes; then :
11406 lt_cv_dlopen="shl_load"
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11409 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11410 if ${ac_cv_lib_dld_shl_load+:} false; then :
11411 $as_echo_n "(cached) " >&6
11413 ac_check_lib_save_LIBS=$LIBS
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11428 return shl_load ();
11433 if ac_fn_c_try_link "$LINENO"; then :
11434 ac_cv_lib_dld_shl_load=yes
11436 ac_cv_lib_dld_shl_load=no
11438 rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
11440 LIBS=$ac_check_lib_save_LIBS
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11443 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11444 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11445 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11447 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11448 if test "x$ac_cv_func_dlopen" = xyes; then :
11449 lt_cv_dlopen="dlopen"
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11452 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11453 if ${ac_cv_lib_dl_dlopen+:} false; then :
11454 $as_echo_n "(cached) " >&6
11456 ac_check_lib_save_LIBS=$LIBS
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 /* Override any GCC internal prototype to avoid an error.
11462 Use char because int might match the return type of a GCC
11463 builtin and then its argument prototype would still apply. */
11476 if ac_fn_c_try_link "$LINENO"; then :
11477 ac_cv_lib_dl_dlopen=yes
11479 ac_cv_lib_dl_dlopen=no
11481 rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11486 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11487 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11491 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11492 if ${ac_cv_lib_svld_dlopen+:} false; then :
11493 $as_echo_n "(cached) " >&6
11495 ac_check_lib_save_LIBS=$LIBS
11496 LIBS="-lsvld $LIBS"
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11500 /* Override any GCC internal prototype to avoid an error.
11501 Use char because int might match the return type of a GCC
11502 builtin and then its argument prototype would still apply. */
11515 if ac_fn_c_try_link "$LINENO"; then :
11516 ac_cv_lib_svld_dlopen=yes
11518 ac_cv_lib_svld_dlopen=no
11520 rm -f core conftest.err conftest.$ac_objext \
11521 conftest$ac_exeext conftest.$ac_ext
11522 LIBS=$ac_check_lib_save_LIBS
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11525 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11526 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11527 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11530 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11531 if ${ac_cv_lib_dld_dld_link+:} false; then :
11532 $as_echo_n "(cached) " >&6
11534 ac_check_lib_save_LIBS=$LIBS
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11539 /* Override any GCC internal prototype to avoid an error.
11540 Use char because int might match the return type of a GCC
11541 builtin and then its argument prototype would still apply. */
11549 return dld_link ();
11554 if ac_fn_c_try_link "$LINENO"; then :
11555 ac_cv_lib_dld_dld_link=yes
11557 ac_cv_lib_dld_dld_link=no
11559 rm -f core conftest.err conftest.$ac_objext \
11560 conftest$ac_exeext conftest.$ac_ext
11561 LIBS=$ac_check_lib_save_LIBS
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11564 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11565 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11566 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11587 if test "x$lt_cv_dlopen" != xno; then
11593 case $lt_cv_dlopen in
11595 save_CPPFLAGS="$CPPFLAGS"
11596 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11598 save_LDFLAGS="$LDFLAGS"
11599 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11602 LIBS="$lt_cv_dlopen_libs $LIBS"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11605 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11606 if ${lt_cv_dlopen_self+:} false; then :
11607 $as_echo_n "(cached) " >&6
11609 if test "$cross_compiling" = yes; then :
11610 lt_cv_dlopen_self=cross
11612 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11613 lt_status=$lt_dlunknown
11614 cat > conftest.$ac_ext <<_LT_EOF
11615 #line $LINENO "configure"
11616 #include "confdefs.h"
11625 # define LT_DLGLOBAL RTLD_GLOBAL
11628 # define LT_DLGLOBAL DL_GLOBAL
11630 # define LT_DLGLOBAL 0
11634 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11635 find out it does not work in some platform. */
11636 #ifndef LT_DLLAZY_OR_NOW
11638 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11641 # define LT_DLLAZY_OR_NOW DL_LAZY
11644 # define LT_DLLAZY_OR_NOW RTLD_NOW
11647 # define LT_DLLAZY_OR_NOW DL_NOW
11649 # define LT_DLLAZY_OR_NOW 0
11656 /* When -fvisbility=hidden is used, assume the code has been annotated
11657 correspondingly for the symbols needed. */
11658 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11659 int fnord () __attribute__((visibility("default")));
11662 int fnord () { return 42; }
11665 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11666 int status = $lt_dlunknown;
11670 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11673 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11674 else puts (dlerror ());
11676 /* dlclose (self); */
11684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11685 (eval $ac_link) 2>&5
11687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11689 (./conftest; exit; ) >&5 2>/dev/null
11691 case x$lt_status in
11692 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11693 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11694 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11697 # compilation failed
11698 lt_cv_dlopen_self=no
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11706 $as_echo "$lt_cv_dlopen_self" >&6; }
11708 if test "x$lt_cv_dlopen_self" = xyes; then
11709 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11711 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11712 if ${lt_cv_dlopen_self_static+:} false; then :
11713 $as_echo_n "(cached) " >&6
11715 if test "$cross_compiling" = yes; then :
11716 lt_cv_dlopen_self_static=cross
11718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11719 lt_status=$lt_dlunknown
11720 cat > conftest.$ac_ext <<_LT_EOF
11721 #line $LINENO "configure"
11722 #include "confdefs.h"
11731 # define LT_DLGLOBAL RTLD_GLOBAL
11734 # define LT_DLGLOBAL DL_GLOBAL
11736 # define LT_DLGLOBAL 0
11740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11741 find out it does not work in some platform. */
11742 #ifndef LT_DLLAZY_OR_NOW
11744 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11747 # define LT_DLLAZY_OR_NOW DL_LAZY
11750 # define LT_DLLAZY_OR_NOW RTLD_NOW
11753 # define LT_DLLAZY_OR_NOW DL_NOW
11755 # define LT_DLLAZY_OR_NOW 0
11762 /* When -fvisbility=hidden is used, assume the code has been annotated
11763 correspondingly for the symbols needed. */
11764 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11765 int fnord () __attribute__((visibility("default")));
11768 int fnord () { return 42; }
11771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11772 int status = $lt_dlunknown;
11776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11779 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11780 else puts (dlerror ());
11782 /* dlclose (self); */
11790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11791 (eval $ac_link) 2>&5
11793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11794 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11795 (./conftest; exit; ) >&5 2>/dev/null
11797 case x$lt_status in
11798 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11799 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11800 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11803 # compilation failed
11804 lt_cv_dlopen_self_static=no
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11812 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11815 CPPFLAGS="$save_CPPFLAGS"
11816 LDFLAGS="$save_LDFLAGS"
11821 case $lt_cv_dlopen_self in
11822 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11823 *) enable_dlopen_self=unknown ;;
11826 case $lt_cv_dlopen_self_static in
11827 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11828 *) enable_dlopen_self_static=unknown ;;
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11851 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11852 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11854 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11856 $as_echo "yes" >&6; }
11858 # FIXME - insert some real tests, host_os isn't really good enough
11861 if test -n "$STRIP" ; then
11862 striplib="$STRIP -x"
11863 old_striplib="$STRIP -S"
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11865 $as_echo "yes" >&6; }
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11889 # Report which library types will actually be built
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11891 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11893 $as_echo "$can_build_shared" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11896 $as_echo_n "checking whether to build shared libraries... " >&6; }
11897 test "$can_build_shared" = "no" && enable_shared=no
11899 # On AIX, shared libraries and static libraries use the same namespace, and
11900 # are all built from PIC.
11903 test "$enable_shared" = yes && enable_static=no
11904 if test -n "$RANLIB"; then
11905 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11906 postinstall_cmds='$RANLIB $lib'
11911 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11912 test "$enable_shared" = yes && enable_static=no
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11917 $as_echo "$enable_shared" >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11920 $as_echo_n "checking whether to build static libraries... " >&6; }
11921 # Make sure either enable_shared or enable_static is yes.
11922 test "$enable_shared" = yes || enable_static=yes
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11924 $as_echo "$enable_static" >&6; }
11931 ac_cpp='$CPP $CPPFLAGS'
11932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11950 ac_config_commands="$ac_config_commands libtool"
11955 # Only expand once:
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
11961 $as_echo_n "checking for C compiler vendor... " >&6; }
11962 if ${ax_cv_c_compiler_vendor+:} false; then :
11963 $as_echo_n "(cached) " >&6
11965 # note: don't check for gcc first since some other compilers define __GNUC__
11966 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
11967 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
11968 pathscale: __PATHCC__,__PATHSCALE__
11971 sun: __SUNPRO_C,__SUNPRO_CC
11972 hp: __HP_cc,__HP_aCC
11973 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
11974 borland: __BORLANDC__,__TURBOC__
11980 microsoft: _MSC_VER
11981 metrowerks: __MWERKS__
11982 watcom: __WATCOMC__
11985 for ventest in $vendors; do
11987 *:) vendor=$ventest; continue ;;
11988 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
12005 if ac_fn_c_try_compile "$LINENO"; then :
12008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12010 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12014 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12021 # Check whether --enable-portable-binary was given.
12022 if test "${enable_portable_binary+set}" = set; then :
12023 enableval=$enable_portable_binary; acx_maxopt_portable=$withval
12025 acx_maxopt_portable=no
12029 # Try to determine "good" native compiler flags if none specified via CFLAGS
12030 if test "$ac_test_CFLAGS" != "set"; then
12032 case $ax_cv_c_compiler_vendor in
12033 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12034 if test "x$acx_maxopt_portable" = xno; then
12035 CFLAGS="$CFLAGS -arch host"
12038 sun) CFLAGS="-native -fast -xO5 -dalign"
12039 if test "x$acx_maxopt_portable" = xyes; then
12040 CFLAGS="$CFLAGS -xarch=generic"
12043 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
12044 if test "x$acx_maxopt_portable" = xyes; then
12045 CFLAGS="$CFLAGS +DAportable"
12048 ibm) if test "x$acx_maxopt_portable" = xno; then
12049 xlc_opt="-qarch=auto -qtune=auto"
12051 xlc_opt="-qtune=auto"
12053 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12055 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12056 if eval \${$as_CACHEVAR+:} false; then :
12057 $as_echo_n "(cached) " >&6
12060 ax_check_save_flags=$CFLAGS
12061 CFLAGS="$CFLAGS $xlc_opt"
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12073 if ac_fn_c_try_compile "$LINENO"; then :
12074 eval "$as_CACHEVAR=yes"
12076 eval "$as_CACHEVAR=no"
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 CFLAGS=$ax_check_save_flags
12081 eval ac_res=\$$as_CACHEVAR
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12083 $as_echo "$ac_res" >&6; }
12084 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12085 CFLAGS="-O3 -qansialias -w $xlc_opt"
12087 CFLAGS="-O3 -qansialias -w"
12088 echo "******************************************************"
12089 echo "* You seem to have the IBM C compiler. It is *"
12090 echo "* recommended for best performance that you use: *"
12092 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12094 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
12095 echo "* CPU you have. (Set the CFLAGS environment var. *"
12096 echo "* and re-run configure.) For more info, man cc. *"
12097 echo "******************************************************"
12102 intel) CFLAGS="-O3 -ansi_alias"
12103 if test "x$acx_maxopt_portable" = xno; then
12104 icc_archflag=unknown
12108 # icc accepts gcc assembly syntax, so these should work:
12111 ac_cpp='$CPP $CPPFLAGS'
12112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12117 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12118 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12119 $as_echo_n "(cached) " >&6
12121 if test "$cross_compiling" = yes; then :
12122 ax_cv_gcc_x86_cpuid_0=unknown
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12131 int op = 0, eax, ebx, ecx, edx;
12134 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12136 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12137 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12145 if ac_fn_c_try_run "$LINENO"; then :
12146 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12148 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12151 conftest.$ac_objext conftest.beam conftest.$ac_ext
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12156 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12158 ac_cpp='$CPP $CPPFLAGS'
12159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12166 ac_cpp='$CPP $CPPFLAGS'
12167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12172 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12173 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12174 $as_echo_n "(cached) " >&6
12176 if test "$cross_compiling" = yes; then :
12177 ax_cv_gcc_x86_cpuid_1=unknown
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12186 int op = 1, eax, ebx, ecx, edx;
12189 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12191 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12192 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12200 if ac_fn_c_try_run "$LINENO"; then :
12201 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12203 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12206 conftest.$ac_objext conftest.beam conftest.$ac_ext
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12211 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12213 ac_cpp='$CPP $CPPFLAGS'
12214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12219 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12220 *:756e6547:*:*) # Intel
12221 case $ax_cv_gcc_x86_cpuid_1 in
12222 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12223 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12224 *f??:*:*:*) icc_flags="-xN -xW -xK";;
12228 if test "x$icc_flags" != x; then
12229 for flag in $icc_flags; do
12230 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12232 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12233 if eval \${$as_CACHEVAR+:} false; then :
12234 $as_echo_n "(cached) " >&6
12237 ax_check_save_flags=$CFLAGS
12238 CFLAGS="$CFLAGS $flag"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12250 if ac_fn_c_try_compile "$LINENO"; then :
12251 eval "$as_CACHEVAR=yes"
12253 eval "$as_CACHEVAR=no"
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 CFLAGS=$ax_check_save_flags
12258 eval ac_res=\$$as_CACHEVAR
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12260 $as_echo "$ac_res" >&6; }
12261 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12262 icc_archflag=$flag; break
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12270 $as_echo_n "checking for icc architecture flag... " >&6; }
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12272 $as_echo "$icc_archflag" >&6; }
12273 if test "x$icc_archflag" != xunknown; then
12274 CFLAGS="$CFLAGS $icc_archflag"
12280 # default optimization flags for gcc on all systems
12281 CFLAGS="-O3 -fomit-frame-pointer"
12283 # -malign-double for x86 systems
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12285 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12286 if ${ax_cv_check_cflags___malign_double+:} false; then :
12287 $as_echo_n "(cached) " >&6
12290 ax_check_save_flags=$CFLAGS
12291 CFLAGS="$CFLAGS -malign-double"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12303 if ac_fn_c_try_compile "$LINENO"; then :
12304 ax_cv_check_cflags___malign_double=yes
12306 ax_cv_check_cflags___malign_double=no
12308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309 CFLAGS=$ax_check_save_flags
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12312 $as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12313 if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12314 CFLAGS="$CFLAGS -malign-double"
12320 # -fstrict-aliasing for gcc-2.95+
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12322 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12323 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12324 $as_echo_n "(cached) " >&6
12327 ax_check_save_flags=$CFLAGS
12328 CFLAGS="$CFLAGS -fstrict-aliasing"
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12340 if ac_fn_c_try_compile "$LINENO"; then :
12341 ax_cv_check_cflags___fstrict_aliasing=yes
12343 ax_cv_check_cflags___fstrict_aliasing=no
12345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 CFLAGS=$ax_check_save_flags
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12349 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12350 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12351 CFLAGS="$CFLAGS -fstrict-aliasing"
12357 # note that we enable "unsafe" fp optimization with other compilers, too
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12359 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12360 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12361 $as_echo_n "(cached) " >&6
12364 ax_check_save_flags=$CFLAGS
12365 CFLAGS="$CFLAGS -ffast-math"
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12377 if ac_fn_c_try_compile "$LINENO"; then :
12378 ax_cv_check_cflags___ffast_math=yes
12380 ax_cv_check_cflags___ffast_math=no
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 CFLAGS=$ax_check_save_flags
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12386 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12387 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12388 CFLAGS="$CFLAGS -ffast-math"
12398 # Check whether --with-gcc-arch was given.
12399 if test "${with_gcc_arch+set}" = set; then :
12400 withval=$with_gcc_arch; ax_gcc_arch=$withval
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12407 $as_echo_n "checking for gcc architecture flag... " >&6; }
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12410 if ${ax_cv_gcc_archflag+:} false; then :
12411 $as_echo_n "(cached) " >&6
12414 ax_cv_gcc_archflag="unknown"
12416 if test "$GCC" = yes; then
12418 if test "x$ax_gcc_arch" = xyes; then
12420 if test "$cross_compiling" = no; then
12422 i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones
12425 ac_cpp='$CPP $CPPFLAGS'
12426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12431 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12432 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12433 $as_echo_n "(cached) " >&6
12435 if test "$cross_compiling" = yes; then :
12436 ax_cv_gcc_x86_cpuid_0=unknown
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12445 int op = 0, eax, ebx, ecx, edx;
12448 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12450 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12451 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12459 if ac_fn_c_try_run "$LINENO"; then :
12460 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12462 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12465 conftest.$ac_objext conftest.beam conftest.$ac_ext
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12470 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12472 ac_cpp='$CPP $CPPFLAGS'
12473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12480 ac_cpp='$CPP $CPPFLAGS'
12481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12486 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12487 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12488 $as_echo_n "(cached) " >&6
12490 if test "$cross_compiling" = yes; then :
12491 ax_cv_gcc_x86_cpuid_1=unknown
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12500 int op = 1, eax, ebx, ecx, edx;
12503 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12505 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12506 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12514 if ac_fn_c_try_run "$LINENO"; then :
12515 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12517 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12520 conftest.$ac_objext conftest.beam conftest.$ac_ext
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12525 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12527 ac_cpp='$CPP $CPPFLAGS'
12528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12533 case $ax_cv_gcc_x86_cpuid_0 in
12534 *:756e6547:*:*) # Intel
12535 case $ax_cv_gcc_x86_cpuid_1 in
12536 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12537 *5??:*:*:*) ax_gcc_arch=pentium ;;
12538 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12539 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12540 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12541 *6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12542 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12543 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12544 *f3[347]:*:*:*|*f41347:*:*:*)
12546 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12547 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12549 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12551 *:68747541:*:*) # AMD
12552 case $ax_cv_gcc_x86_cpuid_1 in
12553 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12554 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12555 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12556 *60?:*:*:*) ax_gcc_arch=k7 ;;
12557 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12558 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12559 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12563 ac_cpp='$CPP $CPPFLAGS'
12564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12569 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12570 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12571 $as_echo_n "(cached) " >&6
12573 if test "$cross_compiling" = yes; then :
12574 ax_cv_gcc_x86_cpuid_0x80000006=unknown
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12583 int op = 0x80000006, eax, ebx, ecx, edx;
12586 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12588 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12589 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12597 if ac_fn_c_try_run "$LINENO"; then :
12598 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12600 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12603 conftest.$ac_objext conftest.beam conftest.$ac_ext
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12608 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12610 ac_cpp='$CPP $CPPFLAGS'
12611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12616 case $ax_cv_gcc_x86_cpuid_0x80000006 in
12617 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12618 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12619 *) ax_gcc_arch="athlon-4 athlon k7" ;;
12621 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12622 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12623 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12624 *f??:*:*:*) ax_gcc_arch="k8" ;;
12626 *:746e6543:*:*) # IDT
12627 case $ax_cv_gcc_x86_cpuid_1 in
12628 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12629 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12630 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12631 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12634 if test x"$ax_gcc_arch" = x; then # fallback
12636 i586*) ax_gcc_arch=pentium ;;
12637 i686*) ax_gcc_arch=pentiumpro ;;
12643 # Extract the first word of "prtdiag", so it can be a program name with args.
12644 set dummy prtdiag; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_path_PRTDIAG+:} false; then :
12648 $as_echo_n "(cached) " >&6
12652 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12657 for as_dir in $as_dummy
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12663 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12675 PRTDIAG=$ac_cv_path_PRTDIAG
12676 if test -n "$PRTDIAG"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12678 $as_echo "$PRTDIAG" >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681 $as_echo "no" >&6; }
12685 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`
12686 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12688 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12689 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12690 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12691 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12692 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12693 *cypress*) ax_gcc_arch=cypress ;;
12696 alphaev5) ax_gcc_arch=ev5 ;;
12697 alphaev56) ax_gcc_arch=ev56 ;;
12698 alphapca56) ax_gcc_arch="pca56 ev56" ;;
12699 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12700 alphaev6) ax_gcc_arch=ev6 ;;
12701 alphaev67) ax_gcc_arch=ev67 ;;
12702 alphaev68) ax_gcc_arch="ev68 ev67" ;;
12703 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12704 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12705 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12708 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`
12709 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12711 *750*) ax_gcc_arch="750 G3" ;;
12712 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12713 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12714 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12715 *970*) ax_gcc_arch="970 G5 power4";;
12716 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12717 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12718 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12719 *) ax_gcc_arch=$cputype ;;
12721 ax_gcc_arch="$ax_gcc_arch powerpc"
12724 fi # not cross-compiling
12727 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12728 for arch in $ax_gcc_arch; do
12729 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12730 flags="-mtune=$arch"
12731 # -mcpu=$arch and m$arch generate nonportable code on every arch except
12732 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
12733 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12735 flags="-march=$arch -mcpu=$arch -m$arch"
12737 for flag in $flags; do
12738 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12740 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12741 if eval \${$as_CACHEVAR+:} false; then :
12742 $as_echo_n "(cached) " >&6
12745 ax_check_save_flags=$CFLAGS
12746 CFLAGS="$CFLAGS $flag"
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12758 if ac_fn_c_try_compile "$LINENO"; then :
12759 eval "$as_CACHEVAR=yes"
12761 eval "$as_CACHEVAR=no"
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 CFLAGS=$ax_check_save_flags
12766 eval ac_res=\$$as_CACHEVAR
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12768 $as_echo "$ac_res" >&6; }
12769 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12770 ax_cv_gcc_archflag=$flag; break
12776 test "x$ax_cv_gcc_archflag" = xunknown || break
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12785 $as_echo_n "checking for gcc architecture flag... " >&6; }
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12787 $as_echo "$ax_cv_gcc_archflag" >&6; }
12788 if test "x$ax_cv_gcc_archflag" = xunknown; then
12791 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12797 if test -z "$CFLAGS"; then
12799 echo "********************************************************"
12800 echo "* WARNING: Don't know the best CFLAGS for this system *"
12801 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12802 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
12803 echo "********************************************************"
12808 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12810 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12811 if eval \${$as_CACHEVAR+:} false; then :
12812 $as_echo_n "(cached) " >&6
12815 ax_check_save_flags=$CFLAGS
12816 CFLAGS="$CFLAGS $CFLAGS"
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12828 if ac_fn_c_try_compile "$LINENO"; then :
12829 eval "$as_CACHEVAR=yes"
12831 eval "$as_CACHEVAR=no"
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 CFLAGS=$ax_check_save_flags
12836 eval ac_res=\$$as_CACHEVAR
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12838 $as_echo "$ac_res" >&6; }
12839 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12844 echo "********************************************************"
12845 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
12846 echo "* your compiler. *"
12847 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12848 echo "********************************************************"
12858 ac_cpp='$CPP $CPPFLAGS'
12859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
12864 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
12865 if ${ac_cv_cflags_warn_all+:} false; then :
12866 $as_echo_n "(cached) " >&6
12868 ac_cv_cflags_warn_all="no, unknown"
12869 ac_save_CFLAGS="$CFLAGS"
12870 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" #
12871 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12883 if ac_fn_c_try_compile "$LINENO"; then :
12884 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 CFLAGS="$ac_save_CFLAGS"
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
12892 $as_echo "$ac_cv_cflags_warn_all" >&6; }
12893 case ".$ac_cv_cflags_warn_all" in
12896 *) if ${CFLAGS+:} false; then :
12897 case " $CFLAGS " in
12898 *" $ac_cv_cflags_warn_all "*)
12899 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
12900 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
12902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12903 test $ac_status = 0; }
12906 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
12907 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; }
12911 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
12915 CFLAGS="$ac_cv_cflags_warn_all"
12921 ac_cpp='$CPP $CPPFLAGS'
12922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927 if test "x$GCC" = "xyes"; then
12928 CFLAGS="$CFLAGS -fexceptions"
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12933 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12934 # Check whether --enable-maintainer-mode was given.
12935 if test "${enable_maintainer_mode+set}" = set; then :
12936 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12938 USE_MAINTAINER_MODE=no
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12942 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12943 if test $USE_MAINTAINER_MODE = yes; then
12944 MAINTAINER_MODE_TRUE=
12945 MAINTAINER_MODE_FALSE='#'
12947 MAINTAINER_MODE_TRUE='#'
12948 MAINTAINER_MODE_FALSE=
12951 MAINT=$MAINTAINER_MODE_TRUE
12955 for ac_header in sys/mman.h
12957 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12958 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
12959 cat >>confdefs.h <<_ACEOF
12960 #define HAVE_SYS_MMAN_H 1
12967 for ac_func in mmap
12969 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12970 if test "x$ac_cv_func_mmap" = xyes; then :
12971 cat >>confdefs.h <<_ACEOF
12972 #define HAVE_MMAP 1
12979 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12980 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
12981 libffi_header_sys_mman_h=yes
12983 libffi_header_sys_mman_h=no
12987 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12988 if test "x$ac_cv_func_mmap" = xyes; then :
12989 libffi_func_mmap=yes
12991 libffi_func_mmap=no
12994 if test "$libffi_header_sys_mman_h" != yes \
12995 || test "$libffi_func_mmap" != yes; then
12996 ac_cv_func_mmap_file=no
12997 ac_cv_func_mmap_dev_zero=no
12998 ac_cv_func_mmap_anon=no
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13001 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13002 if ${ac_cv_func_mmap_file+:} false; then :
13003 $as_echo_n "(cached) " >&6
13005 # Add a system to this blacklist if
13006 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13007 # memory area containing the same data that you'd get if you applied
13008 # read() to the same fd. The only system known to have a problem here
13009 # is VMS, where text files have record structure.
13012 ac_cv_func_mmap_file=no ;;
13014 ac_cv_func_mmap_file=yes;;
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13018 $as_echo "$ac_cv_func_mmap_file" >&6; }
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13020 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13021 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13022 $as_echo_n "(cached) " >&6
13024 # Add a system to this blacklist if it has mmap() but /dev/zero
13025 # does not exist, or if mmapping /dev/zero does not give anonymous
13026 # zeroed pages with both the following properties:
13027 # 1. If you map N consecutive pages in with one call, and then
13028 # unmap any subset of those pages, the pages that were not
13029 # explicitly unmapped remain accessible.
13030 # 2. If you map two adjacent blocks of memory and then unmap them
13031 # both at once, they must both go away.
13032 # Systems known to be in this category are Windows (all variants),
13035 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13036 ac_cv_func_mmap_dev_zero=no ;;
13038 ac_cv_func_mmap_dev_zero=yes;;
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13042 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13044 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13046 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13047 if ${ac_cv_decl_map_anon+:} false; then :
13048 $as_echo_n "(cached) " >&6
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052 #include <sys/types.h>
13053 #include <sys/mman.h>
13054 #include <unistd.h>
13056 #ifndef MAP_ANONYMOUS
13057 #define MAP_ANONYMOUS MAP_ANON
13063 int n = MAP_ANONYMOUS;
13068 if ac_fn_c_try_compile "$LINENO"; then :
13069 ac_cv_decl_map_anon=yes
13071 ac_cv_decl_map_anon=no
13073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13076 $as_echo "$ac_cv_decl_map_anon" >&6; }
13078 if test $ac_cv_decl_map_anon = no; then
13079 ac_cv_func_mmap_anon=no
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13082 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13083 if ${ac_cv_func_mmap_anon+:} false; then :
13084 $as_echo_n "(cached) " >&6
13086 # Add a system to this blacklist if it has mmap() and MAP_ANON or
13087 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13088 # doesn't give anonymous zeroed pages with the same properties listed
13089 # above for use of /dev/zero.
13090 # Systems known to be in this category are Windows, VMS, and SCO Unix.
13092 vms* | cygwin* | pe | mingw* | sco* | udk* )
13093 ac_cv_func_mmap_anon=no ;;
13095 ac_cv_func_mmap_anon=yes;;
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13099 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13103 if test $ac_cv_func_mmap_file = yes; then
13105 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13108 if test $ac_cv_func_mmap_dev_zero = yes; then
13110 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13113 if test $ac_cv_func_mmap_anon = yes; then
13115 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13120 if test -d $srcdir/testsuite; then
13122 TESTSUBDIR_FALSE='#'
13124 TESTSUBDIR_TRUE='#'
13129 TARGETDIR="unknown"
13132 TARGET=ALPHA; TARGETDIR=alpha;
13133 # Support 128-bit long double, changeable via command-line switch.
13134 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13138 TARGET=ARM; TARGETDIR=arm
13141 amd64-*-freebsd* | amd64-*-openbsd*)
13142 TARGET=X86_64; TARGETDIR=x86
13146 TARGET=X86_64; TARGETDIR=x86
13150 TARGET=AVR32; TARGETDIR=avr32
13154 TARGET=LIBFFI_CRIS; TARGETDIR=cris
13158 TARGET=FRV; TARGETDIR=frv
13161 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13162 TARGET=PA_LINUX; TARGETDIR=pa
13165 TARGET=PA64_HPUX; TARGETDIR=pa
13168 TARGET=PA_HPUX; TARGETDIR=pa
13171 i?86-*-freebsd* | i?86-*-openbsd*)
13172 TARGET=X86_FREEBSD; TARGETDIR=x86
13174 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13175 TARGET=X86_WIN32; TARGETDIR=x86
13176 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13177 # We must also check with_cross_host to decide if this is a native
13178 # or cross-build and select where to install dlls appropriately.
13179 if test -n "$with_cross_host" &&
13180 test x"$with_cross_host" != x"no"; then
13181 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13183 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13187 TARGET=X86_DARWIN; TARGETDIR=x86
13189 i?86-*-solaris2.1[0-9]*)
13190 TARGET=X86_64; TARGETDIR=x86
13193 TARGET=X86_64; TARGETDIR=x86
13197 TARGET=IA64; TARGETDIR=ia64
13201 TARGET=M32R; TARGETDIR=m32r
13205 TARGET=M68K; TARGETDIR=m68k
13208 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13209 TARGET=MIPS; TARGETDIR=mips
13211 mips*-*-linux* | mips*-*-openbsd*)
13212 # Support 128-bit long double for NewABI.
13213 HAVE_LONG_DOUBLE='defined(__mips64)'
13214 TARGET=MIPS; TARGETDIR=mips
13218 TARGET=MOXIE; TARGETDIR=moxie
13221 powerpc*-*-linux* | powerpc-*-sysv*)
13222 TARGET=POWERPC; TARGETDIR=powerpc
13224 powerpc-*-amigaos*)
13225 TARGET=POWERPC; TARGETDIR=powerpc
13228 TARGET=POWERPC; TARGETDIR=powerpc
13230 powerpc-*-darwin* | powerpc64-*-darwin*)
13231 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13233 powerpc-*-aix* | rs6000-*-aix*)
13234 TARGET=POWERPC_AIX; TARGETDIR=powerpc
13236 powerpc-*-freebsd* | powerpc-*-openbsd*)
13237 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13239 powerpc64-*-freebsd*)
13240 TARGET=POWERPC; TARGETDIR=powerpc
13243 TARGET=POWERPC; TARGETDIR=powerpc
13246 s390-*-* | s390x-*-*)
13247 TARGET=S390; TARGETDIR=s390
13250 sh-*-* | sh[34]*-*-*)
13251 TARGET=SH; TARGETDIR=sh
13253 sh64-*-* | sh5*-*-*)
13254 TARGET=SH64; TARGETDIR=sh64
13258 TARGET=SPARC; TARGETDIR=sparc
13262 TARGET=X86_DARWIN; TARGETDIR=x86
13265 x86_64-*-cygwin* | x86_64-*-mingw*)
13266 TARGET=X86_WIN64; TARGETDIR=x86
13267 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13268 # We must also check with_cross_host to decide if this is a native
13269 # or cross-build and select where to install dlls appropriately.
13270 if test -n "$with_cross_host" &&
13271 test x"$with_cross_host" != x"no"; then
13272 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13274 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13279 TARGET=X86_64; TARGETDIR=x86
13286 if test $TARGETDIR = unknown; then
13287 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13290 if test x$TARGET = xMIPS; then
13298 if test x$TARGET = xSPARC; then
13306 if test x$TARGET = xX86; then
13314 if test x$TARGET = xX86_FREEBSD; then
13316 X86_FREEBSD_FALSE='#'
13318 X86_FREEBSD_TRUE='#'
13322 if test x$TARGET = xX86_WIN32; then
13324 X86_WIN32_FALSE='#'
13330 if test x$TARGET = xX86_WIN64; then
13332 X86_WIN64_FALSE='#'
13338 if test x$TARGET = xX86_DARWIN; then
13340 X86_DARWIN_FALSE='#'
13342 X86_DARWIN_TRUE='#'
13346 if test x$TARGET = xALPHA; then
13354 if test x$TARGET = xIA64; then
13362 if test x$TARGET = xM32R; then
13370 if test x$TARGET = xM68K; then
13378 if test x$TARGET = xMOXIE; then
13386 if test x$TARGET = xPOWERPC; then
13394 if test x$TARGET = xPOWERPC_AIX; then
13396 POWERPC_AIX_FALSE='#'
13398 POWERPC_AIX_TRUE='#'
13402 if test x$TARGET = xPOWERPC_DARWIN; then
13403 POWERPC_DARWIN_TRUE=
13404 POWERPC_DARWIN_FALSE='#'
13406 POWERPC_DARWIN_TRUE='#'
13407 POWERPC_DARWIN_FALSE=
13410 if test x$TARGET = xPOWERPC_FREEBSD; then
13411 POWERPC_FREEBSD_TRUE=
13412 POWERPC_FREEBSD_FALSE='#'
13414 POWERPC_FREEBSD_TRUE='#'
13415 POWERPC_FREEBSD_FALSE=
13418 if test x$TARGET = xARM; then
13426 if test x$TARGET = xAVR32; then
13434 if test x$TARGET = xLIBFFI_CRIS; then
13436 LIBFFI_CRIS_FALSE='#'
13438 LIBFFI_CRIS_TRUE='#'
13442 if test x$TARGET = xFRV; then
13450 if test x$TARGET = xS390; then
13458 if test x$TARGET = xX86_64; then
13466 if test x$TARGET = xSH; then
13474 if test x$TARGET = xSH64; then
13482 if test x$TARGET = xPA_LINUX; then
13490 if test x$TARGET = xPA_HPUX; then
13498 if test x$TARGET = xPA64_HPUX; then
13500 PA64_HPUX_FALSE='#'
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13508 $as_echo_n "checking for ANSI C header files... " >&6; }
13509 if ${ac_cv_header_stdc+:} false; then :
13510 $as_echo_n "(cached) " >&6
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514 #include <stdlib.h>
13515 #include <stdarg.h>
13516 #include <string.h>
13527 if ac_fn_c_try_compile "$LINENO"; then :
13528 ac_cv_header_stdc=yes
13530 ac_cv_header_stdc=no
13532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13534 if test $ac_cv_header_stdc = yes; then
13535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13538 #include <string.h>
13541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13542 $EGREP "memchr" >/dev/null 2>&1; then :
13545 ac_cv_header_stdc=no
13551 if test $ac_cv_header_stdc = yes; then
13552 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555 #include <stdlib.h>
13558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13559 $EGREP "free" >/dev/null 2>&1; then :
13562 ac_cv_header_stdc=no
13568 if test $ac_cv_header_stdc = yes; then
13569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13570 if test "$cross_compiling" = yes; then :
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13576 #include <stdlib.h>
13577 #if ((' ' & 0x0FF) == 0x020)
13578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13581 # define ISLOWER(c) \
13582 (('a' <= (c) && (c) <= 'i') \
13583 || ('j' <= (c) && (c) <= 'r') \
13584 || ('s' <= (c) && (c) <= 'z'))
13585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13593 for (i = 0; i < 256; i++)
13594 if (XOR (islower (i), ISLOWER (i))
13595 || toupper (i) != TOUPPER (i))
13600 if ac_fn_c_try_run "$LINENO"; then :
13603 ac_cv_header_stdc=no
13605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13606 conftest.$ac_objext conftest.beam conftest.$ac_ext
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13612 $as_echo "$ac_cv_header_stdc" >&6; }
13613 if test $ac_cv_header_stdc = yes; then
13615 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13619 for ac_func in memcpy
13621 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13622 if test "x$ac_cv_func_memcpy" = xyes; then :
13623 cat >>confdefs.h <<_ACEOF
13624 #define HAVE_MEMCPY 1
13630 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13631 if test "x$ac_cv_type_size_t" = xyes; then :
13635 cat >>confdefs.h <<_ACEOF
13636 #define size_t unsigned int
13641 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13642 # for constant arguments. Useless!
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13644 $as_echo_n "checking for working alloca.h... " >&6; }
13645 if ${ac_cv_working_alloca_h+:} false; then :
13646 $as_echo_n "(cached) " >&6
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650 #include <alloca.h>
13654 char *p = (char *) alloca (2 * sizeof (int));
13660 if ac_fn_c_try_link "$LINENO"; then :
13661 ac_cv_working_alloca_h=yes
13663 ac_cv_working_alloca_h=no
13665 rm -f core conftest.err conftest.$ac_objext \
13666 conftest$ac_exeext conftest.$ac_ext
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13669 $as_echo "$ac_cv_working_alloca_h" >&6; }
13670 if test $ac_cv_working_alloca_h = yes; then
13672 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13677 $as_echo_n "checking for alloca... " >&6; }
13678 if ${ac_cv_func_alloca_works+:} false; then :
13679 $as_echo_n "(cached) " >&6
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13684 # define alloca __builtin_alloca
13687 # include <malloc.h>
13688 # define alloca _alloca
13690 # ifdef HAVE_ALLOCA_H
13691 # include <alloca.h>
13696 # ifndef alloca /* predefined by HP cc +Olibcalls */
13697 void *alloca (size_t);
13707 char *p = (char *) alloca (1);
13713 if ac_fn_c_try_link "$LINENO"; then :
13714 ac_cv_func_alloca_works=yes
13716 ac_cv_func_alloca_works=no
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13722 $as_echo "$ac_cv_func_alloca_works" >&6; }
13724 if test $ac_cv_func_alloca_works = yes; then
13726 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13729 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13730 # that cause trouble. Some versions do not even contain alloca or
13731 # contain a buggy version. If you still want to use their alloca,
13732 # use ar to extract alloca.o from them instead of compiling alloca.c.
13734 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13736 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13740 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13741 if ${ac_cv_os_cray+:} false; then :
13742 $as_echo_n "(cached) " >&6
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746 #if defined CRAY && ! defined CRAY2
13753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13754 $EGREP "webecray" >/dev/null 2>&1; then :
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13763 $as_echo "$ac_cv_os_cray" >&6; }
13764 if test $ac_cv_os_cray = yes; then
13765 for ac_func in _getb67 GETB67 getb67; do
13766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13768 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13770 cat >>confdefs.h <<_ACEOF
13771 #define CRAY_STACKSEG_END $ac_func
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13781 $as_echo_n "checking stack direction for C alloca... " >&6; }
13782 if ${ac_cv_c_stack_direction+:} false; then :
13783 $as_echo_n "(cached) " >&6
13785 if test "$cross_compiling" = yes; then :
13786 ac_cv_c_stack_direction=0
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790 $ac_includes_default
13792 find_stack_direction ()
13794 static char *addr = 0;
13799 return find_stack_direction ();
13802 return (&dummy > addr) ? 1 : -1;
13808 return find_stack_direction () < 0;
13811 if ac_fn_c_try_run "$LINENO"; then :
13812 ac_cv_c_stack_direction=1
13814 ac_cv_c_stack_direction=-1
13816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13817 conftest.$ac_objext conftest.beam conftest.$ac_ext
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13822 $as_echo "$ac_cv_c_stack_direction" >&6; }
13823 cat >>confdefs.h <<_ACEOF
13824 #define STACK_DIRECTION $ac_cv_c_stack_direction
13831 # The cast to long int works around a bug in the HP C Compiler
13832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13834 # This bug is HP SR number 8606223364.
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
13836 $as_echo_n "checking size of double... " >&6; }
13837 if ${ac_cv_sizeof_double+:} false; then :
13838 $as_echo_n "(cached) " >&6
13840 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
13843 if test "$ac_cv_type_double" = yes; then
13844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13846 as_fn_error 77 "cannot compute sizeof (double)
13847 See \`config.log' for more details" "$LINENO" 5; }
13849 ac_cv_sizeof_double=0
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
13855 $as_echo "$ac_cv_sizeof_double" >&6; }
13859 cat >>confdefs.h <<_ACEOF
13860 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13864 # The cast to long int works around a bug in the HP C Compiler
13865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13867 # This bug is HP SR number 8606223364.
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
13869 $as_echo_n "checking size of long double... " >&6; }
13870 if ${ac_cv_sizeof_long_double+:} false; then :
13871 $as_echo_n "(cached) " >&6
13873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
13876 if test "$ac_cv_type_long_double" = yes; then
13877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13879 as_fn_error 77 "cannot compute sizeof (long double)
13880 See \`config.log' for more details" "$LINENO" 5; }
13882 ac_cv_sizeof_long_double=0
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
13888 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13892 cat >>confdefs.h <<_ACEOF
13893 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13898 # Also AC_SUBST this variable for ffi.h.
13899 if test -z "$HAVE_LONG_DOUBLE"; then
13901 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13902 if test $ac_cv_sizeof_long_double != 0; then
13905 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13913 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13914 if ${ac_cv_c_bigendian+:} false; then :
13915 $as_echo_n "(cached) " >&6
13917 ac_cv_c_bigendian=unknown
13918 # See if we're dealing with a universal compiler.
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13921 #ifndef __APPLE_CC__
13922 not a universal capable compiler
13927 if ac_fn_c_try_compile "$LINENO"; then :
13929 # Check for potential -arch flags. It is not universal unless
13930 # there are at least two -arch flags with different values.
13933 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13934 if test -n "$ac_prev"; then
13936 i?86 | x86_64 | ppc | ppc64)
13937 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13940 ac_cv_c_bigendian=universal
13946 elif test "x$ac_word" = "x-arch"; then
13951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 if test $ac_cv_c_bigendian = unknown; then
13953 # See if sys/param.h defines the BYTE_ORDER macro.
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956 #include <sys/types.h>
13957 #include <sys/param.h>
13962 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13963 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13965 bogus endian macros
13972 if ac_fn_c_try_compile "$LINENO"; then :
13973 # It does; now see whether it defined to BIG_ENDIAN or not.
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13976 #include <sys/types.h>
13977 #include <sys/param.h>
13982 #if BYTE_ORDER != BIG_ENDIAN
13990 if ac_fn_c_try_compile "$LINENO"; then :
13991 ac_cv_c_bigendian=yes
13993 ac_cv_c_bigendian=no
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 if test $ac_cv_c_bigendian = unknown; then
14000 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14003 #include <limits.h>
14008 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14009 bogus endian macros
14016 if ac_fn_c_try_compile "$LINENO"; then :
14017 # It does; now see whether it defined to _BIG_ENDIAN or not.
14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019 /* end confdefs.h. */
14020 #include <limits.h>
14025 #ifndef _BIG_ENDIAN
14033 if ac_fn_c_try_compile "$LINENO"; then :
14034 ac_cv_c_bigendian=yes
14036 ac_cv_c_bigendian=no
14038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 if test $ac_cv_c_bigendian = unknown; then
14043 # Compile a test program.
14044 if test "$cross_compiling" = yes; then :
14045 # Try to guess by grepping values from an object file.
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 short int ascii_mm[] =
14049 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14050 short int ascii_ii[] =
14051 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14052 int use_ascii (int i) {
14053 return ascii_mm[i] + ascii_ii[i];
14055 short int ebcdic_ii[] =
14056 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14057 short int ebcdic_mm[] =
14058 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14059 int use_ebcdic (int i) {
14060 return ebcdic_mm[i] + ebcdic_ii[i];
14067 return use_ascii (foo) == use_ebcdic (foo);
14072 if ac_fn_c_try_compile "$LINENO"; then :
14073 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14074 ac_cv_c_bigendian=yes
14076 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14077 if test "$ac_cv_c_bigendian" = unknown; then
14078 ac_cv_c_bigendian=no
14080 # finding both strings is unlikely to happen, but who knows?
14081 ac_cv_c_bigendian=unknown
14085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 $ac_includes_default
14094 /* Are we little or big endian? From Harbison&Steele. */
14098 char c[sizeof (long int)];
14101 return u.c[sizeof (long int) - 1] == 1;
14107 if ac_fn_c_try_run "$LINENO"; then :
14108 ac_cv_c_bigendian=no
14110 ac_cv_c_bigendian=yes
14112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14113 conftest.$ac_objext conftest.beam conftest.$ac_ext
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14119 $as_echo "$ac_cv_c_bigendian" >&6; }
14120 case $ac_cv_c_bigendian in #(
14122 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14128 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14132 as_fn_error $? "unknown endianness
14133 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14138 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14139 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14140 $as_echo_n "(cached) " >&6
14143 gcc_cv_as_cfi_pseudo_op=unknown
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 asm (".cfi_startproc\n\t.cfi_endproc");
14155 if ac_fn_c_try_compile "$LINENO"; then :
14156 gcc_cv_as_cfi_pseudo_op=yes
14158 gcc_cv_as_cfi_pseudo_op=no
14160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14164 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14165 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14167 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14172 if test x$TARGET = xSPARC; then
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14174 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14175 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14176 $as_echo_n "(cached) " >&6
14179 save_CFLAGS="$CFLAGS"
14180 save_LDFLAGS="$LDFLAGS"
14181 CFLAGS="$CFLAGS -fpic"
14182 LDFLAGS="$LDFLAGS -shared"
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14194 if ac_fn_c_try_link "$LINENO"; then :
14195 libffi_cv_as_sparc_ua_pcrel=yes
14197 libffi_cv_as_sparc_ua_pcrel=no
14199 rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14201 CFLAGS="$save_CFLAGS"
14202 LDFLAGS="$save_LDFLAGS"
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14205 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14206 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14208 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14213 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14214 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14215 $as_echo_n "(cached) " >&6
14218 libffi_cv_as_register_pseudo_op=unknown
14219 # Check if we have .register
14220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h. */
14222 asm (".register %g2, #scratch");
14231 if ac_fn_c_try_compile "$LINENO"; then :
14232 libffi_cv_as_register_pseudo_op=yes
14234 libffi_cv_as_register_pseudo_op=no
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14240 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14241 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14243 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14248 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14250 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14251 if ${libffi_cv_as_x86_pcrel+:} false; then :
14252 $as_echo_n "(cached) " >&6
14255 libffi_cv_as_x86_pcrel=yes
14256 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14257 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14258 libffi_cv_as_x86_pcrel=no
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14263 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14264 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14266 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14271 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14272 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14273 $as_echo_n "(cached) " >&6
14276 libffi_cv_as_ascii_pseudo_op=unknown
14277 # Check if we have .ascii
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h. */
14280 asm (".ascii \\"string\\"");
14289 if ac_fn_c_try_compile "$LINENO"; then :
14290 libffi_cv_as_ascii_pseudo_op=yes
14292 libffi_cv_as_ascii_pseudo_op=no
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14298 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14299 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14301 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14306 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14307 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14308 $as_echo_n "(cached) " >&6
14311 libffi_cv_as_string_pseudo_op=unknown
14312 # Check if we have .string
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315 asm (".string \\"string\\"");
14324 if ac_fn_c_try_compile "$LINENO"; then :
14325 libffi_cv_as_string_pseudo_op=yes
14327 libffi_cv_as_string_pseudo_op=no
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14333 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14334 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14336 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14341 if test x$TARGET = xX86_WIN64; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14343 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14344 if ${lt_cv_sys_symbol_underscore+:} false; then :
14345 $as_echo_n "(cached) " >&6
14347 lt_cv_sys_symbol_underscore=no
14348 cat > conftest.$ac_ext <<_LT_EOF
14349 void nm_test_func(){}
14350 int main(){nm_test_func;return 0;}
14352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14353 (eval $ac_compile) 2>&5
14355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14356 test $ac_status = 0; }; then
14357 # Now try to grab the symbols.
14358 ac_nlist=conftest.nm
14359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14360 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14363 test $ac_status = 0; } && test -s "$ac_nlist"; then
14364 # See whether the symbols have a leading underscore.
14365 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14366 lt_cv_sys_symbol_underscore=yes
14368 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14371 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14375 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14378 echo "configure: failed program was:" >&5
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14385 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14386 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14389 if test "x$sys_symbol_underscore" = xyes; then
14391 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14397 FFI_EXEC_TRAMPOLINE_TABLE=0
14399 *arm*-apple-darwin*)
14400 FFI_EXEC_TRAMPOLINE_TABLE=1
14402 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14405 *-apple-darwin1[10]* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14407 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14411 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14412 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14413 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14415 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14416 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14421 if test x$TARGET = xX86_64; then
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14423 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14424 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14425 $as_echo_n "(cached) " >&6
14428 libffi_cv_as_x86_64_unwind_section_type=yes
14429 echo '.section .eh_frame,"a",@unwind' > conftest.s
14430 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14431 libffi_cv_as_x86_64_unwind_section_type=no
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14436 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14437 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14439 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14444 if test "x$GCC" = "xyes"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14446 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14447 if ${libffi_cv_ro_eh_frame+:} false; then :
14448 $as_echo_n "(cached) " >&6
14451 libffi_cv_ro_eh_frame=no
14452 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14453 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14454 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14455 libffi_cv_ro_eh_frame=yes
14456 elif grep '.section.*eh_frame.*#alloc' conftest.c \
14457 | grep -v '#write' > /dev/null; then
14458 libffi_cv_ro_eh_frame=yes
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14465 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14466 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14468 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14471 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14475 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14480 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14481 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14482 $as_echo_n "(cached) " >&6
14485 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
14486 libffi_cv_hidden_visibility_attribute=no
14487 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14489 (eval $ac_try) 2>&5
14491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14492 test $ac_status = 0; }; }; then
14493 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14494 libffi_cv_hidden_visibility_attribute=yes
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14501 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14502 if test $libffi_cv_hidden_visibility_attribute = yes; then
14504 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14516 # Check whether --enable-debug was given.
14517 if test "${enable_debug+set}" = set; then :
14518 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14520 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14525 if test "$enable_debug" = "yes"; then
14527 FFI_DEBUG_FALSE='#'
14534 # Check whether --enable-structs was given.
14535 if test "${enable_structs+set}" = set; then :
14536 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14538 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14544 # Check whether --enable-raw-api was given.
14545 if test "${enable_raw_api+set}" = set; then :
14546 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14548 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14554 # Check whether --enable-purify-safety was given.
14555 if test "${enable_purify_safety+set}" = set; then :
14556 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14558 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14564 # These variables are only ever used when we cross-build to X86_WIN32.
14565 # And we only support this with GCC, so...
14566 if test x"$GCC" != x"no"; then
14567 if test -n "$with_cross_host" &&
14568 test x"$with_cross_host" != x"no"; then
14569 toolexecdir='$(exec_prefix)/$(target_alias)'
14570 toolexeclibdir='$(toolexecdir)/lib'
14572 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14573 toolexeclibdir='$(libdir)'
14575 multi_os_directory=`$CC -print-multi-os-directory`
14576 case $multi_os_directory in
14577 .) ;; # Avoid trailing /.
14578 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14584 if test "${multilib}" = "yes"; then
14585 multilib_arg="--enable-multilib"
14590 ac_config_commands="$ac_config_commands include"
14592 ac_config_commands="$ac_config_commands src"
14595 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14598 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14601 cat >confcache <<\_ACEOF
14602 # This file is a shell script that caches the results of configure
14603 # tests run on this system so they can be shared between configure
14604 # scripts and configure runs, see configure's option --config-cache.
14605 # It is not useful on other systems. If it contains results you don't
14606 # want to keep, you may remove or edit it.
14608 # config.status only pays attention to the cache file if you give it
14609 # the --recheck option to rerun configure.
14611 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14612 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14613 # following values.
14617 # The following way of writing the cache mishandles newlines in values,
14618 # but we know of no workaround that is simple, portable, and efficient.
14619 # So, we kill variables containing newlines.
14620 # Ultrix sh set writes to stderr and can't be redirected directly,
14621 # and sets the high bit in the cache file unless we assign to the vars.
14623 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14624 eval ac_val=\$$ac_var
14628 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14632 _ | IFS | as_nl) ;; #(
14633 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14634 *) { eval $ac_var=; unset $ac_var;} ;;
14640 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14641 *${as_nl}ac_space=\ *)
14642 # `set' does not quote correctly, so add quotes: double-quote
14643 # substitution turns \\\\ into \\, and sed turns \\ into \.
14646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14649 # `set' quotes correctly as required by POSIX, so do not add quotes.
14650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14661 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14663 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14664 if test -w "$cache_file"; then
14665 if test "x$cache_file" != "x/dev/null"; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14667 $as_echo "$as_me: updating cache $cache_file" >&6;}
14668 if test ! -f "$cache_file" || test -h "$cache_file"; then
14669 cat confcache >"$cache_file"
14671 case $cache_file in #(
14673 mv -f confcache "$cache_file"$$ &&
14674 mv -f "$cache_file"$$ "$cache_file" ;; #(
14676 mv -f confcache "$cache_file" ;;
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14682 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14687 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14688 # Let make expand exec_prefix.
14689 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14691 DEFS=-DHAVE_CONFIG_H
14696 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14697 # 1. Remove the extension, and $U if already installed.
14698 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14699 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14700 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14701 # will be set to the directory where LIBOBJS objects are built.
14702 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14703 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14705 LIBOBJS=$ac_libobjs
14707 LTLIBOBJS=$ac_ltlibobjs
14710 if test -n "$EXEEXT"; then
14712 am__EXEEXT_FALSE='#'
14714 am__EXEEXT_TRUE='#'
14718 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14719 as_fn_error $? "conditional \"AMDEP\" was never defined.
14720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14722 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14723 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14726 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14727 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14730 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14731 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14734 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14735 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14738 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14739 as_fn_error $? "conditional \"MIPS\" was never defined.
14740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14742 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14743 as_fn_error $? "conditional \"SPARC\" was never defined.
14744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14746 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14747 as_fn_error $? "conditional \"X86\" was never defined.
14748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14750 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14751 as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14754 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14755 as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14758 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14759 as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14762 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14763 as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14766 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14767 as_fn_error $? "conditional \"ALPHA\" was never defined.
14768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14770 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14771 as_fn_error $? "conditional \"IA64\" was never defined.
14772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14774 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14775 as_fn_error $? "conditional \"M32R\" was never defined.
14776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14778 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14779 as_fn_error $? "conditional \"M68K\" was never defined.
14780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14782 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
14783 as_fn_error $? "conditional \"MOXIE\" was never defined.
14784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14786 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14787 as_fn_error $? "conditional \"POWERPC\" was never defined.
14788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14790 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14791 as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
14792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14794 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14795 as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
14796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14798 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14799 as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
14800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14802 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14803 as_fn_error $? "conditional \"ARM\" was never defined.
14804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14806 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14807 as_fn_error $? "conditional \"AVR32\" was never defined.
14808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14810 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14811 as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
14812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14814 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14815 as_fn_error $? "conditional \"FRV\" was never defined.
14816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14818 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14819 as_fn_error $? "conditional \"S390\" was never defined.
14820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14822 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14823 as_fn_error $? "conditional \"X86_64\" was never defined.
14824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14826 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14827 as_fn_error $? "conditional \"SH\" was never defined.
14828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14830 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
14831 as_fn_error $? "conditional \"SH64\" was never defined.
14832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14834 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
14835 as_fn_error $? "conditional \"PA_LINUX\" was never defined.
14836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14838 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
14839 as_fn_error $? "conditional \"PA_HPUX\" was never defined.
14840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14842 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
14843 as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
14844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14847 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
14848 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
14849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14851 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
14852 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
14853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14856 : "${CONFIG_STATUS=./config.status}"
14858 ac_clean_files_save=$ac_clean_files
14859 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14861 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14863 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14865 # Generated by $as_me.
14866 # Run this file to recreate the current configuration.
14867 # Compiler output produced by configure, useful for debugging
14868 # configure, is in config.log if it exists.
14871 ac_cs_recheck=false
14874 SHELL=\${CONFIG_SHELL-$SHELL}
14877 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14878 ## -------------------- ##
14879 ## M4sh Initialization. ##
14880 ## -------------------- ##
14882 # Be more Bourne compatible
14883 DUALCASE=1; export DUALCASE # for MKS sh
14884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14887 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14888 # is contrary to our usage. Disable this feature.
14889 alias -g '${1+"$@"}'='"$@"'
14890 setopt NO_GLOB_SUBST
14892 case `(set -o) 2>/dev/null` in #(
14904 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14905 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14908 # Prefer a ksh shell builtin over an external printf program on Solaris,
14909 # but without wasting forks for bash or zsh.
14910 if test -z "$BASH_VERSION$ZSH_VERSION" \
14911 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14912 as_echo='print -r --'
14913 as_echo_n='print -rn --'
14914 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14915 as_echo='printf %s\n'
14916 as_echo_n='printf %s'
14918 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14919 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14920 as_echo_n='/usr/ucb/echo -n'
14922 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14923 as_echo_n_body='eval
14927 expr "X$arg" : "X\\(.*\\)$as_nl";
14928 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14930 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14932 export as_echo_n_body
14933 as_echo_n='sh -c $as_echo_n_body as_echo'
14935 export as_echo_body
14936 as_echo='sh -c $as_echo_body as_echo'
14939 # The user is always right.
14940 if test "${PATH_SEPARATOR+set}" != set; then
14942 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14943 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14950 # We need space, tab and new line, in precisely that order. Quoting is
14951 # there to prevent editors from complaining about space-tab.
14952 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14953 # splitting by setting IFS to empty value.)
14956 # Find who we are. Look in the path if we contain no directory separator.
14959 *[\\/]* ) as_myself=$0 ;;
14960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14961 for as_dir in $PATH
14964 test -z "$as_dir" && as_dir=.
14965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14971 # We did not find ourselves, most probably we were run as `sh COMMAND'
14972 # in which case we are not to be found in the path.
14973 if test "x$as_myself" = x; then
14976 if test ! -f "$as_myself"; then
14977 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14981 # Unset variables that we do not need and which cause bugs (e.g. in
14982 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14983 # suppresses any "Segmentation fault" message there. '((' could
14984 # trigger a bug in pdksh 5.2.14.
14985 for as_var in BASH_ENV ENV MAIL MAILPATH
14986 do eval test x\${$as_var+set} = xset \
14987 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15000 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15003 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15004 # ----------------------------------------
15005 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15006 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15007 # script with STATUS, using 1 if that was 0.
15010 as_status=$1; test $as_status -eq 0 && as_status=1
15012 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15013 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15015 $as_echo "$as_me: error: $2" >&2
15016 as_fn_exit $as_status
15020 # as_fn_set_status STATUS
15021 # -----------------------
15022 # Set $? to STATUS, without forking.
15023 as_fn_set_status ()
15026 } # as_fn_set_status
15028 # as_fn_exit STATUS
15029 # -----------------
15030 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15034 as_fn_set_status $1
15040 # Portably unset VAR.
15043 { eval $1=; unset $1;}
15045 as_unset=as_fn_unset
15046 # as_fn_append VAR VALUE
15047 # ----------------------
15048 # Append the text in VALUE to the end of the definition contained in VAR. Take
15049 # advantage of any shell optimizations that allow amortized linear growth over
15050 # repeated appends, instead of the typical quadratic growth present in naive
15052 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15053 eval 'as_fn_append ()
15064 # as_fn_arith ARG...
15065 # ------------------
15066 # Perform arithmetic evaluation on the ARGs, and store the result in the
15067 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15068 # must be portable across $(()) and expr.
15069 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15070 eval 'as_fn_arith ()
15077 as_val=`expr "$@" || test $? -eq 1`
15082 if expr a : '\(a\)' >/dev/null 2>&1 &&
15083 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15089 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15090 as_basename=basename
15095 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15101 as_me=`$as_basename -- "$0" ||
15102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15103 X"$0" : 'X\(//\)$' \| \
15104 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15106 sed '/^.*\/\([^/][^/]*\)\/*$/{
15120 # Avoid depending upon Character Ranges.
15121 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15122 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15123 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15124 as_cr_digits='0123456789'
15125 as_cr_alnum=$as_cr_Letters$as_cr_digits
15127 ECHO_C= ECHO_N= ECHO_T=
15128 case `echo -n x` in #(((((
15130 case `echo 'xy\c'` in
15131 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15133 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15140 rm -f conf$$ conf$$.exe conf$$.file
15141 if test -d conf$$.dir; then
15142 rm -f conf$$.dir/conf$$.file
15145 mkdir conf$$.dir 2>/dev/null
15147 if (echo >conf$$.file) 2>/dev/null; then
15148 if ln -s conf$$.file conf$$ 2>/dev/null; then
15150 # ... but there are two gotchas:
15151 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15152 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15153 # In both cases, we have to default to `cp -p'.
15154 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15156 elif ln conf$$.file conf$$ 2>/dev/null; then
15164 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15165 rmdir conf$$.dir 2>/dev/null
15170 # Create "$as_dir" as a directory, including parents if necessary.
15175 -*) as_dir=./$as_dir;;
15177 test -d "$as_dir" || eval $as_mkdir_p || {
15181 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15182 *) as_qdir=$as_dir;;
15184 as_dirs="'$as_qdir' $as_dirs"
15185 as_dir=`$as_dirname -- "$as_dir" ||
15186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15187 X"$as_dir" : 'X\(//\)[^/]' \| \
15188 X"$as_dir" : 'X\(//\)$' \| \
15189 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15190 $as_echo X"$as_dir" |
15191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15195 /^X\(\/\/\)[^/].*/{
15208 test -d "$as_dir" && break
15210 test -z "$as_dirs" || eval "mkdir $as_dirs"
15211 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15215 if mkdir -p . 2>/dev/null; then
15216 as_mkdir_p='mkdir -p "$as_dir"'
15218 test -d ./-p && rmdir ./-p
15222 if test -x / >/dev/null 2>&1; then
15223 as_test_x='test -x'
15225 if ls -dL / >/dev/null 2>&1; then
15232 if test -d "$1"; then
15238 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15239 ???[sx]*):;;*)false;;esac;fi
15243 as_executable_p=$as_test_x
15245 # Sed expression to map a string onto a valid CPP name.
15246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15248 # Sed expression to map a string onto a valid variable name.
15249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15253 ## ----------------------------------- ##
15254 ## Main body of $CONFIG_STATUS script. ##
15255 ## ----------------------------------- ##
15257 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15260 # Save the log message, to keep $0 and so on meaningful, and to
15261 # report actual input values of CONFIG_FILES etc. instead of their
15262 # values after options handling.
15264 This file was extended by libffi $as_me 3.0.11, which was
15265 generated by GNU Autoconf 2.68. Invocation command line was
15267 CONFIG_FILES = $CONFIG_FILES
15268 CONFIG_HEADERS = $CONFIG_HEADERS
15269 CONFIG_LINKS = $CONFIG_LINKS
15270 CONFIG_COMMANDS = $CONFIG_COMMANDS
15273 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15278 case $ac_config_files in *"
15279 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15282 case $ac_config_headers in *"
15283 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15288 # Files that config.status was made for.
15289 config_files="$ac_config_files"
15290 config_headers="$ac_config_headers"
15291 config_links="$ac_config_links"
15292 config_commands="$ac_config_commands"
15296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15298 \`$as_me' instantiates files and other configuration actions
15299 from templates according to the current configuration. Unless the files
15300 and actions are specified as TAGs, all are instantiated by default.
15302 Usage: $0 [OPTION]... [TAG]...
15304 -h, --help print this help, then exit
15305 -V, --version print version number and configuration settings, then exit
15306 --config print configuration, then exit
15307 -q, --quiet, --silent
15308 do not print progress messages
15309 -d, --debug don't remove temporary files
15310 --recheck update $as_me by reconfiguring in the same conditions
15311 --file=FILE[:TEMPLATE]
15312 instantiate the configuration file FILE
15313 --header=FILE[:TEMPLATE]
15314 instantiate the configuration header FILE
15316 Configuration files:
15319 Configuration headers:
15322 Configuration links:
15325 Configuration commands:
15328 Report bugs to <http://github.com/atgreen/libffi/issues>."
15331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15334 libffi config.status 3.0.11
15335 configured by $0, generated by GNU Autoconf 2.68,
15336 with options \\"\$ac_cs_config\\"
15338 Copyright (C) 2010 Free Software Foundation, Inc.
15339 This config.status script is free software; the Free Software Foundation
15340 gives unlimited permission to copy, distribute and modify it."
15347 test -n "\$AWK" || AWK=awk
15350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15351 # The default lists apply if the user does not specify any file.
15357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15374 # Handling of the options.
15375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15378 $as_echo "$ac_cs_version"; exit ;;
15379 --config | --confi | --conf | --con | --co | --c )
15380 $as_echo "$ac_cs_config"; exit ;;
15381 --debug | --debu | --deb | --de | --d | -d )
15383 --file | --fil | --fi | --f )
15386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15387 '') as_fn_error $? "missing file argument" ;;
15389 as_fn_append CONFIG_FILES " '$ac_optarg'"
15390 ac_need_defaults=false;;
15391 --header | --heade | --head | --hea )
15394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15396 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15397 ac_need_defaults=false;;
15399 # Conflict between --help and --header
15400 as_fn_error $? "ambiguous option: \`$1'
15401 Try \`$0 --help' for more information.";;
15402 --help | --hel | -h )
15403 $as_echo "$ac_cs_usage"; exit ;;
15404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15408 # This is an error.
15409 -*) as_fn_error $? "unrecognized option: \`$1'
15410 Try \`$0 --help' for more information." ;;
15412 *) as_fn_append ac_config_targets " $1"
15413 ac_need_defaults=false ;;
15419 ac_configure_extra_args=
15421 if $ac_cs_silent; then
15423 ac_configure_extra_args="$ac_configure_extra_args --silent"
15427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15428 if \$ac_cs_recheck; then
15429 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15432 CONFIG_SHELL='$SHELL'
15433 export CONFIG_SHELL
15438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15443 ## Running $as_me. ##
15449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15453 ax_enable_builddir_srcdir="$srcdir" # $srcdir
15454 ax_enable_builddir_host="$HOST" # $HOST / $host
15455 ax_enable_builddir_version="$VERSION" # $VERSION
15456 ax_enable_builddir_package="$PACKAGE" # $PACKAGE
15457 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15458 ax_enable_builddir_sed="$ax_enable_builddir_sed" # $SED
15459 ax_enable_builddir="$ax_enable_builddir" # $SUB
15461 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15464 # The HP-UX ksh and POSIX shell print the target directory to stdout
15465 # if CDPATH is set.
15466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15468 sed_quote_subst='$sed_quote_subst'
15469 double_quote_subst='$double_quote_subst'
15470 delay_variable_subst='$delay_variable_subst'
15471 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15472 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15473 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15474 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15475 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15476 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15477 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15478 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15479 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15480 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15481 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15482 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15483 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15484 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15485 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15486 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15487 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15488 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15489 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15490 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15491 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15492 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15493 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15494 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15495 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15496 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15497 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15498 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15499 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15500 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15501 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15502 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15503 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15504 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15505 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15506 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15507 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15508 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15509 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15510 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15511 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15512 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15513 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15514 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15515 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15516 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15517 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15518 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15519 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15520 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15521 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15522 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15523 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15524 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15525 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15526 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"`'
15527 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15528 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15529 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15530 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15531 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15532 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15533 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15534 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15535 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15536 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15537 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15538 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15539 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15540 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15541 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15542 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15543 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15544 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15545 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15546 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15547 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15548 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15549 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15550 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15551 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15552 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15553 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15554 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15555 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15556 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15557 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15558 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15559 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15560 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15561 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15562 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15563 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15564 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15565 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15566 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15567 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15568 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15569 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15570 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15571 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15572 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15573 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15574 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15575 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15576 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15577 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15578 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15579 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15580 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15581 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15582 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15583 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15584 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15585 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15586 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15587 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15588 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15589 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15590 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15591 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15592 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15593 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15594 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15595 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15596 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15597 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15598 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15599 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15600 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15603 LTCFLAGS='$LTCFLAGS'
15604 compiler='$compiler_DEFAULT'
15606 # A function that is used when there is no print builtin or printf.
15607 func_fallback_echo ()
15609 eval 'cat <<_LTECHO_EOF
15614 # Quote evaled strings.
15628 deplibs_check_method \
15633 sharedlib_from_linklib_cmd \
15636 archiver_list_spec \
15642 lt_cv_sys_global_symbol_pipe \
15643 lt_cv_sys_global_symbol_to_cdecl \
15644 lt_cv_sys_global_symbol_to_c_name_address \
15645 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15646 nm_file_list_spec \
15647 lt_prog_compiler_no_builtin_flag \
15648 lt_prog_compiler_pic \
15649 lt_prog_compiler_wl \
15650 lt_prog_compiler_static \
15651 lt_cv_prog_compiler_c_o \
15660 export_dynamic_flag_spec \
15661 whole_archive_flag_spec \
15662 compiler_needs_object \
15664 allow_undefined_flag \
15665 no_undefined_flag \
15666 hardcode_libdir_flag_spec \
15667 hardcode_libdir_flag_spec_ld \
15668 hardcode_libdir_separator \
15672 variables_saved_for_relink \
15674 library_names_spec \
15676 install_override_mode \
15680 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15681 *[\\\\\\\`\\"\\\$]*)
15682 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15685 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15690 # Double-quote double-evaled strings.
15691 for var in reload_cmds \
15692 old_postinstall_cmds \
15693 old_postuninstall_cmds \
15695 extract_expsyms_cmds \
15696 old_archive_from_new_cmds \
15697 old_archive_from_expsyms_cmds \
15699 archive_expsym_cmds \
15701 module_expsym_cmds \
15702 export_symbols_cmds \
15706 postuninstall_cmds \
15708 sys_lib_search_path_spec \
15709 sys_lib_dlsearch_path_spec; do
15710 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15711 *[\\\\\\\`\\"\\\$]*)
15712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15720 ac_aux_dir='$ac_aux_dir'
15721 xsi_shell='$xsi_shell'
15722 lt_shell_append='$lt_shell_append'
15724 # See if we are running on zsh, and set the options which allow our
15725 # commands through without removal of \ escapes INIT.
15726 if test -n "\${ZSH_VERSION+set}" ; then
15727 setopt NO_GLOB_SUBST
15733 TIMESTAMP='$TIMESTAMP'
15739 TARGETDIR="$TARGETDIR"
15743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15745 # Handling of arguments.
15746 for ac_config_target in $ac_config_targets
15748 case $ac_config_target in
15749 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15750 "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15751 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15752 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15753 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15754 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15755 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15756 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15757 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15758 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15759 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15760 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15761 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15763 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15768 # If the user did not use the arguments to specify the items to instantiate,
15769 # then the envvar interface is used. Set only those that are not.
15770 # We use the long form for the default assignment because of an extremely
15771 # bizarre bug on SunOS 4.1.3.
15772 if $ac_need_defaults; then
15773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15775 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15779 # Have a temporary directory for convenience. Make it in the build tree
15780 # simply because there is no reason against having it here, and in addition,
15781 # creating and moving files from /tmp can sometimes cause problems.
15782 # Hook for its removal unless debugging.
15783 # Note that there is a small window in which the directory will not be cleaned:
15784 # after its creation but before its name has been assigned to `$tmp'.
15788 trap 'exit_status=$?
15789 : "${ac_tmp:=$tmp}"
15790 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15792 trap 'as_fn_exit 1' 1 2 13 15
15794 # Create a (secure) tmp directory for tmp files.
15797 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15801 tmp=./conf$$-$RANDOM
15802 (umask 077 && mkdir "$tmp")
15803 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15806 # Set up the scripts for CONFIG_FILES section.
15807 # No need to generate them if there are no CONFIG_FILES.
15808 # This happens for instance with `./config.status config.h'.
15809 if test -n "$CONFIG_FILES"; then
15812 ac_cr=`echo X | tr X '\015'`
15813 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15814 # But we know of no other shell where ac_cr would be empty at this
15815 # point, so we can use a bashism as a fallback.
15816 if test "x$ac_cr" = x; then
15817 eval ac_cr=\$\'\\r\'
15819 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15820 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15823 ac_cs_awk_cr=$ac_cr
15826 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15831 echo "cat >conf$$subs.awk <<_ACEOF" &&
15832 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15834 } >conf$$subs.sh ||
15835 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15836 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15838 for ac_last_try in false false false false false :; do
15839 . ./conf$$subs.sh ||
15840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15842 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15843 if test $ac_delim_n = $ac_delim_num; then
15845 elif $ac_last_try; then
15846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15851 rm -f conf$$subs.sh
15853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15854 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15858 s/^/S["/; s/!.*/"]=/
15868 s/\(.\{148\}\)..*/\1/
15870 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15882 s/\(.\{148\}\)..*/\1/
15884 s/["\\]/\\&/g; s/^/"/; s/$/"/
15888 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15893 ' <conf$$subs.awk | sed '
15898 ' >>$CONFIG_STATUS || ac_write_fail=1
15899 rm -f conf$$subs.awk
15900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15902 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15903 for (key in S) S_is_set[key] = 1
15909 nfields = split(line, field, "@")
15911 len = length(field[1])
15912 for (i = 2; i < nfields; i++) {
15914 keylen = length(key)
15915 if (S_is_set[key]) {
15917 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15918 len += length(value) + length(field[++i])
15929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15930 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15931 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15934 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15935 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15938 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15939 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15940 # trailing colons and then remove the whole line if VPATH becomes empty
15941 # (actually we leave an empty line to preserve line numbers).
15942 if test "x$srcdir" = x.; then
15943 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15962 fi # test -n "$CONFIG_FILES"
15964 # Set up the scripts for CONFIG_HEADERS section.
15965 # No need to generate them if there are no CONFIG_HEADERS.
15966 # This happens for instance with `./config.status Makefile'.
15967 if test -n "$CONFIG_HEADERS"; then
15968 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15972 # Transform confdefs.h into an awk script `defines.awk', embedded as
15973 # here-document in config.status, that substitutes the proper values into
15974 # config.h.in to produce config.h.
15976 # Create a delimiter string that does not exist in confdefs.h, to ease
15977 # handling of long lines.
15979 for ac_last_try in false false :; do
15980 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15981 if test -z "$ac_tt"; then
15983 elif $ac_last_try; then
15984 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15990 # For the awk script, D is an array of macro values keyed by name,
15991 # likewise P contains macro parameters if any. Preserve backslash
15992 # newline sequences.
15994 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15996 s/.\{148\}/&'"$ac_delim"'/g
15999 s/^[ ]*#[ ]*define[ ][ ]*/ /
16006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16012 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16013 D["\1"]=" \3\\\\\\n"\\/p
16015 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16020 s/.\{148\}/&'"$ac_delim"'/g
16025 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16028 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16030 ' <confdefs.h | sed '
16031 s/'"$ac_delim"'/"\\\
16032 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16035 for (key in D) D_is_set[key] = 1
16038 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16040 split(line, arg, " ")
16041 if (arg[1] == "#") {
16045 defundef = substr(arg[1], 2)
16048 split(mac1, mac2, "(") #)
16050 prefix = substr(line, 1, index(line, defundef) - 1)
16051 if (D_is_set[macro]) {
16052 # Preserve the white space surrounding the "#".
16053 print prefix "define", macro P[macro] D[macro]
16056 # Replace #undef with comments. This is necessary, for example,
16057 # in the case of _POSIX_SOURCE, which is predefined and required
16058 # on some systems where configure will not decide to define it.
16059 if (defundef == "undef") {
16060 print "/*", prefix defundef, macro, "*/"
16068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16069 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16070 fi # test -n "$CONFIG_HEADERS"
16073 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16078 :[FHLC]) ac_mode=$ac_tag; continue;;
16080 case $ac_mode$ac_tag in
16082 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16083 :[FH]-) ac_tag=-:-;;
16084 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16101 -) ac_f="$ac_tmp/stdin";;
16102 *) # Look for the file first in the build tree, then in the source tree
16103 # (if the path is not absolute). The absolute path cannot be DOS-style,
16104 # because $ac_f cannot contain `:'.
16108 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16110 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16112 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16113 as_fn_append ac_file_inputs " '$ac_f'"
16116 # Let's still pretend it is `configure' which instantiates (i.e., don't
16117 # use $as_me), people would be surprised to read:
16118 # /* config.h. Generated by config.status. */
16119 configure_input='Generated from '`
16120 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16122 if test x"$ac_file" != x-; then
16123 configure_input="$ac_file. $configure_input"
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16125 $as_echo "$as_me: creating $ac_file" >&6;}
16127 # Neutralize special characters interpreted by sed in replacement strings.
16128 case $configure_input in #(
16129 *\&* | *\|* | *\\* )
16130 ac_sed_conf_input=`$as_echo "$configure_input" |
16131 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16132 *) ac_sed_conf_input=$configure_input;;
16136 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16142 ac_dir=`$as_dirname -- "$ac_file" ||
16143 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16144 X"$ac_file" : 'X\(//\)[^/]' \| \
16145 X"$ac_file" : 'X\(//\)$' \| \
16146 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16147 $as_echo X"$ac_file" |
16148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16152 /^X\(\/\/\)[^/].*/{
16165 as_dir="$ac_dir"; as_fn_mkdir_p
16169 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16171 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16172 # A ".." for each directory in $ac_dir_suffix.
16173 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16174 case $ac_top_builddir_sub in
16175 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16176 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16179 ac_abs_top_builddir=$ac_pwd
16180 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16181 # for backward compatibility:
16182 ac_top_builddir=$ac_top_build_prefix
16185 .) # We are building in place.
16187 ac_top_srcdir=$ac_top_builddir_sub
16188 ac_abs_top_srcdir=$ac_pwd ;;
16189 [\\/]* | ?:[\\/]* ) # Absolute name.
16190 ac_srcdir=$srcdir$ac_dir_suffix;
16191 ac_top_srcdir=$srcdir
16192 ac_abs_top_srcdir=$srcdir ;;
16193 *) # Relative name.
16194 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16195 ac_top_srcdir=$ac_top_build_prefix$srcdir
16196 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16198 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16208 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16209 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16211 ac_MKDIR_P=$MKDIR_P
16213 [\\/$]* | ?:[\\/]* ) ;;
16214 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 # If the template does not know about datarootdir, expand it.
16220 # FIXME: This hack should be removed a few years after 2.60.
16221 ac_datarootdir_hack=; ac_datarootdir_seen=
16232 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16233 *datarootdir*) ac_datarootdir_seen=yes;;
16234 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16236 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 ac_datarootdir_hack='
16240 s&@datadir@&$datadir&g
16241 s&@docdir@&$docdir&g
16242 s&@infodir@&$infodir&g
16243 s&@localedir@&$localedir&g
16244 s&@mandir@&$mandir&g
16245 s&\\\${datarootdir}&$datarootdir&g' ;;
16249 # Neutralize VPATH when `$srcdir' = `.'.
16250 # Shell code in configure.ac might set extrasub.
16251 # FIXME: do we really want to maintain this feature?
16252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16253 ac_sed_extra="$ac_vpsub
16256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16259 s|@configure_input@|$ac_sed_conf_input|;t t
16260 s&@top_builddir@&$ac_top_builddir_sub&;t t
16261 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16262 s&@srcdir@&$ac_srcdir&;t t
16263 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16264 s&@top_srcdir@&$ac_top_srcdir&;t t
16265 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16266 s&@builddir@&$ac_builddir&;t t
16267 s&@abs_builddir@&$ac_abs_builddir&;t t
16268 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16269 s&@INSTALL@&$ac_INSTALL&;t t
16270 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16271 $ac_datarootdir_hack
16273 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16274 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16276 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16277 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16278 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16279 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16281 which seems to be undefined. Please make sure it is defined" >&5
16282 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16283 which seems to be undefined. Please make sure it is defined" >&2;}
16285 rm -f "$ac_tmp/stdin"
16287 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16288 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16296 if test x"$ac_file" != x-; then
16298 $as_echo "/* $configure_input */" \
16299 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16300 } >"$ac_tmp/config.h" \
16301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16302 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16304 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16307 mv "$ac_tmp/config.h" "$ac_file" \
16308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16311 $as_echo "/* $configure_input */" \
16312 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16313 || as_fn_error $? "could not create -" "$LINENO" 5
16315 # Compute "$ac_file"'s index in $config_headers.
16318 for _am_header in $config_headers :; do
16319 case $_am_header in
16320 $_am_arg | $_am_arg:* )
16323 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16326 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16327 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16328 X"$_am_arg" : 'X\(//\)[^/]' \| \
16329 X"$_am_arg" : 'X\(//\)$' \| \
16330 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16331 $as_echo X"$_am_arg" |
16332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16336 /^X\(\/\/\)[^/].*/{
16348 s/.*/./; q'`/stamp-h$_am_stamp_count
16355 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16358 # Prefer the file from the source tree if names are identical.
16359 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16360 ac_source=$srcdir/$ac_source
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16364 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16366 if test ! -r "$ac_source"; then
16367 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16371 # Try a relative symlink, then a hard link, then a copy.
16373 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16374 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16376 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16377 ln "$ac_source" "$ac_file" 2>/dev/null ||
16378 cp -p "$ac_source" "$ac_file" ||
16379 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16382 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16383 $as_echo "$as_me: executing $ac_file commands" >&6;}
16388 case $ac_file$ac_mode in
16389 "buildir":C) ac_top_srcdir="$ax_enable_builddir_srcdir"
16390 if test ".$ax_enable_builddir" = ".." ; then
16391 if test -f "$top_srcdir/Makefile" ; then
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16393 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16396 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16399 if test -f "$ac_top_srcdir/Makefile" ; then
16400 a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16401 test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16403 if test -f "$ac_top_srcdir/Makefile" ; then
16404 echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16405 echo " @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16406 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16407 if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16408 then rm $ac_top_srcdir/Makefile ; fi
16409 cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~ ## DEBUGGING
16411 if test ! -f "$ac_top_srcdir/Makefile" ; then
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16413 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16414 x='`' ; cat >$tmp/conftemp.sed <<_EOF
16427 s/\\(\\n\\) /\\1 /g
16431 s/^srcdir *=.*/srcdir = ./
16432 s/^top_srcdir *=.*/top_srcdir = ./
16440 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16441 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16443 /^all all-all[ :]/i\\
16444 all-configured : all-all
16445 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16448 @ HOST="\$(HOST)\" \\\\\\
16449 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16450 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16451 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16452 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16453 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16454 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16455 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16456 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16457 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16459 @ HOST="\$(HOST)\" \\\\\\
16460 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16461 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16462 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16463 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16464 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16465 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16466 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16467 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16468 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16469 /dist-[a-zA-Z0-9]*-all *:/a\\
16470 @ HOST="\$(HOST)\" \\\\\\
16471 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16472 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16473 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16474 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16475 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16476 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16477 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16478 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16479 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16480 /distclean-all *:/a\\
16481 @ HOST="\$(HOST)\" \\\\\\
16482 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16483 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16484 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16485 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16486 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16487 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16488 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16489 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16490 ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16491 ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16492 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16494 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~" ## DEBUGGING
16495 $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16496 if test -f "$ac_top_srcdir/Makefile.mk" ; then
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16498 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16499 cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16501 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16503 if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16505 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16506 $ax_enable_builddir_sed -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $ac_top_srcdir/Makefile \
16507 >$ac_top_srcdir/Makefile~
16508 (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16511 xxxx="\\#\\#\\#\\#"
16512 # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16513 echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16514 $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16515 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~" ## DEBUGGING
16516 cp "$tmp/mkfile.tmp" "$ac_top_srcdir/makefiles.out~" ## DEBUGGING
16517 if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16519 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16520 rm "$tmp/mkfile.tmp"
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16523 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16524 mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16528 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16530 echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16533 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16534 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16535 # are listed without --file. Let's play safe and only enable the eval
16536 # if we detect the quoting.
16537 case $CONFIG_FILES in
16538 *\'*) eval set x "$CONFIG_FILES" ;;
16539 *) set x $CONFIG_FILES ;;
16544 # Strip MF so we end up with the name of the file.
16545 mf=`echo "$mf" | sed -e 's/:.*$//'`
16546 # Check whether this is an Automake generated Makefile or not.
16547 # We used to match only the files named `Makefile.in', but
16548 # some people rename them; so instead we look at the file content.
16549 # Grep'ing the first line is not enough: some people post-process
16550 # each Makefile.in and add a new line on top of each file to say so.
16551 # Grep'ing the whole file is not good either: AIX grep has a line
16552 # limit of 2048, but all sed's we know have understand at least 4000.
16553 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16554 dirpart=`$as_dirname -- "$mf" ||
16555 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16556 X"$mf" : 'X\(//\)[^/]' \| \
16557 X"$mf" : 'X\(//\)$' \| \
16558 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16564 /^X\(\/\/\)[^/].*/{
16580 # Extract the definition of DEPDIR, am__include, and am__quote
16581 # from the Makefile without running `make'.
16582 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16583 test -z "$DEPDIR" && continue
16584 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16585 test -z "am__include" && continue
16586 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16587 # When using ansi2knr, U may be empty or an underscore; expand it
16588 U=`sed -n 's/^U = //p' < "$mf"`
16589 # Find all dependency output files, they are included files with
16590 # $(DEPDIR) in their names. We invoke sed twice because it is the
16591 # simplest approach to changing $(DEPDIR) to its actual value in the
16593 for file in `sed -n "
16594 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16595 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16596 # Make sure the directory exists.
16597 test -f "$dirpart/$file" && continue
16598 fdir=`$as_dirname -- "$file" ||
16599 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16600 X"$file" : 'X\(//\)[^/]' \| \
16601 X"$file" : 'X\(//\)$' \| \
16602 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16603 $as_echo X"$file" |
16604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16608 /^X\(\/\/\)[^/].*/{
16621 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16622 # echo "creating $dirpart/$file"
16623 echo '# dummy' > "$dirpart/$file"
16630 # See if we are running on zsh, and set the options which allow our
16631 # commands through without removal of \ escapes.
16632 if test -n "${ZSH_VERSION+set}" ; then
16633 setopt NO_GLOB_SUBST
16636 cfgfile="${ofile}T"
16637 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16640 cat <<_LT_EOF >> "$cfgfile"
16643 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16644 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16646 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16648 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16649 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16651 # Written by Gordon Matzigkeit, 1996
16653 # This file is part of GNU Libtool.
16655 # GNU Libtool is free software; you can redistribute it and/or
16656 # modify it under the terms of the GNU General Public License as
16657 # published by the Free Software Foundation; either version 2 of
16658 # the License, or (at your option) any later version.
16660 # As a special exception to the GNU General Public License,
16661 # if you distribute this file as part of a program or library that
16662 # is built using GNU Libtool, you may include this file under the
16663 # same distribution terms that you use for the rest of that program.
16665 # GNU Libtool is distributed in the hope that it will be useful,
16666 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16667 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16668 # GNU General Public License for more details.
16670 # You should have received a copy of the GNU General Public License
16671 # along with GNU Libtool; see the file COPYING. If not, a copy
16672 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16673 # obtained by writing to the Free Software Foundation, Inc.,
16674 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16677 # The names of the tagged configurations supported by this script.
16680 # ### BEGIN LIBTOOL CONFIG
16682 # Which release of libtool.m4 was used?
16683 macro_version=$macro_version
16684 macro_revision=$macro_revision
16686 # Whether or not to build shared libraries.
16687 build_libtool_libs=$enable_shared
16689 # Whether or not to build static libraries.
16690 build_old_libs=$enable_static
16692 # What type of objects to build.
16695 # Whether or not to optimize for fast installation.
16696 fast_install=$enable_fast_install
16698 # Shell to use when invoking shell scripts.
16701 # An echo program that protects backslashes.
16705 host_alias=$host_alias
16709 # The build system.
16710 build_alias=$build_alias
16714 # A sed program that does not truncate output.
16717 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16718 Xsed="\$SED -e 1s/^X//"
16720 # A grep program that handles long lines.
16726 # A literal string matcher.
16729 # A BSD- or MS-compatible name lister.
16732 # Whether we need soft or hard links.
16735 # What is the maximum length of a command?
16736 max_cmd_len=$max_cmd_len
16738 # Object file suffix (normally "o").
16741 # Executable file suffix (normally "").
16744 # whether the shell understands "unset".
16747 # turn spaces into newlines.
16750 # turn newlines into spaces.
16753 # convert \$build file names to \$host format.
16754 to_host_file_cmd=$lt_cv_to_host_file_cmd
16756 # convert \$build files to toolchain format.
16757 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16759 # An object symbol dumper.
16760 OBJDUMP=$lt_OBJDUMP
16762 # Method to check whether dependent libraries are shared objects.
16763 deplibs_check_method=$lt_deplibs_check_method
16765 # Command to use when deplibs_check_method = "file_magic".
16766 file_magic_cmd=$lt_file_magic_cmd
16768 # How to find potential files when deplibs_check_method = "file_magic".
16769 file_magic_glob=$lt_file_magic_glob
16771 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16772 want_nocaseglob=$lt_want_nocaseglob
16774 # DLL creation program.
16775 DLLTOOL=$lt_DLLTOOL
16777 # Command to associate shared and link libraries.
16778 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16783 # Flags to create an archive.
16784 AR_FLAGS=$lt_AR_FLAGS
16786 # How to feed a file listing to the archiver.
16787 archiver_list_spec=$lt_archiver_list_spec
16789 # A symbol stripping program.
16792 # Commands used to install an old-style archive.
16794 old_postinstall_cmds=$lt_old_postinstall_cmds
16795 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16797 # Whether to use a lock for old archive extraction.
16798 lock_old_archive_extraction=$lock_old_archive_extraction
16803 # LTCC compiler flags.
16804 LTCFLAGS=$lt_CFLAGS
16806 # Take the output of nm and produce a listing of raw symbols and C names.
16807 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16809 # Transform the output of nm in a proper C declaration.
16810 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16812 # Transform the output of nm in a C name address pair.
16813 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16815 # Transform the output of nm in a C name address pair when lib prefix is needed.
16816 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16818 # Specify filename containing input files for \$NM.
16819 nm_file_list_spec=$lt_nm_file_list_spec
16821 # The root where to search for dependent libraries,and in which our libraries should be installed.
16822 lt_sysroot=$lt_sysroot
16824 # The name of the directory that contains temporary libtool files.
16827 # Used to examine libraries when file_magic_cmd begins with "file".
16828 MAGIC_CMD=$MAGIC_CMD
16830 # Must we lock files when doing compilation?
16831 need_locks=$lt_need_locks
16834 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16836 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16837 DSYMUTIL=$lt_DSYMUTIL
16839 # Tool to change global to local symbols on Mac OS X.
16842 # Tool to manipulate fat objects and archives on Mac OS X.
16845 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16848 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16849 OTOOL64=$lt_OTOOL64
16851 # Old archive suffix (normally "a").
16854 # Shared library suffix (normally ".so").
16855 shrext_cmds=$lt_shrext_cmds
16857 # The commands to extract the exported symbol list from a shared archive.
16858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16860 # Variables whose values should be saved in libtool wrapper scripts and
16861 # restored at link time.
16862 variables_saved_for_relink=$lt_variables_saved_for_relink
16864 # Do we need the "lib" prefix for modules?
16865 need_lib_prefix=$need_lib_prefix
16867 # Do we need a version for libraries?
16868 need_version=$need_version
16870 # Library versioning type.
16871 version_type=$version_type
16873 # Shared library runtime path variable.
16874 runpath_var=$runpath_var
16876 # Shared library path variable.
16877 shlibpath_var=$shlibpath_var
16879 # Is shlibpath searched before the hard-coded library search path?
16880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16882 # Format of library name prefix.
16883 libname_spec=$lt_libname_spec
16885 # List of archive names. First name is the real one, the rest are links.
16886 # The last name is the one that the linker finds with -lNAME
16887 library_names_spec=$lt_library_names_spec
16889 # The coded name of the library, if different from the real name.
16890 soname_spec=$lt_soname_spec
16892 # Permission mode override for installation of shared libraries.
16893 install_override_mode=$lt_install_override_mode
16895 # Command to use after installation of a shared archive.
16896 postinstall_cmds=$lt_postinstall_cmds
16898 # Command to use after uninstallation of a shared archive.
16899 postuninstall_cmds=$lt_postuninstall_cmds
16901 # Commands used to finish a libtool library installation in a directory.
16902 finish_cmds=$lt_finish_cmds
16904 # As "finish_cmds", except a single script fragment to be evaled but
16906 finish_eval=$lt_finish_eval
16908 # Whether we should hardcode library paths into libraries.
16909 hardcode_into_libs=$hardcode_into_libs
16911 # Compile-time system search path for libraries.
16912 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16914 # Run-time system search path for libraries.
16915 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16917 # Whether dlopen is supported.
16918 dlopen_support=$enable_dlopen
16920 # Whether dlopen of programs is supported.
16921 dlopen_self=$enable_dlopen_self
16923 # Whether dlopen of statically linked programs is supported.
16924 dlopen_self_static=$enable_dlopen_self_static
16926 # Commands to strip libraries.
16927 old_striplib=$lt_old_striplib
16928 striplib=$lt_striplib
16931 # The linker used to build libraries.
16934 # How to create reloadable object files.
16935 reload_flag=$lt_reload_flag
16936 reload_cmds=$lt_reload_cmds
16938 # Commands used to build an old-style archive.
16939 old_archive_cmds=$lt_old_archive_cmds
16941 # A language specific compiler.
16944 # Is the compiler the GNU compiler?
16947 # Compiler flag to turn off builtin functions.
16948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16950 # Additional compiler flags for building library objects.
16951 pic_flag=$lt_lt_prog_compiler_pic
16953 # How to pass a linker flag through the compiler.
16954 wl=$lt_lt_prog_compiler_wl
16956 # Compiler flag to prevent dynamic linking.
16957 link_static_flag=$lt_lt_prog_compiler_static
16959 # Does compiler simultaneously support -c and -o options?
16960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16962 # Whether or not to add -lc for building shared libraries.
16963 build_libtool_need_lc=$archive_cmds_need_lc
16965 # Whether or not to disallow shared libs when runtime libs are static.
16966 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16968 # Compiler flag to allow reflexive dlopens.
16969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16971 # Compiler flag to generate shared objects directly from archives.
16972 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16974 # Whether the compiler copes with passing no objects directly.
16975 compiler_needs_object=$lt_compiler_needs_object
16977 # Create an old-style archive from a shared archive.
16978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16980 # Create a temporary old-style archive to link instead of a shared archive.
16981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16983 # Commands used to build a shared archive.
16984 archive_cmds=$lt_archive_cmds
16985 archive_expsym_cmds=$lt_archive_expsym_cmds
16987 # Commands used to build a loadable module if different from building
16988 # a shared archive.
16989 module_cmds=$lt_module_cmds
16990 module_expsym_cmds=$lt_module_expsym_cmds
16992 # Whether we are building with GNU ld or not.
16993 with_gnu_ld=$lt_with_gnu_ld
16995 # Flag that allows shared libraries with undefined symbols to be built.
16996 allow_undefined_flag=$lt_allow_undefined_flag
16998 # Flag that enforces no undefined symbols.
16999 no_undefined_flag=$lt_no_undefined_flag
17001 # Flag to hardcode \$libdir into a binary during linking.
17002 # This must work even if \$libdir does not exist
17003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17005 # If ld is used when linking, flag to hardcode \$libdir into a binary
17006 # during linking. This must work even if \$libdir does not exist.
17007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17009 # Whether we need a single "-rpath" flag with a separated argument.
17010 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17012 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17013 # DIR into the resulting binary.
17014 hardcode_direct=$hardcode_direct
17016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17017 # DIR into the resulting binary and the resulting library dependency is
17018 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17019 # library is relocated.
17020 hardcode_direct_absolute=$hardcode_direct_absolute
17022 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17023 # into the resulting binary.
17024 hardcode_minus_L=$hardcode_minus_L
17026 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17027 # into the resulting binary.
17028 hardcode_shlibpath_var=$hardcode_shlibpath_var
17030 # Set to "yes" if building a shared library automatically hardcodes DIR
17031 # into the library and all subsequent libraries and executables linked
17033 hardcode_automatic=$hardcode_automatic
17035 # Set to yes if linker adds runtime paths of dependent libraries
17036 # to runtime path list.
17037 inherit_rpath=$inherit_rpath
17039 # Whether libtool must link a program against all its dependency libraries.
17040 link_all_deplibs=$link_all_deplibs
17042 # Set to "yes" if exported symbols are required.
17043 always_export_symbols=$always_export_symbols
17045 # The commands to list exported symbols.
17046 export_symbols_cmds=$lt_export_symbols_cmds
17048 # Symbols that should not be listed in the preloaded symbols.
17049 exclude_expsyms=$lt_exclude_expsyms
17051 # Symbols that must always be exported.
17052 include_expsyms=$lt_include_expsyms
17054 # Commands necessary for linking programs (against libraries) with templates.
17055 prelink_cmds=$lt_prelink_cmds
17057 # Commands necessary for finishing linking programs.
17058 postlink_cmds=$lt_postlink_cmds
17060 # Specify filename containing input files.
17061 file_list_spec=$lt_file_list_spec
17063 # How to hardcode a shared library path into an executable.
17064 hardcode_action=$hardcode_action
17066 # ### END LIBTOOL CONFIG
17072 cat <<\_LT_EOF >> "$cfgfile"
17073 # AIX sometimes has problems with the GCC collect2 program. For some
17074 # reason, if we set the COLLECT_NAMES environment variable, the problems
17075 # vanish in a puff of smoke.
17076 if test "X${COLLECT_NAMES+set}" != Xset; then
17078 export COLLECT_NAMES
17085 ltmain="$ac_aux_dir/ltmain.sh"
17088 # We use sed instead of cat because bash on DJGPP gets confused if
17089 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17090 # text mode, it properly converts lines to CR/LF. This bash problem
17091 # is reportedly fixed, but why not run on old versions too?
17092 sed '$q' "$ltmain" >> "$cfgfile" \
17093 || (rm -f "$cfgfile"; exit 1)
17095 if test x"$xsi_shell" = xyes; then
17096 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17100 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17101 \ * ) func_dirname_result="${3}" ;;\
17103 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17104 && mv -f "$cfgfile.tmp" "$cfgfile" \
17105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17106 test 0 -eq $? || _lt_function_replace_fail=:
17109 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17112 \ func_basename_result="${1##*/}"\
17113 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17114 && mv -f "$cfgfile.tmp" "$cfgfile" \
17115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17116 test 0 -eq $? || _lt_function_replace_fail=:
17119 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17120 func_dirname_and_basename ()\
17123 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17124 \ * ) func_dirname_result="${3}" ;;\
17126 \ func_basename_result="${1##*/}"\
17127 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17128 && mv -f "$cfgfile.tmp" "$cfgfile" \
17129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17130 test 0 -eq $? || _lt_function_replace_fail=:
17133 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17136 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17137 \ # positional parameters, so assign one to ordinary parameter first.\
17138 \ func_stripname_result=${3}\
17139 \ func_stripname_result=${func_stripname_result#"${1}"}\
17140 \ func_stripname_result=${func_stripname_result%"${2}"}\
17141 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17142 && mv -f "$cfgfile.tmp" "$cfgfile" \
17143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17144 test 0 -eq $? || _lt_function_replace_fail=:
17147 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17148 func_split_long_opt ()\
17150 \ func_split_long_opt_name=${1%%=*}\
17151 \ func_split_long_opt_arg=${1#*=}\
17152 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17153 && mv -f "$cfgfile.tmp" "$cfgfile" \
17154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17155 test 0 -eq $? || _lt_function_replace_fail=:
17158 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17159 func_split_short_opt ()\
17161 \ func_split_short_opt_arg=${1#??}\
17162 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17163 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17164 && mv -f "$cfgfile.tmp" "$cfgfile" \
17165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17166 test 0 -eq $? || _lt_function_replace_fail=:
17169 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17173 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17174 \ *) func_lo2o_result=${1} ;;\
17176 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17177 && mv -f "$cfgfile.tmp" "$cfgfile" \
17178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17179 test 0 -eq $? || _lt_function_replace_fail=:
17182 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17185 func_xform_result=${1%.*}.lo\
17186 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17187 && mv -f "$cfgfile.tmp" "$cfgfile" \
17188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17189 test 0 -eq $? || _lt_function_replace_fail=:
17192 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17195 func_arith_result=$(( $* ))\
17196 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17197 && mv -f "$cfgfile.tmp" "$cfgfile" \
17198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17199 test 0 -eq $? || _lt_function_replace_fail=:
17202 sed -e '/^func_len ()$/,/^} # func_len /c\
17205 func_len_result=${#1}\
17206 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17207 && mv -f "$cfgfile.tmp" "$cfgfile" \
17208 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17209 test 0 -eq $? || _lt_function_replace_fail=:
17213 if test x"$lt_shell_append" = xyes; then
17214 sed -e '/^func_append ()$/,/^} # func_append /c\
17217 eval "${1}+=\\${2}"\
17218 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17219 && mv -f "$cfgfile.tmp" "$cfgfile" \
17220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17221 test 0 -eq $? || _lt_function_replace_fail=:
17224 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17225 func_append_quoted ()\
17227 \ func_quote_for_eval "${2}"\
17228 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17229 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17230 && mv -f "$cfgfile.tmp" "$cfgfile" \
17231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17232 test 0 -eq $? || _lt_function_replace_fail=:
17235 # Save a `func_append' function call where possible by direct use of '+='
17236 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17237 && mv -f "$cfgfile.tmp" "$cfgfile" \
17238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17239 test 0 -eq $? || _lt_function_replace_fail=:
17241 # Save a `func_append' function call even when '+=' is not available
17242 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17243 && mv -f "$cfgfile.tmp" "$cfgfile" \
17244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17245 test 0 -eq $? || _lt_function_replace_fail=:
17248 if test x"$_lt_function_replace_fail" = x":"; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17250 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17254 mv -f "$cfgfile" "$ofile" ||
17255 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17259 "include":C) test -d include || mkdir include ;;
17261 test -d src || mkdir src
17262 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17271 ac_clean_files=$ac_clean_files_save
17273 test $ac_write_fail = 0 ||
17274 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17277 # configure is writing to config.log, and then calls config.status.
17278 # config.status does its own redirection, appending to config.log.
17279 # Unfortunately, on DOS this fails, as config.log is still kept open
17280 # by configure, so config.status won't be able to write to it; its
17281 # output is simply discarded. So we exec the FD to /dev/null,
17282 # effectively closing config.log, so it can be properly (re)opened and
17283 # appended to by config.status. When coming back to configure, we
17284 # need to make the FD available again.
17285 if test "$no_create" != yes; then
17287 ac_config_status_args=
17288 test "$silent" = yes &&
17289 ac_config_status_args="$ac_config_status_args --quiet"
17291 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17293 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17294 # would make configure fail if this is the last instruction.
17295 $ac_cs_success || as_fn_exit 1
17297 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17299 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}