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
656 POWERPC_FREEBSD_FALSE
695 MAINTAINER_MODE_FALSE
720 am__fastdepCCAS_FALSE
750 INSTALL_STRIP_PROGRAM
765 ax_enable_builddir_sed
805 program_transform_name
818 enable_option_checking
820 enable_dependency_tracking
828 enable_portable_binary
830 enable_maintainer_mode
837 ac_precious_vars='build_alias
846 # Initialize some variables set by options.
848 ac_init_version=false
849 ac_unrecognized_opts=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
860 program_transform_name=s,x,x,
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
906 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1153 -site=* | --site=* | --sit=*)
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval with_$ac_useropt=no ;;
1212 # Obsolete; use --with-x.
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error $? "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1280 # Be sure to have absolute directory names.
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used" >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1386 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of libffi 3.0.11:";;
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --disable-builddir disable automatic build in subdir of sources
1467 --disable-dependency-tracking speeds up one-time build
1468 --enable-dependency-tracking do not reject slow dependency extractors
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --enable-portable-binary
1475 disable compiler optimizations that would produce
1477 --enable-maintainer-mode enable make rules and dependencies not useful
1478 (and sometimes confusing) to the casual installer
1479 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1480 --enable-debug debugging mode
1481 --disable-structs omit code for struct support
1482 --disable-raw-api make the raw api unavailable
1483 --enable-purify-safety purify-safe mode
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-pic try to use only PIC/non-PIC objects [default=use
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-sysroot=DIR Search for dependent libraries within DIR
1492 (or the compiler's sysroot if not specified).
1493 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CCAS assembler compiler command (defaults to CC)
1505 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1511 Report bugs to <http://github.com/atgreen/libffi/issues>.
1516 if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" ||
1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1541 .) # We are building in place.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1563 $SHELL "$ac_srcdir/configure" --help=recursive
1565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 cd "$ac_pwd" || { ac_status=$?; break; }
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1574 libffi configure 3.0.11
1575 generated by GNU Autoconf 2.68
1577 Copyright (C) 2010 Free Software Foundation, Inc.
1578 This configure script is free software; the Free Software Foundation
1579 gives unlimited permission to copy, distribute and modify it.
1584 ## ------------------------ ##
1585 ## Autoconf initialization. ##
1586 ## ------------------------ ##
1588 # ac_fn_c_try_compile LINENO
1589 # --------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_compile ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_c_try_compile
1626 # ac_fn_c_try_link LINENO
1627 # -----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext conftest$ac_exeext
1633 if { { ac_try="$ac_link"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_link") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest$ac_exeext && {
1652 test "$cross_compiling" = yes ||
1653 $as_test_x conftest$ac_exeext
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664 # interfere with the next link command; also delete a directory that is
1665 # left behind by Apple's compiler. We do this before executing the actions.
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1670 } # ac_fn_c_try_link
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1689 if ac_fn_c_try_compile "$LINENO"; then :
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 } # ac_fn_c_check_header_compile
1703 # ac_fn_c_try_cpp LINENO
1704 # ----------------------
1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_cpp conftest.$ac_ext"
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } > conftest.i && {
1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1740 # ac_fn_c_try_run LINENO
1741 # ----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743 # that executables *can* be run.
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_link"
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>&5
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758 { { case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_try") 2>&5
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; }; }; then :
1770 $as_echo "$as_me: program exited with status $ac_status" >&5
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1774 ac_retval=$ac_status
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1782 # ac_fn_c_check_func LINENO FUNC VAR
1783 # ----------------------------------
1784 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1785 ac_fn_c_check_func ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1797 #define $2 innocuous_$2
1799 /* System header to define __stub macros and hopefully few prototypes,
1800 which can conflict with char $2 (); below.
1801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1802 <limits.h> exists even on freestanding compilers. */
1805 # include <limits.h>
1807 # include <assert.h>
1812 /* Override any GCC internal prototype to avoid an error.
1813 Use char because int might match the return type of a GCC
1814 builtin and then its argument prototype would still apply. */
1819 /* The GNU C library defines this for functions which it implements
1820 to always fail with ENOSYS. Some functions are actually named
1821 something starting with __ and the normal name is an alias. */
1822 #if defined __stub_$2 || defined __stub___$2
1834 if ac_fn_c_try_link "$LINENO"; then :
1839 rm -f core conftest.err conftest.$ac_objext \
1840 conftest$ac_exeext conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_check_func
1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852 # the include files in INCLUDES and setting the cache variable VAR
1854 ac_fn_c_check_header_mongrel ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if eval \${$3+:} false; then :
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1867 # Is the header compilable?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869 $as_echo_n "checking $2 usability... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 ac_header_compiler=yes
1878 ac_header_compiler=no
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882 $as_echo "$ac_header_compiler" >&6; }
1884 # Is the header present?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886 $as_echo_n "checking $2 presence... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1891 if ac_fn_c_try_cpp "$LINENO"; then :
1892 ac_header_preproc=yes
1894 ac_header_preproc=no
1896 rm -f conftest.err conftest.i conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898 $as_echo "$ac_header_preproc" >&6; }
1900 # So? What about this header?
1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1912 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1916 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ( $as_echo "## ------------------------------------------------------ ##
1920 ## Report this to http://github.com/atgreen/libffi/issues ##
1921 ## ------------------------------------------------------ ##"
1922 ) | sed "s/^/$as_me: WARNING: /" >&2
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1930 eval "$3=\$ac_header_compiler"
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 } # ac_fn_c_check_header_mongrel
1940 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941 # -------------------------------------------
1942 # Tests whether TYPE exists after having included INCLUDES, setting cache
1943 # variable VAR accordingly.
1944 ac_fn_c_check_type ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1978 if ac_fn_c_try_compile "$LINENO"; then :
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 } # ac_fn_c_check_type
1994 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1995 # --------------------------------------------
1996 # Tries to find the compile-time value of EXPR in a program that includes
1997 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1999 ac_fn_c_compute_int ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if test "$cross_compiling" = yes; then
2003 # Depending upon the size, compute the lo and hi bounds.
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2010 static int test_array [1 - 2 * !(($2) >= 0)];
2017 if ac_fn_c_try_compile "$LINENO"; then :
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2026 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 ac_hi=$ac_mid; break
2036 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2037 if test $ac_lo -le $ac_mid; then
2041 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2052 static int test_array [1 - 2 * !(($2) < 0)];
2059 if ac_fn_c_try_compile "$LINENO"; then :
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_lo=$ac_mid; break
2078 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2079 if test $ac_mid -le $ac_hi; then
2083 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 # Binary search between lo and hi bounds.
2094 while test "x$ac_lo" != "x$ac_hi"; do
2095 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2102 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2109 if ac_fn_c_try_compile "$LINENO"; then :
2112 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2124 static long int longval () { return $2; }
2125 static unsigned long int ulongval () { return $2; }
2132 FILE *f = fopen ("conftest.val", "w");
2137 long int i = longval ();
2140 fprintf (f, "%ld", i);
2144 unsigned long int i = ulongval ();
2147 fprintf (f, "%lu", i);
2149 /* Do not output a trailing newline, as this causes \r\n confusion
2150 on some platforms. */
2151 return ferror (f) || fclose (f) != 0;
2157 if ac_fn_c_try_run "$LINENO"; then :
2158 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2163 conftest.$ac_objext conftest.beam conftest.$ac_ext
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 as_fn_set_status $ac_retval
2170 } # ac_fn_c_compute_int
2171 cat >config.log <<_ACEOF
2172 This file contains any messages produced by compilers while
2173 running configure, to aid debugging if configure makes a mistake.
2175 It was created by libffi $as_me 3.0.11, which was
2176 generated by GNU Autoconf 2.68. Invocation command line was
2188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2197 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2198 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2201 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2202 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2203 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2228 # Keep a trace of the command line.
2229 # Strip out --no-create and --no-recursion so they do not pile up.
2230 # Strip out --silent because we don't want to record it for future runs.
2231 # Also quote any args containing shell meta-characters.
2232 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_must_keep_next=false
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2247 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265 -* ) ac_must_keep_next=true ;;
2268 as_fn_append ac_configure_args " '$ac_arg'"
2273 { ac_configure_args0=; unset ac_configure_args0;}
2274 { ac_configure_args1=; unset ac_configure_args1;}
2276 # When interrupted or exit'd, cleanup temporary files, and complete
2277 # config.log. We remove comments because anyway the quotes in there
2278 # would cause problems or look ugly.
2279 # WARNING: Use '\'' to represent an apostrophe within the trap.
2280 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281 trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2286 $as_echo "## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##"
2290 # The following way of writing the cache mishandles newlines in values,
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2322 $as_echo "## ----------------- ##
2323 ## Output variables. ##
2324 ## ----------------- ##"
2326 for ac_var in $ac_subst_vars
2328 eval ac_val=\$$ac_var
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 $as_echo "$ac_var='\''$ac_val'\''"
2336 if test -n "$ac_subst_files"; then
2337 $as_echo "## ------------------- ##
2338 ## File substitutions. ##
2339 ## ------------------- ##"
2341 for ac_var in $ac_subst_files
2343 eval ac_val=\$$ac_var
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2347 $as_echo "$ac_var='\''$ac_val'\''"
2352 if test -s confdefs.h; then
2353 $as_echo "## ----------- ##
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2368 for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2374 rm -f -r conftest* confdefs.h
2376 $as_echo "/* confdefs.h */" > confdefs.h
2378 # Predefined preprocessor variables.
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_NAME "$PACKAGE_NAME"
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_STRING "$PACKAGE_STRING"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_URL "$PACKAGE_URL"
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2409 if test -n "$CONFIG_SITE"; then
2410 # We do not want a PATH search for config.site.
2411 case $CONFIG_SITE in #((
2412 -*) ac_site_file1=./$CONFIG_SITE;;
2413 */*) ac_site_file1=$CONFIG_SITE;;
2414 *) ac_site_file1=./$CONFIG_SITE;;
2416 elif test "x$prefix" != xNONE; then
2417 ac_site_file1=$prefix/share/config.site
2418 ac_site_file2=$prefix/etc/config.site
2420 ac_site_file1=$ac_default_prefix/share/config.site
2421 ac_site_file2=$ac_default_prefix/etc/config.site
2423 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2425 test "x$ac_site_file" = xNONE && continue
2426 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 as_fn_error $? "failed to load site script $ac_site_file
2434 See \`config.log' for more details" "$LINENO" 5; }
2438 if test -r "$cache_file"; then
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443 $as_echo "$as_me: loading cache $cache_file" >&6;}
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451 $as_echo "$as_me: creating cache $cache_file" >&6;}
2455 # Check that the precious variables saved in the cache have kept the same
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 ac_config_headers="$ac_config_headers fficonfig.h"
2527 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2528 if test -f "$ac_dir/install-sh"; then
2530 ac_install_sh="$ac_aux_dir/install-sh -c"
2532 elif test -f "$ac_dir/install.sh"; then
2534 ac_install_sh="$ac_aux_dir/install.sh -c"
2536 elif test -f "$ac_dir/shtool"; then
2538 ac_install_sh="$ac_aux_dir/shtool install -c"
2542 if test -z "$ac_aux_dir"; then
2543 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2546 # These three variables are undocumented and unsupported,
2547 # and are intended to be withdrawn in a future Autoconf release.
2548 # They can cause serious problems if a builder's source tree is in a directory
2549 # whose full name contains unusual characters.
2550 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2551 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2552 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2555 # Make sure we can run config.sub.
2556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2557 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2560 $as_echo_n "checking build system type... " >&6; }
2561 if ${ac_cv_build+:} false; then :
2562 $as_echo_n "(cached) " >&6
2564 ac_build_alias=$build_alias
2565 test "x$ac_build_alias" = x &&
2566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2567 test "x$ac_build_alias" = x &&
2568 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2574 $as_echo "$ac_cv_build" >&6; }
2575 case $ac_cv_build in
2577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2580 ac_save_IFS=$IFS; IFS='-'
2586 # Remember, the first character of IFS is used to create $*,
2587 # except with old shells:
2590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2594 $as_echo_n "checking host system type... " >&6; }
2595 if ${ac_cv_host+:} false; then :
2596 $as_echo_n "(cached) " >&6
2598 if test "x$host_alias" = x; then
2599 ac_cv_host=$ac_cv_build
2601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2607 $as_echo "$ac_cv_host" >&6; }
2610 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2613 ac_save_IFS=$IFS; IFS='-'
2619 # Remember, the first character of IFS is used to create $*,
2620 # except with old shells:
2623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2627 $as_echo_n "checking target system type... " >&6; }
2628 if ${ac_cv_target+:} false; then :
2629 $as_echo_n "(cached) " >&6
2631 if test "x$target_alias" = x; then
2632 ac_cv_target=$ac_cv_host
2634 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2640 $as_echo "$ac_cv_target" >&6; }
2641 case $ac_cv_target in
2643 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2645 target=$ac_cv_target
2646 ac_save_IFS=$IFS; IFS='-'
2652 # Remember, the first character of IFS is used to create $*,
2653 # except with old shells:
2656 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2659 # The aliases save the names the user supplied, while $host etc.
2660 # will get canonicalized.
2661 test -n "$target_alias" &&
2662 test "$program_prefix$program_suffix$program_transform_name" = \
2664 program_prefix=${target_alias}-
2666 target_alias=${target_alias-$host_alias}
2668 . ${srcdir}/configure.host
2671 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2672 if test "${ac_configure_args+set}" != "set" ; then
2674 for ac_arg in ${1+"$@"}; do
2675 ac_configure_args="$ac_configure_args '$ac_arg'"
2679 # expand $ac_aux_dir to an absolute path
2680 am_aux_dir=`cd $ac_aux_dir && pwd`
2683 ax_enable_builddir="."
2684 # Check whether --enable-builddir was given.
2685 if test "${enable_builddir+set}" = set; then :
2686 enableval=$enable_builddir; ax_enable_builddir="$enableval"
2688 ax_enable_builddir="auto"
2691 if test ".$ac_srcdir_defaulted" != ".no" ; then
2692 if test ".$srcdir" = ".." ; then
2693 if test -f config.status ; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2695 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2697 test ".$ax_enable_builddir" = "." && ax_enable_builddir="."
2698 test ".$ax_enable_builddir" = ".no" && ax_enable_builddir="."
2699 test ".$TARGET" = "." && TARGET="$target"
2700 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2701 if test ".$ax_enable_builddir" != ".." ; then # we know where to go and
2702 as_dir=$ax_enable_builddir; as_fn_mkdir_p
2703 echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2704 cd $ax_enable_builddir
2705 if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2708 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2710 as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2712 srcdir=`echo "$ax_enable_builddir" |
2713 sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2714 # going to restart from subdirectory location
2715 test -f $srcdir/config.log && mv $srcdir/config.log .
2716 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
2717 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2718 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2720 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2721 case "$0" in # restart
2722 /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2723 *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2728 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2729 # Extract the first word of "gsed sed", so it can be a program name with args.
2730 set dummy gsed sed; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 case $ax_enable_builddir_sed in
2738 ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2760 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2761 if test -n "$ax_enable_builddir_sed"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2763 $as_echo "$ax_enable_builddir_sed" >&6; }
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2770 ax_enable_builddir_auxdir="$am_aux_dir"
2771 ac_config_commands="$ac_config_commands buildir"
2774 am__api_version='1.11'
2776 # Find a good install program. We prefer a C program (faster),
2777 # so one script is as good as another. But avoid the broken or
2778 # incompatible versions:
2779 # SysV /etc/install, /usr/sbin/install
2780 # SunOS /usr/etc/install
2781 # IRIX /sbin/install
2783 # AmigaOS /C/install, which installs bootblocks on floppy discs
2784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2787 # OS/2's system install, which has a completely different semantic
2788 # ./install, which can be erroneously created by make from ./install.sh.
2789 # Reject install programs that cannot install multiple files.
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2791 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2792 if test -z "$INSTALL"; then
2793 if ${ac_cv_path_install+:} false; then :
2794 $as_echo_n "(cached) " >&6
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 # Account for people who put trailing slashes in PATH elements.
2802 case $as_dir/ in #((
2803 ./ | .// | /[cC]/* | \
2804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2808 # OSF1 and SCO ODT 3.0 have their own names for install.
2809 # Don't use installbsd from OSF since it installs stuff as root
2811 for ac_prog in ginstall scoinst install; do
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2814 if test $ac_prog = install &&
2815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816 # AIX install. It has an incompatible calling convention.
2818 elif test $ac_prog = install &&
2819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2820 # program-specific install script used by HP pwplus--don't use.
2823 rm -rf conftest.one conftest.two conftest.dir
2824 echo one > conftest.one
2825 echo two > conftest.two
2827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2828 test -s conftest.one && test -s conftest.two &&
2829 test -s conftest.dir/conftest.one &&
2830 test -s conftest.dir/conftest.two
2832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2845 rm -rf conftest.one conftest.two conftest.dir
2848 if test "${ac_cv_path_install+set}" = set; then
2849 INSTALL=$ac_cv_path_install
2851 # As a last resort, use the slow shell script. Don't cache a
2852 # value for INSTALL within a source directory, because that will
2853 # break other packages using the cache if that directory is
2854 # removed, or if the value is a relative name.
2855 INSTALL=$ac_install_sh
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2859 $as_echo "$INSTALL" >&6; }
2861 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2862 # It thinks the first close brace ends the variable substitution.
2863 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2865 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2867 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2870 $as_echo_n "checking whether build environment is sane... " >&6; }
2873 echo timestamp > conftest.file
2874 # Reject unsafe characters in $srcdir or the absolute working directory
2875 # name. Accept space and tab only in the latter.
2879 *[\\\"\#\$\&\'\`$am_lf]*)
2880 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2883 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2884 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2887 # Do `set' in a subshell so we don't clobber the current shell's
2888 # arguments. Must try -L first in case configure is actually a
2889 # symlink; some systems play weird games with the mod time of symlinks
2890 # (eg FreeBSD returns the mod time of the symlink's containing
2893 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2894 if test "$*" = "X"; then
2896 set X `ls -t "$srcdir/configure" conftest.file`
2899 if test "$*" != "X $srcdir/configure conftest.file" \
2900 && test "$*" != "X conftest.file $srcdir/configure"; then
2902 # If neither matched, then we have a broken ls. This can happen
2903 # if, for instance, CONFIG_SHELL is bash and it inherits a
2904 # broken ls alias from the environment. This has actually
2905 # happened. Such a system could not be considered "sane".
2906 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2907 alias in your environment" "$LINENO" 5
2910 test "$2" = conftest.file
2916 as_fn_error $? "newly created file is older than distributed files!
2917 Check your system clock" "$LINENO" 5
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2920 $as_echo "yes" >&6; }
2921 test "$program_prefix" != NONE &&
2922 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2923 # Use a double $ so make ignores it.
2924 test "$program_suffix" != NONE &&
2925 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2926 # Double any \ or $.
2927 # By default was `s,x,x', remove it if useless.
2928 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2929 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2931 if test x"${MISSING+set}" != xset; then
2934 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2936 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2939 # Use eval to expand $SHELL
2940 if eval "$MISSING --run true"; then
2941 am_missing_run="$MISSING --run "
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2945 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2948 if test x"${install_sh}" != xset; then
2951 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2953 install_sh="\${SHELL} $am_aux_dir/install-sh"
2957 # Installed binaries are usually stripped using `strip' when the user
2958 # run `make install-strip'. However `strip' might not be the right
2959 # tool to use in cross-compilation environments, therefore Automake
2960 # will honor the `STRIP' environment variable to overrule this program.
2961 if test "$cross_compiling" != no; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}strip; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_STRIP+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 if test -n "$STRIP"; then
2971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 STRIP=$ac_cv_prog_STRIP
2991 if test -n "$STRIP"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2993 $as_echo "$STRIP" >&6; }
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
3001 if test -z "$ac_cv_prog_STRIP"; then
3003 # Extract the first word of "strip", so it can be a program name with args.
3004 set dummy strip; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$ac_ct_STRIP"; then
3011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_ac_ct_STRIP="strip"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3031 if test -n "$ac_ct_STRIP"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3033 $as_echo "$ac_ct_STRIP" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3039 if test "x$ac_ct_STRIP" = x; then
3042 case $cross_compiling:$ac_tool_warned in
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3051 STRIP="$ac_cv_prog_STRIP"
3055 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3058 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3059 if test -z "$MKDIR_P"; then
3060 if ${ac_cv_path_mkdir+:} false; then :
3061 $as_echo_n "(cached) " >&6
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3067 test -z "$as_dir" && as_dir=.
3068 for ac_prog in mkdir gmkdir; do
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3071 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3072 'mkdir (GNU coreutils) '* | \
3073 'mkdir (coreutils) '* | \
3074 'mkdir (fileutils) '4.1*)
3075 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3085 test -d ./--version && rmdir ./--version
3086 if test "${ac_cv_path_mkdir+set}" = set; then
3087 MKDIR_P="$ac_cv_path_mkdir -p"
3089 # As a last resort, use the slow shell script. Don't cache a
3090 # value for MKDIR_P within a source directory, because that will
3091 # break other packages using the cache if that directory is
3092 # removed, or if the value is a relative name.
3093 MKDIR_P="$ac_install_sh -d"
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3097 $as_echo "$MKDIR_P" >&6; }
3101 [\\/$]* | ?:[\\/]*) ;;
3102 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3105 for ac_prog in gawk mawk nawk awk
3107 # Extract the first word of "$ac_prog", so it can be a program name with args.
3108 set dummy $ac_prog; ac_word=$2
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110 $as_echo_n "checking for $ac_word... " >&6; }
3111 if ${ac_cv_prog_AWK+:} false; then :
3112 $as_echo_n "(cached) " >&6
3114 if test -n "$AWK"; then
3115 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_AWK="$ac_prog"
3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 if test -n "$AWK"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3137 $as_echo "$AWK" >&6; }
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3144 test -n "$AWK" && break
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3150 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3151 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3152 $as_echo_n "(cached) " >&6
3154 cat >conftest.make <<\_ACEOF
3157 @echo '@@@%%%=$(MAKE)=@@@%%%'
3159 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3162 eval ac_cv_prog_make_${ac_make}_set=yes;;
3164 eval ac_cv_prog_make_${ac_make}_set=no;;
3168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 SET_MAKE="MAKE=${MAKE-make}"
3178 rm -rf .tst 2>/dev/null
3179 mkdir .tst 2>/dev/null
3180 if test -d .tst; then
3185 rmdir .tst 2>/dev/null
3187 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3188 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3189 # is not polluted with repeated "-I."
3190 am__isrc=' -I$(srcdir)'
3191 # test to see if srcdir already configured
3192 if test -f $srcdir/config.status; then
3193 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3197 # test whether we have cygpath
3198 if test -z "$CYGPATH_W"; then
3199 if (cygpath --version) >/dev/null 2>/dev/null; then
3200 CYGPATH_W='cygpath -w'
3207 # Define the identity of the package.
3212 cat >>confdefs.h <<_ACEOF
3213 #define PACKAGE "$PACKAGE"
3217 cat >>confdefs.h <<_ACEOF
3218 #define VERSION "$VERSION"
3221 # Some tools Automake needs.
3223 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3226 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3229 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3232 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3235 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3237 # We need awk for the "check" target. The system "awk" is bad on
3239 # Always define AMTAR for backward compatibility. Yes, it's still used
3240 # in the wild :-( We should find a proper way to deprecate it ...
3243 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3250 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3251 # We must force CC to /not/ be precious variables; otherwise
3252 # the wrong, non-multilib-adjusted value will be used in multilibs.
3253 # As a side effect, we have to subst CFLAGS ourselves.
3254 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3255 # defaults of its own if none are provided.
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 if test -n "$ac_tool_prefix"; then
3266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3304 if test -z "$ac_cv_prog_CC"; then
3306 # Extract the first word of "gcc", so it can be a program name with args.
3307 set dummy gcc; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$ac_ct_CC"; then
3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_ac_ct_CC="gcc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334 if test -n "$ac_ct_CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3336 $as_echo "$ac_ct_CC" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3342 if test "x$ac_ct_CC" = x; then
3345 case $cross_compiling:$ac_tool_warned in
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3357 if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}cc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_CC+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376 ac_cv_prog_CC="${ac_tool_prefix}cc"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 if test -n "$CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389 $as_echo "$CC" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3398 if test -z "$CC"; then
3399 # Extract the first word of "cc", so it can be a program name with args.
3400 set dummy cc; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_CC+:} false; then :
3404 $as_echo_n "(cached) " >&6
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3418 ac_prog_rejected=yes
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 if test $ac_prog_rejected = yes; then
3430 # We found a bogon in the path, so make sure we never use it.
3431 set dummy $ac_cv_prog_CC
3433 if test $# != 0; then
3434 # We chose a different compiler from the bogus one.
3435 # However, it has the same basename, so the bogon will be chosen
3436 # first if we set CC to just the basename; use the full file name.
3438 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3444 if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3454 if test -z "$CC"; then
3455 if test -n "$ac_tool_prefix"; then
3456 for ac_prog in cl.exe
3458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_CC+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3495 test -n "$CC" && break
3498 if test -z "$CC"; then
3500 for ac_prog in cl.exe
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$ac_ct_CC"; then
3510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 ac_cv_prog_ac_ct_CC="$ac_prog"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3530 if test -n "$ac_ct_CC"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3532 $as_echo "$ac_ct_CC" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3539 test -n "$ac_ct_CC" && break
3542 if test "x$ac_ct_CC" = x; then
3545 case $cross_compiling:$ac_tool_warned in
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549 ac_tool_warned=yes ;;
3558 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error $? "no acceptable C compiler found in \$PATH
3561 See \`config.log' for more details" "$LINENO" 5; }
3563 # Provide some information about the compiler.
3564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3567 for ac_option in --version -v -V -qversion; do
3568 { { ac_try="$ac_compiler $ac_option >&5"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3577 if test -s conftest.err; then
3579 ... rest of stderr output deleted ...
3580 10q' conftest.err >conftest.er1
3581 cat conftest.er1 >&5
3583 rm -f conftest.er1 conftest.err
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3599 ac_clean_files_save=$ac_clean_files
3600 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3601 # Try to create an executable without -o first, disregard a.out.
3602 # It will help us diagnose broken compilers, and finding out an intuition
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3605 $as_echo_n "checking whether the C compiler works... " >&6; }
3606 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3608 # The possible output files:
3609 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3612 for ac_file in $ac_files
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3616 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3621 if { { ac_try="$ac_link_default"
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_link_default") 2>&5
3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }; then :
3632 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3634 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3635 # so that the user can short-circuit this test for compilers unknown to
3637 for ac_file in $ac_files ''
3639 test -f "$ac_file" || continue
3641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3644 # We found the default executable, but exeext='' is most
3648 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3652 # We set ac_cv_exeext here because the later test for it is not
3653 # safe: cross compilers may not add the suffix if given an `-o'
3654 # argument, so we may need to know it at that point already.
3655 # Even if this section looks crufty: it has the advantage of
3662 test "$ac_cv_exeext" = no && ac_cv_exeext=
3667 if test -z "$ac_file"; then :
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670 $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error 77 "C compiler cannot create executables
3676 See \`config.log' for more details" "$LINENO" 5; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3679 $as_echo "yes" >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3682 $as_echo_n "checking for C compiler default output file name... " >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3684 $as_echo "$ac_file" >&6; }
3685 ac_exeext=$ac_cv_exeext
3687 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3688 ac_clean_files=$ac_clean_files_save
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3690 $as_echo_n "checking for suffix of executables... " >&6; }
3691 if { { ac_try="$ac_link"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_link") 2>&5
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; then :
3702 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3703 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3704 # work properly (i.e., refer to `conftest.exe'), while it won't with
3706 for ac_file in conftest.exe conftest conftest.*; do
3707 test -f "$ac_file" || continue
3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3710 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3719 See \`config.log' for more details" "$LINENO" 5; }
3721 rm -f conftest conftest$ac_cv_exeext
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3723 $as_echo "$ac_cv_exeext" >&6; }
3725 rm -f conftest.$ac_ext
3726 EXEEXT=$ac_cv_exeext
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3734 FILE *f = fopen ("conftest.out", "w");
3735 return ferror (f) || fclose (f) != 0;
3741 ac_clean_files="$ac_clean_files conftest.out"
3742 # Check that the compiler produces executables we can run. If not, either
3743 # the compiler is broken, or we cross compile.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3745 $as_echo_n "checking whether we are cross compiling... " >&6; }
3746 if test "$cross_compiling" != yes; then
3747 { { ac_try="$ac_link"
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754 (eval "$ac_link") 2>&5
3756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757 test $ac_status = 0; }
3758 if { ac_try='./conftest$ac_cv_exeext'
3759 { { case "(($ac_try" in
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_try") 2>&5
3767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768 test $ac_status = 0; }; }; then
3771 if test "$cross_compiling" = maybe; then
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $? "cannot run C compiled programs.
3777 If you meant to cross compile, use \`--host'.
3778 See \`config.log' for more details" "$LINENO" 5; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3783 $as_echo "$cross_compiling" >&6; }
3785 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3786 ac_clean_files=$ac_clean_files_save
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3788 $as_echo_n "checking for suffix of object files... " >&6; }
3789 if ${ac_cv_objext+:} false; then :
3790 $as_echo_n "(cached) " >&6
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3803 rm -f conftest.o conftest.obj
3804 if { { ac_try="$ac_compile"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_compile") 2>&5
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }; then :
3815 for ac_file in conftest.o conftest.obj conftest.*; do
3816 test -f "$ac_file" || continue;
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3819 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error $? "cannot compute suffix of object files: cannot compile
3830 See \`config.log' for more details" "$LINENO" 5; }
3832 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3835 $as_echo "$ac_cv_objext" >&6; }
3836 OBJEXT=$ac_cv_objext
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3839 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3840 if ${ac_cv_c_compiler_gnu+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3857 if ac_fn_c_try_compile "$LINENO"; then :
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3867 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3868 if test $ac_compiler_gnu = yes; then
3873 ac_test_CFLAGS=${CFLAGS+set}
3874 ac_save_CFLAGS=$CFLAGS
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3876 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3877 if ${ac_cv_prog_cc_g+:} false; then :
3878 $as_echo_n "(cached) " >&6
3880 ac_save_c_werror_flag=$ac_c_werror_flag
3881 ac_c_werror_flag=yes
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3895 if ac_fn_c_try_compile "$LINENO"; then :
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3910 if ac_fn_c_try_compile "$LINENO"; then :
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3926 if ac_fn_c_try_compile "$LINENO"; then :
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_c_werror_flag=$ac_save_c_werror_flag
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3937 $as_echo "$ac_cv_prog_cc_g" >&6; }
3938 if test "$ac_test_CFLAGS" = set; then
3939 CFLAGS=$ac_save_CFLAGS
3940 elif test $ac_cv_prog_cc_g = yes; then
3941 if test "$GCC" = yes; then
3947 if test "$GCC" = yes; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if ${ac_cv_prog_cc_c89+:} false; then :
3956 $as_echo_n "(cached) " >&6
3958 ac_cv_prog_cc_c89=no
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3964 #include <sys/types.h>
3965 #include <sys/stat.h>
3966 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3967 struct buf { int x; };
3968 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3969 static char *e (p, i)
3975 static char *f (char * (*g) (char **, int), char **p, ...)
3980 s = g (p, va_arg (v,int));
3985 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3986 function prototypes and stuff, but not '\xHH' hex character constants.
3987 These don't provoke an error unfortunately, instead are silently treated
3988 as 'x'. The following induces an error, until -std is added to get
3989 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3990 array size at least. It's necessary to write '\x00'==0 to get something
3991 that's true only with -std. */
3992 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3994 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3995 inside strings and character constants. */
3997 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3999 int test (int i, double x);
4000 struct s1 {int (*f) (int a);};
4001 struct s2 {int (*f) (double a);};
4002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4013 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4014 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4016 CC="$ac_save_CC $ac_arg"
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018 ac_cv_prog_cc_c89=$ac_arg
4020 rm -f core conftest.err conftest.$ac_objext
4021 test "x$ac_cv_prog_cc_c89" != "xno" && break
4023 rm -f conftest.$ac_ext
4028 case "x$ac_cv_prog_cc_c89" in
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4031 $as_echo "none needed" >&6; } ;;
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4034 $as_echo "unsupported" >&6; } ;;
4036 CC="$CC $ac_cv_prog_cc_c89"
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4040 if test "x$ac_cv_prog_cc_c89" != xno; then :
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 DEPDIR="${am__leading_dot}deps"
4051 ac_config_commands="$ac_config_commands depfiles"
4054 am_make=${MAKE-make}
4055 cat > confinc << 'END'
4057 @echo this is the am__doit target
4060 # If we don't find an include directive, just comment out the code.
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4062 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4066 # First try GNU make style include.
4067 echo "include confinc" > confmf
4068 # Ignore all kinds of additional output from `make'.
4069 case `$am_make -s -f confmf 2> /dev/null` in #(
4070 *the\ am__doit\ target*)
4076 # Now try BSD make style include.
4077 if test "$am__include" = "#"; then
4078 echo '.include "confinc"' > confmf
4079 case `$am_make -s -f confmf 2> /dev/null` in #(
4080 *the\ am__doit\ target*)
4081 am__include=.include
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4090 $as_echo "$_am_result" >&6; }
4091 rm -f confinc confmf
4093 # Check whether --enable-dependency-tracking was given.
4094 if test "${enable_dependency_tracking+set}" = set; then :
4095 enableval=$enable_dependency_tracking;
4098 if test "x$enable_dependency_tracking" != xno; then
4099 am_depcomp="$ac_aux_dir/depcomp"
4103 if test "x$enable_dependency_tracking" != xno; then
4113 depcc="$CC" am_compiler_list=
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4116 $as_echo_n "checking dependency style of $depcc... " >&6; }
4117 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4118 $as_echo_n "(cached) " >&6
4120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4121 # We make a subdir and do the tests there. Otherwise we can end up
4122 # making bogus files that we don't know about and never remove. For
4123 # instance it was reported that on HP-UX the gcc test will end up
4124 # making a dummy file named `D' -- because `-MD' means `put the output
4128 # Copy depcomp to subdir because otherwise we won't find it if we're
4129 # using a relative directory.
4130 cp "$am_depcomp" conftest.dir
4132 # We will build objects and dependencies in a subdirectory because
4133 # it helps to detect inapplicable dependency modes. For instance
4134 # both Tru64's cc and ICC support -MD to output dependencies as a
4135 # side effect of compilation, but ICC will put the dependencies in
4136 # the current directory while Tru64 will put them in the object
4140 am_cv_CC_dependencies_compiler_type=none
4141 if test "$am_compiler_list" = ""; then
4142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4145 case " $depcc " in #(
4146 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4149 for depmode in $am_compiler_list; do
4150 # Setup a source with many dependencies, because some compilers
4151 # like to wrap large dependency lists on column 80 (with \), and
4152 # we should not choose a depcomp mode which is confused by this.
4154 # We need to recreate these files for each test, as the compiler may
4155 # overwrite some of them when testing with obscure command lines.
4156 # This happens at least with the AIX C compiler.
4158 for i in 1 2 3 4 5 6; do
4159 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4160 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4161 # Solaris 8's {/usr,}/bin/sh.
4162 touch sub/conftst$i.h
4164 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4166 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4167 # mode. It turns out that the SunPro C++ compiler does not properly
4168 # handle `-M -o', and we need to detect this. Also, some Intel
4169 # versions had trouble with output in subdirs
4170 am__obj=sub/conftest.${OBJEXT-o}
4171 am__minus_obj="-o $am__obj"
4174 # This depmode causes a compiler race in universal mode.
4175 test "$am__universal" = false || continue
4178 # after this tag, mechanisms are not by side-effect, so they'll
4179 # only be used when explicitly requested
4180 if test "x$enable_dependency_tracking" = xyes; then
4186 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4187 # This compiler won't grok `-c -o', but also, the minuso test has
4188 # not run yet. These depmodes are late enough in the game, and
4189 # so weak that their functioning should not be impacted.
4190 am__obj=conftest.${OBJEXT-o}
4195 if depmode=$depmode \
4196 source=sub/conftest.c object=$am__obj \
4197 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4198 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4199 >/dev/null 2>conftest.err &&
4200 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4201 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4202 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4203 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4204 # icc doesn't choke on unknown options, it will just issue warnings
4205 # or remarks (even with -Werror). So we grep stderr for any message
4206 # that says an option was ignored or not supported.
4207 # When given -MP, icc 7.0 and 7.1 complain thusly:
4208 # icc: Command line warning: ignoring option '-M'; no argument required
4209 # The diagnosis changed in icc 8.0:
4210 # icc: Command line remark: option '-MP' not supported
4211 if (grep 'ignoring option' conftest.err ||
4212 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4213 am_cv_CC_dependencies_compiler_type=$depmode
4222 am_cv_CC_dependencies_compiler_type=none
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4227 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4228 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4231 test "x$enable_dependency_tracking" != xno \
4232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4234 am__fastdepCC_FALSE='#'
4236 am__fastdepCC_TRUE='#'
4237 am__fastdepCC_FALSE=
4247 # By default we simply use the C compiler to build assembly code.
4249 test "${CCAS+set}" = set || CCAS=$CC
4250 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4254 depcc="$CCAS" am_compiler_list=
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4257 $as_echo_n "checking dependency style of $depcc... " >&6; }
4258 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4262 # We make a subdir and do the tests there. Otherwise we can end up
4263 # making bogus files that we don't know about and never remove. For
4264 # instance it was reported that on HP-UX the gcc test will end up
4265 # making a dummy file named `D' -- because `-MD' means `put the output
4269 # Copy depcomp to subdir because otherwise we won't find it if we're
4270 # using a relative directory.
4271 cp "$am_depcomp" conftest.dir
4273 # We will build objects and dependencies in a subdirectory because
4274 # it helps to detect inapplicable dependency modes. For instance
4275 # both Tru64's cc and ICC support -MD to output dependencies as a
4276 # side effect of compilation, but ICC will put the dependencies in
4277 # the current directory while Tru64 will put them in the object
4281 am_cv_CCAS_dependencies_compiler_type=none
4282 if test "$am_compiler_list" = ""; then
4283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4288 for depmode in $am_compiler_list; do
4289 # Setup a source with many dependencies, because some compilers
4290 # like to wrap large dependency lists on column 80 (with \), and
4291 # we should not choose a depcomp mode which is confused by this.
4293 # We need to recreate these files for each test, as the compiler may
4294 # overwrite some of them when testing with obscure command lines.
4295 # This happens at least with the AIX C compiler.
4297 for i in 1 2 3 4 5 6; do
4298 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4299 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4300 # Solaris 8's {/usr,}/bin/sh.
4301 touch sub/conftst$i.h
4303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4305 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4306 # mode. It turns out that the SunPro C++ compiler does not properly
4307 # handle `-M -o', and we need to detect this. Also, some Intel
4308 # versions had trouble with output in subdirs
4309 am__obj=sub/conftest.${OBJEXT-o}
4310 am__minus_obj="-o $am__obj"
4313 # This depmode causes a compiler race in universal mode.
4314 test "$am__universal" = false || continue
4317 # after this tag, mechanisms are not by side-effect, so they'll
4318 # only be used when explicitly requested
4319 if test "x$enable_dependency_tracking" = xyes; then
4325 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4326 # This compiler won't grok `-c -o', but also, the minuso test has
4327 # not run yet. These depmodes are late enough in the game, and
4328 # so weak that their functioning should not be impacted.
4329 am__obj=conftest.${OBJEXT-o}
4334 if depmode=$depmode \
4335 source=sub/conftest.c object=$am__obj \
4336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4337 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4338 >/dev/null 2>conftest.err &&
4339 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4340 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4341 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4342 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4343 # icc doesn't choke on unknown options, it will just issue warnings
4344 # or remarks (even with -Werror). So we grep stderr for any message
4345 # that says an option was ignored or not supported.
4346 # When given -MP, icc 7.0 and 7.1 complain thusly:
4347 # icc: Command line warning: ignoring option '-M'; no argument required
4348 # The diagnosis changed in icc 8.0:
4349 # icc: Command line remark: option '-MP' not supported
4350 if (grep 'ignoring option' conftest.err ||
4351 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4352 am_cv_CCAS_dependencies_compiler_type=$depmode
4361 am_cv_CCAS_dependencies_compiler_type=none
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4366 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4367 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4370 test "x$enable_dependency_tracking" != xno \
4371 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4372 am__fastdepCCAS_TRUE=
4373 am__fastdepCCAS_FALSE='#'
4375 am__fastdepCCAS_TRUE='#'
4376 am__fastdepCCAS_FALSE=
4380 if test "x$CC" != xcc; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4382 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4385 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4387 set dummy $CC; ac_cc=`$as_echo "$2" |
4388 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4389 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4390 $as_echo_n "(cached) " >&6
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4403 # Make sure it works both with $CC and with simple cc.
4404 # We do the test twice because some compilers refuse to overwrite an
4405 # existing .o file with -o, though they will create one.
4406 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4408 if { { case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413 $as_echo "$ac_try_echo"; } >&5
4414 (eval "$ac_try") 2>&5
4416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417 test $ac_status = 0; } &&
4418 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_try") 2>&5
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; };
4429 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4430 if test "x$CC" != xcc; then
4431 # Test first that cc exists at all.
4432 if { ac_try='cc -c conftest.$ac_ext >&5'
4433 { { 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; }; }; then
4443 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4445 if { { case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451 (eval "$ac_try") 2>&5
4453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454 test $ac_status = 0; } &&
4455 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_try") 2>&5
4463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464 test $ac_status = 0; };
4469 # cc exists but doesn't like -o.
4470 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4475 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4477 rm -f core conftest*
4480 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4487 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4491 # FIXME: we rely on the cache variable name because
4492 # there is no other way.
4494 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4495 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4496 if test "$am_t" != yes; then
4497 # Losing compiler, so override with the script.
4498 # FIXME: It is wrong to rewrite CC.
4499 # But if we don't then we get into trouble of one sort or another.
4500 # A longer-term fix would be to have automake use am__CC in this case,
4501 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4502 CC="$am_aux_dir/compile $CC"
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4509 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4514 macro_version='2.4.2'
4515 macro_revision='1.3337'
4529 ltmain="$ac_aux_dir/ltmain.sh"
4531 # Backslashify metacharacters that are still active within
4532 # double-quoted strings.
4533 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4535 # Same as above, but do not quote variable references.
4536 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4538 # Sed substitution to delay expansion of an escaped shell variable in a
4539 # double_quote_subst'ed string.
4540 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4542 # Sed substitution to delay expansion of an escaped single quote.
4543 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4545 # Sed substitution to avoid accidental globbing in evaled expressions
4546 no_glob_subst='s/\*/\\\*/g'
4548 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4549 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4550 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4553 $as_echo_n "checking how to print strings... " >&6; }
4554 # Test print first, because it will be a builtin if present.
4555 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4556 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4558 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4561 # Use this function as a fallback that always works.
4562 func_fallback_echo ()
4564 eval 'cat <<_LTECHO_EOF
4568 ECHO='func_fallback_echo'
4571 # func_echo_all arg...
4572 # Invoke $ECHO with all args, space-separated.
4579 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4580 $as_echo "printf" >&6; } ;;
4581 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4582 $as_echo "print -r" >&6; } ;;
4583 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4584 $as_echo "cat" >&6; } ;;
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4601 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4602 if ${ac_cv_path_SED+:} false; then :
4603 $as_echo_n "(cached) " >&6
4605 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4606 for ac_i in 1 2 3 4 5 6 7; do
4607 ac_script="$ac_script$as_nl$ac_script"
4609 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4610 { ac_script=; unset ac_script;}
4611 if test -z "$SED"; then
4612 ac_path_SED_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_prog in sed gsed; do
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4622 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4623 # Check for GNU ac_path_SED and select it if it is found.
4624 # Check for GNU $ac_path_SED
4625 case `"$ac_path_SED" --version 2>&1` in
4627 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4630 $as_echo_n 0123456789 >"conftest.in"
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 $as_echo '' >> "conftest.nl"
4637 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639 as_fn_arith $ac_count + 1 && ac_count=$as_val
4640 if test $ac_count -gt ${ac_path_SED_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_SED="$ac_path_SED"
4643 ac_path_SED_max=$ac_count
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 $ac_path_SED_found && break 3
4656 if test -z "$ac_cv_path_SED"; then
4657 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4665 $as_echo "$ac_cv_path_SED" >&6; }
4666 SED="$ac_cv_path_SED"
4669 test -z "$SED" && SED=sed
4670 Xsed="$SED -e 1s/^X//"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4683 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4684 if ${ac_cv_path_GREP+:} false; then :
4685 $as_echo_n "(cached) " >&6
4687 if test -z "$GREP"; then
4688 ac_path_GREP_found=false
4689 # Loop through the user's path and test for each of PROGNAME-LIST
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 test -z "$as_dir" && as_dir=.
4695 for ac_prog in grep ggrep; do
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4698 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4699 # Check for GNU ac_path_GREP and select it if it is found.
4700 # Check for GNU $ac_path_GREP
4701 case `"$ac_path_GREP" --version 2>&1` in
4703 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4706 $as_echo_n 0123456789 >"conftest.in"
4709 cat "conftest.in" "conftest.in" >"conftest.tmp"
4710 mv "conftest.tmp" "conftest.in"
4711 cp "conftest.in" "conftest.nl"
4712 $as_echo 'GREP' >> "conftest.nl"
4713 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4715 as_fn_arith $ac_count + 1 && ac_count=$as_val
4716 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4717 # Best one so far, save it but keep looking for a better one
4718 ac_cv_path_GREP="$ac_path_GREP"
4719 ac_path_GREP_max=$ac_count
4721 # 10*(2^10) chars as input seems more than enough
4722 test $ac_count -gt 10 && break
4724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727 $ac_path_GREP_found && break 3
4732 if test -z "$ac_cv_path_GREP"; then
4733 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 ac_cv_path_GREP=$GREP
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4741 $as_echo "$ac_cv_path_GREP" >&6; }
4742 GREP="$ac_cv_path_GREP"
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4746 $as_echo_n "checking for egrep... " >&6; }
4747 if ${ac_cv_path_EGREP+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4751 then ac_cv_path_EGREP="$GREP -E"
4753 if test -z "$EGREP"; then
4754 ac_path_EGREP_found=false
4755 # Loop through the user's path and test for each of PROGNAME-LIST
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760 test -z "$as_dir" && as_dir=.
4761 for ac_prog in egrep; do
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4764 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4765 # Check for GNU ac_path_EGREP and select it if it is found.
4766 # Check for GNU $ac_path_EGREP
4767 case `"$ac_path_EGREP" --version 2>&1` in
4769 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4772 $as_echo_n 0123456789 >"conftest.in"
4775 cat "conftest.in" "conftest.in" >"conftest.tmp"
4776 mv "conftest.tmp" "conftest.in"
4777 cp "conftest.in" "conftest.nl"
4778 $as_echo 'EGREP' >> "conftest.nl"
4779 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4781 as_fn_arith $ac_count + 1 && ac_count=$as_val
4782 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4783 # Best one so far, save it but keep looking for a better one
4784 ac_cv_path_EGREP="$ac_path_EGREP"
4785 ac_path_EGREP_max=$ac_count
4787 # 10*(2^10) chars as input seems more than enough
4788 test $ac_count -gt 10 && break
4790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4793 $ac_path_EGREP_found && break 3
4798 if test -z "$ac_cv_path_EGREP"; then
4799 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4802 ac_cv_path_EGREP=$EGREP
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4808 $as_echo "$ac_cv_path_EGREP" >&6; }
4809 EGREP="$ac_cv_path_EGREP"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4813 $as_echo_n "checking for fgrep... " >&6; }
4814 if ${ac_cv_path_FGREP+:} false; then :
4815 $as_echo_n "(cached) " >&6
4817 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4818 then ac_cv_path_FGREP="$GREP -F"
4820 if test -z "$FGREP"; then
4821 ac_path_FGREP_found=false
4822 # Loop through the user's path and test for each of PROGNAME-LIST
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4827 test -z "$as_dir" && as_dir=.
4828 for ac_prog in fgrep; do
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4831 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4832 # Check for GNU ac_path_FGREP and select it if it is found.
4833 # Check for GNU $ac_path_FGREP
4834 case `"$ac_path_FGREP" --version 2>&1` in
4836 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4839 $as_echo_n 0123456789 >"conftest.in"
4842 cat "conftest.in" "conftest.in" >"conftest.tmp"
4843 mv "conftest.tmp" "conftest.in"
4844 cp "conftest.in" "conftest.nl"
4845 $as_echo 'FGREP' >> "conftest.nl"
4846 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4847 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4848 as_fn_arith $ac_count + 1 && ac_count=$as_val
4849 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4850 # Best one so far, save it but keep looking for a better one
4851 ac_cv_path_FGREP="$ac_path_FGREP"
4852 ac_path_FGREP_max=$ac_count
4854 # 10*(2^10) chars as input seems more than enough
4855 test $ac_count -gt 10 && break
4857 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 $ac_path_FGREP_found && break 3
4865 if test -z "$ac_cv_path_FGREP"; then
4866 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869 ac_cv_path_FGREP=$FGREP
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4875 $as_echo "$ac_cv_path_FGREP" >&6; }
4876 FGREP="$ac_cv_path_FGREP"
4879 test -z "$GREP" && GREP=grep
4899 # Check whether --with-gnu-ld was given.
4900 if test "${with_gnu_ld+set}" = set; then :
4901 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4907 if test "$GCC" = yes; then
4908 # Check if gcc -print-prog-name=ld gives a path.
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4910 $as_echo_n "checking for ld used by $CC... " >&6; }
4913 # gcc leaves a trailing carriage return which upsets mingw
4914 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4916 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4919 # Accept absolute paths.
4921 re_direlt='/[^/][^/]*/\.\./'
4922 # Canonicalize the pathname of ld
4923 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4924 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4925 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4927 test -z "$LD" && LD="$ac_prog"
4930 # If it fails, then pretend we aren't using GCC.
4934 # If it is relative, then search for the first ld in PATH.
4938 elif test "$with_gnu_ld" = yes; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4940 $as_echo_n "checking for GNU ld... " >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4943 $as_echo_n "checking for non-GNU ld... " >&6; }
4945 if ${lt_cv_path_LD+:} false; then :
4946 $as_echo_n "(cached) " >&6
4948 if test -z "$LD"; then
4949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4950 for ac_dir in $PATH; do
4952 test -z "$ac_dir" && ac_dir=.
4953 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4954 lt_cv_path_LD="$ac_dir/$ac_prog"
4955 # Check to see if the program is GNU ld. I'd rather use --version,
4956 # but apparently some variants of GNU ld only accept -v.
4957 # Break only if it was the GNU/non-GNU ld that we prefer.
4958 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4959 *GNU* | *'with BFD'*)
4960 test "$with_gnu_ld" != no && break
4963 test "$with_gnu_ld" != yes && break
4970 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4975 if test -n "$LD"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4977 $as_echo "$LD" >&6; }
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4982 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4984 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4985 if ${lt_cv_prog_gnu_ld+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4989 case `$LD -v 2>&1 </dev/null` in
4990 *GNU* | *'with BFD'*)
4991 lt_cv_prog_gnu_ld=yes
4994 lt_cv_prog_gnu_ld=no
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4999 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5000 with_gnu_ld=$lt_cv_prog_gnu_ld
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5011 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5012 if ${lt_cv_path_NM+:} false; then :
5013 $as_echo_n "(cached) " >&6
5015 if test -n "$NM"; then
5016 # Let the user override the test.
5019 lt_nm_to_check="${ac_tool_prefix}nm"
5020 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5021 lt_nm_to_check="$lt_nm_to_check nm"
5023 for lt_tmp_nm in $lt_nm_to_check; do
5024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5025 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5027 test -z "$ac_dir" && ac_dir=.
5028 tmp_nm="$ac_dir/$lt_tmp_nm"
5029 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5030 # Check to see if the nm accepts a BSD-compat flag.
5031 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5032 # nm: unknown option "B" ignored
5033 # Tru64's nm complains that /dev/null is an invalid object file
5034 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5035 */dev/null* | *'Invalid file or object type'*)
5036 lt_cv_path_NM="$tmp_nm -B"
5040 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5042 lt_cv_path_NM="$tmp_nm -p"
5046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5047 continue # so that we can try to find one that supports BSD flags
5056 : ${lt_cv_path_NM=no}
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5060 $as_echo "$lt_cv_path_NM" >&6; }
5061 if test "$lt_cv_path_NM" != "no"; then
5064 # Didn't find any BSD compatible name lister, look for dumpbin.
5065 if test -n "$DUMPBIN"; then :
5066 # Let the user override the test.
5068 if test -n "$ac_tool_prefix"; then
5069 for ac_prog in dumpbin "link -dump"
5071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_DUMPBIN+:} false; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -n "$DUMPBIN"; then
5079 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 DUMPBIN=$ac_cv_prog_DUMPBIN
5099 if test -n "$DUMPBIN"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5101 $as_echo "$DUMPBIN" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 test -n "$DUMPBIN" && break
5111 if test -z "$DUMPBIN"; then
5112 ac_ct_DUMPBIN=$DUMPBIN
5113 for ac_prog in dumpbin "link -dump"
5115 # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy $ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 if test -n "$ac_ct_DUMPBIN"; then
5123 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5143 if test -n "$ac_ct_DUMPBIN"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5145 $as_echo "$ac_ct_DUMPBIN" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 test -n "$ac_ct_DUMPBIN" && break
5155 if test "x$ac_ct_DUMPBIN" = x; then
5158 case $cross_compiling:$ac_tool_warned in
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5164 DUMPBIN=$ac_ct_DUMPBIN
5168 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5170 DUMPBIN="$DUMPBIN -symbols"
5178 if test "$DUMPBIN" != ":"; then
5182 test -z "$NM" && NM=nm
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5190 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5191 if ${lt_cv_nm_interface+:} false; then :
5192 $as_echo_n "(cached) " >&6
5194 lt_cv_nm_interface="BSD nm"
5195 echo "int some_variable = 0;" > conftest.$ac_ext
5196 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5197 (eval "$ac_compile" 2>conftest.err)
5198 cat conftest.err >&5
5199 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5200 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5201 cat conftest.err >&5
5202 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5203 cat conftest.out >&5
5204 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5205 lt_cv_nm_interface="MS dumpbin"
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5210 $as_echo "$lt_cv_nm_interface" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5213 $as_echo_n "checking whether ln -s works... " >&6; }
5215 if test "$LN_S" = "ln -s"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5217 $as_echo "yes" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5220 $as_echo "no, using $LN_S" >&6; }
5223 # find the maximum length of command line arguments
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5225 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5226 if ${lt_cv_sys_max_cmd_len+:} false; then :
5227 $as_echo_n "(cached) " >&6
5234 # On DJGPP, this test can blow up pretty badly due to problems in libc
5235 # (any single argument exceeding 2000 bytes causes a buffer overrun
5236 # during glob expansion). Even if it were fixed, the result of this
5237 # check would be larger than it should be.
5238 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5242 # Under GNU Hurd, this test is not required because there is
5243 # no limit to the length of command line arguments.
5244 # Libtool will interpret -1 as no limit whatsoever
5245 lt_cv_sys_max_cmd_len=-1;
5248 cygwin* | mingw* | cegcc*)
5249 # On Win9x/ME, this test blows up -- it succeeds, but takes
5250 # about 5 minutes as the teststring grows exponentially.
5251 # Worse, since 9x/ME are not pre-emptively multitasking,
5252 # you end up with a "frozen" computer, even though with patience
5253 # the test eventually succeeds (with a max line length of 256k).
5254 # Instead, let's just punt: use the minimum linelength reported by
5255 # all of the supported platforms: 8192 (on NT/2K/XP).
5256 lt_cv_sys_max_cmd_len=8192;
5260 # On MiNT this can take a long time and run out of memory.
5261 lt_cv_sys_max_cmd_len=8192;
5265 # On AmigaOS with pdksh, this test takes hours, literally.
5266 # So we just punt and use a minimum line length of 8192.
5267 lt_cv_sys_max_cmd_len=8192;
5270 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5271 # This has been around since 386BSD, at least. Likely further.
5272 if test -x /sbin/sysctl; then
5273 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5274 elif test -x /usr/sbin/sysctl; then
5275 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5277 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5279 # And add a safety zone
5280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5285 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5286 lt_cv_sys_max_cmd_len=196608
5290 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5291 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5292 # nice to cause kernel panics so lets avoid the loop below.
5293 # First set a reasonable default.
5294 lt_cv_sys_max_cmd_len=16384
5296 if test -x /sbin/sysconfig; then
5297 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5298 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5303 lt_cv_sys_max_cmd_len=102400
5305 sysv5* | sco5v6* | sysv4.2uw2*)
5306 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5307 if test -n "$kargmax"; then
5308 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5310 lt_cv_sys_max_cmd_len=32768
5314 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5315 if test -n "$lt_cv_sys_max_cmd_len"; then
5316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5319 # Make teststring a little bigger before we do anything with it.
5320 # a 1K string should be a reasonable start.
5321 for i in 1 2 3 4 5 6 7 8 ; do
5322 teststring=$teststring$teststring
5324 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5325 # If test is not a shell built-in, we'll probably end up computing a
5326 # maximum length that is only half of the actual maximum length, but
5328 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5329 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5330 test $i != 17 # 1/2 MB should be enough
5333 teststring=$teststring$teststring
5335 # Only check the string length outside the loop.
5336 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5338 # Add a significant safety factor because C++ compilers can tack on
5339 # massive amounts of additional arguments before passing them to the
5340 # linker. It appears as though 1/2 is a usable value.
5341 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5348 if test -n $lt_cv_sys_max_cmd_len ; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5350 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5353 $as_echo "none" >&6; }
5355 max_cmd_len=$lt_cv_sys_max_cmd_len
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5367 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5368 # Try some XSI features
5371 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5373 && eval 'test $(( 1 + 1 )) -eq 2 \
5374 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5377 $as_echo "$xsi_shell" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5381 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5383 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5385 && lt_shell_append=yes
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5387 $as_echo "$lt_shell_append" >&6; }
5390 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5400 # test EBCDIC or ASCII
5401 case `echo X|tr X '\101'` in
5402 A) # ASCII based system
5403 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5404 lt_SP2NL='tr \040 \012'
5405 lt_NL2SP='tr \015\012 \040\040'
5407 *) # EBCDIC based system
5408 lt_SP2NL='tr \100 \n'
5409 lt_NL2SP='tr \r\n \100\100'
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5422 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5423 if ${lt_cv_to_host_file_cmd+:} false; then :
5424 $as_echo_n "(cached) " >&6
5429 *-*-mingw* ) # actually msys
5430 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5433 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5435 * ) # otherwise, assume *nix
5436 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5442 *-*-mingw* ) # actually msys
5443 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5446 lt_cv_to_host_file_cmd=func_convert_file_noop
5448 * ) # otherwise, assume *nix
5449 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5453 * ) # unhandled hosts (and "normal" native builds)
5454 lt_cv_to_host_file_cmd=func_convert_file_noop
5460 to_host_file_cmd=$lt_cv_to_host_file_cmd
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5462 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5469 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5470 if ${lt_cv_to_tool_file_cmd+:} false; then :
5471 $as_echo_n "(cached) " >&6
5473 #assume ordinary cross tools, or native build.
5474 lt_cv_to_tool_file_cmd=func_convert_file_noop
5478 *-*-mingw* ) # actually msys
5479 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5487 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5489 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5496 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5497 if ${lt_cv_ld_reload_flag+:} false; then :
5498 $as_echo_n "(cached) " >&6
5500 lt_cv_ld_reload_flag='-r'
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5503 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5504 reload_flag=$lt_cv_ld_reload_flag
5505 case $reload_flag in
5507 *) reload_flag=" $reload_flag" ;;
5509 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5511 cygwin* | mingw* | pw32* | cegcc*)
5512 if test "$GCC" != yes; then
5517 if test "$GCC" = yes; then
5518 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5520 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5533 if test -n "$ac_tool_prefix"; then
5534 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5535 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_OBJDUMP+:} false; then :
5539 $as_echo_n "(cached) " >&6
5541 if test -n "$OBJDUMP"; then
5542 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 OBJDUMP=$ac_cv_prog_OBJDUMP
5562 if test -n "$OBJDUMP"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5564 $as_echo "$OBJDUMP" >&6; }
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5572 if test -z "$ac_cv_prog_OBJDUMP"; then
5573 ac_ct_OBJDUMP=$OBJDUMP
5574 # Extract the first word of "objdump", so it can be a program name with args.
5575 set dummy objdump; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5579 $as_echo_n "(cached) " >&6
5581 if test -n "$ac_ct_OBJDUMP"; then
5582 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5602 if test -n "$ac_ct_OBJDUMP"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5604 $as_echo "$ac_ct_OBJDUMP" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5610 if test "x$ac_ct_OBJDUMP" = x; then
5613 case $cross_compiling:$ac_tool_warned in
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5617 ac_tool_warned=yes ;;
5619 OBJDUMP=$ac_ct_OBJDUMP
5622 OBJDUMP="$ac_cv_prog_OBJDUMP"
5625 test -z "$OBJDUMP" && OBJDUMP=objdump
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5636 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5637 if ${lt_cv_deplibs_check_method+:} false; then :
5638 $as_echo_n "(cached) " >&6
5640 lt_cv_file_magic_cmd='$MAGIC_CMD'
5641 lt_cv_file_magic_test_file=
5642 lt_cv_deplibs_check_method='unknown'
5643 # Need to set the preceding variable on all platforms that support
5644 # interlibrary dependencies.
5645 # 'none' -- dependencies not supported.
5646 # `unknown' -- same as none, but documents that we really don't know.
5647 # 'pass_all' -- all dependencies passed with no checks.
5648 # 'test_compile' -- check by making test program.
5649 # 'file_magic [[regex]]' -- check by looking for files in library path
5650 # which responds to the $file_magic_cmd with a given extended regex.
5651 # If you have `file' or equivalent on your system and you're not sure
5652 # whether `pass_all' will *always* work, you probably want this one.
5656 lt_cv_deplibs_check_method=pass_all
5660 lt_cv_deplibs_check_method=pass_all
5664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5665 lt_cv_file_magic_cmd='/usr/bin/file -L'
5666 lt_cv_file_magic_test_file=/shlib/libc.so
5670 # func_win32_libid is a shell function defined in ltmain.sh
5671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5672 lt_cv_file_magic_cmd='func_win32_libid'
5676 # Base MSYS/MinGW do not provide the 'file' command needed by
5677 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5678 # unless we find 'file', for example because we are cross-compiling.
5679 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5680 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5681 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5682 lt_cv_file_magic_cmd='func_win32_libid'
5684 # Keep this pattern in sync with the one in func_win32_libid.
5685 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5686 lt_cv_file_magic_cmd='$OBJDUMP -f'
5691 # use the weaker test based on 'objdump'. See mingw*.
5692 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5693 lt_cv_file_magic_cmd='$OBJDUMP -f'
5696 darwin* | rhapsody*)
5697 lt_cv_deplibs_check_method=pass_all
5700 freebsd* | dragonfly*)
5701 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5704 # Not sure whether the presence of OpenBSD here was a mistake.
5705 # Let's accept both of them until this is cleared up.
5706 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5707 lt_cv_file_magic_cmd=/usr/bin/file
5708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5712 lt_cv_deplibs_check_method=pass_all
5717 lt_cv_deplibs_check_method=pass_all
5721 lt_cv_deplibs_check_method=pass_all
5724 hpux10.20* | hpux11*)
5725 lt_cv_file_magic_cmd=/usr/bin/file
5728 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5729 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5732 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]'
5733 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5736 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5737 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5743 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5747 irix5* | irix6* | nonstopux*)
5749 *-32|*"-32 ") libmagic=32-bit;;
5750 *-n32|*"-n32 ") libmagic=N32;;
5751 *-64|*"-64 ") libmagic=64-bit;;
5752 *) libmagic=never-match;;
5754 lt_cv_deplibs_check_method=pass_all
5757 # This must be Linux ELF.
5758 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5759 lt_cv_deplibs_check_method=pass_all
5763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5764 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5771 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5772 lt_cv_file_magic_cmd=/usr/bin/file
5773 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5777 lt_cv_deplibs_check_method=pass_all
5781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5788 osf3* | osf4* | osf5*)
5789 lt_cv_deplibs_check_method=pass_all
5793 lt_cv_deplibs_check_method=pass_all
5797 lt_cv_deplibs_check_method=pass_all
5800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5801 lt_cv_deplibs_check_method=pass_all
5805 case $host_vendor in
5807 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]'
5808 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5811 lt_cv_deplibs_check_method=pass_all
5814 lt_cv_file_magic_cmd='/bin/file'
5815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5818 lt_cv_file_magic_cmd='/bin/file'
5819 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5820 lt_cv_file_magic_test_file=/lib/libc.so
5823 lt_cv_deplibs_check_method=pass_all
5826 lt_cv_deplibs_check_method=pass_all
5832 lt_cv_deplibs_check_method=pass_all
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5838 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5842 if test "$build" = "$host"; then
5845 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5848 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5854 file_magic_cmd=$lt_cv_file_magic_cmd
5855 deplibs_check_method=$lt_cv_deplibs_check_method
5856 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_DLLTOOL+:} false; then :
5885 $as_echo_n "(cached) " >&6
5887 if test -n "$DLLTOOL"; then
5888 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5897 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 DLLTOOL=$ac_cv_prog_DLLTOOL
5908 if test -n "$DLLTOOL"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5910 $as_echo "$DLLTOOL" >&6; }
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5918 if test -z "$ac_cv_prog_DLLTOOL"; then
5919 ac_ct_DLLTOOL=$DLLTOOL
5920 # Extract the first word of "dlltool", so it can be a program name with args.
5921 set dummy dlltool; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5925 $as_echo_n "(cached) " >&6
5927 if test -n "$ac_ct_DLLTOOL"; then
5928 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5948 if test -n "$ac_ct_DLLTOOL"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5950 $as_echo "$ac_ct_DLLTOOL" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5956 if test "x$ac_ct_DLLTOOL" = x; then
5959 case $cross_compiling:$ac_tool_warned in
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5965 DLLTOOL=$ac_ct_DLLTOOL
5968 DLLTOOL="$ac_cv_prog_DLLTOOL"
5971 test -z "$DLLTOOL" && DLLTOOL=dlltool
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5983 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5984 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5985 $as_echo_n "(cached) " >&6
5987 lt_cv_sharedlib_from_linklib_cmd='unknown'
5990 cygwin* | mingw* | pw32* | cegcc*)
5991 # two different shell functions defined in ltmain.sh
5992 # decide which to use based on capabilities of $DLLTOOL
5993 case `$DLLTOOL --help 2>&1` in
5994 *--identify-strict*)
5995 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5998 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6003 # fallback: assume linklib IS sharedlib
6004 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6010 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6011 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6012 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6021 if test -n "$ac_tool_prefix"; then
6024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if ${ac_cv_prog_AR+:} false; then :
6029 $as_echo_n "(cached) " >&6
6031 if test -n "$AR"; then
6032 ac_cv_prog_AR="$AR" # Let the user override the test.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 if test -n "$AR"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6054 $as_echo "$AR" >&6; }
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6061 test -n "$AR" && break
6064 if test -z "$AR"; then
6068 # Extract the first word of "$ac_prog", so it can be a program name with args.
6069 set dummy $ac_prog; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6073 $as_echo_n "(cached) " >&6
6075 if test -n "$ac_ct_AR"; then
6076 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_ac_ct_AR="$ac_prog"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6096 if test -n "$ac_ct_AR"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6098 $as_echo "$ac_ct_AR" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6105 test -n "$ac_ct_AR" && break
6108 if test "x$ac_ct_AR" = x; then
6111 case $cross_compiling:$ac_tool_warned in
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6135 $as_echo_n "checking for archiver @FILE support... " >&6; }
6136 if ${lt_cv_ar_at_file+:} false; then :
6137 $as_echo_n "(cached) " >&6
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6151 if ac_fn_c_try_compile "$LINENO"; then :
6152 echo conftest.$ac_objext > conftest.lst
6153 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6155 (eval $lt_ar_try) 2>&5
6157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6158 test $ac_status = 0; }
6159 if test "$ac_status" -eq 0; then
6160 # Ensure the archiver fails upon bogus file names.
6161 rm -f conftest.$ac_objext libconftest.a
6162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6163 (eval $lt_ar_try) 2>&5
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }
6167 if test "$ac_status" -ne 0; then
6171 rm -f conftest.* libconftest.a
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6178 $as_echo "$lt_cv_ar_at_file" >&6; }
6180 if test "x$lt_cv_ar_at_file" = xno; then
6183 archiver_list_spec=$lt_cv_ar_at_file
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}strip; ac_word=$2
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if ${ac_cv_prog_STRIP+:} false; then :
6198 $as_echo_n "(cached) " >&6
6200 if test -n "$STRIP"; then
6201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 STRIP=$ac_cv_prog_STRIP
6221 if test -n "$STRIP"; then
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6223 $as_echo "$STRIP" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 $as_echo "no" >&6; }
6231 if test -z "$ac_cv_prog_STRIP"; then
6233 # Extract the first word of "strip", so it can be a program name with args.
6234 set dummy strip; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6238 $as_echo_n "(cached) " >&6
6240 if test -n "$ac_ct_STRIP"; then
6241 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_STRIP="strip"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6261 if test -n "$ac_ct_STRIP"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6263 $as_echo "$ac_ct_STRIP" >&6; }
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6269 if test "x$ac_ct_STRIP" = x; then
6272 case $cross_compiling:$ac_tool_warned in
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6281 STRIP="$ac_cv_prog_STRIP"
6284 test -z "$STRIP" && STRIP=:
6291 if test -n "$ac_tool_prefix"; then
6292 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6293 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_RANLIB+:} false; then :
6297 $as_echo_n "(cached) " >&6
6299 if test -n "$RANLIB"; then
6300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 RANLIB=$ac_cv_prog_RANLIB
6320 if test -n "$RANLIB"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6322 $as_echo "$RANLIB" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6330 if test -z "$ac_cv_prog_RANLIB"; then
6331 ac_ct_RANLIB=$RANLIB
6332 # Extract the first word of "ranlib", so it can be a program name with args.
6333 set dummy ranlib; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6337 $as_echo_n "(cached) " >&6
6339 if test -n "$ac_ct_RANLIB"; then
6340 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_ac_ct_RANLIB="ranlib"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6360 if test -n "$ac_ct_RANLIB"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6362 $as_echo "$ac_ct_RANLIB" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6368 if test "x$ac_ct_RANLIB" = x; then
6371 case $cross_compiling:$ac_tool_warned in
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6377 RANLIB=$ac_ct_RANLIB
6380 RANLIB="$ac_cv_prog_RANLIB"
6383 test -z "$RANLIB" && RANLIB=:
6390 # Determine commands to create old-style static archives.
6391 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6392 old_postinstall_cmds='chmod 644 $oldlib'
6393 old_postuninstall_cmds=
6395 if test -n "$RANLIB"; then
6398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6404 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6409 lock_old_archive_extraction=yes ;;
6411 lock_old_archive_extraction=no ;;
6452 # If no C compiler was specified, use CC.
6455 # If no C compiler flags were specified, use CFLAGS.
6456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6458 # Allow CC to be a program name with arguments.
6462 # Check for command to grab the raw symbol name followed by C symbol from nm.
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6464 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6465 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6466 $as_echo_n "(cached) " >&6
6469 # These are sane defaults that work on at least a few old systems.
6470 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6472 # Character class describing NM global symbol codes.
6473 symcode='[BCDEGRST]'
6475 # Regexp to match symbols that can be accessed directly from C.
6476 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6478 # Define system-specific variables.
6483 cygwin* | mingw* | pw32* | cegcc*)
6484 symcode='[ABCDGISTW]'
6487 if test "$host_cpu" = ia64; then
6488 symcode='[ABCDEGRST]'
6492 symcode='[BCDEGRST]'
6495 symcode='[BCDEGQRST]'
6506 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6514 # If we're using GNU nm, then use its standard symbol codes.
6515 case `$NM -V 2>&1` in
6516 *GNU* | *'with BFD'*)
6517 symcode='[ABCDGIRSTW]' ;;
6520 # Transform an extracted symbol line into a proper C declaration.
6521 # Some systems (esp. on ia64) link data and code symbols differently,
6522 # so use this general approach.
6523 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6525 # Transform an extracted symbol line into symbol name and symbol address
6526 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6527 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'"
6529 # Handle CRLF in mingw tool chain
6533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6537 # Try without a prefix underscore, then with it.
6538 for ac_symprfx in "" "_"; do
6540 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6541 symxfrm="\\1 $ac_symprfx\\2 \\2"
6543 # Write the raw and C identifiers.
6544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6545 # Fake it for dumpbin and say T for any non-static function
6546 # and D for any global variable.
6547 # Also find C++ and __fastcall symbols from MSVC++,
6548 # which start with @ or ?.
6549 lt_cv_sys_global_symbol_pipe="$AWK '"\
6550 " {last_section=section; section=\$ 3};"\
6551 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6552 " \$ 0!~/External *\|/{next};"\
6553 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6554 " {if(hide[section]) next};"\
6555 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6556 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6557 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6558 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6559 " ' prfx=^$ac_symprfx"
6561 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6563 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6565 # Check to see that the pipe works correctly.
6569 cat > conftest.$ac_ext <<_LT_EOF
6574 void nm_test_func(void);
6575 void nm_test_func(void){}
6579 int main(){nm_test_var='a';nm_test_func();return(0);}
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6583 (eval $ac_compile) 2>&5
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; }; then
6587 # Now try to grab the symbols.
6589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6590 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593 test $ac_status = 0; } && test -s "$nlist"; then
6594 # Try sorting and uniquifying the output.
6595 if sort "$nlist" | uniq > "$nlist"T; then
6596 mv -f "$nlist"T "$nlist"
6601 # Make sure that we snagged all the symbols we need.
6602 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6603 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6604 cat <<_LT_EOF > conftest.$ac_ext
6605 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6606 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6607 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6608 relocations are performed -- see ld's documentation on pseudo-relocs. */
6609 # define LT_DLSYM_CONST
6610 #elif defined(__osf__)
6611 /* This system does not cope well with relocations in const data. */
6612 # define LT_DLSYM_CONST
6614 # define LT_DLSYM_CONST const
6622 # Now generate the symbol file.
6623 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6625 cat <<_LT_EOF >> conftest.$ac_ext
6627 /* The mapping between symbol names and symbols. */
6628 LT_DLSYM_CONST struct {
6632 lt__PROGRAM__LTX_preloaded_symbols[] =
6634 { "@PROGRAM@", (void *) 0 },
6636 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6637 cat <<\_LT_EOF >> conftest.$ac_ext
6641 /* This works around a problem in FreeBSD linker */
6642 #ifdef FREEBSD_WORKAROUND
6643 static const void *lt_preloaded_setup() {
6644 return lt__PROGRAM__LTX_preloaded_symbols;
6652 # Now try linking the two files.
6653 mv conftest.$ac_objext conftstm.$ac_objext
6654 lt_globsym_save_LIBS=$LIBS
6655 lt_globsym_save_CFLAGS=$CFLAGS
6656 LIBS="conftstm.$ac_objext"
6657 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6659 (eval $ac_link) 2>&5
6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6665 LIBS=$lt_globsym_save_LIBS
6666 CFLAGS=$lt_globsym_save_CFLAGS
6668 echo "cannot find nm_test_func in $nlist" >&5
6671 echo "cannot find nm_test_var in $nlist" >&5
6674 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6677 echo "$progname: failed program was:" >&5
6678 cat conftest.$ac_ext >&5
6680 rm -rf conftest* conftst*
6682 # Do not use the global_symbol_pipe unless it works.
6683 if test "$pipe_works" = yes; then
6686 lt_cv_sys_global_symbol_pipe=
6692 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6693 lt_cv_sys_global_symbol_to_cdecl=
6695 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6697 $as_echo "failed" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6700 $as_echo "ok" >&6; }
6703 # Response file support.
6704 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6705 nm_file_list_spec='@'
6706 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6707 nm_file_list_spec='@'
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6737 $as_echo_n "checking for sysroot... " >&6; }
6739 # Check whether --with-sysroot was given.
6740 if test "${with_sysroot+set}" = set; then :
6741 withval=$with_sysroot;
6748 case ${with_sysroot} in #(
6750 if test "$GCC" = yes; then
6751 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6755 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6761 $as_echo "${with_sysroot}" >&6; }
6762 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6767 $as_echo "${lt_sysroot:-no}" >&6; }
6773 # Check whether --enable-libtool-lock was given.
6774 if test "${enable_libtool_lock+set}" = set; then :
6775 enableval=$enable_libtool_lock;
6778 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6780 # Some flags need to be propagated to the compiler or linker for good
6784 # Find out which ABI we are using.
6785 echo 'int i;' > conftest.$ac_ext
6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6787 (eval $ac_compile) 2>&5
6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790 test $ac_status = 0; }; then
6791 case `/usr/bin/file conftest.$ac_objext` in
6803 # Find out which ABI we are using.
6804 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6806 (eval $ac_compile) 2>&5
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; }; then
6810 if test "$lt_cv_prog_gnu_ld" = yes; then
6811 case `/usr/bin/file conftest.$ac_objext` in
6813 LD="${LD-ld} -melf32bsmip"
6816 LD="${LD-ld} -melf32bmipn32"
6819 LD="${LD-ld} -melf64bmip"
6823 case `/usr/bin/file conftest.$ac_objext` in
6839 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6840 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6841 # Find out which ABI we are using.
6842 echo 'int i;' > conftest.$ac_ext
6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6844 (eval $ac_compile) 2>&5
6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6847 test $ac_status = 0; }; then
6848 case `/usr/bin/file conftest.o` in
6851 x86_64-*kfreebsd*-gnu)
6852 LD="${LD-ld} -m elf_i386_fbsd"
6855 case `/usr/bin/file conftest.o` in
6857 LD="${LD-ld} -m elf32_x86_64"
6860 LD="${LD-ld} -m elf_i386"
6864 ppc64-*linux*|powerpc64-*linux*)
6865 LD="${LD-ld} -m elf32ppclinux"
6868 LD="${LD-ld} -m elf_s390"
6871 LD="${LD-ld} -m elf32_sparc"
6877 x86_64-*kfreebsd*-gnu)
6878 LD="${LD-ld} -m elf_x86_64_fbsd"
6881 LD="${LD-ld} -m elf_x86_64"
6883 ppc*-*linux*|powerpc*-*linux*)
6884 LD="${LD-ld} -m elf64ppc"
6886 s390*-*linux*|s390*-*tpf*)
6887 LD="${LD-ld} -m elf64_s390"
6890 LD="${LD-ld} -m elf64_sparc"
6900 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6901 SAVE_CFLAGS="$CFLAGS"
6902 CFLAGS="$CFLAGS -belf"
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6904 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6905 if ${lt_cv_cc_needs_belf+:} false; then :
6906 $as_echo_n "(cached) " >&6
6909 ac_cpp='$CPP $CPPFLAGS'
6910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6925 if ac_fn_c_try_link "$LINENO"; then :
6926 lt_cv_cc_needs_belf=yes
6928 lt_cv_cc_needs_belf=no
6930 rm -f core conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
6933 ac_cpp='$CPP $CPPFLAGS'
6934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6940 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6941 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6942 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6943 CFLAGS="$SAVE_CFLAGS"
6947 # Find out which ABI we are using.
6948 echo 'int i;' > conftest.$ac_ext
6949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6950 (eval $ac_compile) 2>&5
6952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953 test $ac_status = 0; }; then
6954 case `/usr/bin/file conftest.o` in
6956 case $lt_cv_prog_gnu_ld in
6957 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6959 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6971 need_locks="$enable_libtool_lock"
6973 if test -n "$ac_tool_prefix"; then
6974 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}mt; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6979 $as_echo_n "(cached) " >&6
6981 if test -n "$MANIFEST_TOOL"; then
6982 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7002 if test -n "$MANIFEST_TOOL"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7004 $as_echo "$MANIFEST_TOOL" >&6; }
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7012 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7013 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7014 # Extract the first word of "mt", so it can be a program name with args.
7015 set dummy mt; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7019 $as_echo_n "(cached) " >&6
7021 if test -n "$ac_ct_MANIFEST_TOOL"; then
7022 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7042 if test -n "$ac_ct_MANIFEST_TOOL"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7044 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7050 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7053 case $cross_compiling:$ac_tool_warned in
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7059 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7062 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7065 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7067 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7068 if ${lt_cv_path_mainfest_tool+:} false; then :
7069 $as_echo_n "(cached) " >&6
7071 lt_cv_path_mainfest_tool=no
7072 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7073 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7074 cat conftest.err >&5
7075 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7076 lt_cv_path_mainfest_tool=yes
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7081 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7082 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7092 rhapsody* | darwin*)
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7099 $as_echo_n "(cached) " >&6
7101 if test -n "$DSYMUTIL"; then
7102 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7122 if test -n "$DSYMUTIL"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7124 $as_echo "$DSYMUTIL" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7132 if test -z "$ac_cv_prog_DSYMUTIL"; then
7133 ac_ct_DSYMUTIL=$DSYMUTIL
7134 # Extract the first word of "dsymutil", so it can be a program name with args.
7135 set dummy dsymutil; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7139 $as_echo_n "(cached) " >&6
7141 if test -n "$ac_ct_DSYMUTIL"; then
7142 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7162 if test -n "$ac_ct_DSYMUTIL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7164 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7170 if test "x$ac_ct_DSYMUTIL" = x; then
7173 case $cross_compiling:$ac_tool_warned in
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7179 DSYMUTIL=$ac_ct_DSYMUTIL
7182 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_NMEDIT+:} false; then :
7191 $as_echo_n "(cached) " >&6
7193 if test -n "$NMEDIT"; then
7194 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 NMEDIT=$ac_cv_prog_NMEDIT
7214 if test -n "$NMEDIT"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7216 $as_echo "$NMEDIT" >&6; }
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7224 if test -z "$ac_cv_prog_NMEDIT"; then
7225 ac_ct_NMEDIT=$NMEDIT
7226 # Extract the first word of "nmedit", so it can be a program name with args.
7227 set dummy nmedit; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7231 $as_echo_n "(cached) " >&6
7233 if test -n "$ac_ct_NMEDIT"; then
7234 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7254 if test -n "$ac_ct_NMEDIT"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7256 $as_echo "$ac_ct_NMEDIT" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7262 if test "x$ac_ct_NMEDIT" = x; then
7265 case $cross_compiling:$ac_tool_warned in
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7271 NMEDIT=$ac_ct_NMEDIT
7274 NMEDIT="$ac_cv_prog_NMEDIT"
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_LIPO+:} false; then :
7283 $as_echo_n "(cached) " >&6
7285 if test -n "$LIPO"; then
7286 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 LIPO=$ac_cv_prog_LIPO
7306 if test -n "$LIPO"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7308 $as_echo "$LIPO" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7316 if test -z "$ac_cv_prog_LIPO"; then
7318 # Extract the first word of "lipo", so it can be a program name with args.
7319 set dummy lipo; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7323 $as_echo_n "(cached) " >&6
7325 if test -n "$ac_ct_LIPO"; then
7326 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_ac_ct_LIPO="lipo"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7346 if test -n "$ac_ct_LIPO"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7348 $as_echo "$ac_ct_LIPO" >&6; }
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7354 if test "x$ac_ct_LIPO" = x; then
7357 case $cross_compiling:$ac_tool_warned in
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361 ac_tool_warned=yes ;;
7366 LIPO="$ac_cv_prog_LIPO"
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7371 set dummy ${ac_tool_prefix}otool; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_OTOOL+:} false; then :
7375 $as_echo_n "(cached) " >&6
7377 if test -n "$OTOOL"; then
7378 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 OTOOL=$ac_cv_prog_OTOOL
7398 if test -n "$OTOOL"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7400 $as_echo "$OTOOL" >&6; }
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7408 if test -z "$ac_cv_prog_OTOOL"; then
7410 # Extract the first word of "otool", so it can be a program name with args.
7411 set dummy otool; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7415 $as_echo_n "(cached) " >&6
7417 if test -n "$ac_ct_OTOOL"; then
7418 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_ac_ct_OTOOL="otool"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7438 if test -n "$ac_ct_OTOOL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7440 $as_echo "$ac_ct_OTOOL" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7446 if test "x$ac_ct_OTOOL" = x; then
7449 case $cross_compiling:$ac_tool_warned in
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7458 OTOOL="$ac_cv_prog_OTOOL"
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_OTOOL64+:} false; then :
7467 $as_echo_n "(cached) " >&6
7469 if test -n "$OTOOL64"; then
7470 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 OTOOL64=$ac_cv_prog_OTOOL64
7490 if test -n "$OTOOL64"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7492 $as_echo "$OTOOL64" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7500 if test -z "$ac_cv_prog_OTOOL64"; then
7501 ac_ct_OTOOL64=$OTOOL64
7502 # Extract the first word of "otool64", so it can be a program name with args.
7503 set dummy otool64; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7507 $as_echo_n "(cached) " >&6
7509 if test -n "$ac_ct_OTOOL64"; then
7510 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_prog_ac_ct_OTOOL64="otool64"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7530 if test -n "$ac_ct_OTOOL64"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7532 $as_echo "$ac_ct_OTOOL64" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7538 if test "x$ac_ct_OTOOL64" = x; then
7541 case $cross_compiling:$ac_tool_warned in
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7547 OTOOL64=$ac_ct_OTOOL64
7550 OTOOL64="$ac_cv_prog_OTOOL64"
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7580 $as_echo_n "checking for -single_module linker flag... " >&6; }
7581 if ${lt_cv_apple_cc_single_mod+:} false; then :
7582 $as_echo_n "(cached) " >&6
7584 lt_cv_apple_cc_single_mod=no
7585 if test -z "${LT_MULTI_MODULE}"; then
7586 # By default we will add the -single_module flag. You can override
7587 # by either setting the environment variable LT_MULTI_MODULE
7588 # non-empty at configure time, or by adding -multi_module to the
7590 rm -rf libconftest.dylib*
7591 echo "int foo(void){return 1;}" > conftest.c
7592 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7593 -dynamiclib -Wl,-single_module conftest.c" >&5
7594 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7595 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7597 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7598 lt_cv_apple_cc_single_mod=yes
7600 cat conftest.err >&5
7602 rm -rf libconftest.dylib*
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7607 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7609 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7610 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7611 $as_echo_n "(cached) " >&6
7613 lt_cv_ld_exported_symbols_list=no
7614 save_LDFLAGS=$LDFLAGS
7615 echo "_main" > conftest.sym
7616 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 lt_cv_ld_exported_symbols_list=yes
7631 lt_cv_ld_exported_symbols_list=no
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LDFLAGS="$save_LDFLAGS"
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7639 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7641 $as_echo_n "checking for -force_load linker flag... " >&6; }
7642 if ${lt_cv_ld_force_load+:} false; then :
7643 $as_echo_n "(cached) " >&6
7645 lt_cv_ld_force_load=no
7646 cat > conftest.c << _LT_EOF
7647 int forced_loaded() { return 2;}
7649 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7650 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7651 echo "$AR cru libconftest.a conftest.o" >&5
7652 $AR cru libconftest.a conftest.o 2>&5
7653 echo "$RANLIB libconftest.a" >&5
7654 $RANLIB libconftest.a 2>&5
7655 cat > conftest.c << _LT_EOF
7656 int main() { return 0;}
7658 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7659 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7661 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7662 lt_cv_ld_force_load=yes
7664 cat conftest.err >&5
7666 rm -f conftest.err libconftest.a conftest conftest.c
7667 rm -rf conftest.dSYM
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7671 $as_echo "$lt_cv_ld_force_load" >&6; }
7673 rhapsody* | darwin1.[012])
7674 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7676 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7677 darwin*) # darwin 5.x on
7678 # if running on 10.5 or later, the deployment target defaults
7679 # to the OS version, if on x86, and 10.4, the deployment
7680 # target defaults to 10.4. Don't you love it?
7681 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7682 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7683 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7685 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7687 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7691 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7692 _lt_dar_single_mod='$single_module'
7694 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7695 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7697 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7699 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7700 _lt_dsymutil='~$DSYMUTIL $lib || :'
7708 ac_cpp='$CPP $CPPFLAGS'
7709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7713 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7714 # On Suns, sometimes $CPP names a directory.
7715 if test -n "$CPP" && test -d "$CPP"; then
7718 if test -z "$CPP"; then
7719 if ${ac_cv_prog_CPP+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 # Double quotes because CPP needs to be expanded
7723 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7726 for ac_c_preproc_warn_flag in '' yes
7728 # Use a header file that comes with gcc, so configuring glibc
7729 # with a fresh cross-compiler works.
7730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7731 # <limits.h> exists even on freestanding compilers.
7732 # On the NeXT, cc -E runs the code through the compiler's parser,
7733 # not just through cpp. "Syntax error" is here to catch this case.
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7737 # include <limits.h>
7739 # include <assert.h>
7743 if ac_fn_c_try_cpp "$LINENO"; then :
7746 # Broken: fails on valid input.
7749 rm -f conftest.err conftest.i conftest.$ac_ext
7751 # OK, works on sane cases. Now check whether nonexistent headers
7752 # can be detected and how.
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 #include <ac_nonexistent.h>
7757 if ac_fn_c_try_cpp "$LINENO"; then :
7758 # Broken: success on invalid input.
7761 # Passes both tests.
7765 rm -f conftest.err conftest.i conftest.$ac_ext
7768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7769 rm -f conftest.i conftest.err conftest.$ac_ext
7770 if $ac_preproc_ok; then :
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7783 $as_echo "$CPP" >&6; }
7785 for ac_c_preproc_warn_flag in '' yes
7787 # Use a header file that comes with gcc, so configuring glibc
7788 # with a fresh cross-compiler works.
7789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7790 # <limits.h> exists even on freestanding compilers.
7791 # On the NeXT, cc -E runs the code through the compiler's parser,
7792 # not just through cpp. "Syntax error" is here to catch this case.
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7796 # include <limits.h>
7798 # include <assert.h>
7802 if ac_fn_c_try_cpp "$LINENO"; then :
7805 # Broken: fails on valid input.
7808 rm -f conftest.err conftest.i conftest.$ac_ext
7810 # OK, works on sane cases. Now check whether nonexistent headers
7811 # can be detected and how.
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 #include <ac_nonexistent.h>
7816 if ac_fn_c_try_cpp "$LINENO"; then :
7817 # Broken: success on invalid input.
7820 # Passes both tests.
7824 rm -f conftest.err conftest.i conftest.$ac_ext
7827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7828 rm -f conftest.i conftest.err conftest.$ac_ext
7829 if $ac_preproc_ok; then :
7832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7834 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7835 See \`config.log' for more details" "$LINENO" 5; }
7839 ac_cpp='$CPP $CPPFLAGS'
7840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7846 $as_echo_n "checking for ANSI C header files... " >&6; }
7847 if ${ac_cv_header_stdc+:} false; then :
7848 $as_echo_n "(cached) " >&6
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7865 if ac_fn_c_try_compile "$LINENO"; then :
7866 ac_cv_header_stdc=yes
7868 ac_cv_header_stdc=no
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 if test $ac_cv_header_stdc = yes; then
7873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7880 $EGREP "memchr" >/dev/null 2>&1; then :
7883 ac_cv_header_stdc=no
7889 if test $ac_cv_header_stdc = yes; then
7890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7897 $EGREP "free" >/dev/null 2>&1; then :
7900 ac_cv_header_stdc=no
7906 if test $ac_cv_header_stdc = yes; then
7907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7908 if test "$cross_compiling" = yes; then :
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7915 #if ((' ' & 0x0FF) == 0x020)
7916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7919 # define ISLOWER(c) \
7920 (('a' <= (c) && (c) <= 'i') \
7921 || ('j' <= (c) && (c) <= 'r') \
7922 || ('s' <= (c) && (c) <= 'z'))
7923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7931 for (i = 0; i < 256; i++)
7932 if (XOR (islower (i), ISLOWER (i))
7933 || toupper (i) != TOUPPER (i))
7938 if ac_fn_c_try_run "$LINENO"; then :
7941 ac_cv_header_stdc=no
7943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7944 conftest.$ac_objext conftest.beam conftest.$ac_ext
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7950 $as_echo "$ac_cv_header_stdc" >&6; }
7951 if test $ac_cv_header_stdc = yes; then
7953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7957 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7959 inttypes.h stdint.h unistd.h
7961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7965 cat >>confdefs.h <<_ACEOF
7966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7974 for ac_header in dlfcn.h
7976 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7978 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7979 cat >>confdefs.h <<_ACEOF
7980 #define HAVE_DLFCN_H 1
8001 # Check whether --enable-shared was given.
8002 if test "${enable_shared+set}" = set; then :
8003 enableval=$enable_shared; p=${PACKAGE-default}
8005 yes) enable_shared=yes ;;
8006 no) enable_shared=no ;;
8009 # Look at the argument we got. We use all the common list separators.
8010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8011 for pkg in $enableval; do
8013 if test "X$pkg" = "X$p"; then
8032 # Check whether --enable-static was given.
8033 if test "${enable_static+set}" = set; then :
8034 enableval=$enable_static; p=${PACKAGE-default}
8036 yes) enable_static=yes ;;
8037 no) enable_static=no ;;
8040 # Look at the argument we got. We use all the common list separators.
8041 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8042 for pkg in $enableval; do
8044 if test "X$pkg" = "X$p"; then
8064 # Check whether --with-pic was given.
8065 if test "${with_pic+set}" = set; then :
8066 withval=$with_pic; pic_mode="$withval"
8072 test -z "$pic_mode" && pic_mode=default
8080 # Check whether --enable-fast-install was given.
8081 if test "${enable_fast_install+set}" = set; then :
8082 enableval=$enable_fast_install; p=${PACKAGE-default}
8084 yes) enable_fast_install=yes ;;
8085 no) enable_fast_install=no ;;
8087 enable_fast_install=no
8088 # Look at the argument we got. We use all the common list separators.
8089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8090 for pkg in $enableval; do
8092 if test "X$pkg" = "X$p"; then
8093 enable_fast_install=yes
8100 enable_fast_install=yes
8113 # This can be used to rebuild libtool when needed
8114 LIBTOOL_DEPS="$ltmain"
8116 # Always use our own libtool.
8117 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8144 test -z "$LN_S" && LN_S="ln -s"
8159 if test -n "${ZSH_VERSION+set}" ; then
8160 setopt NO_GLOB_SUBST
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8164 $as_echo_n "checking for objdir... " >&6; }
8165 if ${lt_cv_objdir+:} false; then :
8166 $as_echo_n "(cached) " >&6
8168 rm -f .libs 2>/dev/null
8169 mkdir .libs 2>/dev/null
8170 if test -d .libs; then
8173 # MS-DOS does not allow filenames that begin with a dot.
8176 rmdir .libs 2>/dev/null
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8179 $as_echo "$lt_cv_objdir" >&6; }
8180 objdir=$lt_cv_objdir
8186 cat >>confdefs.h <<_ACEOF
8187 #define LT_OBJDIR "$lt_cv_objdir/"
8195 # AIX sometimes has problems with the GCC collect2 program. For some
8196 # reason, if we set the COLLECT_NAMES environment variable, the problems
8197 # vanish in a puff of smoke.
8198 if test "X${COLLECT_NAMES+set}" != Xset; then
8200 export COLLECT_NAMES
8207 can_build_shared=yes
8209 # All known linkers require a `.a' archive for static linking (except MSVC,
8210 # which needs '.lib').
8213 with_gnu_ld="$lt_cv_prog_gnu_ld"
8216 old_CFLAGS="$CFLAGS"
8218 # Set sane defaults for various variables
8219 test -z "$CC" && CC=cc
8220 test -z "$LTCC" && LTCC=$CC
8221 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8222 test -z "$LD" && LD=ld
8223 test -z "$ac_objext" && ac_objext=o
8225 for cc_temp in $compiler""; do
8227 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8228 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8233 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8236 # Only perform the check for file, if the check method requires it
8237 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8238 case $deplibs_check_method in
8240 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8242 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8243 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8244 $as_echo_n "(cached) " >&6
8248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8251 lt_save_MAGIC_CMD="$MAGIC_CMD"
8252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254 for ac_dir in $ac_dummy; do
8256 test -z "$ac_dir" && ac_dir=.
8257 if test -f $ac_dir/${ac_tool_prefix}file; then
8258 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8259 if test -n "$file_magic_test_file"; then
8260 case $deplibs_check_method in
8262 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265 $EGREP "$file_magic_regex" > /dev/null; then
8270 *** Warning: the command libtool uses to detect shared libraries,
8271 *** $file_magic_cmd, produces output that libtool cannot recognize.
8272 *** The result is that libtool may fail to recognize shared libraries
8273 *** as such. This will affect the creation of libtool libraries that
8274 *** depend on shared libraries, but programs linked with such libtool
8275 *** libraries will work regardless of this problem. Nevertheless, you
8276 *** may want to report the problem to your system manager and/or to
8277 *** bug-libtool@gnu.org
8287 MAGIC_CMD="$lt_save_MAGIC_CMD"
8292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293 if test -n "$MAGIC_CMD"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8295 $as_echo "$MAGIC_CMD" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8305 if test -z "$lt_cv_path_MAGIC_CMD"; then
8306 if test -n "$ac_tool_prefix"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8308 $as_echo_n "checking for file... " >&6; }
8309 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8310 $as_echo_n "(cached) " >&6
8314 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8317 lt_save_MAGIC_CMD="$MAGIC_CMD"
8318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8319 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8320 for ac_dir in $ac_dummy; do
8322 test -z "$ac_dir" && ac_dir=.
8323 if test -f $ac_dir/file; then
8324 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8325 if test -n "$file_magic_test_file"; then
8326 case $deplibs_check_method in
8328 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8330 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8331 $EGREP "$file_magic_regex" > /dev/null; then
8336 *** Warning: the command libtool uses to detect shared libraries,
8337 *** $file_magic_cmd, produces output that libtool cannot recognize.
8338 *** The result is that libtool may fail to recognize shared libraries
8339 *** as such. This will affect the creation of libtool libraries that
8340 *** depend on shared libraries, but programs linked with such libtool
8341 *** libraries will work regardless of this problem. Nevertheless, you
8342 *** may want to report the problem to your system manager and/or to
8343 *** bug-libtool@gnu.org
8353 MAGIC_CMD="$lt_save_MAGIC_CMD"
8358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8359 if test -n "$MAGIC_CMD"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8361 $as_echo "$MAGIC_CMD" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8377 # Use C for the default configuration in the libtool script
8381 ac_cpp='$CPP $CPPFLAGS'
8382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8387 # Source file extension for C test sources.
8390 # Object file extension for compiled C test sources.
8394 # Code to be used in simple compile tests
8395 lt_simple_compile_test_code="int some_variable = 0;"
8397 # Code to be used in simple link tests
8398 lt_simple_link_test_code='int main(){return(0);}'
8406 # If no C compiler was specified, use CC.
8409 # If no C compiler flags were specified, use CFLAGS.
8410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8412 # Allow CC to be a program name with arguments.
8415 # Save the default compiler, since it gets overwritten when the other
8416 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8417 compiler_DEFAULT=$CC
8419 # save warnings/boilerplate of simple test code
8420 ac_outfile=conftest.$ac_objext
8421 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8422 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8423 _lt_compiler_boilerplate=`cat conftest.err`
8426 ac_outfile=conftest.$ac_objext
8427 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8428 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8429 _lt_linker_boilerplate=`cat conftest.err`
8434 ## There is no encapsulation within the following macros, do not change
8435 ## the running order or otherwise move them around unless you know exactly
8436 ## what you are doing...
8437 if test -n "$compiler"; then
8439 lt_prog_compiler_no_builtin_flag=
8441 if test "$GCC" = yes; then
8442 case $cc_basename in
8444 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8446 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8450 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8451 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8452 $as_echo_n "(cached) " >&6
8454 lt_cv_prog_compiler_rtti_exceptions=no
8455 ac_outfile=conftest.$ac_objext
8456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8457 lt_compiler_flag="-fno-rtti -fno-exceptions"
8458 # Insert the option either (1) after the last *FLAGS variable, or
8459 # (2) before a word containing "conftest.", or (3) at the end.
8460 # Note that $ac_compile itself does not contain backslashes and begins
8461 # with a dollar sign (not a hyphen), so the echo should work correctly.
8462 # The option is referenced via a variable to avoid confusing sed.
8463 lt_compile=`echo "$ac_compile" | $SED \
8464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8466 -e 's:$: $lt_compiler_flag:'`
8467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8468 (eval "$lt_compile" 2>conftest.err)
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 if (exit $ac_status) && test -s "$ac_outfile"; then
8473 # The compiler can only warn and ignore the option if not recognized
8474 # So say no if there are warnings other than the usual output.
8475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8477 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8478 lt_cv_prog_compiler_rtti_exceptions=yes
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8485 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8487 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8488 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8500 lt_prog_compiler_wl=
8501 lt_prog_compiler_pic=
8502 lt_prog_compiler_static=
8505 if test "$GCC" = yes; then
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_static='-static'
8511 # All AIX code is PIC.
8512 if test "$host_cpu" = ia64; then
8513 # AIX 5 now supports IA64 processor
8514 lt_prog_compiler_static='-Bstatic'
8521 # see comment about AmigaOS4 .so support
8522 lt_prog_compiler_pic='-fPIC'
8525 # FIXME: we need at least 68020 code to build shared libraries, but
8526 # adding the `-m68020' flag to GCC prevents building anything better,
8528 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8534 # PIC is the default for these OSes.
8537 mingw* | cygwin* | pw32* | os2* | cegcc*)
8538 # This hack is so that the source file can tell whether it is being
8539 # built for inclusion in a dll (and should export symbols for example).
8540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8541 # (--disable-auto-import) libraries
8542 lt_prog_compiler_pic='-DDLL_EXPORT'
8545 darwin* | rhapsody*)
8546 # PIC is the default on this platform
8547 # Common symbols not allowed in MH_DYLIB files
8548 lt_prog_compiler_pic='-fno-common'
8552 # PIC is the default for Haiku.
8553 # The "-static" flag exists, but is broken.
8554 lt_prog_compiler_static=
8558 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8559 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8560 # sets the default TLS model and affects inlining.
8566 lt_prog_compiler_pic='-fPIC'
8572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8573 # Instead, we relocate shared libraries at runtime.
8577 # Just because we use GCC doesn't mean we suddenly get shared libraries
8578 # on systems that don't support them.
8579 lt_prog_compiler_can_build_shared=no
8584 # QNX uses GNU C++, but need to define -shared option too, otherwise
8586 lt_prog_compiler_pic='-fPIC -shared'
8590 if test -d /usr/nec; then
8591 lt_prog_compiler_pic=-Kconform_pic
8596 lt_prog_compiler_pic='-fPIC'
8600 case $cc_basename in
8601 nvcc*) # Cuda Compiler Driver 2.2
8602 lt_prog_compiler_wl='-Xlinker '
8603 lt_prog_compiler_pic='-Xcompiler -fPIC'
8607 # PORTME Check for flag to pass linker flags through the system compiler.
8610 lt_prog_compiler_wl='-Wl,'
8611 if test "$host_cpu" = ia64; then
8612 # AIX 5 now supports IA64 processor
8613 lt_prog_compiler_static='-Bstatic'
8615 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8619 mingw* | cygwin* | pw32* | os2* | cegcc*)
8620 # This hack is so that the source file can tell whether it is being
8621 # built for inclusion in a dll (and should export symbols for example).
8622 lt_prog_compiler_pic='-DDLL_EXPORT'
8625 hpux9* | hpux10* | hpux11*)
8626 lt_prog_compiler_wl='-Wl,'
8627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8634 lt_prog_compiler_pic='+Z'
8637 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8638 lt_prog_compiler_static='${wl}-a ${wl}archive'
8641 irix5* | irix6* | nonstopux*)
8642 lt_prog_compiler_wl='-Wl,'
8643 # PIC (with -KPIC) is the default.
8644 lt_prog_compiler_static='-non_shared'
8647 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8648 case $cc_basename in
8649 # old Intel for x86_64 which still supported -KPIC.
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_pic='-KPIC'
8653 lt_prog_compiler_static='-static'
8655 # icc used to be incompatible with GCC.
8656 # ICC 10 doesn't accept -KPIC any more.
8658 lt_prog_compiler_wl='-Wl,'
8659 lt_prog_compiler_pic='-fPIC'
8660 lt_prog_compiler_static='-static'
8662 # Lahey Fortran 8.1.
8664 lt_prog_compiler_wl='-Wl,'
8665 lt_prog_compiler_pic='--shared'
8666 lt_prog_compiler_static='--static'
8669 # NAG Fortran compiler
8670 lt_prog_compiler_wl='-Wl,-Wl,,'
8671 lt_prog_compiler_pic='-PIC'
8672 lt_prog_compiler_static='-Bstatic'
8674 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8675 # Portland Group compilers (*not* the Pentium gcc compiler,
8676 # which looks to be a dead project)
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-fpic'
8679 lt_prog_compiler_static='-Bstatic'
8682 lt_prog_compiler_wl='-Wl,'
8683 # All Alpha code is PIC.
8684 lt_prog_compiler_static='-non_shared'
8686 xl* | bgxl* | bgf* | mpixl*)
8687 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_pic='-qpic'
8690 lt_prog_compiler_static='-qstaticlink'
8693 case `$CC -V 2>&1 | sed 5q` in
8694 *Sun\ F* | *Sun*Fortran*)
8695 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8696 lt_prog_compiler_pic='-KPIC'
8697 lt_prog_compiler_static='-Bstatic'
8698 lt_prog_compiler_wl=''
8702 lt_prog_compiler_pic='-KPIC'
8703 lt_prog_compiler_static='-Bstatic'
8704 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_pic='-KPIC'
8713 lt_prog_compiler_static='-Bstatic'
8717 # QNX uses GNU C++, but need to define -shared option too, otherwise
8719 lt_prog_compiler_pic='-fPIC -shared'
8722 osf3* | osf4* | osf5*)
8723 lt_prog_compiler_wl='-Wl,'
8724 # All OSF/1 code is PIC.
8725 lt_prog_compiler_static='-non_shared'
8729 lt_prog_compiler_static='-non_shared'
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8735 case $cc_basename in
8736 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8737 lt_prog_compiler_wl='-Qoption ld ';;
8739 lt_prog_compiler_wl='-Wl,';;
8744 lt_prog_compiler_wl='-Qoption ld '
8745 lt_prog_compiler_pic='-PIC'
8746 lt_prog_compiler_static='-Bstatic'
8749 sysv4 | sysv4.2uw2* | sysv4.3*)
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-KPIC'
8752 lt_prog_compiler_static='-Bstatic'
8756 if test -d /usr/nec ;then
8757 lt_prog_compiler_pic='-Kconform_pic'
8758 lt_prog_compiler_static='-Bstatic'
8762 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_pic='-KPIC'
8765 lt_prog_compiler_static='-Bstatic'
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_can_build_shared=no
8774 lt_prog_compiler_pic='-pic'
8775 lt_prog_compiler_static='-Bstatic'
8779 lt_prog_compiler_can_build_shared=no
8785 # For platforms which do not support PIC, -DPIC is meaningless:
8787 lt_prog_compiler_pic=
8790 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8795 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8796 if ${lt_cv_prog_compiler_pic+:} false; then :
8797 $as_echo_n "(cached) " >&6
8799 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8802 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8803 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8806 # Check to make sure the PIC flag actually works.
8808 if test -n "$lt_prog_compiler_pic"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8810 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8811 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8812 $as_echo_n "(cached) " >&6
8814 lt_cv_prog_compiler_pic_works=no
8815 ac_outfile=conftest.$ac_objext
8816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8817 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8818 # Insert the option either (1) after the last *FLAGS variable, or
8819 # (2) before a word containing "conftest.", or (3) at the end.
8820 # Note that $ac_compile itself does not contain backslashes and begins
8821 # with a dollar sign (not a hyphen), so the echo should work correctly.
8822 # The option is referenced via a variable to avoid confusing sed.
8823 lt_compile=`echo "$ac_compile" | $SED \
8824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8826 -e 's:$: $lt_compiler_flag:'`
8827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8828 (eval "$lt_compile" 2>conftest.err)
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 if (exit $ac_status) && test -s "$ac_outfile"; then
8833 # The compiler can only warn and ignore the option if not recognized
8834 # So say no if there are warnings other than the usual output.
8835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8838 lt_cv_prog_compiler_pic_works=yes
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8845 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8847 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8848 case $lt_prog_compiler_pic in
8850 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8853 lt_prog_compiler_pic=
8854 lt_prog_compiler_can_build_shared=no
8870 # Check to make sure the static flag actually works.
8872 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8874 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8875 if ${lt_cv_prog_compiler_static_works+:} false; then :
8876 $as_echo_n "(cached) " >&6
8878 lt_cv_prog_compiler_static_works=no
8879 save_LDFLAGS="$LDFLAGS"
8880 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8881 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8883 # The linker can only warn and ignore the option if not recognized
8884 # So say no if there are warnings
8885 if test -s conftest.err; then
8886 # Append any errors to the config.log.
8887 cat conftest.err 1>&5
8888 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8890 if diff conftest.exp conftest.er2 >/dev/null; then
8891 lt_cv_prog_compiler_static_works=yes
8894 lt_cv_prog_compiler_static_works=yes
8898 LDFLAGS="$save_LDFLAGS"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8902 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8904 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8907 lt_prog_compiler_static=
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8917 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8918 if ${lt_cv_prog_compiler_c_o+:} false; then :
8919 $as_echo_n "(cached) " >&6
8921 lt_cv_prog_compiler_c_o=no
8922 $RM -r conftest 2>/dev/null
8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8928 lt_compiler_flag="-o out/conftest2.$ac_objext"
8929 # Insert the option either (1) after the last *FLAGS variable, or
8930 # (2) before a word containing "conftest.", or (3) at the end.
8931 # Note that $ac_compile itself does not contain backslashes and begins
8932 # with a dollar sign (not a hyphen), so the echo should work correctly.
8933 lt_compile=`echo "$ac_compile" | $SED \
8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936 -e 's:$: $lt_compiler_flag:'`
8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8938 (eval "$lt_compile" 2>out/conftest.err)
8940 cat out/conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8944 # The compiler can only warn and ignore the option if not recognized
8945 # So say no if there are warnings
8946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8949 lt_cv_prog_compiler_c_o=yes
8954 # SGI C++ compiler will create directory out/ii_files/ for
8955 # template instantiation
8956 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8957 $RM out/* && rmdir out
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8964 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8972 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8973 if ${lt_cv_prog_compiler_c_o+:} false; then :
8974 $as_echo_n "(cached) " >&6
8976 lt_cv_prog_compiler_c_o=no
8977 $RM -r conftest 2>/dev/null
8981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8983 lt_compiler_flag="-o out/conftest2.$ac_objext"
8984 # Insert the option either (1) after the last *FLAGS variable, or
8985 # (2) before a word containing "conftest.", or (3) at the end.
8986 # Note that $ac_compile itself does not contain backslashes and begins
8987 # with a dollar sign (not a hyphen), so the echo should work correctly.
8988 lt_compile=`echo "$ac_compile" | $SED \
8989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8991 -e 's:$: $lt_compiler_flag:'`
8992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8993 (eval "$lt_compile" 2>out/conftest.err)
8995 cat out/conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8999 # The compiler can only warn and ignore the option if not recognized
9000 # So say no if there are warnings
9001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9004 lt_cv_prog_compiler_c_o=yes
9009 # SGI C++ compiler will create directory out/ii_files/ for
9010 # template instantiation
9011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9012 $RM out/* && rmdir out
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9019 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9024 hard_links="nottested"
9025 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9026 # do not overwrite the value of need_locks provided by the user
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9028 $as_echo_n "checking if we can lock with hard links... " >&6; }
9031 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9033 ln conftest.a conftest.b 2>&5 || hard_links=no
9034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9036 $as_echo "$hard_links" >&6; }
9037 if test "$hard_links" = no; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9039 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9052 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9055 allow_undefined_flag=
9056 always_export_symbols=no
9058 archive_expsym_cmds=
9059 compiler_needs_object=no
9060 enable_shared_with_static_runtimes=no
9061 export_dynamic_flag_spec=
9062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9063 hardcode_automatic=no
9065 hardcode_direct_absolute=no
9066 hardcode_libdir_flag_spec=
9067 hardcode_libdir_flag_spec_ld=
9068 hardcode_libdir_separator=
9070 hardcode_shlibpath_var=unsupported
9072 link_all_deplibs=unknown
9075 old_archive_from_new_cmds=
9076 old_archive_from_expsyms_cmds=
9077 thread_safe_flag_spec=
9078 whole_archive_flag_spec=
9079 # include_expsyms should be a list of space-separated symbols to be *always*
9080 # included in the symbol list
9082 # exclude_expsyms can be an extended regexp of symbols to exclude
9083 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9084 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9085 # as well as any symbol that contains `d'.
9086 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9087 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9088 # platforms (ab)use it in PIC code, but their linkers get confused if
9089 # the symbol is explicitly referenced. Since portable code cannot
9090 # rely on this symbol name, it's probably fine to never include it in
9091 # preloaded symbol tables.
9092 # Exclude shared library initialization/finalization symbols.
9093 extract_expsyms_cmds=
9096 cygwin* | mingw* | pw32* | cegcc*)
9097 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9098 # When not using gcc, we currently assume that we are using
9099 # Microsoft Visual C++.
9100 if test "$GCC" != yes; then
9105 # we just hope/assume this is gcc and not c89 (= MSVC++)
9115 # On some targets, GNU ld is compatible enough with the native linker
9116 # that we're better off using the native interface for both.
9117 lt_use_gnu_ld_interface=no
9118 if test "$with_gnu_ld" = yes; then
9121 # The AIX port of GNU ld has always aspired to compatibility
9122 # with the native linker. However, as the warning in the GNU ld
9123 # block says, versions before 2.19.5* couldn't really create working
9124 # shared libraries, regardless of the interface used.
9125 case `$LD -v 2>&1` in
9126 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9127 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9128 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9130 lt_use_gnu_ld_interface=yes
9135 lt_use_gnu_ld_interface=yes
9140 if test "$lt_use_gnu_ld_interface" = yes; then
9141 # If archive_cmds runs LD, not CC, wlarc should be empty
9144 # Set some defaults for GNU ld with shared library support. These
9145 # are reset later if shared libraries are not supported. Putting them
9146 # here allows them to be overridden if necessary.
9147 runpath_var=LD_RUN_PATH
9148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9149 export_dynamic_flag_spec='${wl}--export-dynamic'
9150 # ancient GNU ld didn't support --whole-archive et. al.
9151 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9152 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9154 whole_archive_flag_spec=
9156 supports_anon_versioning=no
9157 case `$LD -v 2>&1` in
9158 *GNU\ gold*) supports_anon_versioning=yes ;;
9159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9162 *\ 2.11.*) ;; # other 2.11 versions
9163 *) supports_anon_versioning=yes ;;
9166 # See if GNU ld supports shared libraries.
9169 # On AIX/PPC, the GNU linker is very broken
9170 if test "$host_cpu" != ia64; then
9174 *** Warning: the GNU linker, at least up to release 2.19, is reported
9175 *** to be unable to reliably create shared libraries on AIX.
9176 *** Therefore, libtool is disabling shared libraries support. If you
9177 *** really care for shared libraries, you may want to install binutils
9178 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9179 *** You will then need to restart the configuration process.
9188 # see comment about AmigaOS4 .so support
9189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9190 archive_expsym_cmds=''
9193 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)'
9194 hardcode_libdir_flag_spec='-L$libdir'
9195 hardcode_minus_L=yes
9201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9202 allow_undefined_flag=unsupported
9203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9204 # support --undefined. This deserves some investigation. FIXME
9205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211 cygwin* | mingw* | pw32* | cegcc*)
9212 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9213 # as there is no search path for DLLs.
9214 hardcode_libdir_flag_spec='-L$libdir'
9215 export_dynamic_flag_spec='${wl}--export-all-symbols'
9216 allow_undefined_flag=unsupported
9217 always_export_symbols=no
9218 enable_shared_with_static_runtimes=yes
9219 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'
9220 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9222 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9224 # If the export-symbols file already is a .def file (1st line
9225 # is EXPORTS), use it as is; otherwise, prepend...
9226 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9227 cp $export_symbols $output_objdir/$soname.def;
9229 echo EXPORTS > $output_objdir/$soname.def;
9230 cat $export_symbols >> $output_objdir/$soname.def;
9232 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9240 link_all_deplibs=yes
9245 hardcode_shlibpath_var=no
9246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9247 export_dynamic_flag_spec='${wl}-E'
9248 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9249 # Instead, shared libraries are loaded at an image base (0x10000000 by
9250 # default) and relocated if they conflict, which is a slow very memory
9251 # consuming and fragmenting process. To avoid this, we pick a random,
9252 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9253 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9255 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'
9258 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9260 if test "$host_os" = linux-dietlibc; then
9261 case $cc_basename in
9262 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9265 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9266 && test "$tmp_diet" = no
9268 tmp_addflag=' $pic_flag'
9269 tmp_sharedflag='-shared'
9270 case $cc_basename,$host_cpu in
9271 pgcc*) # Portland Group C compiler
9272 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'
9273 tmp_addflag=' $pic_flag'
9275 pgf77* | pgf90* | pgf95* | pgfortran*)
9276 # Portland Group f77 and f90 compilers
9277 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'
9278 tmp_addflag=' $pic_flag -Mnomain' ;;
9279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9280 tmp_addflag=' -i_dynamic' ;;
9281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9282 tmp_addflag=' -i_dynamic -nofor_main' ;;
9283 ifc* | ifort*) # Intel Fortran compiler
9284 tmp_addflag=' -nofor_main' ;;
9285 lf95*) # Lahey Fortran 8.1
9286 whole_archive_flag_spec=
9287 tmp_sharedflag='--shared' ;;
9288 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9289 tmp_sharedflag='-qmkshrobj'
9291 nvcc*) # Cuda Compiler Driver 2.2
9292 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'
9293 compiler_needs_object=yes
9296 case `$CC -V 2>&1 | sed 5q` in
9297 *Sun\ C*) # Sun C 5.9
9298 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'
9299 compiler_needs_object=yes
9300 tmp_sharedflag='-G' ;;
9301 *Sun\ F*) # Sun Fortran 8.3
9302 tmp_sharedflag='-G' ;;
9304 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 if test "x$supports_anon_versioning" = xyes; then
9307 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9309 echo "local: *; };" >> $output_objdir/$libname.ver~
9310 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9313 case $cc_basename in
9314 xlf* | bgf* | bgxlf* | mpixlf*)
9315 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9316 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9317 hardcode_libdir_flag_spec=
9318 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9319 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9320 if test "x$supports_anon_versioning" = xyes; then
9321 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9322 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9323 echo "local: *; };" >> $output_objdir/$libname.ver~
9324 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9334 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9335 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9344 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9349 *** create shared libraries on Solaris systems. Therefore, libtool
9350 *** is disabling shared libraries support. We urge you to upgrade GNU
9351 *** binutils to release 2.9.1 or newer. Another option is to modify
9352 *** your PATH or compiler configuration so that the native linker is
9353 *** used, and then restart.
9356 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9365 case `$LD -v 2>&1` in
9366 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9371 *** reliably create shared libraries on SCO systems. Therefore, libtool
9372 *** is disabling shared libraries support. We urge you to upgrade GNU
9373 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9374 *** your PATH or compiler configuration so that the native linker is
9375 *** used, and then restart.
9380 # For security reasons, it is highly recommended that you always
9381 # use absolute paths for naming shared libraries, and exclude the
9382 # DT_RUNPATH tag from executables and libraries. But doing so
9383 # requires that you compile everything twice, which is a pain.
9384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9396 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_shlibpath_var=no
9403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9404 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412 if test "$ld_shlibs" = no; then
9414 hardcode_libdir_flag_spec=
9415 export_dynamic_flag_spec=
9416 whole_archive_flag_spec=
9419 # PORTME fill in a description of your system's linker (not GNU ld)
9422 allow_undefined_flag=unsupported
9423 always_export_symbols=yes
9424 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'
9425 # Note: this linker hardcodes the directories in LIBPATH if there
9426 # are no directories specified by -L.
9427 hardcode_minus_L=yes
9428 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9429 # Neither direct hardcoding nor static linking is supported with a
9431 hardcode_direct=unsupported
9436 if test "$host_cpu" = ia64; then
9437 # On IA64, the linker does run time linking by default, so we don't
9438 # have to do anything special.
9439 aix_use_runtimelinking=no
9440 exp_sym_flag='-Bexport'
9443 # If we're using GNU nm, then we don't want the "-C" option.
9444 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9445 # Also, AIX nm treats weak defined symbols like other global
9446 # defined symbols, whereas GNU nm marks them as "W".
9447 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9448 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'
9450 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'
9452 aix_use_runtimelinking=no
9454 # Test if we are trying to use run time linking or normal
9455 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9456 # need to do runtime linking.
9457 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9458 for ld_flag in $LDFLAGS; do
9459 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9460 aix_use_runtimelinking=yes
9467 exp_sym_flag='-bexport'
9468 no_entry_flag='-bnoentry'
9471 # When large executables or shared objects are built, AIX ld can
9472 # have problems creating the table of contents. If linking a library
9473 # or program results in "error TOC overflow" add -mminimal-toc to
9474 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9475 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9479 hardcode_direct_absolute=yes
9480 hardcode_libdir_separator=':'
9481 link_all_deplibs=yes
9482 file_list_spec='${wl}-f,'
9484 if test "$GCC" = yes; then
9485 case $host_os in aix4.[012]|aix4.[012].*)
9486 # We only want to do this on AIX 4.2 and lower, the check
9487 # below for broken collect2 doesn't work under 4.3+
9488 collect2name=`${CC} -print-prog-name=collect2`
9489 if test -f "$collect2name" &&
9490 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9492 # We have reworked collect2
9495 # We have old collect2
9496 hardcode_direct=unsupported
9497 # It fails to find uninstalled libraries when the uninstalled
9498 # path is not listed in the libpath. Setting hardcode_minus_L
9499 # to unsupported forces relinking
9500 hardcode_minus_L=yes
9501 hardcode_libdir_flag_spec='-L$libdir'
9502 hardcode_libdir_separator=
9506 shared_flag='-shared'
9507 if test "$aix_use_runtimelinking" = yes; then
9508 shared_flag="$shared_flag "'${wl}-G'
9512 if test "$host_cpu" = ia64; then
9513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9514 # chokes on -Wl,-G. The following line is correct:
9517 if test "$aix_use_runtimelinking" = yes; then
9518 shared_flag='${wl}-G'
9520 shared_flag='${wl}-bM:SRE'
9525 export_dynamic_flag_spec='${wl}-bexpall'
9526 # It seems that -bexpall does not export symbols beginning with
9527 # underscore (_), so it is better to generate a list of symbols to export.
9528 always_export_symbols=yes
9529 if test "$aix_use_runtimelinking" = yes; then
9530 # Warning - without using the other runtime loading flags (-brtl),
9531 # -berok will link without error, but may produce a broken library.
9532 allow_undefined_flag='-berok'
9533 # Determine the default libpath from the value encoded in an
9535 if test "${lt_cv_aix_libpath+set}" = set; then
9536 aix_libpath=$lt_cv_aix_libpath
9538 if ${lt_cv_aix_libpath_+:} false; then :
9539 $as_echo_n "(cached) " >&6
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9552 if ac_fn_c_try_link "$LINENO"; then :
9554 lt_aix_libpath_sed='
9555 /Import File Strings/,/^$/ {
9557 s/^0 *\([^ ]*\) *$/\1/
9561 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562 # Check for a 64-bit object if we didn't find anything.
9563 if test -z "$lt_cv_aix_libpath_"; then
9564 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 rm -f core conftest.err conftest.$ac_objext \
9568 conftest$ac_exeext conftest.$ac_ext
9569 if test -z "$lt_cv_aix_libpath_"; then
9570 lt_cv_aix_libpath_="/usr/lib:/lib"
9575 aix_libpath=$lt_cv_aix_libpath_
9578 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9579 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"
9581 if test "$host_cpu" = ia64; then
9582 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9583 allow_undefined_flag="-z nodefs"
9584 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"
9586 # Determine the default libpath from the value encoded in an
9588 if test "${lt_cv_aix_libpath+set}" = set; then
9589 aix_libpath=$lt_cv_aix_libpath
9591 if ${lt_cv_aix_libpath_+:} false; then :
9592 $as_echo_n "(cached) " >&6
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9605 if ac_fn_c_try_link "$LINENO"; then :
9607 lt_aix_libpath_sed='
9608 /Import File Strings/,/^$/ {
9610 s/^0 *\([^ ]*\) *$/\1/
9614 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9615 # Check for a 64-bit object if we didn't find anything.
9616 if test -z "$lt_cv_aix_libpath_"; then
9617 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9620 rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9622 if test -z "$lt_cv_aix_libpath_"; then
9623 lt_cv_aix_libpath_="/usr/lib:/lib"
9628 aix_libpath=$lt_cv_aix_libpath_
9631 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9632 # Warning - without using the other run time loading flags,
9633 # -berok will link without error, but may produce a broken library.
9634 no_undefined_flag=' ${wl}-bernotok'
9635 allow_undefined_flag=' ${wl}-berok'
9636 if test "$with_gnu_ld" = yes; then
9637 # We only use this code for GNU lds that support --whole-archive.
9638 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9640 # Exported symbols can be pulled into shared objects from archives
9641 whole_archive_flag_spec='$convenience'
9643 archive_cmds_need_lc=yes
9644 # This is similar to how AIX traditionally builds its shared libraries.
9645 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'
9653 # see comment about AmigaOS4 .so support
9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 archive_expsym_cmds=''
9658 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)'
9659 hardcode_libdir_flag_spec='-L$libdir'
9660 hardcode_minus_L=yes
9666 export_dynamic_flag_spec=-rdynamic
9669 cygwin* | mingw* | pw32* | cegcc*)
9670 # When not using gcc, we currently assume that we are using
9671 # Microsoft Visual C++.
9672 # hardcode_libdir_flag_spec is actually meaningless, as there is
9673 # no search path for DLLs.
9674 case $cc_basename in
9677 hardcode_libdir_flag_spec=' '
9678 allow_undefined_flag=unsupported
9679 always_export_symbols=yes
9681 # Tell ltmain to make .lib files, not .a files.
9683 # Tell ltmain to make .dll files, not .so files.
9685 # FIXME: Setting linknames here is a bad hack.
9686 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9687 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9688 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9690 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9692 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9694 # The linker will not automatically build a static lib if we build a DLL.
9695 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9696 enable_shared_with_static_runtimes=yes
9697 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9699 old_postinstall_cmds='chmod 644 $oldlib'
9700 postlink_cmds='lt_outputfile="@OUTPUT@"~
9701 lt_tool_outputfile="@TOOL_OUTPUT@"~
9702 case $lt_outputfile in
9705 lt_outputfile="$lt_outputfile.exe"
9706 lt_tool_outputfile="$lt_tool_outputfile.exe"
9709 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9710 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9711 $RM "$lt_outputfile.manifest";
9715 # Assume MSVC wrapper
9716 hardcode_libdir_flag_spec=' '
9717 allow_undefined_flag=unsupported
9718 # Tell ltmain to make .lib files, not .a files.
9720 # Tell ltmain to make .dll files, not .so files.
9722 # FIXME: Setting linknames here is a bad hack.
9723 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9724 # The linker will automatically build a .lib file if we build a DLL.
9725 old_archive_from_new_cmds='true'
9726 # FIXME: Should let the user specify the lib program.
9727 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9728 enable_shared_with_static_runtimes=yes
9733 darwin* | rhapsody*)
9736 archive_cmds_need_lc=no
9738 hardcode_automatic=yes
9739 hardcode_shlibpath_var=unsupported
9740 if test "$lt_cv_ld_force_load" = "yes"; then
9741 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\"`'
9743 whole_archive_flag_spec=''
9745 link_all_deplibs=yes
9746 allow_undefined_flag="$_lt_dar_allow_undefined"
9747 case $cc_basename in
9748 ifort*) _lt_dar_can_shared=yes ;;
9749 *) _lt_dar_can_shared=$GCC ;;
9751 if test "$_lt_dar_can_shared" = "yes"; then
9752 output_verbose_link_cmd=func_echo_all
9753 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9754 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9755 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}"
9756 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}"
9765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_shlibpath_var=no
9774 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9775 # support. Future versions do this automatically, but an explicit c++rt0.o
9776 # does not break anything, and helps significantly (at the cost of a little
9779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9780 hardcode_libdir_flag_spec='-R$libdir'
9782 hardcode_shlibpath_var=no
9785 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_minus_L=yes
9790 hardcode_shlibpath_var=no
9793 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9794 freebsd* | dragonfly*)
9795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9796 hardcode_libdir_flag_spec='-R$libdir'
9798 hardcode_shlibpath_var=no
9802 if test "$GCC" = yes; then
9803 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'
9805 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'
9807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9808 hardcode_libdir_separator=:
9811 # hardcode_minus_L: Not really in the search PATH,
9812 # but as the default location of the library.
9813 hardcode_minus_L=yes
9814 export_dynamic_flag_spec='${wl}-E'
9818 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9819 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9823 if test "$with_gnu_ld" = no; then
9824 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9825 hardcode_libdir_flag_spec_ld='+b $libdir'
9826 hardcode_libdir_separator=:
9828 hardcode_direct_absolute=yes
9829 export_dynamic_flag_spec='${wl}-E'
9830 # hardcode_minus_L: Not really in the search PATH,
9831 # but as the default location of the library.
9832 hardcode_minus_L=yes
9837 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9840 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9843 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9846 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9859 # Older versions of the 11.00 compiler do not understand -b yet
9860 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9862 $as_echo_n "checking if $CC understands -b... " >&6; }
9863 if ${lt_cv_prog_compiler__b+:} false; then :
9864 $as_echo_n "(cached) " >&6
9866 lt_cv_prog_compiler__b=no
9867 save_LDFLAGS="$LDFLAGS"
9868 LDFLAGS="$LDFLAGS -b"
9869 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9871 # The linker can only warn and ignore the option if not recognized
9872 # So say no if there are warnings
9873 if test -s conftest.err; then
9874 # Append any errors to the config.log.
9875 cat conftest.err 1>&5
9876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9878 if diff conftest.exp conftest.er2 >/dev/null; then
9879 lt_cv_prog_compiler__b=yes
9882 lt_cv_prog_compiler__b=yes
9886 LDFLAGS="$save_LDFLAGS"
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9890 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9892 if test x"$lt_cv_prog_compiler__b" = xyes; then
9893 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9895 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9901 if test "$with_gnu_ld" = no; then
9902 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9903 hardcode_libdir_separator=:
9908 hardcode_shlibpath_var=no
9912 hardcode_direct_absolute=yes
9913 export_dynamic_flag_spec='${wl}-E'
9915 # hardcode_minus_L: Not really in the search PATH,
9916 # but as the default location of the library.
9917 hardcode_minus_L=yes
9923 irix5* | irix6* | nonstopux*)
9924 if test "$GCC" = yes; then
9925 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'
9926 # Try to use the -exported_symbol ld option, if it does not
9927 # work, assume that -exports_file does not work either and
9928 # implicitly export all symbols.
9929 # This should be the same for all languages, so no per-tag cache variable.
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9931 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9932 if ${lt_cv_irix_exported_symbol+:} false; then :
9933 $as_echo_n "(cached) " >&6
9935 save_LDFLAGS="$LDFLAGS"
9936 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939 int foo (void) { return 0; }
9941 if ac_fn_c_try_link "$LINENO"; then :
9942 lt_cv_irix_exported_symbol=yes
9944 lt_cv_irix_exported_symbol=no
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LDFLAGS="$save_LDFLAGS"
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9951 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9952 if test "$lt_cv_irix_exported_symbol" = yes; then
9953 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'
9956 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'
9957 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'
9959 archive_cmds_need_lc='no'
9960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9961 hardcode_libdir_separator=:
9963 link_all_deplibs=yes
9967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9970 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9972 hardcode_libdir_flag_spec='-R$libdir'
9974 hardcode_shlibpath_var=no
9978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981 hardcode_libdir_separator=:
9982 hardcode_shlibpath_var=no
9989 if test -f /usr/libexec/ld.so; then
9991 hardcode_shlibpath_var=no
9992 hardcode_direct_absolute=yes
9993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9995 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9997 export_dynamic_flag_spec='${wl}-E'
10000 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_libdir_flag_spec='-R$libdir'
10005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 hardcode_minus_L=yes
10018 allow_undefined_flag=unsupported
10019 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'
10020 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10024 if test "$GCC" = yes; then
10025 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10026 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'
10028 allow_undefined_flag=' -expect_unresolved \*'
10029 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'
10031 archive_cmds_need_lc='no'
10032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10033 hardcode_libdir_separator=:
10036 osf4* | osf5*) # as osf3* with the addition of -msym flag
10037 if test "$GCC" = yes; then
10038 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10039 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'
10040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 allow_undefined_flag=' -expect_unresolved \*'
10043 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'
10044 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~
10045 $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'
10047 # Both c and cxx compiler support -rpath directly
10048 hardcode_libdir_flag_spec='-rpath $libdir'
10050 archive_cmds_need_lc='no'
10051 hardcode_libdir_separator=:
10055 no_undefined_flag=' -z defs'
10056 if test "$GCC" = yes; then
10058 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10060 $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'
10062 case `$CC -V 2>&1` in
10065 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10067 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10071 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10073 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10077 hardcode_libdir_flag_spec='-R$libdir'
10078 hardcode_shlibpath_var=no
10080 solaris2.[0-5] | solaris2.[0-5].*) ;;
10082 # The compiler driver will combine and reorder linker options,
10083 # but understands `-z linker_flag'. GCC discards it without `$wl',
10084 # but is careful enough not to reorder.
10085 # Supported since Solaris 2.6 (maybe 2.5.1?)
10086 if test "$GCC" = yes; then
10087 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10089 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10093 link_all_deplibs=yes
10097 if test "x$host_vendor" = xsequent; then
10098 # Use $CC to link under sequent, because it throws in some extra .o
10099 # files that make .init and .fini sections work.
10100 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10102 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10104 hardcode_libdir_flag_spec='-L$libdir'
10105 hardcode_direct=yes
10106 hardcode_minus_L=yes
10107 hardcode_shlibpath_var=no
10111 case $host_vendor in
10113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114 hardcode_direct=yes # is this really true???
10117 ## LD is ld it makes a PLAMLIB
10118 ## CC just makes a GrossModule.
10119 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10120 reload_cmds='$CC -r -o $output$reload_objs'
10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10128 runpath_var='LD_RUN_PATH'
10129 hardcode_shlibpath_var=no
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_shlibpath_var=no
10135 export_dynamic_flag_spec='-Bexport'
10139 if test -d /usr/nec; then
10140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 hardcode_shlibpath_var=no
10142 runpath_var=LD_RUN_PATH
10143 hardcode_runpath_var=yes
10148 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10149 no_undefined_flag='${wl}-z,text'
10150 archive_cmds_need_lc=no
10151 hardcode_shlibpath_var=no
10152 runpath_var='LD_RUN_PATH'
10154 if test "$GCC" = yes; then
10155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 sysv5* | sco3.2v5* | sco5v6*)
10164 # Note: We can NOT use -z defs as we might desire, because we do not
10165 # link with -lc, and that would cause any symbols used from libc to
10166 # always be unresolved, which means just about no library would
10167 # ever link correctly. If we're not using GNU ld we use -z text
10168 # though, which does catch some bad symbols but isn't as heavy-handed
10170 no_undefined_flag='${wl}-z,text'
10171 allow_undefined_flag='${wl}-z,nodefs'
10172 archive_cmds_need_lc=no
10173 hardcode_shlibpath_var=no
10174 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10175 hardcode_libdir_separator=':'
10176 link_all_deplibs=yes
10177 export_dynamic_flag_spec='${wl}-Bexport'
10178 runpath_var='LD_RUN_PATH'
10180 if test "$GCC" = yes; then
10181 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10191 hardcode_libdir_flag_spec='-L$libdir'
10192 hardcode_shlibpath_var=no
10200 if test x$host_vendor = xsni; then
10202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10203 export_dynamic_flag_spec='${wl}-Blargedynsym'
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10210 $as_echo "$ld_shlibs" >&6; }
10211 test "$ld_shlibs" = no && can_build_shared=no
10213 with_gnu_ld=$with_gnu_ld
10230 # Do we need to explicitly link libc?
10232 case "x$archive_cmds_need_lc" in
10234 # Assume -lc should be added
10235 archive_cmds_need_lc=yes
10237 if test "$enable_shared" = yes && test "$GCC" = yes; then
10238 case $archive_cmds in
10240 # FIXME: we may have to deal with multi-command sequences.
10243 # Test whether the compiler implicitly links with -lc since on some
10244 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10245 # to ld, don't add -lc before -lgcc.
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10247 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10248 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10249 $as_echo_n "(cached) " >&6
10252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10255 (eval $ac_compile) 2>&5
10257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10258 test $ac_status = 0; } 2>conftest.err; then
10261 libobjs=conftest.$ac_objext
10263 wl=$lt_prog_compiler_wl
10264 pic_flag=$lt_prog_compiler_pic
10270 lt_save_allow_undefined_flag=$allow_undefined_flag
10271 allow_undefined_flag=
10272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10273 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10276 test $ac_status = 0; }
10278 lt_cv_archive_cmds_need_lc=no
10280 lt_cv_archive_cmds_need_lc=yes
10282 allow_undefined_flag=$lt_save_allow_undefined_flag
10284 cat conftest.err 1>&5
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10290 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10291 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10455 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10457 if test "$GCC" = yes; then
10459 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10460 *) lt_awk_arg="/^libraries:/" ;;
10463 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10464 *) lt_sed_strip_eq="s,=/,/,g" ;;
10466 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10467 case $lt_search_path_spec in
10469 # if the path contains ";" then we assume it to be the separator
10470 # otherwise default to the standard path separator (i.e. ":") - it is
10471 # assumed that no part of a normal pathname contains ";" but that should
10472 # okay in the real world where ";" in dirpaths is itself problematic.
10473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10479 # Ok, now we have the path, separated by spaces, we can step through it
10480 # and add multilib dir if necessary.
10481 lt_tmp_lt_search_path_spec=
10482 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10483 for lt_sys_path in $lt_search_path_spec; do
10484 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10487 test -d "$lt_sys_path" && \
10488 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10491 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10492 BEGIN {RS=" "; FS="/|\n";} {
10495 for (lt_i = NF; lt_i > 0; lt_i--) {
10496 if ($lt_i != "" && $lt_i != ".") {
10497 if ($lt_i == "..") {
10500 if (lt_count == 0) {
10501 lt_foo="/" $lt_i lt_foo;
10508 if (lt_foo != "") { lt_freq[lt_foo]++; }
10509 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10511 # AWK program above erroneously prepends '/' to C:/dos/paths
10514 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10515 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10517 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10519 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10521 library_names_spec=
10522 libname_spec='lib$name'
10526 postuninstall_cmds=
10530 shlibpath_overrides_runpath=unknown
10532 dynamic_linker="$host_os ld.so"
10533 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10534 need_lib_prefix=unknown
10535 hardcode_into_libs=no
10537 # when you set need_version to no, make sure it does not cause -set_version
10538 # flags to be left without arguments
10539 need_version=unknown
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10545 shlibpath_var=LIBPATH
10547 # AIX 3 has no versioning support, so we append a major version to the name.
10548 soname_spec='${libname}${release}${shared_ext}$major'
10555 hardcode_into_libs=yes
10556 if test "$host_cpu" = ia64; then
10557 # AIX 5 supports IA64
10558 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10559 shlibpath_var=LD_LIBRARY_PATH
10561 # With GCC up to 2.95.x, collect2 would create an import file
10562 # for dependence libraries. The import file would start with
10563 # the line `#! .'. This would cause the generated library to
10564 # depend on `.', always an invalid library. This was fixed in
10565 # development snapshots of GCC prior to 3.0.
10567 aix4 | aix4.[01] | aix4.[01].*)
10568 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10570 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10573 can_build_shared=no
10577 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10578 # soname into executable. Probably we can add versioning support to
10579 # collect2, so additional links can be useful in future.
10580 if test "$aix_use_runtimelinking" = yes; then
10581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10582 # instead of lib<name>.a to let people know that these are not
10583 # typical AIX shared libraries.
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586 # We preserve .a as extension for shared libraries through AIX4.2
10587 # and later when we are not doing run time linking.
10588 library_names_spec='${libname}${release}.a $libname.a'
10589 soname_spec='${libname}${release}${shared_ext}$major'
10591 shlibpath_var=LIBPATH
10598 # Since July 2007 AmigaOS4 officially supports .so libraries.
10599 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 library_names_spec='$libname.ixlibrary $libname.a'
10604 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10605 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'
10611 library_names_spec='${libname}${shared_ext}'
10612 dynamic_linker="$host_os ld.so"
10613 shlibpath_var=LIBRARY_PATH
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10625 # the default ld.so.conf also contains /usr/contrib/lib and
10626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10627 # libtool to hard-code these into programs
10630 cygwin* | mingw* | pw32* | cegcc*)
10631 version_type=windows
10636 case $GCC,$cc_basename in
10639 library_names_spec='$libname.dll.a'
10640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10641 postinstall_cmds='base_file=`basename \${file}`~
10642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10643 dldir=$destdir/`dirname \$dlpath`~
10644 test -d \$dldir || mkdir -p \$dldir~
10645 $install_prog $dir/$dlname \$dldir/$dlname~
10646 chmod a+x \$dldir/$dlname~
10647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10651 dlpath=$dir/\$dldll~
10653 shlibpath_overrides_runpath=yes
10657 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10658 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10660 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10663 # MinGW DLLs use traditional 'lib' prefix
10664 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10667 # pw32 DLLs use 'pw' prefix rather than 'lib'
10668 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10671 dynamic_linker='Win32 ld.exe'
10676 libname_spec='$name'
10677 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10678 library_names_spec='${libname}.dll.lib'
10682 sys_lib_search_path_spec=
10685 for lt_path in $LIB
10688 # Let DOS variable expansion print the short 8.3 style file name.
10689 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10690 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10693 # Convert to MSYS style.
10694 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10697 # Convert to unix form, then to dos form, then back to unix form
10698 # but this time dos style (no spaces!) so that the unix form looks
10699 # like /cygdrive/c/PROGRA~1:/cygdr...
10700 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10701 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10702 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10705 sys_lib_search_path_spec="$LIB"
10706 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10707 # It is most probably a Windows format PATH.
10708 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10710 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10712 # FIXME: find the short name or the path components, as spaces are
10713 # common. (e.g. "Program Files" -> "PROGRA~1")
10717 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10718 postinstall_cmds='base_file=`basename \${file}`~
10719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10720 dldir=$destdir/`dirname \$dlpath`~
10721 test -d \$dldir || mkdir -p \$dldir~
10722 $install_prog $dir/$dlname \$dldir/$dlname'
10723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724 dlpath=$dir/\$dldll~
10726 shlibpath_overrides_runpath=yes
10727 dynamic_linker='Win32 link.exe'
10731 # Assume MSVC wrapper
10732 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10733 dynamic_linker='Win32 ld.exe'
10736 # FIXME: first we should search . and the directory the executable is in
10740 darwin* | rhapsody*)
10741 dynamic_linker="$host_os dyld"
10742 version_type=darwin
10745 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10746 soname_spec='${libname}${release}${major}$shared_ext'
10747 shlibpath_overrides_runpath=yes
10748 shlibpath_var=DYLD_LIBRARY_PATH
10749 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10751 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10752 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LD_LIBRARY_PATH
10768 freebsd* | dragonfly*)
10769 # DragonFly does not have aout. When/if they implement a new
10770 # versioning mechanism, adjust this.
10771 if test -x /usr/bin/objformat; then
10772 objformat=`/usr/bin/objformat`
10775 freebsd[123]*) objformat=aout ;;
10776 *) objformat=elf ;;
10779 version_type=freebsd-$objformat
10780 case $version_type in
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10791 shlibpath_var=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath=yes
10796 freebsd3.[01]* | freebsdelf3.[01]*)
10797 shlibpath_overrides_runpath=yes
10798 hardcode_into_libs=yes
10800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10802 shlibpath_overrides_runpath=no
10803 hardcode_into_libs=yes
10805 *) # from 4.6 on, and DragonFly
10806 shlibpath_overrides_runpath=yes
10807 hardcode_into_libs=yes
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 hardcode_into_libs=yes
10826 dynamic_linker="$host_os runtime_loader"
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 shlibpath_var=LIBRARY_PATH
10830 shlibpath_overrides_runpath=yes
10831 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10832 hardcode_into_libs=yes
10835 hpux9* | hpux10* | hpux11*)
10836 # Give a soname corresponding to the major version so that dld.sl refuses to
10837 # link against other versions.
10844 hardcode_into_libs=yes
10845 dynamic_linker="$host_os dld.so"
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 if test "X$HPUX_IA64_MODE" = X32; then
10851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10859 hardcode_into_libs=yes
10860 dynamic_linker="$host_os dld.sl"
10861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10870 dynamic_linker="$host_os dld.sl"
10871 shlibpath_var=SHLIB_PATH
10872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10877 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10878 postinstall_cmds='chmod 555 $lib'
10879 # or fails outright, so override atomically:
10880 install_override_mode=555
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=no
10892 hardcode_into_libs=yes
10895 irix5* | irix6* | nonstopux*)
10897 nonstopux*) version_type=nonstopux ;;
10899 if test "$lt_cv_prog_gnu_ld" = yes; then
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10910 irix5* | nonstopux*)
10911 libsuff= shlibsuff=
10914 case $LD in # libtool.m4 will add one of these switches to LD
10915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10916 libsuff= shlibsuff= libmagic=32-bit;;
10917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10918 libsuff=32 shlibsuff=N32 libmagic=N32;;
10919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10920 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10921 *) libsuff= shlibsuff= libmagic=never-match;;
10925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10926 shlibpath_overrides_runpath=no
10927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10929 hardcode_into_libs=yes
10932 # No shared lib support for Linux oldld, aout, or coff.
10933 linux*oldld* | linux*aout* | linux*coff*)
10937 # This must be Linux ELF.
10938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=no
10948 # Some binutils ld are patched to set DT_RUNPATH
10949 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10950 $as_echo_n "(cached) " >&6
10952 lt_cv_shlibpath_overrides_runpath=no
10953 save_LDFLAGS=$LDFLAGS
10954 save_libdir=$libdir
10955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10970 lt_cv_shlibpath_overrides_runpath=yes
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LDFLAGS=$save_LDFLAGS
10976 libdir=$save_libdir
10980 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10982 # This implies no fast_install, which is unacceptable.
10983 # Some rework will be needed to allow for fast_install
10984 # before this can be enabled.
10985 hardcode_into_libs=yes
10987 # Append ld.so.conf contents to the search path
10988 if test -f /etc/ld.so.conf; then
10989 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' ' '`
10990 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10993 # We used to test for /lib/ld.so.1 and disable shared libraries on
10994 # powerpc, because MkLinux only supported shared libraries with the
10995 # GNU dynamic linker. Since this was broken with cross compilers,
10996 # most powerpc-linux boxes support dynamic linking these days and
10997 # people can always --disable-shared, the test was removed, and we
10998 # assume the GNU/Linux dynamic linker is in use.
10999 dynamic_linker='GNU/Linux ld.so'
11006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11009 dynamic_linker='NetBSD (a.out) ld.so'
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 dynamic_linker='NetBSD ld.elf_so'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 shlibpath_overrides_runpath=yes
11017 hardcode_into_libs=yes
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 shlibpath_overrides_runpath=yes
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=no
11035 hardcode_into_libs=yes
11036 dynamic_linker='ldqnx.so'
11041 sys_lib_dlsearch_path_spec="/usr/lib"
11043 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11045 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11046 *) need_version=no ;;
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11053 openbsd2.[89] | openbsd2.[89].*)
11054 shlibpath_overrides_runpath=no
11057 shlibpath_overrides_runpath=yes
11061 shlibpath_overrides_runpath=yes
11066 libname_spec='$name'
11069 library_names_spec='$libname${shared_ext} $libname.a'
11070 dynamic_linker='OS/2 ld.exe'
11071 shlibpath_var=LIBPATH
11074 osf3* | osf4* | osf5*)
11078 soname_spec='${libname}${release}${shared_ext}$major'
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11082 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 shlibpath_overrides_runpath=yes
11097 hardcode_into_libs=yes
11098 # ldd complains unless libraries are executable
11099 postinstall_cmds='chmod +x $lib'
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11105 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11108 if test "$with_gnu_ld" = yes; then
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117 soname_spec='${libname}${release}${shared_ext}$major'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 case $host_vendor in
11121 shlibpath_overrides_runpath=no
11123 runpath_var=LD_RUN_PATH
11131 shlibpath_overrides_runpath=no
11132 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11138 if test -d /usr/nec ;then
11140 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11141 soname_spec='$libname${shared_ext}.$major'
11142 shlibpath_var=LD_LIBRARY_PATH
11146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11147 version_type=freebsd-elf
11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 shlibpath_var=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath=yes
11154 hardcode_into_libs=yes
11155 if test "$with_gnu_ld" = yes; then
11156 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11158 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11161 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11165 sys_lib_dlsearch_path_spec='/usr/lib'
11169 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 shlibpath_overrides_runpath=no
11176 hardcode_into_libs=yes
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11191 $as_echo "$dynamic_linker" >&6; }
11192 test "$dynamic_linker" = no && can_build_shared=no
11194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11195 if test "$GCC" = yes; then
11196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11199 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11200 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11202 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11203 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11298 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11300 if test -n "$hardcode_libdir_flag_spec" ||
11301 test -n "$runpath_var" ||
11302 test "X$hardcode_automatic" = "Xyes" ; then
11304 # We can hardcode non-existent directories.
11305 if test "$hardcode_direct" != no &&
11306 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11307 # have to relink, otherwise we might link with an installed library
11308 # when we should be linking with a yet-to-be-installed one
11309 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11310 test "$hardcode_minus_L" != no; then
11311 # Linking always hardcodes the temporary library directory.
11312 hardcode_action=relink
11314 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11315 hardcode_action=immediate
11318 # We cannot hardcode anything, or else we can only hardcode existing
11320 hardcode_action=unsupported
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11323 $as_echo "$hardcode_action" >&6; }
11325 if test "$hardcode_action" = relink ||
11326 test "$inherit_rpath" = yes; then
11327 # Fast installation is not supported
11328 enable_fast_install=no
11329 elif test "$shlibpath_overrides_runpath" = yes ||
11330 test "$enable_shared" = no; then
11331 # Fast installation is not necessary
11332 enable_fast_install=needless
11340 if test "x$enable_dlopen" != xyes; then
11341 enable_dlopen=unknown
11342 enable_dlopen_self=unknown
11343 enable_dlopen_self_static=unknown
11350 lt_cv_dlopen="load_add_on"
11352 lt_cv_dlopen_self=yes
11355 mingw* | pw32* | cegcc*)
11356 lt_cv_dlopen="LoadLibrary"
11361 lt_cv_dlopen="dlopen"
11366 # if libdl is installed we need to link against it
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11368 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11369 if ${ac_cv_lib_dl_dlopen+:} false; then :
11370 $as_echo_n "(cached) " >&6
11372 ac_check_lib_save_LIBS=$LIBS
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_lib_dl_dlopen=yes
11395 ac_cv_lib_dl_dlopen=no
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11402 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11403 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11404 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11407 lt_cv_dlopen="dyld"
11409 lt_cv_dlopen_self=yes
11416 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11417 if test "x$ac_cv_func_shl_load" = xyes; then :
11418 lt_cv_dlopen="shl_load"
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11421 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11422 if ${ac_cv_lib_dld_shl_load+:} false; then :
11423 $as_echo_n "(cached) " >&6
11425 ac_check_lib_save_LIBS=$LIBS
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11440 return shl_load ();
11445 if ac_fn_c_try_link "$LINENO"; then :
11446 ac_cv_lib_dld_shl_load=yes
11448 ac_cv_lib_dld_shl_load=no
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11455 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11456 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11457 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11459 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11460 if test "x$ac_cv_func_dlopen" = xyes; then :
11461 lt_cv_dlopen="dlopen"
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11464 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11465 if ${ac_cv_lib_dl_dlopen+:} false; then :
11466 $as_echo_n "(cached) " >&6
11468 ac_check_lib_save_LIBS=$LIBS
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11488 if ac_fn_c_try_link "$LINENO"; then :
11489 ac_cv_lib_dl_dlopen=yes
11491 ac_cv_lib_dl_dlopen=no
11493 rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
11495 LIBS=$ac_check_lib_save_LIBS
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11498 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11499 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11500 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11503 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11504 if ${ac_cv_lib_svld_dlopen+:} false; then :
11505 $as_echo_n "(cached) " >&6
11507 ac_check_lib_save_LIBS=$LIBS
11508 LIBS="-lsvld $LIBS"
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11527 if ac_fn_c_try_link "$LINENO"; then :
11528 ac_cv_lib_svld_dlopen=yes
11530 ac_cv_lib_svld_dlopen=no
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534 LIBS=$ac_check_lib_save_LIBS
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11537 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11538 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11539 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11542 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11543 if ${ac_cv_lib_dld_dld_link+:} false; then :
11544 $as_echo_n "(cached) " >&6
11546 ac_check_lib_save_LIBS=$LIBS
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11561 return dld_link ();
11566 if ac_fn_c_try_link "$LINENO"; then :
11567 ac_cv_lib_dld_dld_link=yes
11569 ac_cv_lib_dld_dld_link=no
11571 rm -f core conftest.err conftest.$ac_objext \
11572 conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11576 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11577 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11578 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11599 if test "x$lt_cv_dlopen" != xno; then
11605 case $lt_cv_dlopen in
11607 save_CPPFLAGS="$CPPFLAGS"
11608 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11610 save_LDFLAGS="$LDFLAGS"
11611 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11614 LIBS="$lt_cv_dlopen_libs $LIBS"
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11617 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11618 if ${lt_cv_dlopen_self+:} false; then :
11619 $as_echo_n "(cached) " >&6
11621 if test "$cross_compiling" = yes; then :
11622 lt_cv_dlopen_self=cross
11624 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11625 lt_status=$lt_dlunknown
11626 cat > conftest.$ac_ext <<_LT_EOF
11627 #line $LINENO "configure"
11628 #include "confdefs.h"
11637 # define LT_DLGLOBAL RTLD_GLOBAL
11640 # define LT_DLGLOBAL DL_GLOBAL
11642 # define LT_DLGLOBAL 0
11646 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11647 find out it does not work in some platform. */
11648 #ifndef LT_DLLAZY_OR_NOW
11650 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11653 # define LT_DLLAZY_OR_NOW DL_LAZY
11656 # define LT_DLLAZY_OR_NOW RTLD_NOW
11659 # define LT_DLLAZY_OR_NOW DL_NOW
11661 # define LT_DLLAZY_OR_NOW 0
11668 /* When -fvisbility=hidden is used, assume the code has been annotated
11669 correspondingly for the symbols needed. */
11670 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11671 int fnord () __attribute__((visibility("default")));
11674 int fnord () { return 42; }
11677 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11678 int status = $lt_dlunknown;
11682 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11685 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11686 else puts (dlerror ());
11688 /* dlclose (self); */
11696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11697 (eval $ac_link) 2>&5
11699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11700 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11701 (./conftest; exit; ) >&5 2>/dev/null
11703 case x$lt_status in
11704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11706 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11709 # compilation failed
11710 lt_cv_dlopen_self=no
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11718 $as_echo "$lt_cv_dlopen_self" >&6; }
11720 if test "x$lt_cv_dlopen_self" = xyes; then
11721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11723 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11724 if ${lt_cv_dlopen_self_static+:} false; then :
11725 $as_echo_n "(cached) " >&6
11727 if test "$cross_compiling" = yes; then :
11728 lt_cv_dlopen_self_static=cross
11730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11731 lt_status=$lt_dlunknown
11732 cat > conftest.$ac_ext <<_LT_EOF
11733 #line $LINENO "configure"
11734 #include "confdefs.h"
11743 # define LT_DLGLOBAL RTLD_GLOBAL
11746 # define LT_DLGLOBAL DL_GLOBAL
11748 # define LT_DLGLOBAL 0
11752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11753 find out it does not work in some platform. */
11754 #ifndef LT_DLLAZY_OR_NOW
11756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11759 # define LT_DLLAZY_OR_NOW DL_LAZY
11762 # define LT_DLLAZY_OR_NOW RTLD_NOW
11765 # define LT_DLLAZY_OR_NOW DL_NOW
11767 # define LT_DLLAZY_OR_NOW 0
11774 /* When -fvisbility=hidden is used, assume the code has been annotated
11775 correspondingly for the symbols needed. */
11776 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11777 int fnord () __attribute__((visibility("default")));
11780 int fnord () { return 42; }
11783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11784 int status = $lt_dlunknown;
11788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11791 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11792 else puts (dlerror ());
11794 /* dlclose (self); */
11802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11803 (eval $ac_link) 2>&5
11805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11807 (./conftest; exit; ) >&5 2>/dev/null
11809 case x$lt_status in
11810 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11811 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11812 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11815 # compilation failed
11816 lt_cv_dlopen_self_static=no
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11824 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11827 CPPFLAGS="$save_CPPFLAGS"
11828 LDFLAGS="$save_LDFLAGS"
11833 case $lt_cv_dlopen_self in
11834 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11835 *) enable_dlopen_self=unknown ;;
11838 case $lt_cv_dlopen_self_static in
11839 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11840 *) enable_dlopen_self_static=unknown ;;
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11863 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11864 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11865 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11866 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11868 $as_echo "yes" >&6; }
11870 # FIXME - insert some real tests, host_os isn't really good enough
11873 if test -n "$STRIP" ; then
11874 striplib="$STRIP -x"
11875 old_striplib="$STRIP -S"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11877 $as_echo "yes" >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11901 # Report which library types will actually be built
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11903 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11905 $as_echo "$can_build_shared" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11908 $as_echo_n "checking whether to build shared libraries... " >&6; }
11909 test "$can_build_shared" = "no" && enable_shared=no
11911 # On AIX, shared libraries and static libraries use the same namespace, and
11912 # are all built from PIC.
11915 test "$enable_shared" = yes && enable_static=no
11916 if test -n "$RANLIB"; then
11917 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11918 postinstall_cmds='$RANLIB $lib'
11923 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11924 test "$enable_shared" = yes && enable_static=no
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11929 $as_echo "$enable_shared" >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11932 $as_echo_n "checking whether to build static libraries... " >&6; }
11933 # Make sure either enable_shared or enable_static is yes.
11934 test "$enable_shared" = yes || enable_static=yes
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11936 $as_echo "$enable_static" >&6; }
11943 ac_cpp='$CPP $CPPFLAGS'
11944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962 ac_config_commands="$ac_config_commands libtool"
11967 # Only expand once:
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
11973 $as_echo_n "checking for C compiler vendor... " >&6; }
11974 if ${ax_cv_c_compiler_vendor+:} false; then :
11975 $as_echo_n "(cached) " >&6
11977 # note: don't check for gcc first since some other compilers define __GNUC__
11978 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
11979 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
11980 pathscale: __PATHCC__,__PATHSCALE__
11983 sun: __SUNPRO_C,__SUNPRO_CC
11984 hp: __HP_cc,__HP_aCC
11985 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
11986 borland: __BORLANDC__,__TURBOC__
11992 microsoft: _MSC_VER
11993 metrowerks: __MWERKS__
11994 watcom: __WATCOMC__
11997 for ventest in $vendors; do
11999 *:) vendor=$ventest; continue ;;
12000 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12017 if ac_fn_c_try_compile "$LINENO"; then :
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12026 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12033 # Check whether --enable-portable-binary was given.
12034 if test "${enable_portable_binary+set}" = set; then :
12035 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12037 acx_maxopt_portable=no
12041 # Try to determine "good" native compiler flags if none specified via CFLAGS
12042 if test "$ac_test_CFLAGS" != "set"; then
12044 case $ax_cv_c_compiler_vendor in
12045 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12046 if test "x$acx_maxopt_portable" = xno; then
12047 CFLAGS="$CFLAGS -arch host"
12050 sun) CFLAGS="-native -fast -xO5 -dalign"
12051 if test "x$acx_maxopt_portable" = xyes; then
12052 CFLAGS="$CFLAGS -xarch=generic"
12055 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
12056 if test "x$acx_maxopt_portable" = xyes; then
12057 CFLAGS="$CFLAGS +DAportable"
12060 ibm) if test "x$acx_maxopt_portable" = xno; then
12061 xlc_opt="-qarch=auto -qtune=auto"
12063 xlc_opt="-qtune=auto"
12065 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12067 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12068 if eval \${$as_CACHEVAR+:} false; then :
12069 $as_echo_n "(cached) " >&6
12072 ax_check_save_flags=$CFLAGS
12073 CFLAGS="$CFLAGS $xlc_opt"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12085 if ac_fn_c_try_compile "$LINENO"; then :
12086 eval "$as_CACHEVAR=yes"
12088 eval "$as_CACHEVAR=no"
12090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 CFLAGS=$ax_check_save_flags
12093 eval ac_res=\$$as_CACHEVAR
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12095 $as_echo "$ac_res" >&6; }
12096 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12097 CFLAGS="-O3 -qansialias -w $xlc_opt"
12099 CFLAGS="-O3 -qansialias -w"
12100 echo "******************************************************"
12101 echo "* You seem to have the IBM C compiler. It is *"
12102 echo "* recommended for best performance that you use: *"
12104 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12106 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
12107 echo "* CPU you have. (Set the CFLAGS environment var. *"
12108 echo "* and re-run configure.) For more info, man cc. *"
12109 echo "******************************************************"
12114 intel) CFLAGS="-O3 -ansi_alias"
12115 if test "x$acx_maxopt_portable" = xno; then
12116 icc_archflag=unknown
12120 # icc accepts gcc assembly syntax, so these should work:
12123 ac_cpp='$CPP $CPPFLAGS'
12124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12129 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12130 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12131 $as_echo_n "(cached) " >&6
12133 if test "$cross_compiling" = yes; then :
12134 ax_cv_gcc_x86_cpuid_0=unknown
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12143 int op = 0, eax, ebx, ecx, edx;
12146 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12148 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12149 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12157 if ac_fn_c_try_run "$LINENO"; then :
12158 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12160 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12163 conftest.$ac_objext conftest.beam conftest.$ac_ext
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12168 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12170 ac_cpp='$CPP $CPPFLAGS'
12171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178 ac_cpp='$CPP $CPPFLAGS'
12179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12184 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12185 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12186 $as_echo_n "(cached) " >&6
12188 if test "$cross_compiling" = yes; then :
12189 ax_cv_gcc_x86_cpuid_1=unknown
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12198 int op = 1, eax, ebx, ecx, edx;
12201 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12203 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12204 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12212 if ac_fn_c_try_run "$LINENO"; then :
12213 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12215 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12218 conftest.$ac_objext conftest.beam conftest.$ac_ext
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12223 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12225 ac_cpp='$CPP $CPPFLAGS'
12226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12231 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12232 *:756e6547:*:*) # Intel
12233 case $ax_cv_gcc_x86_cpuid_1 in
12234 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12235 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12236 *f??:*:*:*) icc_flags="-xN -xW -xK";;
12240 if test "x$icc_flags" != x; then
12241 for flag in $icc_flags; do
12242 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12244 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12245 if eval \${$as_CACHEVAR+:} false; then :
12246 $as_echo_n "(cached) " >&6
12249 ax_check_save_flags=$CFLAGS
12250 CFLAGS="$CFLAGS $flag"
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12262 if ac_fn_c_try_compile "$LINENO"; then :
12263 eval "$as_CACHEVAR=yes"
12265 eval "$as_CACHEVAR=no"
12267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 CFLAGS=$ax_check_save_flags
12270 eval ac_res=\$$as_CACHEVAR
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12272 $as_echo "$ac_res" >&6; }
12273 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12274 icc_archflag=$flag; break
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12282 $as_echo_n "checking for icc architecture flag... " >&6; }
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12284 $as_echo "$icc_archflag" >&6; }
12285 if test "x$icc_archflag" != xunknown; then
12286 CFLAGS="$CFLAGS $icc_archflag"
12292 # default optimization flags for gcc on all systems
12293 CFLAGS="-O3 -fomit-frame-pointer"
12295 # -malign-double for x86 systems
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12297 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12298 if ${ax_cv_check_cflags___malign_double+:} false; then :
12299 $as_echo_n "(cached) " >&6
12302 ax_check_save_flags=$CFLAGS
12303 CFLAGS="$CFLAGS -malign-double"
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12315 if ac_fn_c_try_compile "$LINENO"; then :
12316 ax_cv_check_cflags___malign_double=yes
12318 ax_cv_check_cflags___malign_double=no
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 CFLAGS=$ax_check_save_flags
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12324 $as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12325 if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12326 CFLAGS="$CFLAGS -malign-double"
12332 # -fstrict-aliasing for gcc-2.95+
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12334 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12335 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12336 $as_echo_n "(cached) " >&6
12339 ax_check_save_flags=$CFLAGS
12340 CFLAGS="$CFLAGS -fstrict-aliasing"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12352 if ac_fn_c_try_compile "$LINENO"; then :
12353 ax_cv_check_cflags___fstrict_aliasing=yes
12355 ax_cv_check_cflags___fstrict_aliasing=no
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 CFLAGS=$ax_check_save_flags
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12361 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12362 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12363 CFLAGS="$CFLAGS -fstrict-aliasing"
12369 # note that we enable "unsafe" fp optimization with other compilers, too
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12371 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12372 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12373 $as_echo_n "(cached) " >&6
12376 ax_check_save_flags=$CFLAGS
12377 CFLAGS="$CFLAGS -ffast-math"
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12389 if ac_fn_c_try_compile "$LINENO"; then :
12390 ax_cv_check_cflags___ffast_math=yes
12392 ax_cv_check_cflags___ffast_math=no
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 CFLAGS=$ax_check_save_flags
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12398 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12399 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12400 CFLAGS="$CFLAGS -ffast-math"
12410 # Check whether --with-gcc-arch was given.
12411 if test "${with_gcc_arch+set}" = set; then :
12412 withval=$with_gcc_arch; ax_gcc_arch=$withval
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12419 $as_echo_n "checking for gcc architecture flag... " >&6; }
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12422 if ${ax_cv_gcc_archflag+:} false; then :
12423 $as_echo_n "(cached) " >&6
12426 ax_cv_gcc_archflag="unknown"
12428 if test "$GCC" = yes; then
12430 if test "x$ax_gcc_arch" = xyes; then
12432 if test "$cross_compiling" = no; then
12434 i[3456]86*|x86_64*) # use cpuid codes
12437 ac_cpp='$CPP $CPPFLAGS'
12438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12443 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12444 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12445 $as_echo_n "(cached) " >&6
12447 if test "$cross_compiling" = yes; then :
12448 ax_cv_gcc_x86_cpuid_0=unknown
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12457 int op = 0, eax, ebx, ecx, edx;
12460 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12462 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12463 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12471 if ac_fn_c_try_run "$LINENO"; then :
12472 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12474 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12477 conftest.$ac_objext conftest.beam conftest.$ac_ext
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12482 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12484 ac_cpp='$CPP $CPPFLAGS'
12485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12492 ac_cpp='$CPP $CPPFLAGS'
12493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12498 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12499 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12500 $as_echo_n "(cached) " >&6
12502 if test "$cross_compiling" = yes; then :
12503 ax_cv_gcc_x86_cpuid_1=unknown
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12512 int op = 1, eax, ebx, ecx, edx;
12515 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12517 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12518 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12526 if ac_fn_c_try_run "$LINENO"; then :
12527 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12529 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12532 conftest.$ac_objext conftest.beam conftest.$ac_ext
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12537 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12539 ac_cpp='$CPP $CPPFLAGS'
12540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12545 case $ax_cv_gcc_x86_cpuid_0 in
12546 *:756e6547:*:*) # Intel
12547 case $ax_cv_gcc_x86_cpuid_1 in
12548 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12549 *5??:*:*:*) ax_gcc_arch=pentium ;;
12550 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12551 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12552 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12553 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12554 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12555 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12556 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12557 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12558 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12559 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12560 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12561 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12562 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12564 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12565 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12567 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12569 *:68747541:*:*) # AMD
12570 case $ax_cv_gcc_x86_cpuid_1 in
12571 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12572 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12573 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12574 *60?:*:*:*) ax_gcc_arch=k7 ;;
12575 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12576 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12577 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12581 ac_cpp='$CPP $CPPFLAGS'
12582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12587 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12588 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12589 $as_echo_n "(cached) " >&6
12591 if test "$cross_compiling" = yes; then :
12592 ax_cv_gcc_x86_cpuid_0x80000006=unknown
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12601 int op = 0x80000006, eax, ebx, ecx, edx;
12604 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12606 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12607 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12615 if ac_fn_c_try_run "$LINENO"; then :
12616 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12618 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12621 conftest.$ac_objext conftest.beam conftest.$ac_ext
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12626 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12628 ac_cpp='$CPP $CPPFLAGS'
12629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12634 case $ax_cv_gcc_x86_cpuid_0x80000006 in
12635 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12636 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12637 *) ax_gcc_arch="athlon-4 athlon k7" ;;
12639 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12640 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12641 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12642 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12643 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12644 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12645 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12647 *:746e6543:*:*) # IDT
12648 case $ax_cv_gcc_x86_cpuid_1 in
12649 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12650 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12651 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12652 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12655 if test x"$ax_gcc_arch" = x; then # fallback
12657 i586*) ax_gcc_arch=pentium ;;
12658 i686*) ax_gcc_arch=pentiumpro ;;
12664 # Extract the first word of "prtdiag", so it can be a program name with args.
12665 set dummy prtdiag; ac_word=$2
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if ${ac_cv_path_PRTDIAG+:} false; then :
12669 $as_echo_n "(cached) " >&6
12673 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12678 for as_dir in $as_dummy
12681 test -z "$as_dir" && as_dir=.
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12684 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12692 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12696 PRTDIAG=$ac_cv_path_PRTDIAG
12697 if test -n "$PRTDIAG"; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12699 $as_echo "$PRTDIAG" >&6; }
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12706 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`
12707 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12709 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12710 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12711 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12712 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12713 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12714 *cypress*) ax_gcc_arch=cypress ;;
12717 alphaev5) ax_gcc_arch=ev5 ;;
12718 alphaev56) ax_gcc_arch=ev56 ;;
12719 alphapca56) ax_gcc_arch="pca56 ev56" ;;
12720 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12721 alphaev6) ax_gcc_arch=ev6 ;;
12722 alphaev67) ax_gcc_arch=ev67 ;;
12723 alphaev68) ax_gcc_arch="ev68 ev67" ;;
12724 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12725 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12726 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12729 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`
12730 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12732 *750*) ax_gcc_arch="750 G3" ;;
12733 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12734 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12735 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12736 *970*) ax_gcc_arch="970 G5 power4";;
12737 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12738 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12739 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12740 *) ax_gcc_arch=$cputype ;;
12742 ax_gcc_arch="$ax_gcc_arch powerpc"
12745 fi # not cross-compiling
12748 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12749 for arch in $ax_gcc_arch; do
12750 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12751 flags="-mtune=$arch"
12752 # -mcpu=$arch and m$arch generate nonportable code on every arch except
12753 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
12754 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12756 flags="-march=$arch -mcpu=$arch -m$arch"
12758 for flag in $flags; do
12759 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12761 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12762 if eval \${$as_CACHEVAR+:} false; then :
12763 $as_echo_n "(cached) " >&6
12766 ax_check_save_flags=$CFLAGS
12767 CFLAGS="$CFLAGS $flag"
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12779 if ac_fn_c_try_compile "$LINENO"; then :
12780 eval "$as_CACHEVAR=yes"
12782 eval "$as_CACHEVAR=no"
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 CFLAGS=$ax_check_save_flags
12787 eval ac_res=\$$as_CACHEVAR
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12789 $as_echo "$ac_res" >&6; }
12790 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12791 ax_cv_gcc_archflag=$flag; break
12797 test "x$ax_cv_gcc_archflag" = xunknown || break
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12806 $as_echo_n "checking for gcc architecture flag... " >&6; }
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12808 $as_echo "$ax_cv_gcc_archflag" >&6; }
12809 if test "x$ax_cv_gcc_archflag" = xunknown; then
12812 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12818 if test -z "$CFLAGS"; then
12820 echo "********************************************************"
12821 echo "* WARNING: Don't know the best CFLAGS for this system *"
12822 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12823 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
12824 echo "********************************************************"
12829 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12831 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12832 if eval \${$as_CACHEVAR+:} false; then :
12833 $as_echo_n "(cached) " >&6
12836 ax_check_save_flags=$CFLAGS
12837 CFLAGS="$CFLAGS $CFLAGS"
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12849 if ac_fn_c_try_compile "$LINENO"; then :
12850 eval "$as_CACHEVAR=yes"
12852 eval "$as_CACHEVAR=no"
12854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12855 CFLAGS=$ax_check_save_flags
12857 eval ac_res=\$$as_CACHEVAR
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12859 $as_echo "$ac_res" >&6; }
12860 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12865 echo "********************************************************"
12866 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
12867 echo "* your compiler. *"
12868 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12869 echo "********************************************************"
12878 if ${CFLAGS+:} false; then :
12879 case " $CFLAGS " in
12881 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12882 (: CFLAGS already contains ) 2>&5
12884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12885 test $ac_status = 0; }
12888 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12889 (: CFLAGS="$CFLAGS ") 2>&5
12891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12892 test $ac_status = 0; }
12901 ac_cpp='$CPP $CPPFLAGS'
12902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
12907 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
12908 if ${ac_cv_cflags_warn_all+:} false; then :
12909 $as_echo_n "(cached) " >&6
12911 ac_cv_cflags_warn_all="no, unknown"
12912 ac_save_CFLAGS="$CFLAGS"
12913 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" #
12914 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12926 if ac_fn_c_try_compile "$LINENO"; then :
12927 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931 CFLAGS="$ac_save_CFLAGS"
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
12935 $as_echo "$ac_cv_cflags_warn_all" >&6; }
12937 case ".$ac_cv_cflags_warn_all" in
12940 *) if ${CFLAGS+:} false; then :
12941 case " $CFLAGS " in
12942 *" $ac_cv_cflags_warn_all "*)
12943 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
12944 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
12946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947 test $ac_status = 0; }
12950 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
12951 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
12953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12954 test $ac_status = 0; }
12955 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
12959 CFLAGS="$ac_cv_cflags_warn_all"
12965 ac_cpp='$CPP $CPPFLAGS'
12966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12971 if test "x$GCC" = "xyes"; then
12972 CFLAGS="$CFLAGS -fexceptions"
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12977 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12978 # Check whether --enable-maintainer-mode was given.
12979 if test "${enable_maintainer_mode+set}" = set; then :
12980 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12982 USE_MAINTAINER_MODE=no
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12986 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12987 if test $USE_MAINTAINER_MODE = yes; then
12988 MAINTAINER_MODE_TRUE=
12989 MAINTAINER_MODE_FALSE='#'
12991 MAINTAINER_MODE_TRUE='#'
12992 MAINTAINER_MODE_FALSE=
12995 MAINT=$MAINTAINER_MODE_TRUE
12999 for ac_header in sys/mman.h
13001 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13002 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13003 cat >>confdefs.h <<_ACEOF
13004 #define HAVE_SYS_MMAN_H 1
13011 for ac_func in mmap
13013 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13014 if test "x$ac_cv_func_mmap" = xyes; then :
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_MMAP 1
13023 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13024 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13025 libffi_header_sys_mman_h=yes
13027 libffi_header_sys_mman_h=no
13031 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13032 if test "x$ac_cv_func_mmap" = xyes; then :
13033 libffi_func_mmap=yes
13035 libffi_func_mmap=no
13038 if test "$libffi_header_sys_mman_h" != yes \
13039 || test "$libffi_func_mmap" != yes; then
13040 ac_cv_func_mmap_file=no
13041 ac_cv_func_mmap_dev_zero=no
13042 ac_cv_func_mmap_anon=no
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13045 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13046 if ${ac_cv_func_mmap_file+:} false; then :
13047 $as_echo_n "(cached) " >&6
13049 # Add a system to this blacklist if
13050 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13051 # memory area containing the same data that you'd get if you applied
13052 # read() to the same fd. The only system known to have a problem here
13053 # is VMS, where text files have record structure.
13056 ac_cv_func_mmap_file=no ;;
13058 ac_cv_func_mmap_file=yes;;
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13062 $as_echo "$ac_cv_func_mmap_file" >&6; }
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13064 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13065 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13066 $as_echo_n "(cached) " >&6
13068 # Add a system to this blacklist if it has mmap() but /dev/zero
13069 # does not exist, or if mmapping /dev/zero does not give anonymous
13070 # zeroed pages with both the following properties:
13071 # 1. If you map N consecutive pages in with one call, and then
13072 # unmap any subset of those pages, the pages that were not
13073 # explicitly unmapped remain accessible.
13074 # 2. If you map two adjacent blocks of memory and then unmap them
13075 # both at once, they must both go away.
13076 # Systems known to be in this category are Windows (all variants),
13079 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13080 ac_cv_func_mmap_dev_zero=no ;;
13082 ac_cv_func_mmap_dev_zero=yes;;
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13086 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13088 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13090 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13091 if ${ac_cv_decl_map_anon+:} false; then :
13092 $as_echo_n "(cached) " >&6
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13096 #include <sys/types.h>
13097 #include <sys/mman.h>
13098 #include <unistd.h>
13100 #ifndef MAP_ANONYMOUS
13101 #define MAP_ANONYMOUS MAP_ANON
13107 int n = MAP_ANONYMOUS;
13112 if ac_fn_c_try_compile "$LINENO"; then :
13113 ac_cv_decl_map_anon=yes
13115 ac_cv_decl_map_anon=no
13117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13120 $as_echo "$ac_cv_decl_map_anon" >&6; }
13122 if test $ac_cv_decl_map_anon = no; then
13123 ac_cv_func_mmap_anon=no
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13126 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13127 if ${ac_cv_func_mmap_anon+:} false; then :
13128 $as_echo_n "(cached) " >&6
13130 # Add a system to this blacklist if it has mmap() and MAP_ANON or
13131 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13132 # doesn't give anonymous zeroed pages with the same properties listed
13133 # above for use of /dev/zero.
13134 # Systems known to be in this category are Windows, VMS, and SCO Unix.
13136 vms* | cygwin* | pe | mingw* | sco* | udk* )
13137 ac_cv_func_mmap_anon=no ;;
13139 ac_cv_func_mmap_anon=yes;;
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13143 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13147 if test $ac_cv_func_mmap_file = yes; then
13149 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13152 if test $ac_cv_func_mmap_dev_zero = yes; then
13154 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13157 if test $ac_cv_func_mmap_anon = yes; then
13159 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13164 if test -d $srcdir/testsuite; then
13166 TESTSUBDIR_FALSE='#'
13168 TESTSUBDIR_TRUE='#'
13173 TARGETDIR="unknown"
13176 TARGET=AARCH64; TARGETDIR=aarch64
13180 TARGET=ALPHA; TARGETDIR=alpha;
13181 # Support 128-bit long double, changeable via command-line switch.
13182 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13186 TARGET=ARM; TARGETDIR=arm
13189 amd64-*-freebsd* | amd64-*-openbsd*)
13190 TARGET=X86_64; TARGETDIR=x86
13194 TARGET=X86_64; TARGETDIR=x86
13198 TARGET=AVR32; TARGETDIR=avr32
13202 TARGET=BFIN; TARGETDIR=bfin
13206 TARGET=LIBFFI_CRIS; TARGETDIR=cris
13210 TARGET=FRV; TARGETDIR=frv
13213 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13214 TARGET=PA_LINUX; TARGETDIR=pa
13217 TARGET=PA64_HPUX; TARGETDIR=pa
13220 TARGET=PA_HPUX; TARGETDIR=pa
13223 i?86-*-freebsd* | i?86-*-openbsd*)
13224 TARGET=X86_FREEBSD; TARGETDIR=x86
13226 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13227 TARGET=X86_WIN32; TARGETDIR=x86
13228 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13229 # We must also check with_cross_host to decide if this is a native
13230 # or cross-build and select where to install dlls appropriately.
13231 if test -n "$with_cross_host" &&
13232 test x"$with_cross_host" != x"no"; then
13233 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13235 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13239 TARGET=X86_DARWIN; TARGETDIR=x86
13241 i?86-*-solaris2.1[0-9]*)
13242 TARGET=X86_64; TARGETDIR=x86
13245 TARGET=X86_64; TARGETDIR=x86
13249 TARGET=IA64; TARGETDIR=ia64
13253 TARGET=M32R; TARGETDIR=m32r
13257 TARGET=M68K; TARGETDIR=m68k
13260 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13261 TARGET=MIPS; TARGETDIR=mips
13263 mips*-*-linux* | mips*-*-openbsd*)
13264 # Support 128-bit long double for NewABI.
13265 HAVE_LONG_DOUBLE='defined(__mips64)'
13266 TARGET=MIPS; TARGETDIR=mips
13270 TARGET=MOXIE; TARGETDIR=moxie
13273 powerpc*-*-linux* | powerpc-*-sysv*)
13274 TARGET=POWERPC; TARGETDIR=powerpc
13276 powerpc-*-amigaos*)
13277 TARGET=POWERPC; TARGETDIR=powerpc
13280 TARGET=POWERPC; TARGETDIR=powerpc
13282 powerpc-*-darwin* | powerpc64-*-darwin*)
13283 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13285 powerpc-*-aix* | rs6000-*-aix*)
13286 TARGET=POWERPC_AIX; TARGETDIR=powerpc
13288 powerpc-*-freebsd* | powerpc-*-openbsd*)
13289 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13291 powerpc64-*-freebsd*)
13292 TARGET=POWERPC; TARGETDIR=powerpc
13295 TARGET=POWERPC; TARGETDIR=powerpc
13298 s390-*-* | s390x-*-*)
13299 TARGET=S390; TARGETDIR=s390
13302 sh-*-* | sh[34]*-*-*)
13303 TARGET=SH; TARGETDIR=sh
13305 sh64-*-* | sh5*-*-*)
13306 TARGET=SH64; TARGETDIR=sh64
13310 TARGET=SPARC; TARGETDIR=sparc
13314 TARGET=TILE; TARGETDIR=tile
13318 TARGET=X86_DARWIN; TARGETDIR=x86
13321 x86_64-*-cygwin* | x86_64-*-mingw*)
13322 TARGET=X86_WIN64; TARGETDIR=x86
13323 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13324 # We must also check with_cross_host to decide if this is a native
13325 # or cross-build and select where to install dlls appropriately.
13326 if test -n "$with_cross_host" &&
13327 test x"$with_cross_host" != x"no"; then
13328 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13330 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13335 TARGET=X86_64; TARGETDIR=x86
13342 if test $TARGETDIR = unknown; then
13343 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13346 if test x$TARGET = xMIPS; then
13354 if test x$TARGET = xBFIN; then
13362 if test x$TARGET = xSPARC; then
13370 if test x$TARGET = xX86; then
13378 if test x$TARGET = xX86_FREEBSD; then
13380 X86_FREEBSD_FALSE='#'
13382 X86_FREEBSD_TRUE='#'
13386 if test x$TARGET = xX86_WIN32; then
13388 X86_WIN32_FALSE='#'
13394 if test x$TARGET = xX86_WIN64; then
13396 X86_WIN64_FALSE='#'
13402 if test x$TARGET = xX86_DARWIN; then
13404 X86_DARWIN_FALSE='#'
13406 X86_DARWIN_TRUE='#'
13410 if test x$TARGET = xALPHA; then
13418 if test x$TARGET = xIA64; then
13426 if test x$TARGET = xM32R; then
13434 if test x$TARGET = xM68K; then
13442 if test x$TARGET = xMOXIE; then
13450 if test x$TARGET = xPOWERPC; then
13458 if test x$TARGET = xPOWERPC_AIX; then
13460 POWERPC_AIX_FALSE='#'
13462 POWERPC_AIX_TRUE='#'
13466 if test x$TARGET = xPOWERPC_DARWIN; then
13467 POWERPC_DARWIN_TRUE=
13468 POWERPC_DARWIN_FALSE='#'
13470 POWERPC_DARWIN_TRUE='#'
13471 POWERPC_DARWIN_FALSE=
13474 if test x$TARGET = xPOWERPC_FREEBSD; then
13475 POWERPC_FREEBSD_TRUE=
13476 POWERPC_FREEBSD_FALSE='#'
13478 POWERPC_FREEBSD_TRUE='#'
13479 POWERPC_FREEBSD_FALSE=
13482 if test x$TARGET = xAARCH64; then
13490 if test x$TARGET = xARM; then
13498 if test x$TARGET = xAVR32; then
13506 if test x$TARGET = xLIBFFI_CRIS; then
13508 LIBFFI_CRIS_FALSE='#'
13510 LIBFFI_CRIS_TRUE='#'
13514 if test x$TARGET = xFRV; then
13522 if test x$TARGET = xS390; then
13530 if test x$TARGET = xX86_64; then
13538 if test x$TARGET = xSH; then
13546 if test x$TARGET = xSH64; then
13554 if test x$TARGET = xPA_LINUX; then
13562 if test x$TARGET = xPA_HPUX; then
13570 if test x$TARGET = xPA64_HPUX; then
13572 PA64_HPUX_FALSE='#'
13578 if test x$TARGET = xTILE; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13588 $as_echo_n "checking for ANSI C header files... " >&6; }
13589 if ${ac_cv_header_stdc+:} false; then :
13590 $as_echo_n "(cached) " >&6
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594 #include <stdlib.h>
13595 #include <stdarg.h>
13596 #include <string.h>
13607 if ac_fn_c_try_compile "$LINENO"; then :
13608 ac_cv_header_stdc=yes
13610 ac_cv_header_stdc=no
13612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 if test $ac_cv_header_stdc = yes; then
13615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 #include <string.h>
13621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13622 $EGREP "memchr" >/dev/null 2>&1; then :
13625 ac_cv_header_stdc=no
13631 if test $ac_cv_header_stdc = yes; then
13632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 #include <stdlib.h>
13638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13639 $EGREP "free" >/dev/null 2>&1; then :
13642 ac_cv_header_stdc=no
13648 if test $ac_cv_header_stdc = yes; then
13649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13650 if test "$cross_compiling" = yes; then :
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13656 #include <stdlib.h>
13657 #if ((' ' & 0x0FF) == 0x020)
13658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13661 # define ISLOWER(c) \
13662 (('a' <= (c) && (c) <= 'i') \
13663 || ('j' <= (c) && (c) <= 'r') \
13664 || ('s' <= (c) && (c) <= 'z'))
13665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13673 for (i = 0; i < 256; i++)
13674 if (XOR (islower (i), ISLOWER (i))
13675 || toupper (i) != TOUPPER (i))
13680 if ac_fn_c_try_run "$LINENO"; then :
13683 ac_cv_header_stdc=no
13685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13686 conftest.$ac_objext conftest.beam conftest.$ac_ext
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13692 $as_echo "$ac_cv_header_stdc" >&6; }
13693 if test $ac_cv_header_stdc = yes; then
13695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13699 for ac_func in memcpy
13701 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13702 if test "x$ac_cv_func_memcpy" = xyes; then :
13703 cat >>confdefs.h <<_ACEOF
13704 #define HAVE_MEMCPY 1
13710 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13711 if test "x$ac_cv_type_size_t" = xyes; then :
13715 cat >>confdefs.h <<_ACEOF
13716 #define size_t unsigned int
13721 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13722 # for constant arguments. Useless!
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13724 $as_echo_n "checking for working alloca.h... " >&6; }
13725 if ${ac_cv_working_alloca_h+:} false; then :
13726 $as_echo_n "(cached) " >&6
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 #include <alloca.h>
13734 char *p = (char *) alloca (2 * sizeof (int));
13740 if ac_fn_c_try_link "$LINENO"; then :
13741 ac_cv_working_alloca_h=yes
13743 ac_cv_working_alloca_h=no
13745 rm -f core conftest.err conftest.$ac_objext \
13746 conftest$ac_exeext conftest.$ac_ext
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13749 $as_echo "$ac_cv_working_alloca_h" >&6; }
13750 if test $ac_cv_working_alloca_h = yes; then
13752 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13757 $as_echo_n "checking for alloca... " >&6; }
13758 if ${ac_cv_func_alloca_works+:} false; then :
13759 $as_echo_n "(cached) " >&6
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13764 # define alloca __builtin_alloca
13767 # include <malloc.h>
13768 # define alloca _alloca
13770 # ifdef HAVE_ALLOCA_H
13771 # include <alloca.h>
13776 # ifndef alloca /* predefined by HP cc +Olibcalls */
13777 void *alloca (size_t);
13787 char *p = (char *) alloca (1);
13793 if ac_fn_c_try_link "$LINENO"; then :
13794 ac_cv_func_alloca_works=yes
13796 ac_cv_func_alloca_works=no
13798 rm -f core conftest.err conftest.$ac_objext \
13799 conftest$ac_exeext conftest.$ac_ext
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13802 $as_echo "$ac_cv_func_alloca_works" >&6; }
13804 if test $ac_cv_func_alloca_works = yes; then
13806 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13809 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13810 # that cause trouble. Some versions do not even contain alloca or
13811 # contain a buggy version. If you still want to use their alloca,
13812 # use ar to extract alloca.o from them instead of compiling alloca.c.
13814 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13816 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13820 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13821 if ${ac_cv_os_cray+:} false; then :
13822 $as_echo_n "(cached) " >&6
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #if defined CRAY && ! defined CRAY2
13833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13834 $EGREP "webecray" >/dev/null 2>&1; then :
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13843 $as_echo "$ac_cv_os_cray" >&6; }
13844 if test $ac_cv_os_cray = yes; then
13845 for ac_func in _getb67 GETB67 getb67; do
13846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13848 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13850 cat >>confdefs.h <<_ACEOF
13851 #define CRAY_STACKSEG_END $ac_func
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13861 $as_echo_n "checking stack direction for C alloca... " >&6; }
13862 if ${ac_cv_c_stack_direction+:} false; then :
13863 $as_echo_n "(cached) " >&6
13865 if test "$cross_compiling" = yes; then :
13866 ac_cv_c_stack_direction=0
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13870 $ac_includes_default
13872 find_stack_direction ()
13874 static char *addr = 0;
13879 return find_stack_direction ();
13882 return (&dummy > addr) ? 1 : -1;
13888 return find_stack_direction () < 0;
13891 if ac_fn_c_try_run "$LINENO"; then :
13892 ac_cv_c_stack_direction=1
13894 ac_cv_c_stack_direction=-1
13896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13897 conftest.$ac_objext conftest.beam conftest.$ac_ext
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13902 $as_echo "$ac_cv_c_stack_direction" >&6; }
13903 cat >>confdefs.h <<_ACEOF
13904 #define STACK_DIRECTION $ac_cv_c_stack_direction
13911 # The cast to long int works around a bug in the HP C Compiler
13912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13914 # This bug is HP SR number 8606223364.
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
13916 $as_echo_n "checking size of double... " >&6; }
13917 if ${ac_cv_sizeof_double+:} false; then :
13918 $as_echo_n "(cached) " >&6
13920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
13923 if test "$ac_cv_type_double" = yes; then
13924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13926 as_fn_error 77 "cannot compute sizeof (double)
13927 See \`config.log' for more details" "$LINENO" 5; }
13929 ac_cv_sizeof_double=0
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
13935 $as_echo "$ac_cv_sizeof_double" >&6; }
13939 cat >>confdefs.h <<_ACEOF
13940 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13944 # The cast to long int works around a bug in the HP C Compiler
13945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13947 # This bug is HP SR number 8606223364.
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
13949 $as_echo_n "checking size of long double... " >&6; }
13950 if ${ac_cv_sizeof_long_double+:} false; then :
13951 $as_echo_n "(cached) " >&6
13953 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
13956 if test "$ac_cv_type_long_double" = yes; then
13957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13959 as_fn_error 77 "cannot compute sizeof (long double)
13960 See \`config.log' for more details" "$LINENO" 5; }
13962 ac_cv_sizeof_long_double=0
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
13968 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13972 cat >>confdefs.h <<_ACEOF
13973 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13978 # Also AC_SUBST this variable for ffi.h.
13979 if test -z "$HAVE_LONG_DOUBLE"; then
13981 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13982 if test $ac_cv_sizeof_long_double != 0; then
13985 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13993 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13994 if ${ac_cv_c_bigendian+:} false; then :
13995 $as_echo_n "(cached) " >&6
13997 ac_cv_c_bigendian=unknown
13998 # See if we're dealing with a universal compiler.
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001 #ifndef __APPLE_CC__
14002 not a universal capable compiler
14007 if ac_fn_c_try_compile "$LINENO"; then :
14009 # Check for potential -arch flags. It is not universal unless
14010 # there are at least two -arch flags with different values.
14013 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14014 if test -n "$ac_prev"; then
14016 i?86 | x86_64 | ppc | ppc64)
14017 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14020 ac_cv_c_bigendian=universal
14026 elif test "x$ac_word" = "x-arch"; then
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 if test $ac_cv_c_bigendian = unknown; then
14033 # See if sys/param.h defines the BYTE_ORDER macro.
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14036 #include <sys/types.h>
14037 #include <sys/param.h>
14042 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14043 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14045 bogus endian macros
14052 if ac_fn_c_try_compile "$LINENO"; then :
14053 # It does; now see whether it defined to BIG_ENDIAN or not.
14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056 #include <sys/types.h>
14057 #include <sys/param.h>
14062 #if BYTE_ORDER != BIG_ENDIAN
14070 if ac_fn_c_try_compile "$LINENO"; then :
14071 ac_cv_c_bigendian=yes
14073 ac_cv_c_bigendian=no
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 if test $ac_cv_c_bigendian = unknown; then
14080 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14083 #include <limits.h>
14088 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14089 bogus endian macros
14096 if ac_fn_c_try_compile "$LINENO"; then :
14097 # It does; now see whether it defined to _BIG_ENDIAN or not.
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 #include <limits.h>
14105 #ifndef _BIG_ENDIAN
14113 if ac_fn_c_try_compile "$LINENO"; then :
14114 ac_cv_c_bigendian=yes
14116 ac_cv_c_bigendian=no
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122 if test $ac_cv_c_bigendian = unknown; then
14123 # Compile a test program.
14124 if test "$cross_compiling" = yes; then :
14125 # Try to guess by grepping values from an object file.
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14128 short int ascii_mm[] =
14129 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14130 short int ascii_ii[] =
14131 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14132 int use_ascii (int i) {
14133 return ascii_mm[i] + ascii_ii[i];
14135 short int ebcdic_ii[] =
14136 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14137 short int ebcdic_mm[] =
14138 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14139 int use_ebcdic (int i) {
14140 return ebcdic_mm[i] + ebcdic_ii[i];
14147 return use_ascii (foo) == use_ebcdic (foo);
14152 if ac_fn_c_try_compile "$LINENO"; then :
14153 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14154 ac_cv_c_bigendian=yes
14156 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14157 if test "$ac_cv_c_bigendian" = unknown; then
14158 ac_cv_c_bigendian=no
14160 # finding both strings is unlikely to happen, but who knows?
14161 ac_cv_c_bigendian=unknown
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169 $ac_includes_default
14174 /* Are we little or big endian? From Harbison&Steele. */
14178 char c[sizeof (long int)];
14181 return u.c[sizeof (long int) - 1] == 1;
14187 if ac_fn_c_try_run "$LINENO"; then :
14188 ac_cv_c_bigendian=no
14190 ac_cv_c_bigendian=yes
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14193 conftest.$ac_objext conftest.beam conftest.$ac_ext
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14199 $as_echo "$ac_cv_c_bigendian" >&6; }
14200 case $ac_cv_c_bigendian in #(
14202 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14208 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14212 as_fn_error $? "unknown endianness
14213 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14218 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14219 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14220 $as_echo_n "(cached) " >&6
14223 gcc_cv_as_cfi_pseudo_op=unknown
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 asm (".cfi_startproc\n\t.cfi_endproc");
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 gcc_cv_as_cfi_pseudo_op=yes
14238 gcc_cv_as_cfi_pseudo_op=no
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14244 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14245 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14247 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14252 if test x$TARGET = xSPARC; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14254 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14255 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14256 $as_echo_n "(cached) " >&6
14259 save_CFLAGS="$CFLAGS"
14260 save_LDFLAGS="$LDFLAGS"
14261 CFLAGS="$CFLAGS -fpic"
14262 LDFLAGS="$LDFLAGS -shared"
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14265 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14274 if ac_fn_c_try_link "$LINENO"; then :
14275 libffi_cv_as_sparc_ua_pcrel=yes
14277 libffi_cv_as_sparc_ua_pcrel=no
14279 rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
14281 CFLAGS="$save_CFLAGS"
14282 LDFLAGS="$save_LDFLAGS"
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14285 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14286 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14288 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14293 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14294 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14295 $as_echo_n "(cached) " >&6
14298 libffi_cv_as_register_pseudo_op=unknown
14299 # Check if we have .register
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 asm (".register %g2, #scratch");
14311 if ac_fn_c_try_compile "$LINENO"; then :
14312 libffi_cv_as_register_pseudo_op=yes
14314 libffi_cv_as_register_pseudo_op=no
14316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14320 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14321 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14323 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14328 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14330 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14331 if ${libffi_cv_as_x86_pcrel+:} false; then :
14332 $as_echo_n "(cached) " >&6
14335 libffi_cv_as_x86_pcrel=yes
14336 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14337 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14338 libffi_cv_as_x86_pcrel=no
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14343 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14344 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14346 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14351 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14352 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14353 $as_echo_n "(cached) " >&6
14356 libffi_cv_as_ascii_pseudo_op=unknown
14357 # Check if we have .ascii
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 asm (".ascii \\"string\\"");
14369 if ac_fn_c_try_compile "$LINENO"; then :
14370 libffi_cv_as_ascii_pseudo_op=yes
14372 libffi_cv_as_ascii_pseudo_op=no
14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14378 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14379 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14381 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14386 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14387 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14388 $as_echo_n "(cached) " >&6
14391 libffi_cv_as_string_pseudo_op=unknown
14392 # Check if we have .string
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395 asm (".string \\"string\\"");
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405 libffi_cv_as_string_pseudo_op=yes
14407 libffi_cv_as_string_pseudo_op=no
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14413 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14414 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14416 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14421 if test x$TARGET = xX86_WIN64; then
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14423 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14424 if ${lt_cv_sys_symbol_underscore+:} false; then :
14425 $as_echo_n "(cached) " >&6
14427 lt_cv_sys_symbol_underscore=no
14428 cat > conftest.$ac_ext <<_LT_EOF
14429 void nm_test_func(){}
14430 int main(){nm_test_func;return 0;}
14432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14433 (eval $ac_compile) 2>&5
14435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14436 test $ac_status = 0; }; then
14437 # Now try to grab the symbols.
14438 ac_nlist=conftest.nm
14439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14440 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14443 test $ac_status = 0; } && test -s "$ac_nlist"; then
14444 # See whether the symbols have a leading underscore.
14445 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14446 lt_cv_sys_symbol_underscore=yes
14448 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14451 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14455 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14458 echo "configure: failed program was:" >&5
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14465 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14466 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14469 if test "x$sys_symbol_underscore" = xyes; then
14471 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14476 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14477 # Check whether --enable-pax_emutramp was given.
14478 if test "${enable_pax_emutramp+set}" = set; then :
14479 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14481 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14487 FFI_EXEC_TRAMPOLINE_TABLE=0
14489 *arm*-apple-darwin*)
14490 FFI_EXEC_TRAMPOLINE_TABLE=1
14492 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14495 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14497 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14501 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14502 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14503 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14505 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14506 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14511 if test x$TARGET = xX86_64; then
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14513 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14514 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14515 $as_echo_n "(cached) " >&6
14518 libffi_cv_as_x86_64_unwind_section_type=yes
14519 echo '.section .eh_frame,"a",@unwind' > conftest.s
14520 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14521 libffi_cv_as_x86_64_unwind_section_type=no
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14526 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14527 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14529 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14534 if test "x$GCC" = "xyes"; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14536 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14537 if ${libffi_cv_ro_eh_frame+:} false; then :
14538 $as_echo_n "(cached) " >&6
14541 libffi_cv_ro_eh_frame=no
14542 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14543 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14544 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14545 libffi_cv_ro_eh_frame=yes
14546 elif grep '.section.*eh_frame.*#alloc' conftest.c \
14547 | grep -v '#write' > /dev/null; then
14548 libffi_cv_ro_eh_frame=yes
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14555 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14556 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14558 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14561 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14565 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14570 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14571 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14572 $as_echo_n "(cached) " >&6
14575 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
14576 libffi_cv_hidden_visibility_attribute=no
14577 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14579 (eval $ac_try) 2>&5
14581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14582 test $ac_status = 0; }; }; then
14583 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14584 libffi_cv_hidden_visibility_attribute=yes
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14591 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14592 if test $libffi_cv_hidden_visibility_attribute = yes; then
14594 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14606 # Check whether --enable-debug was given.
14607 if test "${enable_debug+set}" = set; then :
14608 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14610 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14615 if test "$enable_debug" = "yes"; then
14617 FFI_DEBUG_FALSE='#'
14624 # Check whether --enable-structs was given.
14625 if test "${enable_structs+set}" = set; then :
14626 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14628 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14634 # Check whether --enable-raw-api was given.
14635 if test "${enable_raw_api+set}" = set; then :
14636 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14638 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14644 # Check whether --enable-purify-safety was given.
14645 if test "${enable_purify_safety+set}" = set; then :
14646 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14648 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14654 # These variables are only ever used when we cross-build to X86_WIN32.
14655 # And we only support this with GCC, so...
14656 if test x"$GCC" != x"no"; then
14657 if test -n "$with_cross_host" &&
14658 test x"$with_cross_host" != x"no"; then
14659 toolexecdir='$(exec_prefix)/$(target_alias)'
14660 toolexeclibdir='$(toolexecdir)/lib'
14662 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14663 toolexeclibdir='$(libdir)'
14665 multi_os_directory=`$CC -print-multi-os-directory`
14666 case $multi_os_directory in
14667 .) ;; # Avoid trailing /.
14668 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14674 if test "${multilib}" = "yes"; then
14675 multilib_arg="--enable-multilib"
14680 ac_config_commands="$ac_config_commands include"
14682 ac_config_commands="$ac_config_commands src"
14685 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14688 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14691 cat >confcache <<\_ACEOF
14692 # This file is a shell script that caches the results of configure
14693 # tests run on this system so they can be shared between configure
14694 # scripts and configure runs, see configure's option --config-cache.
14695 # It is not useful on other systems. If it contains results you don't
14696 # want to keep, you may remove or edit it.
14698 # config.status only pays attention to the cache file if you give it
14699 # the --recheck option to rerun configure.
14701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14703 # following values.
14707 # The following way of writing the cache mishandles newlines in values,
14708 # but we know of no workaround that is simple, portable, and efficient.
14709 # So, we kill variables containing newlines.
14710 # Ultrix sh set writes to stderr and can't be redirected directly,
14711 # and sets the high bit in the cache file unless we assign to the vars.
14713 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14714 eval ac_val=\$$ac_var
14718 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14722 _ | IFS | as_nl) ;; #(
14723 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14724 *) { eval $ac_var=; unset $ac_var;} ;;
14730 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14731 *${as_nl}ac_space=\ *)
14732 # `set' does not quote correctly, so add quotes: double-quote
14733 # substitution turns \\\\ into \\, and sed turns \\ into \.
14736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14739 # `set' quotes correctly as required by POSIX, so do not add quotes.
14740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14749 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14751 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14754 if test -w "$cache_file"; then
14755 if test "x$cache_file" != "x/dev/null"; then
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14757 $as_echo "$as_me: updating cache $cache_file" >&6;}
14758 if test ! -f "$cache_file" || test -h "$cache_file"; then
14759 cat confcache >"$cache_file"
14761 case $cache_file in #(
14763 mv -f confcache "$cache_file"$$ &&
14764 mv -f "$cache_file"$$ "$cache_file" ;; #(
14766 mv -f confcache "$cache_file" ;;
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14772 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14778 # Let make expand exec_prefix.
14779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14781 DEFS=-DHAVE_CONFIG_H
14786 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14787 # 1. Remove the extension, and $U if already installed.
14788 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14789 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14790 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14791 # will be set to the directory where LIBOBJS objects are built.
14792 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14793 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14795 LIBOBJS=$ac_libobjs
14797 LTLIBOBJS=$ac_ltlibobjs
14800 if test -n "$EXEEXT"; then
14802 am__EXEEXT_FALSE='#'
14804 am__EXEEXT_TRUE='#'
14808 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14809 as_fn_error $? "conditional \"AMDEP\" was never defined.
14810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14813 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14816 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14817 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14820 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14821 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14824 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14825 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14828 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14829 as_fn_error $? "conditional \"MIPS\" was never defined.
14830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14832 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14833 as_fn_error $? "conditional \"BFIN\" was never defined.
14834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14836 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14837 as_fn_error $? "conditional \"SPARC\" was never defined.
14838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14840 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14841 as_fn_error $? "conditional \"X86\" was never defined.
14842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14844 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14845 as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14848 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14849 as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14852 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14853 as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14856 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14857 as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14860 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14861 as_fn_error $? "conditional \"ALPHA\" was never defined.
14862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14864 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14865 as_fn_error $? "conditional \"IA64\" was never defined.
14866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14868 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14869 as_fn_error $? "conditional \"M32R\" was never defined.
14870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14872 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14873 as_fn_error $? "conditional \"M68K\" was never defined.
14874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14876 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
14877 as_fn_error $? "conditional \"MOXIE\" was never defined.
14878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14880 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14881 as_fn_error $? "conditional \"POWERPC\" was never defined.
14882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14884 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14885 as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
14886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14888 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14889 as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
14890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14892 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14893 as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
14894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14896 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
14897 as_fn_error $? "conditional \"AARCH64\" was never defined.
14898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14900 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14901 as_fn_error $? "conditional \"ARM\" was never defined.
14902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14904 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14905 as_fn_error $? "conditional \"AVR32\" was never defined.
14906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14908 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14909 as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
14910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14912 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14913 as_fn_error $? "conditional \"FRV\" was never defined.
14914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14916 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14917 as_fn_error $? "conditional \"S390\" was never defined.
14918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14920 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14921 as_fn_error $? "conditional \"X86_64\" was never defined.
14922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14924 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14925 as_fn_error $? "conditional \"SH\" was never defined.
14926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14928 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
14929 as_fn_error $? "conditional \"SH64\" was never defined.
14930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14932 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
14933 as_fn_error $? "conditional \"PA_LINUX\" was never defined.
14934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14936 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
14937 as_fn_error $? "conditional \"PA_HPUX\" was never defined.
14938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14940 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
14941 as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
14942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14944 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
14945 as_fn_error $? "conditional \"TILE\" was never defined.
14946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14949 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
14950 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
14951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14953 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
14954 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
14955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14958 : "${CONFIG_STATUS=./config.status}"
14960 ac_clean_files_save=$ac_clean_files
14961 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14963 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14965 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14967 # Generated by $as_me.
14968 # Run this file to recreate the current configuration.
14969 # Compiler output produced by configure, useful for debugging
14970 # configure, is in config.log if it exists.
14973 ac_cs_recheck=false
14976 SHELL=\${CONFIG_SHELL-$SHELL}
14979 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14980 ## -------------------- ##
14981 ## M4sh Initialization. ##
14982 ## -------------------- ##
14984 # Be more Bourne compatible
14985 DUALCASE=1; export DUALCASE # for MKS sh
14986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14989 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14990 # is contrary to our usage. Disable this feature.
14991 alias -g '${1+"$@"}'='"$@"'
14992 setopt NO_GLOB_SUBST
14994 case `(set -o) 2>/dev/null` in #(
15006 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15007 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15010 # Prefer a ksh shell builtin over an external printf program on Solaris,
15011 # but without wasting forks for bash or zsh.
15012 if test -z "$BASH_VERSION$ZSH_VERSION" \
15013 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15014 as_echo='print -r --'
15015 as_echo_n='print -rn --'
15016 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15017 as_echo='printf %s\n'
15018 as_echo_n='printf %s'
15020 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15021 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15022 as_echo_n='/usr/ucb/echo -n'
15024 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15025 as_echo_n_body='eval
15029 expr "X$arg" : "X\\(.*\\)$as_nl";
15030 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15032 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15034 export as_echo_n_body
15035 as_echo_n='sh -c $as_echo_n_body as_echo'
15037 export as_echo_body
15038 as_echo='sh -c $as_echo_body as_echo'
15041 # The user is always right.
15042 if test "${PATH_SEPARATOR+set}" != set; then
15044 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15045 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15052 # We need space, tab and new line, in precisely that order. Quoting is
15053 # there to prevent editors from complaining about space-tab.
15054 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15055 # splitting by setting IFS to empty value.)
15058 # Find who we are. Look in the path if we contain no directory separator.
15061 *[\\/]* ) as_myself=$0 ;;
15062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15063 for as_dir in $PATH
15066 test -z "$as_dir" && as_dir=.
15067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15073 # We did not find ourselves, most probably we were run as `sh COMMAND'
15074 # in which case we are not to be found in the path.
15075 if test "x$as_myself" = x; then
15078 if test ! -f "$as_myself"; then
15079 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15083 # Unset variables that we do not need and which cause bugs (e.g. in
15084 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15085 # suppresses any "Segmentation fault" message there. '((' could
15086 # trigger a bug in pdksh 5.2.14.
15087 for as_var in BASH_ENV ENV MAIL MAILPATH
15088 do eval test x\${$as_var+set} = xset \
15089 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15102 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15105 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15106 # ----------------------------------------
15107 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15108 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15109 # script with STATUS, using 1 if that was 0.
15112 as_status=$1; test $as_status -eq 0 && as_status=1
15114 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15115 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15117 $as_echo "$as_me: error: $2" >&2
15118 as_fn_exit $as_status
15122 # as_fn_set_status STATUS
15123 # -----------------------
15124 # Set $? to STATUS, without forking.
15125 as_fn_set_status ()
15128 } # as_fn_set_status
15130 # as_fn_exit STATUS
15131 # -----------------
15132 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15136 as_fn_set_status $1
15142 # Portably unset VAR.
15145 { eval $1=; unset $1;}
15147 as_unset=as_fn_unset
15148 # as_fn_append VAR VALUE
15149 # ----------------------
15150 # Append the text in VALUE to the end of the definition contained in VAR. Take
15151 # advantage of any shell optimizations that allow amortized linear growth over
15152 # repeated appends, instead of the typical quadratic growth present in naive
15154 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15155 eval 'as_fn_append ()
15166 # as_fn_arith ARG...
15167 # ------------------
15168 # Perform arithmetic evaluation on the ARGs, and store the result in the
15169 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15170 # must be portable across $(()) and expr.
15171 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15172 eval 'as_fn_arith ()
15179 as_val=`expr "$@" || test $? -eq 1`
15184 if expr a : '\(a\)' >/dev/null 2>&1 &&
15185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15191 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15192 as_basename=basename
15197 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15203 as_me=`$as_basename -- "$0" ||
15204 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15205 X"$0" : 'X\(//\)$' \| \
15206 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15208 sed '/^.*\/\([^/][^/]*\)\/*$/{
15222 # Avoid depending upon Character Ranges.
15223 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15224 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15225 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15226 as_cr_digits='0123456789'
15227 as_cr_alnum=$as_cr_Letters$as_cr_digits
15229 ECHO_C= ECHO_N= ECHO_T=
15230 case `echo -n x` in #(((((
15232 case `echo 'xy\c'` in
15233 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15235 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15242 rm -f conf$$ conf$$.exe conf$$.file
15243 if test -d conf$$.dir; then
15244 rm -f conf$$.dir/conf$$.file
15247 mkdir conf$$.dir 2>/dev/null
15249 if (echo >conf$$.file) 2>/dev/null; then
15250 if ln -s conf$$.file conf$$ 2>/dev/null; then
15252 # ... but there are two gotchas:
15253 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15254 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15255 # In both cases, we have to default to `cp -p'.
15256 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15258 elif ln conf$$.file conf$$ 2>/dev/null; then
15266 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15267 rmdir conf$$.dir 2>/dev/null
15272 # Create "$as_dir" as a directory, including parents if necessary.
15277 -*) as_dir=./$as_dir;;
15279 test -d "$as_dir" || eval $as_mkdir_p || {
15283 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15284 *) as_qdir=$as_dir;;
15286 as_dirs="'$as_qdir' $as_dirs"
15287 as_dir=`$as_dirname -- "$as_dir" ||
15288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15289 X"$as_dir" : 'X\(//\)[^/]' \| \
15290 X"$as_dir" : 'X\(//\)$' \| \
15291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15292 $as_echo X"$as_dir" |
15293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15297 /^X\(\/\/\)[^/].*/{
15310 test -d "$as_dir" && break
15312 test -z "$as_dirs" || eval "mkdir $as_dirs"
15313 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15317 if mkdir -p . 2>/dev/null; then
15318 as_mkdir_p='mkdir -p "$as_dir"'
15320 test -d ./-p && rmdir ./-p
15324 if test -x / >/dev/null 2>&1; then
15325 as_test_x='test -x'
15327 if ls -dL / >/dev/null 2>&1; then
15334 if test -d "$1"; then
15340 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15341 ???[sx]*):;;*)false;;esac;fi
15345 as_executable_p=$as_test_x
15347 # Sed expression to map a string onto a valid CPP name.
15348 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15350 # Sed expression to map a string onto a valid variable name.
15351 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15355 ## ----------------------------------- ##
15356 ## Main body of $CONFIG_STATUS script. ##
15357 ## ----------------------------------- ##
15359 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15362 # Save the log message, to keep $0 and so on meaningful, and to
15363 # report actual input values of CONFIG_FILES etc. instead of their
15364 # values after options handling.
15366 This file was extended by libffi $as_me 3.0.11, which was
15367 generated by GNU Autoconf 2.68. Invocation command line was
15369 CONFIG_FILES = $CONFIG_FILES
15370 CONFIG_HEADERS = $CONFIG_HEADERS
15371 CONFIG_LINKS = $CONFIG_LINKS
15372 CONFIG_COMMANDS = $CONFIG_COMMANDS
15375 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15380 case $ac_config_files in *"
15381 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15384 case $ac_config_headers in *"
15385 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15390 # Files that config.status was made for.
15391 config_files="$ac_config_files"
15392 config_headers="$ac_config_headers"
15393 config_links="$ac_config_links"
15394 config_commands="$ac_config_commands"
15398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15400 \`$as_me' instantiates files and other configuration actions
15401 from templates according to the current configuration. Unless the files
15402 and actions are specified as TAGs, all are instantiated by default.
15404 Usage: $0 [OPTION]... [TAG]...
15406 -h, --help print this help, then exit
15407 -V, --version print version number and configuration settings, then exit
15408 --config print configuration, then exit
15409 -q, --quiet, --silent
15410 do not print progress messages
15411 -d, --debug don't remove temporary files
15412 --recheck update $as_me by reconfiguring in the same conditions
15413 --file=FILE[:TEMPLATE]
15414 instantiate the configuration file FILE
15415 --header=FILE[:TEMPLATE]
15416 instantiate the configuration header FILE
15418 Configuration files:
15421 Configuration headers:
15424 Configuration links:
15427 Configuration commands:
15430 Report bugs to <http://github.com/atgreen/libffi/issues>."
15433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15434 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15436 libffi config.status 3.0.11
15437 configured by $0, generated by GNU Autoconf 2.68,
15438 with options \\"\$ac_cs_config\\"
15440 Copyright (C) 2010 Free Software Foundation, Inc.
15441 This config.status script is free software; the Free Software Foundation
15442 gives unlimited permission to copy, distribute and modify it."
15449 test -n "\$AWK" || AWK=awk
15452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15453 # The default lists apply if the user does not specify any file.
15459 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15460 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15464 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15476 # Handling of the options.
15477 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15479 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15480 $as_echo "$ac_cs_version"; exit ;;
15481 --config | --confi | --conf | --con | --co | --c )
15482 $as_echo "$ac_cs_config"; exit ;;
15483 --debug | --debu | --deb | --de | --d | -d )
15485 --file | --fil | --fi | --f )
15488 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15489 '') as_fn_error $? "missing file argument" ;;
15491 as_fn_append CONFIG_FILES " '$ac_optarg'"
15492 ac_need_defaults=false;;
15493 --header | --heade | --head | --hea )
15496 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15498 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15499 ac_need_defaults=false;;
15501 # Conflict between --help and --header
15502 as_fn_error $? "ambiguous option: \`$1'
15503 Try \`$0 --help' for more information.";;
15504 --help | --hel | -h )
15505 $as_echo "$ac_cs_usage"; exit ;;
15506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15507 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15510 # This is an error.
15511 -*) as_fn_error $? "unrecognized option: \`$1'
15512 Try \`$0 --help' for more information." ;;
15514 *) as_fn_append ac_config_targets " $1"
15515 ac_need_defaults=false ;;
15521 ac_configure_extra_args=
15523 if $ac_cs_silent; then
15525 ac_configure_extra_args="$ac_configure_extra_args --silent"
15529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15530 if \$ac_cs_recheck; then
15531 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15533 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15534 CONFIG_SHELL='$SHELL'
15535 export CONFIG_SHELL
15540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15544 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15545 ## Running $as_me. ##
15551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15555 ax_enable_builddir_srcdir="$srcdir" # $srcdir
15556 ax_enable_builddir_host="$HOST" # $HOST / $host
15557 ax_enable_builddir_version="$VERSION" # $VERSION
15558 ax_enable_builddir_package="$PACKAGE" # $PACKAGE
15559 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15560 ax_enable_builddir_sed="$ax_enable_builddir_sed" # $SED
15561 ax_enable_builddir="$ax_enable_builddir" # $SUB
15563 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15566 # The HP-UX ksh and POSIX shell print the target directory to stdout
15567 # if CDPATH is set.
15568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15570 sed_quote_subst='$sed_quote_subst'
15571 double_quote_subst='$double_quote_subst'
15572 delay_variable_subst='$delay_variable_subst'
15573 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15574 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15575 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15576 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15577 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15578 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15579 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15580 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15581 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15582 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15583 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15584 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15585 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15586 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15587 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15588 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15589 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15590 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15591 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15592 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15593 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15594 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15595 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15596 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15597 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15598 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15599 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15600 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15601 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15602 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15603 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15604 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15605 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15606 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15607 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15608 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15609 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15610 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15611 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15612 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15613 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15614 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15615 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15616 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15617 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15618 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15619 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15620 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15621 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15622 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15623 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15624 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15625 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15626 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15627 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15628 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"`'
15629 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15630 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15631 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15632 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15633 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15634 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15635 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15636 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15637 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15638 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15639 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15640 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15641 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15642 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15643 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15644 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15645 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15646 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15647 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15648 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15649 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15650 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15651 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15652 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15653 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15654 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15655 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15656 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15657 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15658 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15659 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15660 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15661 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15662 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15663 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15664 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15665 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15666 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15667 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15668 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15669 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15670 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15671 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15672 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15673 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15674 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15675 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15676 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15677 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15678 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15679 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15680 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15681 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15682 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15683 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15684 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15685 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15686 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15687 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15688 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15689 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15690 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15691 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15692 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15693 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15694 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15695 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15696 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15697 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15698 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15699 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15700 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15701 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15702 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15705 LTCFLAGS='$LTCFLAGS'
15706 compiler='$compiler_DEFAULT'
15708 # A function that is used when there is no print builtin or printf.
15709 func_fallback_echo ()
15711 eval 'cat <<_LTECHO_EOF
15716 # Quote evaled strings.
15730 deplibs_check_method \
15735 sharedlib_from_linklib_cmd \
15738 archiver_list_spec \
15744 lt_cv_sys_global_symbol_pipe \
15745 lt_cv_sys_global_symbol_to_cdecl \
15746 lt_cv_sys_global_symbol_to_c_name_address \
15747 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15748 nm_file_list_spec \
15749 lt_prog_compiler_no_builtin_flag \
15750 lt_prog_compiler_pic \
15751 lt_prog_compiler_wl \
15752 lt_prog_compiler_static \
15753 lt_cv_prog_compiler_c_o \
15762 export_dynamic_flag_spec \
15763 whole_archive_flag_spec \
15764 compiler_needs_object \
15766 allow_undefined_flag \
15767 no_undefined_flag \
15768 hardcode_libdir_flag_spec \
15769 hardcode_libdir_flag_spec_ld \
15770 hardcode_libdir_separator \
15774 variables_saved_for_relink \
15776 library_names_spec \
15778 install_override_mode \
15782 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15783 *[\\\\\\\`\\"\\\$]*)
15784 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15787 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15792 # Double-quote double-evaled strings.
15793 for var in reload_cmds \
15794 old_postinstall_cmds \
15795 old_postuninstall_cmds \
15797 extract_expsyms_cmds \
15798 old_archive_from_new_cmds \
15799 old_archive_from_expsyms_cmds \
15801 archive_expsym_cmds \
15803 module_expsym_cmds \
15804 export_symbols_cmds \
15808 postuninstall_cmds \
15810 sys_lib_search_path_spec \
15811 sys_lib_dlsearch_path_spec; do
15812 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15813 *[\\\\\\\`\\"\\\$]*)
15814 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15817 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15822 ac_aux_dir='$ac_aux_dir'
15823 xsi_shell='$xsi_shell'
15824 lt_shell_append='$lt_shell_append'
15826 # See if we are running on zsh, and set the options which allow our
15827 # commands through without removal of \ escapes INIT.
15828 if test -n "\${ZSH_VERSION+set}" ; then
15829 setopt NO_GLOB_SUBST
15835 TIMESTAMP='$TIMESTAMP'
15841 TARGETDIR="$TARGETDIR"
15845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15847 # Handling of arguments.
15848 for ac_config_target in $ac_config_targets
15850 case $ac_config_target in
15851 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15852 "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15853 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15854 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15855 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15856 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15857 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15858 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15859 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15860 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15861 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15862 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15863 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15865 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15870 # If the user did not use the arguments to specify the items to instantiate,
15871 # then the envvar interface is used. Set only those that are not.
15872 # We use the long form for the default assignment because of an extremely
15873 # bizarre bug on SunOS 4.1.3.
15874 if $ac_need_defaults; then
15875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15877 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15881 # Have a temporary directory for convenience. Make it in the build tree
15882 # simply because there is no reason against having it here, and in addition,
15883 # creating and moving files from /tmp can sometimes cause problems.
15884 # Hook for its removal unless debugging.
15885 # Note that there is a small window in which the directory will not be cleaned:
15886 # after its creation but before its name has been assigned to `$tmp'.
15890 trap 'exit_status=$?
15891 : "${ac_tmp:=$tmp}"
15892 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15894 trap 'as_fn_exit 1' 1 2 13 15
15896 # Create a (secure) tmp directory for tmp files.
15899 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15903 tmp=./conf$$-$RANDOM
15904 (umask 077 && mkdir "$tmp")
15905 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15908 # Set up the scripts for CONFIG_FILES section.
15909 # No need to generate them if there are no CONFIG_FILES.
15910 # This happens for instance with `./config.status config.h'.
15911 if test -n "$CONFIG_FILES"; then
15914 ac_cr=`echo X | tr X '\015'`
15915 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15916 # But we know of no other shell where ac_cr would be empty at this
15917 # point, so we can use a bashism as a fallback.
15918 if test "x$ac_cr" = x; then
15919 eval ac_cr=\$\'\\r\'
15921 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15922 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15925 ac_cs_awk_cr=$ac_cr
15928 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15933 echo "cat >conf$$subs.awk <<_ACEOF" &&
15934 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15936 } >conf$$subs.sh ||
15937 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15938 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15940 for ac_last_try in false false false false false :; do
15941 . ./conf$$subs.sh ||
15942 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15944 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15945 if test $ac_delim_n = $ac_delim_num; then
15947 elif $ac_last_try; then
15948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15953 rm -f conf$$subs.sh
15955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15960 s/^/S["/; s/!.*/"]=/
15970 s/\(.\{148\}\)..*/\1/
15972 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15984 s/\(.\{148\}\)..*/\1/
15986 s/["\\]/\\&/g; s/^/"/; s/$/"/
15990 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15995 ' <conf$$subs.awk | sed '
16000 ' >>$CONFIG_STATUS || ac_write_fail=1
16001 rm -f conf$$subs.awk
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16005 for (key in S) S_is_set[key] = 1
16011 nfields = split(line, field, "@")
16013 len = length(field[1])
16014 for (i = 2; i < nfields; i++) {
16016 keylen = length(key)
16017 if (S_is_set[key]) {
16019 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16020 len += length(value) + length(field[++i])
16031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16032 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16033 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16036 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16037 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16040 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16041 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16042 # trailing colons and then remove the whole line if VPATH becomes empty
16043 # (actually we leave an empty line to preserve line numbers).
16044 if test "x$srcdir" = x.; then
16045 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16064 fi # test -n "$CONFIG_FILES"
16066 # Set up the scripts for CONFIG_HEADERS section.
16067 # No need to generate them if there are no CONFIG_HEADERS.
16068 # This happens for instance with `./config.status Makefile'.
16069 if test -n "$CONFIG_HEADERS"; then
16070 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16074 # Transform confdefs.h into an awk script `defines.awk', embedded as
16075 # here-document in config.status, that substitutes the proper values into
16076 # config.h.in to produce config.h.
16078 # Create a delimiter string that does not exist in confdefs.h, to ease
16079 # handling of long lines.
16081 for ac_last_try in false false :; do
16082 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16083 if test -z "$ac_tt"; then
16085 elif $ac_last_try; then
16086 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16092 # For the awk script, D is an array of macro values keyed by name,
16093 # likewise P contains macro parameters if any. Preserve backslash
16094 # newline sequences.
16096 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16098 s/.\{148\}/&'"$ac_delim"'/g
16101 s/^[ ]*#[ ]*define[ ][ ]*/ /
16108 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16110 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16114 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16115 D["\1"]=" \3\\\\\\n"\\/p
16117 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16122 s/.\{148\}/&'"$ac_delim"'/g
16127 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16130 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16132 ' <confdefs.h | sed '
16133 s/'"$ac_delim"'/"\\\
16134 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16137 for (key in D) D_is_set[key] = 1
16140 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16142 split(line, arg, " ")
16143 if (arg[1] == "#") {
16147 defundef = substr(arg[1], 2)
16150 split(mac1, mac2, "(") #)
16152 prefix = substr(line, 1, index(line, defundef) - 1)
16153 if (D_is_set[macro]) {
16154 # Preserve the white space surrounding the "#".
16155 print prefix "define", macro P[macro] D[macro]
16158 # Replace #undef with comments. This is necessary, for example,
16159 # in the case of _POSIX_SOURCE, which is predefined and required
16160 # on some systems where configure will not decide to define it.
16161 if (defundef == "undef") {
16162 print "/*", prefix defundef, macro, "*/"
16170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16171 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16172 fi # test -n "$CONFIG_HEADERS"
16175 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16180 :[FHLC]) ac_mode=$ac_tag; continue;;
16182 case $ac_mode$ac_tag in
16184 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16185 :[FH]-) ac_tag=-:-;;
16186 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16203 -) ac_f="$ac_tmp/stdin";;
16204 *) # Look for the file first in the build tree, then in the source tree
16205 # (if the path is not absolute). The absolute path cannot be DOS-style,
16206 # because $ac_f cannot contain `:'.
16210 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16212 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16214 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16215 as_fn_append ac_file_inputs " '$ac_f'"
16218 # Let's still pretend it is `configure' which instantiates (i.e., don't
16219 # use $as_me), people would be surprised to read:
16220 # /* config.h. Generated by config.status. */
16221 configure_input='Generated from '`
16222 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16224 if test x"$ac_file" != x-; then
16225 configure_input="$ac_file. $configure_input"
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16227 $as_echo "$as_me: creating $ac_file" >&6;}
16229 # Neutralize special characters interpreted by sed in replacement strings.
16230 case $configure_input in #(
16231 *\&* | *\|* | *\\* )
16232 ac_sed_conf_input=`$as_echo "$configure_input" |
16233 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16234 *) ac_sed_conf_input=$configure_input;;
16238 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16244 ac_dir=`$as_dirname -- "$ac_file" ||
16245 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16246 X"$ac_file" : 'X\(//\)[^/]' \| \
16247 X"$ac_file" : 'X\(//\)$' \| \
16248 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16249 $as_echo X"$ac_file" |
16250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16254 /^X\(\/\/\)[^/].*/{
16267 as_dir="$ac_dir"; as_fn_mkdir_p
16271 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16273 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16274 # A ".." for each directory in $ac_dir_suffix.
16275 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16276 case $ac_top_builddir_sub in
16277 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16278 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16281 ac_abs_top_builddir=$ac_pwd
16282 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16283 # for backward compatibility:
16284 ac_top_builddir=$ac_top_build_prefix
16287 .) # We are building in place.
16289 ac_top_srcdir=$ac_top_builddir_sub
16290 ac_abs_top_srcdir=$ac_pwd ;;
16291 [\\/]* | ?:[\\/]* ) # Absolute name.
16292 ac_srcdir=$srcdir$ac_dir_suffix;
16293 ac_top_srcdir=$srcdir
16294 ac_abs_top_srcdir=$srcdir ;;
16295 *) # Relative name.
16296 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16297 ac_top_srcdir=$ac_top_build_prefix$srcdir
16298 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16300 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16310 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16311 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16313 ac_MKDIR_P=$MKDIR_P
16315 [\\/$]* | ?:[\\/]* ) ;;
16316 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16321 # If the template does not know about datarootdir, expand it.
16322 # FIXME: This hack should be removed a few years after 2.60.
16323 ac_datarootdir_hack=; ac_datarootdir_seen=
16334 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16335 *datarootdir*) ac_datarootdir_seen=yes;;
16336 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16338 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341 ac_datarootdir_hack='
16342 s&@datadir@&$datadir&g
16343 s&@docdir@&$docdir&g
16344 s&@infodir@&$infodir&g
16345 s&@localedir@&$localedir&g
16346 s&@mandir@&$mandir&g
16347 s&\\\${datarootdir}&$datarootdir&g' ;;
16351 # Neutralize VPATH when `$srcdir' = `.'.
16352 # Shell code in configure.ac might set extrasub.
16353 # FIXME: do we really want to maintain this feature?
16354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16355 ac_sed_extra="$ac_vpsub
16358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16361 s|@configure_input@|$ac_sed_conf_input|;t t
16362 s&@top_builddir@&$ac_top_builddir_sub&;t t
16363 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16364 s&@srcdir@&$ac_srcdir&;t t
16365 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16366 s&@top_srcdir@&$ac_top_srcdir&;t t
16367 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16368 s&@builddir@&$ac_builddir&;t t
16369 s&@abs_builddir@&$ac_abs_builddir&;t t
16370 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16371 s&@INSTALL@&$ac_INSTALL&;t t
16372 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16373 $ac_datarootdir_hack
16375 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16376 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16378 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16379 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16380 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16381 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16383 which seems to be undefined. Please make sure it is defined" >&5
16384 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16385 which seems to be undefined. Please make sure it is defined" >&2;}
16387 rm -f "$ac_tmp/stdin"
16389 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16390 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16398 if test x"$ac_file" != x-; then
16400 $as_echo "/* $configure_input */" \
16401 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16402 } >"$ac_tmp/config.h" \
16403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16404 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16406 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16409 mv "$ac_tmp/config.h" "$ac_file" \
16410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16413 $as_echo "/* $configure_input */" \
16414 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16415 || as_fn_error $? "could not create -" "$LINENO" 5
16417 # Compute "$ac_file"'s index in $config_headers.
16420 for _am_header in $config_headers :; do
16421 case $_am_header in
16422 $_am_arg | $_am_arg:* )
16425 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16428 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16429 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16430 X"$_am_arg" : 'X\(//\)[^/]' \| \
16431 X"$_am_arg" : 'X\(//\)$' \| \
16432 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16433 $as_echo X"$_am_arg" |
16434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16438 /^X\(\/\/\)[^/].*/{
16450 s/.*/./; q'`/stamp-h$_am_stamp_count
16457 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16460 # Prefer the file from the source tree if names are identical.
16461 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16462 ac_source=$srcdir/$ac_source
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16466 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16468 if test ! -r "$ac_source"; then
16469 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16473 # Try a relative symlink, then a hard link, then a copy.
16475 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16476 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16478 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16479 ln "$ac_source" "$ac_file" 2>/dev/null ||
16480 cp -p "$ac_source" "$ac_file" ||
16481 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16484 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16485 $as_echo "$as_me: executing $ac_file commands" >&6;}
16490 case $ac_file$ac_mode in
16491 "buildir":C) ac_top_srcdir="$ax_enable_builddir_srcdir"
16492 if test ".$ax_enable_builddir" = ".." ; then
16493 if test -f "$top_srcdir/Makefile" ; then
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16495 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16498 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16501 if test -f "$ac_top_srcdir/Makefile" ; then
16502 a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16503 test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16505 if test -f "$ac_top_srcdir/Makefile" ; then
16506 echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16507 echo " @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16508 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16509 if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16510 then rm $ac_top_srcdir/Makefile ; fi
16511 cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~ ## DEBUGGING
16513 if test ! -f "$ac_top_srcdir/Makefile" ; then
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16515 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16516 x='`' ; cat >$tmp/conftemp.sed <<_EOF
16529 s/\\(\\n\\) /\\1 /g
16533 s/^srcdir *=.*/srcdir = ./
16534 s/^top_srcdir *=.*/top_srcdir = ./
16542 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16543 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16545 /^all all-all[ :]/i\\
16546 all-configured : all-all
16547 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16550 @ HOST="\$(HOST)\" \\\\\\
16551 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16552 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16553 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16554 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16555 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16556 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16557 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16558 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16559 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16561 @ HOST="\$(HOST)\" \\\\\\
16562 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16563 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16564 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16565 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16566 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16567 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16568 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16569 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16570 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16571 /dist-[a-zA-Z0-9]*-all *:/a\\
16572 @ HOST="\$(HOST)\" \\\\\\
16573 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16574 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16575 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16576 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16577 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16578 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16579 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16580 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16581 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16582 /distclean-all *:/a\\
16583 @ HOST="\$(HOST)\" \\\\\\
16584 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16585 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16586 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16587 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16588 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16589 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16590 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16591 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16592 ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16593 ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16594 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16596 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~" ## DEBUGGING
16597 $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16598 if test -f "$ac_top_srcdir/Makefile.mk" ; then
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16600 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16601 cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16603 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16605 if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16607 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16608 $ax_enable_builddir_sed -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $ac_top_srcdir/Makefile \
16609 >$ac_top_srcdir/Makefile~
16610 (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16613 xxxx="\\#\\#\\#\\#"
16614 # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16615 echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16616 $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16617 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~" ## DEBUGGING
16618 cp "$tmp/mkfile.tmp" "$ac_top_srcdir/makefiles.out~" ## DEBUGGING
16619 if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16621 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16622 rm "$tmp/mkfile.tmp"
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16625 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16626 mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16630 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16632 echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16635 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16636 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16637 # are listed without --file. Let's play safe and only enable the eval
16638 # if we detect the quoting.
16639 case $CONFIG_FILES in
16640 *\'*) eval set x "$CONFIG_FILES" ;;
16641 *) set x $CONFIG_FILES ;;
16646 # Strip MF so we end up with the name of the file.
16647 mf=`echo "$mf" | sed -e 's/:.*$//'`
16648 # Check whether this is an Automake generated Makefile or not.
16649 # We used to match only the files named `Makefile.in', but
16650 # some people rename them; so instead we look at the file content.
16651 # Grep'ing the first line is not enough: some people post-process
16652 # each Makefile.in and add a new line on top of each file to say so.
16653 # Grep'ing the whole file is not good either: AIX grep has a line
16654 # limit of 2048, but all sed's we know have understand at least 4000.
16655 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16656 dirpart=`$as_dirname -- "$mf" ||
16657 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16658 X"$mf" : 'X\(//\)[^/]' \| \
16659 X"$mf" : 'X\(//\)$' \| \
16660 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16666 /^X\(\/\/\)[^/].*/{
16682 # Extract the definition of DEPDIR, am__include, and am__quote
16683 # from the Makefile without running `make'.
16684 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16685 test -z "$DEPDIR" && continue
16686 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16687 test -z "am__include" && continue
16688 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16689 # When using ansi2knr, U may be empty or an underscore; expand it
16690 U=`sed -n 's/^U = //p' < "$mf"`
16691 # Find all dependency output files, they are included files with
16692 # $(DEPDIR) in their names. We invoke sed twice because it is the
16693 # simplest approach to changing $(DEPDIR) to its actual value in the
16695 for file in `sed -n "
16696 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16697 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16698 # Make sure the directory exists.
16699 test -f "$dirpart/$file" && continue
16700 fdir=`$as_dirname -- "$file" ||
16701 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16702 X"$file" : 'X\(//\)[^/]' \| \
16703 X"$file" : 'X\(//\)$' \| \
16704 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16705 $as_echo X"$file" |
16706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16710 /^X\(\/\/\)[^/].*/{
16723 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16724 # echo "creating $dirpart/$file"
16725 echo '# dummy' > "$dirpart/$file"
16732 # See if we are running on zsh, and set the options which allow our
16733 # commands through without removal of \ escapes.
16734 if test -n "${ZSH_VERSION+set}" ; then
16735 setopt NO_GLOB_SUBST
16738 cfgfile="${ofile}T"
16739 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16742 cat <<_LT_EOF >> "$cfgfile"
16745 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16746 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16748 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16750 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16751 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16753 # Written by Gordon Matzigkeit, 1996
16755 # This file is part of GNU Libtool.
16757 # GNU Libtool is free software; you can redistribute it and/or
16758 # modify it under the terms of the GNU General Public License as
16759 # published by the Free Software Foundation; either version 2 of
16760 # the License, or (at your option) any later version.
16762 # As a special exception to the GNU General Public License,
16763 # if you distribute this file as part of a program or library that
16764 # is built using GNU Libtool, you may include this file under the
16765 # same distribution terms that you use for the rest of that program.
16767 # GNU Libtool is distributed in the hope that it will be useful,
16768 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16769 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16770 # GNU General Public License for more details.
16772 # You should have received a copy of the GNU General Public License
16773 # along with GNU Libtool; see the file COPYING. If not, a copy
16774 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16775 # obtained by writing to the Free Software Foundation, Inc.,
16776 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16779 # The names of the tagged configurations supported by this script.
16782 # ### BEGIN LIBTOOL CONFIG
16784 # Which release of libtool.m4 was used?
16785 macro_version=$macro_version
16786 macro_revision=$macro_revision
16788 # Whether or not to build shared libraries.
16789 build_libtool_libs=$enable_shared
16791 # Whether or not to build static libraries.
16792 build_old_libs=$enable_static
16794 # What type of objects to build.
16797 # Whether or not to optimize for fast installation.
16798 fast_install=$enable_fast_install
16800 # Shell to use when invoking shell scripts.
16803 # An echo program that protects backslashes.
16807 host_alias=$host_alias
16811 # The build system.
16812 build_alias=$build_alias
16816 # A sed program that does not truncate output.
16819 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16820 Xsed="\$SED -e 1s/^X//"
16822 # A grep program that handles long lines.
16828 # A literal string matcher.
16831 # A BSD- or MS-compatible name lister.
16834 # Whether we need soft or hard links.
16837 # What is the maximum length of a command?
16838 max_cmd_len=$max_cmd_len
16840 # Object file suffix (normally "o").
16843 # Executable file suffix (normally "").
16846 # whether the shell understands "unset".
16849 # turn spaces into newlines.
16852 # turn newlines into spaces.
16855 # convert \$build file names to \$host format.
16856 to_host_file_cmd=$lt_cv_to_host_file_cmd
16858 # convert \$build files to toolchain format.
16859 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16861 # An object symbol dumper.
16862 OBJDUMP=$lt_OBJDUMP
16864 # Method to check whether dependent libraries are shared objects.
16865 deplibs_check_method=$lt_deplibs_check_method
16867 # Command to use when deplibs_check_method = "file_magic".
16868 file_magic_cmd=$lt_file_magic_cmd
16870 # How to find potential files when deplibs_check_method = "file_magic".
16871 file_magic_glob=$lt_file_magic_glob
16873 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16874 want_nocaseglob=$lt_want_nocaseglob
16876 # DLL creation program.
16877 DLLTOOL=$lt_DLLTOOL
16879 # Command to associate shared and link libraries.
16880 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16885 # Flags to create an archive.
16886 AR_FLAGS=$lt_AR_FLAGS
16888 # How to feed a file listing to the archiver.
16889 archiver_list_spec=$lt_archiver_list_spec
16891 # A symbol stripping program.
16894 # Commands used to install an old-style archive.
16896 old_postinstall_cmds=$lt_old_postinstall_cmds
16897 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16899 # Whether to use a lock for old archive extraction.
16900 lock_old_archive_extraction=$lock_old_archive_extraction
16905 # LTCC compiler flags.
16906 LTCFLAGS=$lt_CFLAGS
16908 # Take the output of nm and produce a listing of raw symbols and C names.
16909 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16911 # Transform the output of nm in a proper C declaration.
16912 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16914 # Transform the output of nm in a C name address pair.
16915 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16917 # Transform the output of nm in a C name address pair when lib prefix is needed.
16918 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16920 # Specify filename containing input files for \$NM.
16921 nm_file_list_spec=$lt_nm_file_list_spec
16923 # The root where to search for dependent libraries,and in which our libraries should be installed.
16924 lt_sysroot=$lt_sysroot
16926 # The name of the directory that contains temporary libtool files.
16929 # Used to examine libraries when file_magic_cmd begins with "file".
16930 MAGIC_CMD=$MAGIC_CMD
16932 # Must we lock files when doing compilation?
16933 need_locks=$lt_need_locks
16936 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16938 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16939 DSYMUTIL=$lt_DSYMUTIL
16941 # Tool to change global to local symbols on Mac OS X.
16944 # Tool to manipulate fat objects and archives on Mac OS X.
16947 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16950 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16951 OTOOL64=$lt_OTOOL64
16953 # Old archive suffix (normally "a").
16956 # Shared library suffix (normally ".so").
16957 shrext_cmds=$lt_shrext_cmds
16959 # The commands to extract the exported symbol list from a shared archive.
16960 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16962 # Variables whose values should be saved in libtool wrapper scripts and
16963 # restored at link time.
16964 variables_saved_for_relink=$lt_variables_saved_for_relink
16966 # Do we need the "lib" prefix for modules?
16967 need_lib_prefix=$need_lib_prefix
16969 # Do we need a version for libraries?
16970 need_version=$need_version
16972 # Library versioning type.
16973 version_type=$version_type
16975 # Shared library runtime path variable.
16976 runpath_var=$runpath_var
16978 # Shared library path variable.
16979 shlibpath_var=$shlibpath_var
16981 # Is shlibpath searched before the hard-coded library search path?
16982 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16984 # Format of library name prefix.
16985 libname_spec=$lt_libname_spec
16987 # List of archive names. First name is the real one, the rest are links.
16988 # The last name is the one that the linker finds with -lNAME
16989 library_names_spec=$lt_library_names_spec
16991 # The coded name of the library, if different from the real name.
16992 soname_spec=$lt_soname_spec
16994 # Permission mode override for installation of shared libraries.
16995 install_override_mode=$lt_install_override_mode
16997 # Command to use after installation of a shared archive.
16998 postinstall_cmds=$lt_postinstall_cmds
17000 # Command to use after uninstallation of a shared archive.
17001 postuninstall_cmds=$lt_postuninstall_cmds
17003 # Commands used to finish a libtool library installation in a directory.
17004 finish_cmds=$lt_finish_cmds
17006 # As "finish_cmds", except a single script fragment to be evaled but
17008 finish_eval=$lt_finish_eval
17010 # Whether we should hardcode library paths into libraries.
17011 hardcode_into_libs=$hardcode_into_libs
17013 # Compile-time system search path for libraries.
17014 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17016 # Run-time system search path for libraries.
17017 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17019 # Whether dlopen is supported.
17020 dlopen_support=$enable_dlopen
17022 # Whether dlopen of programs is supported.
17023 dlopen_self=$enable_dlopen_self
17025 # Whether dlopen of statically linked programs is supported.
17026 dlopen_self_static=$enable_dlopen_self_static
17028 # Commands to strip libraries.
17029 old_striplib=$lt_old_striplib
17030 striplib=$lt_striplib
17033 # The linker used to build libraries.
17036 # How to create reloadable object files.
17037 reload_flag=$lt_reload_flag
17038 reload_cmds=$lt_reload_cmds
17040 # Commands used to build an old-style archive.
17041 old_archive_cmds=$lt_old_archive_cmds
17043 # A language specific compiler.
17046 # Is the compiler the GNU compiler?
17049 # Compiler flag to turn off builtin functions.
17050 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17052 # Additional compiler flags for building library objects.
17053 pic_flag=$lt_lt_prog_compiler_pic
17055 # How to pass a linker flag through the compiler.
17056 wl=$lt_lt_prog_compiler_wl
17058 # Compiler flag to prevent dynamic linking.
17059 link_static_flag=$lt_lt_prog_compiler_static
17061 # Does compiler simultaneously support -c and -o options?
17062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17064 # Whether or not to add -lc for building shared libraries.
17065 build_libtool_need_lc=$archive_cmds_need_lc
17067 # Whether or not to disallow shared libs when runtime libs are static.
17068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17070 # Compiler flag to allow reflexive dlopens.
17071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17073 # Compiler flag to generate shared objects directly from archives.
17074 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17076 # Whether the compiler copes with passing no objects directly.
17077 compiler_needs_object=$lt_compiler_needs_object
17079 # Create an old-style archive from a shared archive.
17080 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17082 # Create a temporary old-style archive to link instead of a shared archive.
17083 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17085 # Commands used to build a shared archive.
17086 archive_cmds=$lt_archive_cmds
17087 archive_expsym_cmds=$lt_archive_expsym_cmds
17089 # Commands used to build a loadable module if different from building
17090 # a shared archive.
17091 module_cmds=$lt_module_cmds
17092 module_expsym_cmds=$lt_module_expsym_cmds
17094 # Whether we are building with GNU ld or not.
17095 with_gnu_ld=$lt_with_gnu_ld
17097 # Flag that allows shared libraries with undefined symbols to be built.
17098 allow_undefined_flag=$lt_allow_undefined_flag
17100 # Flag that enforces no undefined symbols.
17101 no_undefined_flag=$lt_no_undefined_flag
17103 # Flag to hardcode \$libdir into a binary during linking.
17104 # This must work even if \$libdir does not exist
17105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17107 # If ld is used when linking, flag to hardcode \$libdir into a binary
17108 # during linking. This must work even if \$libdir does not exist.
17109 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17111 # Whether we need a single "-rpath" flag with a separated argument.
17112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17114 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17115 # DIR into the resulting binary.
17116 hardcode_direct=$hardcode_direct
17118 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17119 # DIR into the resulting binary and the resulting library dependency is
17120 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17121 # library is relocated.
17122 hardcode_direct_absolute=$hardcode_direct_absolute
17124 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17125 # into the resulting binary.
17126 hardcode_minus_L=$hardcode_minus_L
17128 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17129 # into the resulting binary.
17130 hardcode_shlibpath_var=$hardcode_shlibpath_var
17132 # Set to "yes" if building a shared library automatically hardcodes DIR
17133 # into the library and all subsequent libraries and executables linked
17135 hardcode_automatic=$hardcode_automatic
17137 # Set to yes if linker adds runtime paths of dependent libraries
17138 # to runtime path list.
17139 inherit_rpath=$inherit_rpath
17141 # Whether libtool must link a program against all its dependency libraries.
17142 link_all_deplibs=$link_all_deplibs
17144 # Set to "yes" if exported symbols are required.
17145 always_export_symbols=$always_export_symbols
17147 # The commands to list exported symbols.
17148 export_symbols_cmds=$lt_export_symbols_cmds
17150 # Symbols that should not be listed in the preloaded symbols.
17151 exclude_expsyms=$lt_exclude_expsyms
17153 # Symbols that must always be exported.
17154 include_expsyms=$lt_include_expsyms
17156 # Commands necessary for linking programs (against libraries) with templates.
17157 prelink_cmds=$lt_prelink_cmds
17159 # Commands necessary for finishing linking programs.
17160 postlink_cmds=$lt_postlink_cmds
17162 # Specify filename containing input files.
17163 file_list_spec=$lt_file_list_spec
17165 # How to hardcode a shared library path into an executable.
17166 hardcode_action=$hardcode_action
17168 # ### END LIBTOOL CONFIG
17174 cat <<\_LT_EOF >> "$cfgfile"
17175 # AIX sometimes has problems with the GCC collect2 program. For some
17176 # reason, if we set the COLLECT_NAMES environment variable, the problems
17177 # vanish in a puff of smoke.
17178 if test "X${COLLECT_NAMES+set}" != Xset; then
17180 export COLLECT_NAMES
17187 ltmain="$ac_aux_dir/ltmain.sh"
17190 # We use sed instead of cat because bash on DJGPP gets confused if
17191 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17192 # text mode, it properly converts lines to CR/LF. This bash problem
17193 # is reportedly fixed, but why not run on old versions too?
17194 sed '$q' "$ltmain" >> "$cfgfile" \
17195 || (rm -f "$cfgfile"; exit 1)
17197 if test x"$xsi_shell" = xyes; then
17198 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17202 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17203 \ * ) func_dirname_result="${3}" ;;\
17205 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17206 && mv -f "$cfgfile.tmp" "$cfgfile" \
17207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17208 test 0 -eq $? || _lt_function_replace_fail=:
17211 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17214 \ func_basename_result="${1##*/}"\
17215 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17216 && mv -f "$cfgfile.tmp" "$cfgfile" \
17217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17218 test 0 -eq $? || _lt_function_replace_fail=:
17221 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17222 func_dirname_and_basename ()\
17225 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17226 \ * ) func_dirname_result="${3}" ;;\
17228 \ func_basename_result="${1##*/}"\
17229 } # Extended-shell func_dirname_and_basename 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 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17238 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17239 \ # positional parameters, so assign one to ordinary parameter first.\
17240 \ func_stripname_result=${3}\
17241 \ func_stripname_result=${func_stripname_result#"${1}"}\
17242 \ func_stripname_result=${func_stripname_result%"${2}"}\
17243 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17244 && mv -f "$cfgfile.tmp" "$cfgfile" \
17245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17246 test 0 -eq $? || _lt_function_replace_fail=:
17249 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17250 func_split_long_opt ()\
17252 \ func_split_long_opt_name=${1%%=*}\
17253 \ func_split_long_opt_arg=${1#*=}\
17254 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17255 && mv -f "$cfgfile.tmp" "$cfgfile" \
17256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17257 test 0 -eq $? || _lt_function_replace_fail=:
17260 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17261 func_split_short_opt ()\
17263 \ func_split_short_opt_arg=${1#??}\
17264 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17265 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17266 && mv -f "$cfgfile.tmp" "$cfgfile" \
17267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17268 test 0 -eq $? || _lt_function_replace_fail=:
17271 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17275 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17276 \ *) func_lo2o_result=${1} ;;\
17278 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17279 && mv -f "$cfgfile.tmp" "$cfgfile" \
17280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17281 test 0 -eq $? || _lt_function_replace_fail=:
17284 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17287 func_xform_result=${1%.*}.lo\
17288 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17289 && mv -f "$cfgfile.tmp" "$cfgfile" \
17290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17291 test 0 -eq $? || _lt_function_replace_fail=:
17294 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17297 func_arith_result=$(( $* ))\
17298 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17299 && mv -f "$cfgfile.tmp" "$cfgfile" \
17300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17301 test 0 -eq $? || _lt_function_replace_fail=:
17304 sed -e '/^func_len ()$/,/^} # func_len /c\
17307 func_len_result=${#1}\
17308 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17309 && mv -f "$cfgfile.tmp" "$cfgfile" \
17310 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17311 test 0 -eq $? || _lt_function_replace_fail=:
17315 if test x"$lt_shell_append" = xyes; then
17316 sed -e '/^func_append ()$/,/^} # func_append /c\
17319 eval "${1}+=\\${2}"\
17320 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17321 && mv -f "$cfgfile.tmp" "$cfgfile" \
17322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17323 test 0 -eq $? || _lt_function_replace_fail=:
17326 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17327 func_append_quoted ()\
17329 \ func_quote_for_eval "${2}"\
17330 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17331 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17332 && mv -f "$cfgfile.tmp" "$cfgfile" \
17333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17334 test 0 -eq $? || _lt_function_replace_fail=:
17337 # Save a `func_append' function call where possible by direct use of '+='
17338 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17339 && mv -f "$cfgfile.tmp" "$cfgfile" \
17340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17341 test 0 -eq $? || _lt_function_replace_fail=:
17343 # Save a `func_append' function call even when '+=' is not available
17344 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17345 && mv -f "$cfgfile.tmp" "$cfgfile" \
17346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17347 test 0 -eq $? || _lt_function_replace_fail=:
17350 if test x"$_lt_function_replace_fail" = x":"; then
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17352 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17356 mv -f "$cfgfile" "$ofile" ||
17357 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17361 "include":C) test -d include || mkdir include ;;
17363 test -d src || mkdir src
17364 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17373 ac_clean_files=$ac_clean_files_save
17375 test $ac_write_fail = 0 ||
17376 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17379 # configure is writing to config.log, and then calls config.status.
17380 # config.status does its own redirection, appending to config.log.
17381 # Unfortunately, on DOS this fails, as config.log is still kept open
17382 # by configure, so config.status won't be able to write to it; its
17383 # output is simply discarded. So we exec the FD to /dev/null,
17384 # effectively closing config.log, so it can be properly (re)opened and
17385 # appended to by config.status. When coming back to configure, we
17386 # need to make the FD available again.
17387 if test "$no_create" != yes; then
17389 ac_config_status_args=
17390 test "$silent" = yes &&
17391 ac_config_status_args="$ac_config_status_args --quiet"
17393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17396 # would make configure fail if this is the last instruction.
17397 $ac_cs_success || as_fn_exit 1
17399 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17401 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}