2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.0.11.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 test -z "$as_dir" && as_dir=.
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240 $0: http://gcc.gnu.org/bugs.html about your system,
241 $0: including any error possibly output before this
242 $0: message. Then install a modern shell, or manually run
243 $0: the script under such a shell if you do have one."
249 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
260 # Portably unset VAR.
263 { eval $1=; unset $1;}
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
287 # Create "$as_dir" as a directory, including parents if necessary.
292 -*) as_dir=./$as_dir;;
294 test -d "$as_dir" || eval $as_mkdir_p || {
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
325 test -d "$as_dir" && break
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 as_val=`expr "$@" || test $? -eq 1`
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
375 as_status=$?; test $as_status -eq 0 && as_status=1
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
479 mkdir conf$$.dir 2>/dev/null
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 elif ln conf$$.file conf$$ 2>/dev/null; then
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
504 test -d ./-p && rmdir ./-p
508 if test -x / >/dev/null 2>&1; then
511 if ls -dL / >/dev/null 2>&1; then
518 if test -d "$1"; then
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
529 as_executable_p=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev/null 6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix=/usr/local
552 ac_config_libobj_dir=.
559 # Identity of this package.
560 PACKAGE_NAME='libffi'
561 PACKAGE_TARNAME='libffi'
562 PACKAGE_VERSION='3.0.11'
563 PACKAGE_STRING='libffi 3.0.11'
564 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
567 # Factoring default headers for most tests.
568 ac_includes_default="\
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
580 # ifdef HAVE_STDLIB_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
603 ac_subst_vars='am__EXEEXT_FALSE
613 FFI_EXEC_TRAMPOLINE_TABLE
614 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
615 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
644 POWERPC_FREEBSD_FALSE
681 MAINTAINER_MODE_FALSE
702 am__fastdepCCAS_FALSE
731 INSTALL_STRIP_PROGRAM
786 program_transform_name
799 enable_option_checking
801 enable_dependency_tracking
808 enable_maintainer_mode
815 ac_precious_vars='build_alias
824 # Initialize some variables set by options.
826 ac_init_version=false
827 ac_unrecognized_opts=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
838 program_transform_name=s,x,x,
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
884 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
940 eval enable_$ac_useropt=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
966 eval enable_$ac_useropt=\$ac_optarg ;;
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
981 -help | --help | --hel | --he | -h)
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 htmldir=$ac_optarg ;;
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1011 -libdir | --libdir | --libdi | --libd)
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1102 -psdir | --psdir | --psdi | --psd | --ps)
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 sbindir=$ac_optarg ;;
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 sharedstatedir=$ac_optarg ;;
1128 -site | --site | --sit)
1130 -site=* | --site=* | --sit=*)
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1170 eval with_$ac_useropt=\$ac_optarg ;;
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval with_$ac_useropt=no ;;
1189 # Obsolete; use --with-x.
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) as_fn_error "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information."
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error "missing argument to $ac_option"
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1239 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1257 # Be sure to have absolute directory names.
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1270 target=$target_alias
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1277 If a cross compiler is detected then cross compile mode will be used." >&2
1278 elif test "x$build_alias" != "x$host_alias"; then
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286 test "$silent" = yes && exec 6>/dev/null
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error "pwd does not report name of working directory"
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1329 ac_srcdir_defaulted=no
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1363 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 --target=TARGET configure for building compilers for TARGET [HOST]
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of libffi 3.0.11:";;
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-multilib build many library versions (default)
1443 --disable-dependency-tracking speeds up one-time build
1444 --enable-dependency-tracking do not reject slow dependency extractors
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-static[=PKGS] build static libraries [default=yes]
1447 --enable-fast-install[=PKGS]
1448 optimize for fast installation [default=yes]
1449 --disable-libtool-lock avoid locking (might break parallel builds)
1450 --enable-maintainer-mode enable make rules and dependencies not useful
1451 (and sometimes confusing) to the casual installer
1452 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1453 --enable-debug debugging mode
1454 --disable-structs omit code for struct support
1455 --disable-raw-api make the raw api unavailable
1456 --enable-purify-safety purify-safe mode
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-pic try to use only PIC/non-PIC objects [default=use
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CCAS assembler compiler command (defaults to CC)
1474 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1480 Report bugs to <http://gcc.gnu.org/bugs.html>.
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1510 .) # We are building in place.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1543 libffi configure 3.0.11
1544 generated by GNU Autoconf 2.64
1546 Copyright (C) 2009 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 } # ac_fn_c_try_compile
1595 # ac_fn_c_try_link LINENO
1596 # -----------------------
1597 # Try to link conftest.$ac_ext, and return whether this succeeded.
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext conftest$ac_exeext
1602 if { { ac_try="$ac_link"
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>conftest.err
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest$ac_exeext && {
1621 test "$cross_compiling" = yes ||
1622 $as_test_x conftest$ac_exeext
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633 # interfere with the next link command; also delete a directory that is
1634 # left behind by Apple's compiler. We do this before executing the actions.
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1639 } # ac_fn_c_try_link
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists and can be compiled using the include files in
1644 # INCLUDES, setting the cache variable VAR accordingly.
1645 ac_fn_c_check_header_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1651 $as_echo_n "(cached) " >&6
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1658 if ac_fn_c_try_compile "$LINENO"; then :
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 } # ac_fn_c_check_header_compile
1672 # ac_fn_c_try_cpp LINENO
1673 # ----------------------
1674 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } >/dev/null && {
1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 # ac_fn_c_try_run LINENO
1710 # ----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712 # that executables *can* be run.
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=$ac_status
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 # ac_fn_c_check_func LINENO FUNC VAR
1752 # ----------------------------------
1753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1754 ac_fn_c_check_func ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1766 #define $2 innocuous_$2
1768 /* System header to define __stub macros and hopefully few prototypes,
1769 which can conflict with char $2 (); below.
1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1771 <limits.h> exists even on freestanding compilers. */
1774 # include <limits.h>
1776 # include <assert.h>
1781 /* Override any GCC internal prototype to avoid an error.
1782 Use char because int might match the return type of a GCC
1783 builtin and then its argument prototype would still apply. */
1788 /* The GNU C library defines this for functions which it implements
1789 to always fail with ENOSYS. Some functions are actually named
1790 something starting with __ and the normal name is an alias. */
1791 #if defined __stub_$2 || defined __stub___$2
1803 if ac_fn_c_try_link "$LINENO"; then :
1808 rm -f core conftest.err conftest.$ac_objext \
1809 conftest$ac_exeext conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 } # ac_fn_c_check_func
1818 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1821 # the include files in INCLUDES and setting the cache variable VAR
1823 ac_fn_c_check_header_mongrel ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1830 $as_echo_n "(cached) " >&6
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1836 # Is the header compilable?
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1838 $as_echo_n "checking $2 usability... " >&6; }
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1844 if ac_fn_c_try_compile "$LINENO"; then :
1845 ac_header_compiler=yes
1847 ac_header_compiler=no
1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1851 $as_echo "$ac_header_compiler" >&6; }
1853 # Is the header present?
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1855 $as_echo_n "checking $2 presence... " >&6; }
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1860 if ac_fn_c_try_cpp "$LINENO"; then :
1861 ac_header_preproc=yes
1863 ac_header_preproc=no
1865 rm -f conftest.err conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1867 $as_echo "$ac_header_preproc" >&6; }
1869 # So? What about this header?
1870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1873 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1879 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1881 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1883 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1885 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 ## ------------------------------------------- ##
1890 ## Report this to http://gcc.gnu.org/bugs.html ##
1891 ## ------------------------------------------- ##
1893 ) | sed "s/^/$as_me: WARNING: /" >&2
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1901 eval "$3=\$ac_header_compiler"
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 } # ac_fn_c_check_header_mongrel
1911 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1912 # --------------------------------------------
1913 # Tries to find the compile-time value of EXPR in a program that includes
1914 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1916 ac_fn_c_compute_int ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if test "$cross_compiling" = yes; then
1920 # Depending upon the size, compute the lo and hi bounds.
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1927 static int test_array [1 - 2 * !(($2) >= 0)];
1934 if ac_fn_c_try_compile "$LINENO"; then :
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1943 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_hi=$ac_mid; break
1953 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1954 if test $ac_lo -le $ac_mid; then
1958 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1969 static int test_array [1 - 2 * !(($2) < 0)];
1976 if ac_fn_c_try_compile "$LINENO"; then :
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1985 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_lo=$ac_mid; break
1995 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1996 if test $ac_mid -le $ac_hi; then
2000 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 # Binary search between lo and hi bounds.
2011 while test "x$ac_lo" != "x$ac_hi"; do
2012 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2026 if ac_fn_c_try_compile "$LINENO"; then :
2029 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2041 static long int longval () { return $2; }
2042 static unsigned long int ulongval () { return $2; }
2049 FILE *f = fopen ("conftest.val", "w");
2054 long int i = longval ();
2057 fprintf (f, "%ld", i);
2061 unsigned long int i = ulongval ();
2064 fprintf (f, "%lu", i);
2066 /* Do not output a trailing newline, as this causes \r\n confusion
2067 on some platforms. */
2068 return ferror (f) || fclose (f) != 0;
2074 if ac_fn_c_try_run "$LINENO"; then :
2075 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2080 conftest.$ac_objext conftest.beam conftest.$ac_ext
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2087 } # ac_fn_c_compute_int
2088 cat >config.log <<_ACEOF
2089 This file contains any messages produced by compilers while
2090 running configure, to aid debugging if configure makes a mistake.
2092 It was created by libffi $as_me 3.0.11, which was
2093 generated by GNU Autoconf 2.64. Invocation command line was
2105 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2106 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2107 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2108 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2109 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2111 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2112 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2114 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2115 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2116 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2117 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2118 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2119 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2120 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 $as_echo "PATH: $as_dir"
2145 # Keep a trace of the command line.
2146 # Strip out --no-create and --no-recursion so they do not pile up.
2147 # Strip out --silent because we don't want to record it for future runs.
2148 # Also quote any args containing shell meta-characters.
2149 # Make two passes to allow for proper duplicate-argument suppression.
2153 ac_must_keep_next=false
2159 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2161 | -silent | --silent | --silen | --sile | --sil)
2164 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2169 as_fn_append ac_configure_args1 " '$ac_arg'"
2170 if test $ac_must_keep_next = true; then
2171 ac_must_keep_next=false # Got value, back to normal.
2174 *=* | --config-cache | -C | -disable-* | --disable-* \
2175 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2176 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2177 | -with-* | --with-* | -without-* | --without-* | --x)
2178 case "$ac_configure_args0 " in
2179 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182 -* ) ac_must_keep_next=true ;;
2185 as_fn_append ac_configure_args " '$ac_arg'"
2190 { ac_configure_args0=; unset ac_configure_args0;}
2191 { ac_configure_args1=; unset ac_configure_args1;}
2193 # When interrupted or exit'd, cleanup temporary files, and complete
2194 # config.log. We remove comments because anyway the quotes in there
2195 # would cause problems or look ugly.
2196 # WARNING: Use '\'' to represent an apostrophe within the trap.
2197 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2198 trap 'exit_status=$?
2199 # Save into config.log some information that might help in debugging.
2204 ## ---------------- ##
2205 ## Cache variables. ##
2206 ## ---------------- ##
2209 # The following way of writing the cache mishandles newlines in values,
2211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212 eval ac_val=\$$ac_var
2216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 _ | IFS | as_nl) ;; #(
2221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222 *) { eval $ac_var=; unset $ac_var;} ;;
2227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228 *${as_nl}ac_space=\ *)
2230 "s/'\''/'\''\\\\'\'''\''/g;
2231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2242 ## ----------------- ##
2243 ## Output variables. ##
2244 ## ----------------- ##
2247 for ac_var in $ac_subst_vars
2249 eval ac_val=\$$ac_var
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 $as_echo "$ac_var='\''$ac_val'\''"
2257 if test -n "$ac_subst_files"; then
2259 ## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##
2264 for ac_var in $ac_subst_files
2266 eval ac_val=\$$ac_var
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270 $as_echo "$ac_var='\''$ac_val'\''"
2275 if test -s confdefs.h; then
2285 test "$ac_signal" != 0 &&
2286 $as_echo "$as_me: caught signal $ac_signal"
2287 $as_echo "$as_me: exit $exit_status"
2289 rm -f core *.core core.conftest.* &&
2290 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2293 for ac_signal in 1 2 13 15; do
2294 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2298 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2299 rm -f -r conftest* confdefs.h
2301 $as_echo "/* confdefs.h */" > confdefs.h
2303 # Predefined preprocessor variables.
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_NAME "$PACKAGE_NAME"
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_STRING "$PACKAGE_STRING"
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_URL "$PACKAGE_URL"
2330 # Let the site file select an alternate cache file if it wants to.
2331 # Prefer an explicitly selected file to automatically selected ones.
2334 if test -n "$CONFIG_SITE"; then
2335 ac_site_file1=$CONFIG_SITE
2336 elif test "x$prefix" != xNONE; then
2337 ac_site_file1=$prefix/share/config.site
2338 ac_site_file2=$prefix/etc/config.site
2340 ac_site_file1=$ac_default_prefix/share/config.site
2341 ac_site_file2=$ac_default_prefix/etc/config.site
2343 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2345 test "x$ac_site_file" = xNONE && continue
2346 if test -r "$ac_site_file"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2348 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2349 sed 's/^/| /' "$ac_site_file" >&5
2354 if test -r "$cache_file"; then
2355 # Some versions of bash will fail to source /dev/null (special
2356 # files actually), so we avoid doing that.
2357 if test -f "$cache_file"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2359 $as_echo "$as_me: loading cache $cache_file" >&6;}
2361 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2362 *) . "./$cache_file";;
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2367 $as_echo "$as_me: creating cache $cache_file" >&6;}
2371 # Check that the precious variables saved in the cache have kept the same
2373 ac_cache_corrupted=false
2374 for ac_var in $ac_precious_vars; do
2375 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2376 eval ac_new_set=\$ac_env_${ac_var}_set
2377 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2378 eval ac_new_val=\$ac_env_${ac_var}_value
2379 case $ac_old_set,$ac_new_set in
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2382 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2383 ac_cache_corrupted=: ;;
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2387 ac_cache_corrupted=: ;;
2390 if test "x$ac_old_val" != "x$ac_new_val"; then
2391 # differences in whitespace do not lead to failure.
2392 ac_old_val_w=`echo x $ac_old_val`
2393 ac_new_val_w=`echo x $ac_new_val`
2394 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2396 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2397 ac_cache_corrupted=:
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2400 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2401 eval $ac_var=\$ac_old_val
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2404 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2406 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2409 # Pass precious variables to config.status.
2410 if test "$ac_new_set" = set; then
2412 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2413 *) ac_arg=$ac_var=$ac_new_val ;;
2415 case " $ac_configure_args " in
2416 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2417 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2421 if $ac_cache_corrupted; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2425 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2426 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2428 ## -------------------- ##
2429 ## Main body of script. ##
2430 ## -------------------- ##
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442 ac_config_headers="$ac_config_headers fficonfig.h"
2445 # Default to --enable-multilib
2446 # Check whether --enable-multilib was given.
2447 if test "${enable_multilib+set}" = set; then :
2448 enableval=$enable_multilib; case "$enableval" in
2449 yes) multilib=yes ;;
2451 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2458 # We may get other options which we leave undocumented:
2459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2460 # See config-ml.in if you want the gory details.
2462 if test "$srcdir" = "."; then
2463 if test "$with_target_subdir" != "."; then
2464 multi_basedir="$srcdir/$with_multisrctop../.."
2466 multi_basedir="$srcdir/$with_multisrctop.."
2469 multi_basedir="$srcdir/.."
2473 # Even if the default multilib is not a cross compilation,
2474 # it may be that some of the other multilibs are.
2475 if test $cross_compiling = no && test $multilib = yes \
2476 && test "x${with_multisubdir}" != x ; then
2477 cross_compiling=maybe
2480 ac_config_commands="$ac_config_commands default-1"
2484 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2485 for ac_t in install-sh install.sh shtool; do
2486 if test -f "$ac_dir/$ac_t"; then
2488 ac_install_sh="$ac_aux_dir/$ac_t -c"
2493 if test -z "$ac_aux_dir"; then
2494 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2497 # These three variables are undocumented and unsupported,
2498 # and are intended to be withdrawn in a future Autoconf release.
2499 # They can cause serious problems if a builder's source tree is in a directory
2500 # whose full name contains unusual characters.
2501 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2502 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2503 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2506 # Make sure we can run config.sub.
2507 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2508 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2511 $as_echo_n "checking build system type... " >&6; }
2512 if test "${ac_cv_build+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2515 ac_build_alias=$build_alias
2516 test "x$ac_build_alias" = x &&
2517 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2518 test "x$ac_build_alias" = x &&
2519 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2520 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2521 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2525 $as_echo "$ac_cv_build" >&6; }
2526 case $ac_cv_build in
2528 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2531 ac_save_IFS=$IFS; IFS='-'
2537 # Remember, the first character of IFS is used to create $*,
2538 # except with old shells:
2541 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2545 $as_echo_n "checking host system type... " >&6; }
2546 if test "${ac_cv_host+set}" = set; then :
2547 $as_echo_n "(cached) " >&6
2549 if test "x$host_alias" = x; then
2550 ac_cv_host=$ac_cv_build
2552 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2553 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2558 $as_echo "$ac_cv_host" >&6; }
2561 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2564 ac_save_IFS=$IFS; IFS='-'
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2574 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2578 $as_echo_n "checking target system type... " >&6; }
2579 if test "${ac_cv_target+set}" = set; then :
2580 $as_echo_n "(cached) " >&6
2582 if test "x$target_alias" = x; then
2583 ac_cv_target=$ac_cv_host
2585 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2586 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2591 $as_echo "$ac_cv_target" >&6; }
2592 case $ac_cv_target in
2594 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2596 target=$ac_cv_target
2597 ac_save_IFS=$IFS; IFS='-'
2603 # Remember, the first character of IFS is used to create $*,
2604 # except with old shells:
2607 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2610 # The aliases save the names the user supplied, while $host etc.
2611 # will get canonicalized.
2612 test -n "$target_alias" &&
2613 test "$program_prefix$program_suffix$program_transform_name" = \
2615 program_prefix=${target_alias}-
2617 target_alias=${target_alias-$host_alias}
2619 . ${srcdir}/configure.host
2621 am__api_version='1.11'
2623 # Find a good install program. We prefer a C program (faster),
2624 # so one script is as good as another. But avoid the broken or
2625 # incompatible versions:
2626 # SysV /etc/install, /usr/sbin/install
2627 # SunOS /usr/etc/install
2628 # IRIX /sbin/install
2630 # AmigaOS /C/install, which installs bootblocks on floppy discs
2631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2634 # OS/2's system install, which has a completely different semantic
2635 # ./install, which can be erroneously created by make from ./install.sh.
2636 # Reject install programs that cannot install multiple files.
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2639 if test -z "$INSTALL"; then
2640 if test "${ac_cv_path_install+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 # Account for people who put trailing slashes in PATH elements.
2649 case $as_dir/ in #((
2650 ./ | .// | /[cC]/* | \
2651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2652 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2655 # OSF1 and SCO ODT 3.0 have their own names for install.
2656 # Don't use installbsd from OSF since it installs stuff as root
2658 for ac_prog in ginstall scoinst install; do
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2661 if test $ac_prog = install &&
2662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663 # AIX install. It has an incompatible calling convention.
2665 elif test $ac_prog = install &&
2666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667 # program-specific install script used by HP pwplus--don't use.
2670 rm -rf conftest.one conftest.two conftest.dir
2671 echo one > conftest.one
2672 echo two > conftest.two
2674 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2675 test -s conftest.one && test -s conftest.two &&
2676 test -s conftest.dir/conftest.one &&
2677 test -s conftest.dir/conftest.two
2679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2692 rm -rf conftest.one conftest.two conftest.dir
2695 if test "${ac_cv_path_install+set}" = set; then
2696 INSTALL=$ac_cv_path_install
2698 # As a last resort, use the slow shell script. Don't cache a
2699 # value for INSTALL within a source directory, because that will
2700 # break other packages using the cache if that directory is
2701 # removed, or if the value is a relative name.
2702 INSTALL=$ac_install_sh
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2706 $as_echo "$INSTALL" >&6; }
2708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2709 # It thinks the first close brace ends the variable substitution.
2710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2717 $as_echo_n "checking whether build environment is sane... " >&6; }
2720 echo timestamp > conftest.file
2721 # Reject unsafe characters in $srcdir or the absolute working directory
2722 # name. Accept space and tab only in the latter.
2726 *[\\\"\#\$\&\'\`$am_lf]*)
2727 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2730 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2731 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2734 # Do `set' in a subshell so we don't clobber the current shell's
2735 # arguments. Must try -L first in case configure is actually a
2736 # symlink; some systems play weird games with the mod time of symlinks
2737 # (eg FreeBSD returns the mod time of the symlink's containing
2740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741 if test "$*" = "X"; then
2743 set X `ls -t "$srcdir/configure" conftest.file`
2746 if test "$*" != "X $srcdir/configure conftest.file" \
2747 && test "$*" != "X conftest.file $srcdir/configure"; then
2749 # If neither matched, then we have a broken ls. This can happen
2750 # if, for instance, CONFIG_SHELL is bash and it inherits a
2751 # broken ls alias from the environment. This has actually
2752 # happened. Such a system could not be considered "sane".
2753 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2754 alias in your environment" "$LINENO" 5
2757 test "$2" = conftest.file
2763 as_fn_error "newly created file is older than distributed files!
2764 Check your system clock" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768 test "$program_prefix" != NONE &&
2769 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2770 # Use a double $ so make ignores it.
2771 test "$program_suffix" != NONE &&
2772 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2773 # Double any \ or $.
2774 # By default was `s,x,x', remove it if useless.
2775 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2776 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2778 # expand $ac_aux_dir to an absolute path
2779 am_aux_dir=`cd $ac_aux_dir && pwd`
2781 if test x"${MISSING+set}" != xset; then
2784 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2786 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2789 # Use eval to expand $SHELL
2790 if eval "$MISSING --run true"; then
2791 am_missing_run="$MISSING --run "
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2795 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2798 if test x"${install_sh}" != xset; then
2801 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2803 install_sh="\${SHELL} $am_aux_dir/install-sh"
2807 # Installed binaries are usually stripped using `strip' when the user
2808 # run `make install-strip'. However `strip' might not be the right
2809 # tool to use in cross-compilation environments, therefore Automake
2810 # will honor the `STRIP' environment variable to overrule this program.
2811 if test "$cross_compiling" != no; then
2812 if test -n "$ac_tool_prefix"; then
2813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}strip; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_STRIP+set}" = set; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$STRIP"; then
2821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 STRIP=$ac_cv_prog_STRIP
2841 if test -n "$STRIP"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2843 $as_echo "$STRIP" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2851 if test -z "$ac_cv_prog_STRIP"; then
2853 # Extract the first word of "strip", so it can be a program name with args.
2854 set dummy strip; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2858 $as_echo_n "(cached) " >&6
2860 if test -n "$ac_ct_STRIP"; then
2861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_STRIP="strip"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2881 if test -n "$ac_ct_STRIP"; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2883 $as_echo "$ac_ct_STRIP" >&6; }
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2889 if test "x$ac_ct_STRIP" = x; then
2892 case $cross_compiling:$ac_tool_warned in
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2896 ac_tool_warned=yes ;;
2901 STRIP="$ac_cv_prog_STRIP"
2905 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2908 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2909 if test -z "$MKDIR_P"; then
2910 if test "${ac_cv_path_mkdir+set}" = set; then :
2911 $as_echo_n "(cached) " >&6
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2917 test -z "$as_dir" && as_dir=.
2918 for ac_prog in mkdir gmkdir; do
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2921 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2922 'mkdir (GNU coreutils) '* | \
2923 'mkdir (coreutils) '* | \
2924 'mkdir (fileutils) '4.1*)
2925 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2935 if test "${ac_cv_path_mkdir+set}" = set; then
2936 MKDIR_P="$ac_cv_path_mkdir -p"
2938 # As a last resort, use the slow shell script. Don't cache a
2939 # value for MKDIR_P within a source directory, because that will
2940 # break other packages using the cache if that directory is
2941 # removed, or if the value is a relative name.
2942 test -d ./--version && rmdir ./--version
2943 MKDIR_P="$ac_install_sh -d"
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2947 $as_echo "$MKDIR_P" >&6; }
2951 [\\/$]* | ?:[\\/]*) ;;
2952 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2955 for ac_prog in gawk mawk nawk awk
2957 # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_AWK+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2964 if test -n "$AWK"; then
2965 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_AWK="$ac_prog"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 if test -n "$AWK"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2987 $as_echo "$AWK" >&6; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2994 test -n "$AWK" && break
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2998 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3000 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3001 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3002 $as_echo_n "(cached) " >&6
3004 cat >conftest.make <<\_ACEOF
3007 @echo '@@@%%%=$(MAKE)=@@@%%%'
3009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3010 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3012 eval ac_cv_prog_make_${ac_make}_set=yes;;
3014 eval ac_cv_prog_make_${ac_make}_set=no;;
3018 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3020 $as_echo "yes" >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3025 SET_MAKE="MAKE=${MAKE-make}"
3028 rm -rf .tst 2>/dev/null
3029 mkdir .tst 2>/dev/null
3030 if test -d .tst; then
3035 rmdir .tst 2>/dev/null
3037 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3038 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3039 # is not polluted with repeated "-I."
3040 am__isrc=' -I$(srcdir)'
3041 # test to see if srcdir already configured
3042 if test -f $srcdir/config.status; then
3043 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3047 # test whether we have cygpath
3048 if test -z "$CYGPATH_W"; then
3049 if (cygpath --version) >/dev/null 2>/dev/null; then
3050 CYGPATH_W='cygpath -w'
3057 # Define the identity of the package.
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE "$PACKAGE"
3067 cat >>confdefs.h <<_ACEOF
3068 #define VERSION "$VERSION"
3071 # Some tools Automake needs.
3073 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3076 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3079 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3082 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3085 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3087 # We need awk for the "check" target. The system "awk" is bad on
3089 # Always define AMTAR for backward compatibility.
3091 AMTAR=${AMTAR-"${am_missing_run}tar"}
3093 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3100 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3101 # We must force CC to /not/ be precious variables; otherwise
3102 # the wrong, non-multilib-adjusted value will be used in multilibs.
3103 # As a side effect, we have to subst CFLAGS ourselves.
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112 if test -n "$ac_tool_prefix"; then
3113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if test "${ac_cv_prog_CC+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3151 if test -z "$ac_cv_prog_CC"; then
3153 # Extract the first word of "gcc", so it can be a program name with args.
3154 set dummy gcc; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$ac_ct_CC"; then
3161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_ac_ct_CC="gcc"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3181 if test -n "$ac_ct_CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3183 $as_echo "$ac_ct_CC" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3189 if test "x$ac_ct_CC" = x; then
3192 case $cross_compiling:$ac_tool_warned in
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3196 ac_tool_warned=yes ;;
3204 if test -z "$CC"; then
3205 if test -n "$ac_tool_prefix"; then
3206 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3207 set dummy ${ac_tool_prefix}cc; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_CC+set}" = set; then :
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$CC"; then
3214 ac_cv_prog_CC="$CC" # Let the user override the test.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_CC="${ac_tool_prefix}cc"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3234 if test -n "$CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236 $as_echo "$CC" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3245 if test -z "$CC"; then
3246 # Extract the first word of "cc", so it can be a program name with args.
3247 set dummy cc; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if test "${ac_cv_prog_CC+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3265 ac_prog_rejected=yes
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 if test $ac_prog_rejected = yes; then
3277 # We found a bogon in the path, so make sure we never use it.
3278 set dummy $ac_cv_prog_CC
3280 if test $# != 0; then
3281 # We chose a different compiler from the bogus one.
3282 # However, it has the same basename, so the bogon will be chosen
3283 # first if we set CC to just the basename; use the full file name.
3285 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3301 if test -z "$CC"; then
3302 if test -n "$ac_tool_prefix"; then
3303 for ac_prog in cl.exe
3305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if test "${ac_cv_prog_CC+set}" = set; then :
3310 $as_echo_n "(cached) " >&6
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC="$CC" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3322 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 if test -n "$CC"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3335 $as_echo "$CC" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3342 test -n "$CC" && break
3345 if test -z "$CC"; then
3347 for ac_prog in cl.exe
3349 # Extract the first word of "$ac_prog", so it can be a program name with args.
3350 set dummy $ac_prog; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$ac_ct_CC"; then
3357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366 ac_cv_prog_ac_ct_CC="$ac_prog"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3377 if test -n "$ac_ct_CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3379 $as_echo "$ac_ct_CC" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3386 test -n "$ac_ct_CC" && break
3389 if test "x$ac_ct_CC" = x; then
3392 case $cross_compiling:$ac_tool_warned in
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3396 ac_tool_warned=yes ;;
3405 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error "no acceptable C compiler found in \$PATH
3408 See \`config.log' for more details." "$LINENO" 5; }
3410 # Provide some information about the compiler.
3411 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3414 for ac_option in --version -v -V -qversion; do
3415 { { ac_try="$ac_compiler $ac_option >&5"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3424 if test -s conftest.err; then
3426 ... rest of stderr output deleted ...
3427 10q' conftest.err >conftest.er1
3428 cat conftest.er1 >&5
3429 rm -f conftest.er1 conftest.err
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3446 ac_clean_files_save=$ac_clean_files
3447 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3448 # Try to create an executable without -o first, disregard a.out.
3449 # It will help us diagnose broken compilers, and finding out an intuition
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3452 $as_echo_n "checking for C compiler default output file name... " >&6; }
3453 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3455 # The possible output files:
3456 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3459 for ac_file in $ac_files
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3463 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3468 if { { ac_try="$ac_link_default"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_link_default") 2>&5
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3480 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3481 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3482 # so that the user can short-circuit this test for compilers unknown to
3484 for ac_file in $ac_files ''
3486 test -f "$ac_file" || continue
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3491 # We found the default executable, but exeext='' is most
3495 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3497 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499 # We set ac_cv_exeext here because the later test for it is not
3500 # safe: cross compilers may not add the suffix if given an `-o'
3501 # argument, so we may need to know it at that point already.
3502 # Even if this section looks crufty: it has the advantage of
3509 test "$ac_cv_exeext" = no && ac_cv_exeext=
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3515 $as_echo "$ac_file" >&6; }
3516 if test -z "$ac_file"; then :
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 { as_fn_set_status 77
3523 as_fn_error "C compiler cannot create executables
3524 See \`config.log' for more details." "$LINENO" 5; }; }
3526 ac_exeext=$ac_cv_exeext
3528 # Check that the compiler produces executables we can run. If not, either
3529 # the compiler is broken, or we cross compile.
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3531 $as_echo_n "checking whether the C compiler works... " >&6; }
3532 # If not cross compiling, check that we can run a simple program.
3533 if test "$cross_compiling" != yes; then
3534 if { ac_try='./$ac_file'
3535 { { case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_try") 2>&5
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; }; then
3547 if test "$cross_compiling" = maybe; then
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error "cannot run C compiled programs.
3553 If you meant to cross compile, use \`--host'.
3554 See \`config.log' for more details." "$LINENO" 5; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559 $as_echo "yes" >&6; }
3561 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3562 ac_clean_files=$ac_clean_files_save
3563 # Check that the compiler produces executables we can run. If not, either
3564 # the compiler is broken, or we cross compile.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3566 $as_echo_n "checking whether we are cross compiling... " >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3568 $as_echo "$cross_compiling" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3571 $as_echo_n "checking for suffix of executables... " >&6; }
3572 if { { ac_try="$ac_link"
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_link") 2>&5
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }; then :
3583 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3584 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3585 # work properly (i.e., refer to `conftest.exe'), while it won't with
3587 for ac_file in conftest.exe conftest conftest.*; do
3588 test -f "$ac_file" || continue
3590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3591 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 as_fn_error "cannot compute suffix of executables: cannot compile and link
3600 See \`config.log' for more details." "$LINENO" 5; }
3602 rm -f conftest$ac_cv_exeext
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3604 $as_echo "$ac_cv_exeext" >&6; }
3606 rm -f conftest.$ac_ext
3607 EXEEXT=$ac_cv_exeext
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3610 $as_echo_n "checking for suffix of object files... " >&6; }
3611 if test "${ac_cv_objext+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3625 rm -f conftest.o conftest.obj
3626 if { { ac_try="$ac_compile"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_compile") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 for ac_file in conftest.o conftest.obj conftest.*; do
3638 test -f "$ac_file" || continue;
3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3641 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3646 $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error "cannot compute suffix of object files: cannot compile
3652 See \`config.log' for more details." "$LINENO" 5; }
3654 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3657 $as_echo "$ac_cv_objext" >&6; }
3658 OBJEXT=$ac_cv_objext
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3661 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3662 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3663 $as_echo_n "(cached) " >&6
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3679 if ac_fn_c_try_compile "$LINENO"; then :
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3689 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3690 if test $ac_compiler_gnu = yes; then
3695 ac_test_CFLAGS=${CFLAGS+set}
3696 ac_save_CFLAGS=$CFLAGS
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3698 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3699 if test "${ac_cv_prog_cc_g+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 ac_save_c_werror_flag=$ac_c_werror_flag
3703 ac_c_werror_flag=yes
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3717 if ac_fn_c_try_compile "$LINENO"; then :
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3732 if ac_fn_c_try_compile "$LINENO"; then :
3735 ac_c_werror_flag=$ac_save_c_werror_flag
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3748 if ac_fn_c_try_compile "$LINENO"; then :
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 ac_c_werror_flag=$ac_save_c_werror_flag
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3759 $as_echo "$ac_cv_prog_cc_g" >&6; }
3760 if test "$ac_test_CFLAGS" = set; then
3761 CFLAGS=$ac_save_CFLAGS
3762 elif test $ac_cv_prog_cc_g = yes; then
3763 if test "$GCC" = yes; then
3769 if test "$GCC" = yes; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3776 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3777 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3780 ac_cv_prog_cc_c89=no
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3786 #include <sys/types.h>
3787 #include <sys/stat.h>
3788 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3789 struct buf { int x; };
3790 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3791 static char *e (p, i)
3797 static char *f (char * (*g) (char **, int), char **p, ...)
3802 s = g (p, va_arg (v,int));
3807 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3808 function prototypes and stuff, but not '\xHH' hex character constants.
3809 These don't provoke an error unfortunately, instead are silently treated
3810 as 'x'. The following induces an error, until -std is added to get
3811 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3812 array size at least. It's necessary to write '\x00'==0 to get something
3813 that's true only with -std. */
3814 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3816 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3817 inside strings and character constants. */
3819 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3821 int test (int i, double x);
3822 struct s1 {int (*f) (int a);};
3823 struct s2 {int (*f) (double a);};
3824 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3830 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3835 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3836 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3838 CC="$ac_save_CC $ac_arg"
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840 ac_cv_prog_cc_c89=$ac_arg
3842 rm -f core conftest.err conftest.$ac_objext
3843 test "x$ac_cv_prog_cc_c89" != "xno" && break
3845 rm -f conftest.$ac_ext
3850 case "x$ac_cv_prog_cc_c89" in
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3853 $as_echo "none needed" >&6; } ;;
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3856 $as_echo "unsupported" >&6; } ;;
3858 CC="$CC $ac_cv_prog_cc_c89"
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3860 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862 if test "x$ac_cv_prog_cc_c89" != xno; then :
3867 ac_cpp='$CPP $CPPFLAGS'
3868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 DEPDIR="${am__leading_dot}deps"
3873 ac_config_commands="$ac_config_commands depfiles"
3876 am_make=${MAKE-make}
3877 cat > confinc << 'END'
3879 @echo this is the am__doit target
3882 # If we don't find an include directive, just comment out the code.
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3884 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3888 # First try GNU make style include.
3889 echo "include confinc" > confmf
3890 # Ignore all kinds of additional output from `make'.
3891 case `$am_make -s -f confmf 2> /dev/null` in #(
3892 *the\ am__doit\ target*)
3898 # Now try BSD make style include.
3899 if test "$am__include" = "#"; then
3900 echo '.include "confinc"' > confmf
3901 case `$am_make -s -f confmf 2> /dev/null` in #(
3902 *the\ am__doit\ target*)
3903 am__include=.include
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3912 $as_echo "$_am_result" >&6; }
3913 rm -f confinc confmf
3915 # Check whether --enable-dependency-tracking was given.
3916 if test "${enable_dependency_tracking+set}" = set; then :
3917 enableval=$enable_dependency_tracking;
3920 if test "x$enable_dependency_tracking" != xno; then
3921 am_depcomp="$ac_aux_dir/depcomp"
3924 if test "x$enable_dependency_tracking" != xno; then
3934 depcc="$CC" am_compiler_list=
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3937 $as_echo_n "checking dependency style of $depcc... " >&6; }
3938 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3941 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3942 # We make a subdir and do the tests there. Otherwise we can end up
3943 # making bogus files that we don't know about and never remove. For
3944 # instance it was reported that on HP-UX the gcc test will end up
3945 # making a dummy file named `D' -- because `-MD' means `put the output
3948 # Copy depcomp to subdir because otherwise we won't find it if we're
3949 # using a relative directory.
3950 cp "$am_depcomp" conftest.dir
3952 # We will build objects and dependencies in a subdirectory because
3953 # it helps to detect inapplicable dependency modes. For instance
3954 # both Tru64's cc and ICC support -MD to output dependencies as a
3955 # side effect of compilation, but ICC will put the dependencies in
3956 # the current directory while Tru64 will put them in the object
3960 am_cv_CC_dependencies_compiler_type=none
3961 if test "$am_compiler_list" = ""; then
3962 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3965 case " $depcc " in #(
3966 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3969 for depmode in $am_compiler_list; do
3970 # Setup a source with many dependencies, because some compilers
3971 # like to wrap large dependency lists on column 80 (with \), and
3972 # we should not choose a depcomp mode which is confused by this.
3974 # We need to recreate these files for each test, as the compiler may
3975 # overwrite some of them when testing with obscure command lines.
3976 # This happens at least with the AIX C compiler.
3978 for i in 1 2 3 4 5 6; do
3979 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3980 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3981 # Solaris 8's {/usr,}/bin/sh.
3982 touch sub/conftst$i.h
3984 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3986 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3987 # mode. It turns out that the SunPro C++ compiler does not properly
3988 # handle `-M -o', and we need to detect this. Also, some Intel
3989 # versions had trouble with output in subdirs
3990 am__obj=sub/conftest.${OBJEXT-o}
3991 am__minus_obj="-o $am__obj"
3994 # This depmode causes a compiler race in universal mode.
3995 test "$am__universal" = false || continue
3998 # after this tag, mechanisms are not by side-effect, so they'll
3999 # only be used when explicitly requested
4000 if test "x$enable_dependency_tracking" = xyes; then
4006 msvisualcpp | msvcmsys)
4007 # This compiler won't grok `-c -o', but also, the minuso test has
4008 # not run yet. These depmodes are late enough in the game, and
4009 # so weak that their functioning should not be impacted.
4010 am__obj=conftest.${OBJEXT-o}
4015 if depmode=$depmode \
4016 source=sub/conftest.c object=$am__obj \
4017 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4018 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4019 >/dev/null 2>conftest.err &&
4020 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4022 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4024 # icc doesn't choke on unknown options, it will just issue warnings
4025 # or remarks (even with -Werror). So we grep stderr for any message
4026 # that says an option was ignored or not supported.
4027 # When given -MP, icc 7.0 and 7.1 complain thusly:
4028 # icc: Command line warning: ignoring option '-M'; no argument required
4029 # The diagnosis changed in icc 8.0:
4030 # icc: Command line remark: option '-MP' not supported
4031 if (grep 'ignoring option' conftest.err ||
4032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4033 am_cv_CC_dependencies_compiler_type=$depmode
4042 am_cv_CC_dependencies_compiler_type=none
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4047 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4048 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4051 test "x$enable_dependency_tracking" != xno \
4052 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4054 am__fastdepCC_FALSE='#'
4056 am__fastdepCC_TRUE='#'
4057 am__fastdepCC_FALSE=
4065 # By default we simply use the C compiler to build assembly code.
4067 test "${CCAS+set}" = set || CCAS=$CC
4068 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4072 depcc="$CCAS" am_compiler_list=
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4075 $as_echo_n "checking dependency style of $depcc... " >&6; }
4076 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4079 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4080 # We make a subdir and do the tests there. Otherwise we can end up
4081 # making bogus files that we don't know about and never remove. For
4082 # instance it was reported that on HP-UX the gcc test will end up
4083 # making a dummy file named `D' -- because `-MD' means `put the output
4086 # Copy depcomp to subdir because otherwise we won't find it if we're
4087 # using a relative directory.
4088 cp "$am_depcomp" conftest.dir
4090 # We will build objects and dependencies in a subdirectory because
4091 # it helps to detect inapplicable dependency modes. For instance
4092 # both Tru64's cc and ICC support -MD to output dependencies as a
4093 # side effect of compilation, but ICC will put the dependencies in
4094 # the current directory while Tru64 will put them in the object
4098 am_cv_CCAS_dependencies_compiler_type=none
4099 if test "$am_compiler_list" = ""; then
4100 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105 for depmode in $am_compiler_list; do
4106 # Setup a source with many dependencies, because some compilers
4107 # like to wrap large dependency lists on column 80 (with \), and
4108 # we should not choose a depcomp mode which is confused by this.
4110 # We need to recreate these files for each test, as the compiler may
4111 # overwrite some of them when testing with obscure command lines.
4112 # This happens at least with the AIX C compiler.
4114 for i in 1 2 3 4 5 6; do
4115 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4116 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4117 # Solaris 8's {/usr,}/bin/sh.
4118 touch sub/conftst$i.h
4120 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4122 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4123 # mode. It turns out that the SunPro C++ compiler does not properly
4124 # handle `-M -o', and we need to detect this. Also, some Intel
4125 # versions had trouble with output in subdirs
4126 am__obj=sub/conftest.${OBJEXT-o}
4127 am__minus_obj="-o $am__obj"
4130 # This depmode causes a compiler race in universal mode.
4131 test "$am__universal" = false || continue
4134 # after this tag, mechanisms are not by side-effect, so they'll
4135 # only be used when explicitly requested
4136 if test "x$enable_dependency_tracking" = xyes; then
4142 msvisualcpp | msvcmsys)
4143 # This compiler won't grok `-c -o', but also, the minuso test has
4144 # not run yet. These depmodes are late enough in the game, and
4145 # so weak that their functioning should not be impacted.
4146 am__obj=conftest.${OBJEXT-o}
4151 if depmode=$depmode \
4152 source=sub/conftest.c object=$am__obj \
4153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4154 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4155 >/dev/null 2>conftest.err &&
4156 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4157 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4158 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4159 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4160 # icc doesn't choke on unknown options, it will just issue warnings
4161 # or remarks (even with -Werror). So we grep stderr for any message
4162 # that says an option was ignored or not supported.
4163 # When given -MP, icc 7.0 and 7.1 complain thusly:
4164 # icc: Command line warning: ignoring option '-M'; no argument required
4165 # The diagnosis changed in icc 8.0:
4166 # icc: Command line remark: option '-MP' not supported
4167 if (grep 'ignoring option' conftest.err ||
4168 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4169 am_cv_CCAS_dependencies_compiler_type=$depmode
4178 am_cv_CCAS_dependencies_compiler_type=none
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4183 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4184 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4187 test "x$enable_dependency_tracking" != xno \
4188 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4189 am__fastdepCCAS_TRUE=
4190 am__fastdepCCAS_FALSE='#'
4192 am__fastdepCCAS_TRUE='#'
4193 am__fastdepCCAS_FALSE=
4197 if test "x$CC" != xcc; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4199 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4202 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4204 set dummy $CC; ac_cc=`$as_echo "$2" |
4205 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4206 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4207 $as_echo_n "(cached) " >&6
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4220 # Make sure it works both with $CC and with simple cc.
4221 # We do the test twice because some compilers refuse to overwrite an
4222 # existing .o file with -o, though they will create one.
4223 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4225 if { { case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230 $as_echo "$ac_try_echo"; } >&5
4231 (eval "$ac_try") 2>&5
4233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234 test $ac_status = 0; } &&
4235 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4240 $as_echo "$ac_try_echo"; } >&5
4241 (eval "$ac_try") 2>&5
4243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4244 test $ac_status = 0; };
4246 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4247 if test "x$CC" != xcc; then
4248 # Test first that cc exists at all.
4249 if { ac_try='cc -c conftest.$ac_ext >&5'
4250 { { case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255 $as_echo "$ac_try_echo"; } >&5
4256 (eval "$ac_try") 2>&5
4258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4259 test $ac_status = 0; }; }; then
4260 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4262 if { { case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_try") 2>&5
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; } &&
4272 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4277 $as_echo "$ac_try_echo"; } >&5
4278 (eval "$ac_try") 2>&5
4280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4281 test $ac_status = 0; };
4286 # cc exists but doesn't like -o.
4287 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4292 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4294 rm -f core conftest*
4297 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4299 $as_echo "yes" >&6; }
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4304 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4308 # FIXME: we rely on the cache variable name because
4309 # there is no other way.
4311 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4312 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4313 if test "$am_t" != yes; then
4314 # Losing compiler, so override with the script.
4315 # FIXME: It is wrong to rewrite CC.
4316 # But if we don't then we get into trouble of one sort or another.
4317 # A longer-term fix would be to have automake use am__CC in this case,
4318 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4319 CC="$am_aux_dir/compile $CC"
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4326 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4331 macro_version='2.2.7a'
4332 macro_revision='1.3134'
4346 ltmain="$ac_aux_dir/ltmain.sh"
4348 # Backslashify metacharacters that are still active within
4349 # double-quoted strings.
4350 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4352 # Same as above, but do not quote variable references.
4353 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4355 # Sed substitution to delay expansion of an escaped shell variable in a
4356 # double_quote_subst'ed string.
4357 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4359 # Sed substitution to delay expansion of an escaped single quote.
4360 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4362 # Sed substitution to avoid accidental globbing in evaled expressions
4363 no_glob_subst='s/\*/\\\*/g'
4365 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4366 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4367 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4370 $as_echo_n "checking how to print strings... " >&6; }
4371 # Test print first, because it will be a builtin if present.
4372 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4373 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4375 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4378 # Use this function as a fallback that always works.
4379 func_fallback_echo ()
4381 eval 'cat <<_LTECHO_EOF
4385 ECHO='func_fallback_echo'
4388 # func_echo_all arg...
4389 # Invoke $ECHO with all args, space-separated.
4396 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4397 $as_echo "printf" >&6; } ;;
4398 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4399 $as_echo "print -r" >&6; } ;;
4400 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4401 $as_echo "cat" >&6; } ;;
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4418 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4419 if test "${ac_cv_path_SED+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4422 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4423 for ac_i in 1 2 3 4 5 6 7; do
4424 ac_script="$ac_script$as_nl$ac_script"
4426 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4427 { ac_script=; unset ac_script;}
4428 if test -z "$SED"; then
4429 ac_path_SED_found=false
4430 # Loop through the user's path and test for each of PROGNAME-LIST
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_prog in sed gsed; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4439 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4440 # Check for GNU ac_path_SED and select it if it is found.
4441 # Check for GNU $ac_path_SED
4442 case `"$ac_path_SED" --version 2>&1` in
4444 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4447 $as_echo_n 0123456789 >"conftest.in"
4450 cat "conftest.in" "conftest.in" >"conftest.tmp"
4451 mv "conftest.tmp" "conftest.in"
4452 cp "conftest.in" "conftest.nl"
4453 $as_echo '' >> "conftest.nl"
4454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456 as_fn_arith $ac_count + 1 && ac_count=$as_val
4457 if test $ac_count -gt ${ac_path_SED_max-0}; then
4458 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_SED="$ac_path_SED"
4460 ac_path_SED_max=$ac_count
4462 # 10*(2^10) chars as input seems more than enough
4463 test $ac_count -gt 10 && break
4465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4468 $ac_path_SED_found && break 3
4473 if test -z "$ac_cv_path_SED"; then
4474 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4482 $as_echo "$ac_cv_path_SED" >&6; }
4483 SED="$ac_cv_path_SED"
4486 test -z "$SED" && SED=sed
4487 Xsed="$SED -e 1s/^X//"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4500 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4501 if test "${ac_cv_path_GREP+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -z "$GREP"; then
4505 ac_path_GREP_found=false
4506 # Loop through the user's path and test for each of PROGNAME-LIST
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511 test -z "$as_dir" && as_dir=.
4512 for ac_prog in grep ggrep; do
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4515 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4516 # Check for GNU ac_path_GREP and select it if it is found.
4517 # Check for GNU $ac_path_GREP
4518 case `"$ac_path_GREP" --version 2>&1` in
4520 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4523 $as_echo_n 0123456789 >"conftest.in"
4526 cat "conftest.in" "conftest.in" >"conftest.tmp"
4527 mv "conftest.tmp" "conftest.in"
4528 cp "conftest.in" "conftest.nl"
4529 $as_echo 'GREP' >> "conftest.nl"
4530 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4532 as_fn_arith $ac_count + 1 && ac_count=$as_val
4533 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4534 # Best one so far, save it but keep looking for a better one
4535 ac_cv_path_GREP="$ac_path_GREP"
4536 ac_path_GREP_max=$ac_count
4538 # 10*(2^10) chars as input seems more than enough
4539 test $ac_count -gt 10 && break
4541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 $ac_path_GREP_found && break 3
4549 if test -z "$ac_cv_path_GREP"; then
4550 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4553 ac_cv_path_GREP=$GREP
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4558 $as_echo "$ac_cv_path_GREP" >&6; }
4559 GREP="$ac_cv_path_GREP"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4563 $as_echo_n "checking for egrep... " >&6; }
4564 if test "${ac_cv_path_EGREP+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4568 then ac_cv_path_EGREP="$GREP -E"
4570 if test -z "$EGREP"; then
4571 ac_path_EGREP_found=false
4572 # Loop through the user's path and test for each of PROGNAME-LIST
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 test -z "$as_dir" && as_dir=.
4578 for ac_prog in egrep; do
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4581 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4582 # Check for GNU ac_path_EGREP and select it if it is found.
4583 # Check for GNU $ac_path_EGREP
4584 case `"$ac_path_EGREP" --version 2>&1` in
4586 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4589 $as_echo_n 0123456789 >"conftest.in"
4592 cat "conftest.in" "conftest.in" >"conftest.tmp"
4593 mv "conftest.tmp" "conftest.in"
4594 cp "conftest.in" "conftest.nl"
4595 $as_echo 'EGREP' >> "conftest.nl"
4596 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598 as_fn_arith $ac_count + 1 && ac_count=$as_val
4599 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4600 # Best one so far, save it but keep looking for a better one
4601 ac_cv_path_EGREP="$ac_path_EGREP"
4602 ac_path_EGREP_max=$ac_count
4604 # 10*(2^10) chars as input seems more than enough
4605 test $ac_count -gt 10 && break
4607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610 $ac_path_EGREP_found && break 3
4615 if test -z "$ac_cv_path_EGREP"; then
4616 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619 ac_cv_path_EGREP=$EGREP
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4625 $as_echo "$ac_cv_path_EGREP" >&6; }
4626 EGREP="$ac_cv_path_EGREP"
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4630 $as_echo_n "checking for fgrep... " >&6; }
4631 if test "${ac_cv_path_FGREP+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4634 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4635 then ac_cv_path_FGREP="$GREP -F"
4637 if test -z "$FGREP"; then
4638 ac_path_FGREP_found=false
4639 # Loop through the user's path and test for each of PROGNAME-LIST
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644 test -z "$as_dir" && as_dir=.
4645 for ac_prog in fgrep; do
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4648 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4649 # Check for GNU ac_path_FGREP and select it if it is found.
4650 # Check for GNU $ac_path_FGREP
4651 case `"$ac_path_FGREP" --version 2>&1` in
4653 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4656 $as_echo_n 0123456789 >"conftest.in"
4659 cat "conftest.in" "conftest.in" >"conftest.tmp"
4660 mv "conftest.tmp" "conftest.in"
4661 cp "conftest.in" "conftest.nl"
4662 $as_echo 'FGREP' >> "conftest.nl"
4663 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665 as_fn_arith $ac_count + 1 && ac_count=$as_val
4666 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4667 # Best one so far, save it but keep looking for a better one
4668 ac_cv_path_FGREP="$ac_path_FGREP"
4669 ac_path_FGREP_max=$ac_count
4671 # 10*(2^10) chars as input seems more than enough
4672 test $ac_count -gt 10 && break
4674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677 $ac_path_FGREP_found && break 3
4682 if test -z "$ac_cv_path_FGREP"; then
4683 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4686 ac_cv_path_FGREP=$FGREP
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4692 $as_echo "$ac_cv_path_FGREP" >&6; }
4693 FGREP="$ac_cv_path_FGREP"
4696 test -z "$GREP" && GREP=grep
4716 # Check whether --with-gnu-ld was given.
4717 if test "${with_gnu_ld+set}" = set; then :
4718 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4724 if test "$GCC" = yes; then
4725 # Check if gcc -print-prog-name=ld gives a path.
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4727 $as_echo_n "checking for ld used by $CC... " >&6; }
4730 # gcc leaves a trailing carriage return which upsets mingw
4731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4736 # Accept absolute paths.
4738 re_direlt='/[^/][^/]*/\.\./'
4739 # Canonicalize the pathname of ld
4740 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4741 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4742 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4744 test -z "$LD" && LD="$ac_prog"
4747 # If it fails, then pretend we aren't using GCC.
4751 # If it is relative, then search for the first ld in PATH.
4755 elif test "$with_gnu_ld" = yes; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4757 $as_echo_n "checking for GNU ld... " >&6; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4760 $as_echo_n "checking for non-GNU ld... " >&6; }
4762 if test "${lt_cv_path_LD+set}" = set; then :
4763 $as_echo_n "(cached) " >&6
4765 if test -z "$LD"; then
4766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4767 for ac_dir in $PATH; do
4769 test -z "$ac_dir" && ac_dir=.
4770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4771 lt_cv_path_LD="$ac_dir/$ac_prog"
4772 # Check to see if the program is GNU ld. I'd rather use --version,
4773 # but apparently some variants of GNU ld only accept -v.
4774 # Break only if it was the GNU/non-GNU ld that we prefer.
4775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4776 *GNU* | *'with BFD'*)
4777 test "$with_gnu_ld" != no && break
4780 test "$with_gnu_ld" != yes && break
4787 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4792 if test -n "$LD"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4794 $as_echo "$LD" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4799 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4802 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4805 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4806 case `$LD -v 2>&1 </dev/null` in
4807 *GNU* | *'with BFD'*)
4808 lt_cv_prog_gnu_ld=yes
4811 lt_cv_prog_gnu_ld=no
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4816 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4817 with_gnu_ld=$lt_cv_prog_gnu_ld
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4828 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4829 if test "${lt_cv_path_NM+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4832 if test -n "$NM"; then
4833 # Let the user override the test.
4836 lt_nm_to_check="${ac_tool_prefix}nm"
4837 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4838 lt_nm_to_check="$lt_nm_to_check nm"
4840 for lt_tmp_nm in $lt_nm_to_check; do
4841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4842 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4844 test -z "$ac_dir" && ac_dir=.
4845 tmp_nm="$ac_dir/$lt_tmp_nm"
4846 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4847 # Check to see if the nm accepts a BSD-compat flag.
4848 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4849 # nm: unknown option "B" ignored
4850 # Tru64's nm complains that /dev/null is an invalid object file
4851 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4852 */dev/null* | *'Invalid file or object type'*)
4853 lt_cv_path_NM="$tmp_nm -B"
4857 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4859 lt_cv_path_NM="$tmp_nm -p"
4863 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4864 continue # so that we can try to find one that supports BSD flags
4873 : ${lt_cv_path_NM=no}
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4877 $as_echo "$lt_cv_path_NM" >&6; }
4878 if test "$lt_cv_path_NM" != "no"; then
4881 # Didn't find any BSD compatible name lister, look for dumpbin.
4882 if test -n "$DUMPBIN"; then :
4883 # Let the user override the test.
4885 if test -n "$ac_tool_prefix"; then
4886 for ac_prog in dumpbin "link -dump"
4888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -n "$DUMPBIN"; then
4896 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 DUMPBIN=$ac_cv_prog_DUMPBIN
4916 if test -n "$DUMPBIN"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4918 $as_echo "$DUMPBIN" >&6; }
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4925 test -n "$DUMPBIN" && break
4928 if test -z "$DUMPBIN"; then
4929 ac_ct_DUMPBIN=$DUMPBIN
4930 for ac_prog in dumpbin "link -dump"
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4937 $as_echo_n "(cached) " >&6
4939 if test -n "$ac_ct_DUMPBIN"; then
4940 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4962 $as_echo "$ac_ct_DUMPBIN" >&6; }
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4969 test -n "$ac_ct_DUMPBIN" && break
4972 if test "x$ac_ct_DUMPBIN" = x; then
4975 case $cross_compiling:$ac_tool_warned in
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4979 ac_tool_warned=yes ;;
4981 DUMPBIN=$ac_ct_DUMPBIN
4985 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4987 DUMPBIN="$DUMPBIN -symbols"
4995 if test "$DUMPBIN" != ":"; then
4999 test -z "$NM" && NM=nm
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5007 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5008 if test "${lt_cv_nm_interface+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5011 lt_cv_nm_interface="BSD nm"
5012 echo "int some_variable = 0;" > conftest.$ac_ext
5013 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5014 (eval "$ac_compile" 2>conftest.err)
5015 cat conftest.err >&5
5016 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5017 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5018 cat conftest.err >&5
5019 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5020 cat conftest.out >&5
5021 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5022 lt_cv_nm_interface="MS dumpbin"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5027 $as_echo "$lt_cv_nm_interface" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5030 $as_echo_n "checking whether ln -s works... " >&6; }
5032 if test "$LN_S" = "ln -s"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5037 $as_echo "no, using $LN_S" >&6; }
5040 # find the maximum length of command line arguments
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5042 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5043 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5051 # On DJGPP, this test can blow up pretty badly due to problems in libc
5052 # (any single argument exceeding 2000 bytes causes a buffer overrun
5053 # during glob expansion). Even if it were fixed, the result of this
5054 # check would be larger than it should be.
5055 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5059 # Under GNU Hurd, this test is not required because there is
5060 # no limit to the length of command line arguments.
5061 # Libtool will interpret -1 as no limit whatsoever
5062 lt_cv_sys_max_cmd_len=-1;
5065 cygwin* | mingw* | cegcc*)
5066 # On Win9x/ME, this test blows up -- it succeeds, but takes
5067 # about 5 minutes as the teststring grows exponentially.
5068 # Worse, since 9x/ME are not pre-emptively multitasking,
5069 # you end up with a "frozen" computer, even though with patience
5070 # the test eventually succeeds (with a max line length of 256k).
5071 # Instead, let's just punt: use the minimum linelength reported by
5072 # all of the supported platforms: 8192 (on NT/2K/XP).
5073 lt_cv_sys_max_cmd_len=8192;
5077 # On MiNT this can take a long time and run out of memory.
5078 lt_cv_sys_max_cmd_len=8192;
5082 # On AmigaOS with pdksh, this test takes hours, literally.
5083 # So we just punt and use a minimum line length of 8192.
5084 lt_cv_sys_max_cmd_len=8192;
5087 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5088 # This has been around since 386BSD, at least. Likely further.
5089 if test -x /sbin/sysctl; then
5090 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5091 elif test -x /usr/sbin/sysctl; then
5092 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5094 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5096 # And add a safety zone
5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5102 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5103 lt_cv_sys_max_cmd_len=196608
5107 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5108 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5109 # nice to cause kernel panics so lets avoid the loop below.
5110 # First set a reasonable default.
5111 lt_cv_sys_max_cmd_len=16384
5113 if test -x /sbin/sysconfig; then
5114 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5115 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5120 lt_cv_sys_max_cmd_len=102400
5122 sysv5* | sco5v6* | sysv4.2uw2*)
5123 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5124 if test -n "$kargmax"; then
5125 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5127 lt_cv_sys_max_cmd_len=32768
5131 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5132 if test -n "$lt_cv_sys_max_cmd_len"; then
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5136 # Make teststring a little bigger before we do anything with it.
5137 # a 1K string should be a reasonable start.
5138 for i in 1 2 3 4 5 6 7 8 ; do
5139 teststring=$teststring$teststring
5141 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5142 # If test is not a shell built-in, we'll probably end up computing a
5143 # maximum length that is only half of the actual maximum length, but
5145 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5146 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5147 test $i != 17 # 1/2 MB should be enough
5150 teststring=$teststring$teststring
5152 # Only check the string length outside the loop.
5153 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5155 # Add a significant safety factor because C++ compilers can tack on
5156 # massive amounts of additional arguments before passing them to the
5157 # linker. It appears as though 1/2 is a usable value.
5158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5165 if test -n $lt_cv_sys_max_cmd_len ; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5167 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5170 $as_echo "none" >&6; }
5172 max_cmd_len=$lt_cv_sys_max_cmd_len
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5184 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5185 # Try some XSI features
5188 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5190 && eval 'test $(( 1 + 1 )) -eq 2 \
5191 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5194 $as_echo "$xsi_shell" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5198 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5200 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5202 && lt_shell_append=yes
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5204 $as_echo "$lt_shell_append" >&6; }
5207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5217 # test EBCDIC or ASCII
5218 case `echo X|tr X '\101'` in
5219 A) # ASCII based system
5220 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5221 lt_SP2NL='tr \040 \012'
5222 lt_NL2SP='tr \015\012 \040\040'
5224 *) # EBCDIC based system
5225 lt_SP2NL='tr \100 \n'
5226 lt_NL2SP='tr \r\n \100\100'
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5239 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5240 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5243 lt_cv_ld_reload_flag='-r'
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5246 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5247 reload_flag=$lt_cv_ld_reload_flag
5248 case $reload_flag in
5250 *) reload_flag=" $reload_flag" ;;
5252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5255 if test "$GCC" = yes; then
5256 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5271 if test -n "$ac_tool_prefix"; then
5272 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5273 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5277 $as_echo_n "(cached) " >&6
5279 if test -n "$OBJDUMP"; then
5280 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 OBJDUMP=$ac_cv_prog_OBJDUMP
5300 if test -n "$OBJDUMP"; then
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5302 $as_echo "$OBJDUMP" >&6; }
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5310 if test -z "$ac_cv_prog_OBJDUMP"; then
5311 ac_ct_OBJDUMP=$OBJDUMP
5312 # Extract the first word of "objdump", so it can be a program name with args.
5313 set dummy objdump; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 if test -n "$ac_ct_OBJDUMP"; then
5320 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5340 if test -n "$ac_ct_OBJDUMP"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5342 $as_echo "$ac_ct_OBJDUMP" >&6; }
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5348 if test "x$ac_ct_OBJDUMP" = x; then
5351 case $cross_compiling:$ac_tool_warned in
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned=yes ;;
5357 OBJDUMP=$ac_ct_OBJDUMP
5360 OBJDUMP="$ac_cv_prog_OBJDUMP"
5363 test -z "$OBJDUMP" && OBJDUMP=objdump
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5374 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5375 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5378 lt_cv_file_magic_cmd='$MAGIC_CMD'
5379 lt_cv_file_magic_test_file=
5380 lt_cv_deplibs_check_method='unknown'
5381 # Need to set the preceding variable on all platforms that support
5382 # interlibrary dependencies.
5383 # 'none' -- dependencies not supported.
5384 # `unknown' -- same as none, but documents that we really don't know.
5385 # 'pass_all' -- all dependencies passed with no checks.
5386 # 'test_compile' -- check by making test program.
5387 # 'file_magic [[regex]]' -- check by looking for files in library path
5388 # which responds to the $file_magic_cmd with a given extended regex.
5389 # If you have `file' or equivalent on your system and you're not sure
5390 # whether `pass_all' will *always* work, you probably want this one.
5394 lt_cv_deplibs_check_method=pass_all
5398 lt_cv_deplibs_check_method=pass_all
5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5403 lt_cv_file_magic_cmd='/usr/bin/file -L'
5404 lt_cv_file_magic_test_file=/shlib/libc.so
5408 # func_win32_libid is a shell function defined in ltmain.sh
5409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5410 lt_cv_file_magic_cmd='func_win32_libid'
5414 # Base MSYS/MinGW do not provide the 'file' command needed by
5415 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5416 # unless we find 'file', for example because we are cross-compiling.
5417 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5418 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5419 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5420 lt_cv_file_magic_cmd='func_win32_libid'
5422 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5423 lt_cv_file_magic_cmd='$OBJDUMP -f'
5428 # use the weaker test based on 'objdump'. See mingw*.
5429 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5430 lt_cv_file_magic_cmd='$OBJDUMP -f'
5433 darwin* | rhapsody*)
5434 lt_cv_deplibs_check_method=pass_all
5437 freebsd* | dragonfly*)
5438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5441 # Not sure whether the presence of OpenBSD here was a mistake.
5442 # Let's accept both of them until this is cleared up.
5443 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5444 lt_cv_file_magic_cmd=/usr/bin/file
5445 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5449 lt_cv_deplibs_check_method=pass_all
5454 lt_cv_deplibs_check_method=pass_all
5458 lt_cv_deplibs_check_method=pass_all
5461 hpux10.20* | hpux11*)
5462 lt_cv_file_magic_cmd=/usr/bin/file
5465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5466 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5469 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]'
5470 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5473 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5474 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5480 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5484 irix5* | irix6* | nonstopux*)
5486 *-32|*"-32 ") libmagic=32-bit;;
5487 *-n32|*"-n32 ") libmagic=N32;;
5488 *-64|*"-64 ") libmagic=64-bit;;
5489 *) libmagic=never-match;;
5491 lt_cv_deplibs_check_method=pass_all
5494 # This must be Linux ELF.
5495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5496 lt_cv_deplibs_check_method=pass_all
5500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5509 lt_cv_file_magic_cmd=/usr/bin/file
5510 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5514 lt_cv_deplibs_check_method=pass_all
5518 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5525 osf3* | osf4* | osf5*)
5526 lt_cv_deplibs_check_method=pass_all
5530 lt_cv_deplibs_check_method=pass_all
5534 lt_cv_deplibs_check_method=pass_all
5537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5538 lt_cv_deplibs_check_method=pass_all
5542 case $host_vendor in
5544 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]'
5545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5548 lt_cv_deplibs_check_method=pass_all
5551 lt_cv_file_magic_cmd='/bin/file'
5552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5555 lt_cv_file_magic_cmd='/bin/file'
5556 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5557 lt_cv_file_magic_test_file=/lib/libc.so
5560 lt_cv_deplibs_check_method=pass_all
5563 lt_cv_deplibs_check_method=pass_all
5569 lt_cv_deplibs_check_method=pass_all
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5575 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5576 file_magic_cmd=$lt_cv_file_magic_cmd
5577 deplibs_check_method=$lt_cv_deplibs_check_method
5578 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5591 if test -n "$ac_tool_prefix"; then
5592 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5593 set dummy ${ac_tool_prefix}ar; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if test "${ac_cv_prog_AR+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5599 if test -n "$AR"; then
5600 ac_cv_prog_AR="$AR" # Let the user override the test.
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_prog_AR="${ac_tool_prefix}ar"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 if test -n "$AR"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5622 $as_echo "$AR" >&6; }
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5630 if test -z "$ac_cv_prog_AR"; then
5632 # Extract the first word of "ar", so it can be a program name with args.
5633 set dummy ar; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5637 $as_echo_n "(cached) " >&6
5639 if test -n "$ac_ct_AR"; then
5640 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_ac_ct_AR="ar"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5660 if test -n "$ac_ct_AR"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5662 $as_echo "$ac_ct_AR" >&6; }
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5668 if test "x$ac_ct_AR" = x; then
5671 case $cross_compiling:$ac_tool_warned in
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5675 ac_tool_warned=yes ;;
5683 test -z "$AR" && AR=ar
5684 test -z "$AR_FLAGS" && AR_FLAGS=cru
5696 if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}strip; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if test "${ac_cv_prog_STRIP+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5704 if test -n "$STRIP"; then
5705 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 STRIP=$ac_cv_prog_STRIP
5725 if test -n "$STRIP"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5727 $as_echo "$STRIP" >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5735 if test -z "$ac_cv_prog_STRIP"; then
5737 # Extract the first word of "strip", so it can be a program name with args.
5738 set dummy strip; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 if test -n "$ac_ct_STRIP"; then
5745 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 test -z "$as_dir" && as_dir=.
5752 for ac_exec_ext in '' $ac_executable_extensions; do
5753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5754 ac_cv_prog_ac_ct_STRIP="strip"
5755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5765 if test -n "$ac_ct_STRIP"; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5767 $as_echo "$ac_ct_STRIP" >&6; }
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 $as_echo "no" >&6; }
5773 if test "x$ac_ct_STRIP" = x; then
5776 case $cross_compiling:$ac_tool_warned in
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5780 ac_tool_warned=yes ;;
5785 STRIP="$ac_cv_prog_STRIP"
5788 test -z "$STRIP" && STRIP=:
5795 if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5803 if test -n "$RANLIB"; then
5804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 RANLIB=$ac_cv_prog_RANLIB
5824 if test -n "$RANLIB"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5826 $as_echo "$RANLIB" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5834 if test -z "$ac_cv_prog_RANLIB"; then
5835 ac_ct_RANLIB=$RANLIB
5836 # Extract the first word of "ranlib", so it can be a program name with args.
5837 set dummy ranlib; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5843 if test -n "$ac_ct_RANLIB"; then
5844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_prog_ac_ct_RANLIB="ranlib"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5864 if test -n "$ac_ct_RANLIB"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5866 $as_echo "$ac_ct_RANLIB" >&6; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5872 if test "x$ac_ct_RANLIB" = x; then
5875 case $cross_compiling:$ac_tool_warned in
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879 ac_tool_warned=yes ;;
5881 RANLIB=$ac_ct_RANLIB
5884 RANLIB="$ac_cv_prog_RANLIB"
5887 test -z "$RANLIB" && RANLIB=:
5894 # Determine commands to create old-style static archives.
5895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5896 old_postinstall_cmds='chmod 644 $oldlib'
5897 old_postuninstall_cmds=
5899 if test -n "$RANLIB"; then
5902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5908 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5913 lock_old_archive_extraction=yes ;;
5915 lock_old_archive_extraction=no ;;
5956 # If no C compiler was specified, use CC.
5959 # If no C compiler flags were specified, use CFLAGS.
5960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5962 # Allow CC to be a program name with arguments.
5966 # Check for command to grab the raw symbol name followed by C symbol from nm.
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5968 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5969 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5973 # These are sane defaults that work on at least a few old systems.
5974 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5976 # Character class describing NM global symbol codes.
5977 symcode='[BCDEGRST]'
5979 # Regexp to match symbols that can be accessed directly from C.
5980 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5982 # Define system-specific variables.
5987 cygwin* | mingw* | pw32* | cegcc*)
5988 symcode='[ABCDGISTW]'
5991 if test "$host_cpu" = ia64; then
5992 symcode='[ABCDEGRST]'
5996 symcode='[BCDEGRST]'
5999 symcode='[BCDEGQRST]'
6010 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6018 # If we're using GNU nm, then use its standard symbol codes.
6019 case `$NM -V 2>&1` in
6020 *GNU* | *'with BFD'*)
6021 symcode='[ABCDGIRSTW]' ;;
6024 # Transform an extracted symbol line into a proper C declaration.
6025 # Some systems (esp. on ia64) link data and code symbols differently,
6026 # so use this general approach.
6027 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6029 # Transform an extracted symbol line into symbol name and symbol address
6030 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6031 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'"
6033 # Handle CRLF in mingw tool chain
6037 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6041 # Try without a prefix underscore, then with it.
6042 for ac_symprfx in "" "_"; do
6044 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6045 symxfrm="\\1 $ac_symprfx\\2 \\2"
6047 # Write the raw and C identifiers.
6048 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6049 # Fake it for dumpbin and say T for any non-static function
6050 # and D for any global variable.
6051 # Also find C++ and __fastcall symbols from MSVC++,
6052 # which start with @ or ?.
6053 lt_cv_sys_global_symbol_pipe="$AWK '"\
6054 " {last_section=section; section=\$ 3};"\
6055 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6056 " \$ 0!~/External *\|/{next};"\
6057 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6058 " {if(hide[section]) next};"\
6059 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6060 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6061 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6062 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6063 " ' prfx=^$ac_symprfx"
6065 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6068 # Check to see that the pipe works correctly.
6072 cat > conftest.$ac_ext <<_LT_EOF
6077 void nm_test_func(void);
6078 void nm_test_func(void){}
6082 int main(){nm_test_var='a';nm_test_func();return(0);}
6085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6086 (eval $ac_compile) 2>&5
6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089 test $ac_status = 0; }; then
6090 # Now try to grab the symbols.
6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6093 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; } && test -s "$nlist"; then
6097 # Try sorting and uniquifying the output.
6098 if sort "$nlist" | uniq > "$nlist"T; then
6099 mv -f "$nlist"T "$nlist"
6104 # Make sure that we snagged all the symbols we need.
6105 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6106 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6107 cat <<_LT_EOF > conftest.$ac_ext
6113 # Now generate the symbol file.
6114 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6116 cat <<_LT_EOF >> conftest.$ac_ext
6118 /* The mapping between symbol names and symbols. */
6123 lt__PROGRAM__LTX_preloaded_symbols[] =
6125 { "@PROGRAM@", (void *) 0 },
6127 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6128 cat <<\_LT_EOF >> conftest.$ac_ext
6132 /* This works around a problem in FreeBSD linker */
6133 #ifdef FREEBSD_WORKAROUND
6134 static const void *lt_preloaded_setup() {
6135 return lt__PROGRAM__LTX_preloaded_symbols;
6143 # Now try linking the two files.
6144 mv conftest.$ac_objext conftstm.$ac_objext
6145 lt_save_LIBS="$LIBS"
6146 lt_save_CFLAGS="$CFLAGS"
6147 LIBS="conftstm.$ac_objext"
6148 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6150 (eval $ac_link) 2>&5
6152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6156 LIBS="$lt_save_LIBS"
6157 CFLAGS="$lt_save_CFLAGS"
6159 echo "cannot find nm_test_func in $nlist" >&5
6162 echo "cannot find nm_test_var in $nlist" >&5
6165 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6168 echo "$progname: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6171 rm -rf conftest* conftst*
6173 # Do not use the global_symbol_pipe unless it works.
6174 if test "$pipe_works" = yes; then
6177 lt_cv_sys_global_symbol_pipe=
6183 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6184 lt_cv_sys_global_symbol_to_cdecl=
6186 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6188 $as_echo "failed" >&6; }
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6191 $as_echo "ok" >&6; }
6216 # Check whether --enable-libtool-lock was given.
6217 if test "${enable_libtool_lock+set}" = set; then :
6218 enableval=$enable_libtool_lock;
6221 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6223 # Some flags need to be propagated to the compiler or linker for good
6227 # Find out which ABI we are using.
6228 echo 'int i;' > conftest.$ac_ext
6229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6230 (eval $ac_compile) 2>&5
6232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233 test $ac_status = 0; }; then
6234 case `/usr/bin/file conftest.$ac_objext` in
6246 # Find out which ABI we are using.
6247 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249 (eval $ac_compile) 2>&5
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; }; then
6253 if test "$lt_cv_prog_gnu_ld" = yes; then
6254 case `/usr/bin/file conftest.$ac_objext` in
6256 LD="${LD-ld} -melf32bsmip"
6259 LD="${LD-ld} -melf32bmipn32"
6262 LD="${LD-ld} -melf64bmip"
6266 case `/usr/bin/file conftest.$ac_objext` in
6282 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6283 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6284 # Find out which ABI we are using.
6285 echo 'int i;' > conftest.$ac_ext
6286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6287 (eval $ac_compile) 2>&5
6289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6290 test $ac_status = 0; }; then
6291 case `/usr/bin/file conftest.o` in
6294 x86_64-*kfreebsd*-gnu)
6295 LD="${LD-ld} -m elf_i386_fbsd"
6298 case `/usr/bin/file conftest.o` in
6300 LD="${LD-ld} -m elf32_x86_64"
6303 LD="${LD-ld} -m elf_i386"
6307 ppc64-*linux*|powerpc64-*linux*)
6308 LD="${LD-ld} -m elf32ppclinux"
6311 LD="${LD-ld} -m elf_s390"
6314 LD="${LD-ld} -m elf32_sparc"
6320 x86_64-*kfreebsd*-gnu)
6321 LD="${LD-ld} -m elf_x86_64_fbsd"
6324 LD="${LD-ld} -m elf_x86_64"
6326 ppc*-*linux*|powerpc*-*linux*)
6327 LD="${LD-ld} -m elf64ppc"
6329 s390*-*linux*|s390*-*tpf*)
6330 LD="${LD-ld} -m elf64_s390"
6333 LD="${LD-ld} -m elf64_sparc"
6343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6344 SAVE_CFLAGS="$CFLAGS"
6345 CFLAGS="$CFLAGS -belf"
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6347 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6348 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6352 ac_cpp='$CPP $CPPFLAGS'
6353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6368 if ac_fn_c_try_link "$LINENO"; then :
6369 lt_cv_cc_needs_belf=yes
6371 lt_cv_cc_needs_belf=no
6373 rm -f core conftest.err conftest.$ac_objext \
6374 conftest$ac_exeext conftest.$ac_ext
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6383 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6386 CFLAGS="$SAVE_CFLAGS"
6390 # Find out which ABI we are using.
6391 echo 'int i;' > conftest.$ac_ext
6392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6393 (eval $ac_compile) 2>&5
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }; then
6397 case `/usr/bin/file conftest.o` in
6399 case $lt_cv_prog_gnu_ld in
6400 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6402 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6414 need_locks="$enable_libtool_lock"
6418 rhapsody* | darwin*)
6419 if test -n "$ac_tool_prefix"; then
6420 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6427 if test -n "$DSYMUTIL"; then
6428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6448 if test -n "$DSYMUTIL"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6450 $as_echo "$DSYMUTIL" >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6458 if test -z "$ac_cv_prog_DSYMUTIL"; then
6459 ac_ct_DSYMUTIL=$DSYMUTIL
6460 # Extract the first word of "dsymutil", so it can be a program name with args.
6461 set dummy dsymutil; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6467 if test -n "$ac_ct_DSYMUTIL"; then
6468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6488 if test -n "$ac_ct_DSYMUTIL"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6490 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6496 if test "x$ac_ct_DSYMUTIL" = x; then
6499 case $cross_compiling:$ac_tool_warned in
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6503 ac_tool_warned=yes ;;
6505 DSYMUTIL=$ac_ct_DSYMUTIL
6508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6511 if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6517 $as_echo_n "(cached) " >&6
6519 if test -n "$NMEDIT"; then
6520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 NMEDIT=$ac_cv_prog_NMEDIT
6540 if test -n "$NMEDIT"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6542 $as_echo "$NMEDIT" >&6; }
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6550 if test -z "$ac_cv_prog_NMEDIT"; then
6551 ac_ct_NMEDIT=$NMEDIT
6552 # Extract the first word of "nmedit", so it can be a program name with args.
6553 set dummy nmedit; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6559 if test -n "$ac_ct_NMEDIT"; then
6560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6580 if test -n "$ac_ct_NMEDIT"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6582 $as_echo "$ac_ct_NMEDIT" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6588 if test "x$ac_ct_NMEDIT" = x; then
6591 case $cross_compiling:$ac_tool_warned in
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6595 ac_tool_warned=yes ;;
6597 NMEDIT=$ac_ct_NMEDIT
6600 NMEDIT="$ac_cv_prog_NMEDIT"
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if test "${ac_cv_prog_LIPO+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$LIPO"; then
6612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 LIPO=$ac_cv_prog_LIPO
6632 if test -n "$LIPO"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6634 $as_echo "$LIPO" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6642 if test -z "$ac_cv_prog_LIPO"; then
6644 # Extract the first word of "lipo", so it can be a program name with args.
6645 set dummy lipo; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6651 if test -n "$ac_ct_LIPO"; then
6652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_LIPO="lipo"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6672 if test -n "$ac_ct_LIPO"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6674 $as_echo "$ac_ct_LIPO" >&6; }
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6680 if test "x$ac_ct_LIPO" = x; then
6683 case $cross_compiling:$ac_tool_warned in
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6692 LIPO="$ac_cv_prog_LIPO"
6695 if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6697 set dummy ${ac_tool_prefix}otool; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6703 if test -n "$OTOOL"; then
6704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 OTOOL=$ac_cv_prog_OTOOL
6724 if test -n "$OTOOL"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6726 $as_echo "$OTOOL" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6734 if test -z "$ac_cv_prog_OTOOL"; then
6736 # Extract the first word of "otool", so it can be a program name with args.
6737 set dummy otool; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6743 if test -n "$ac_ct_OTOOL"; then
6744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_prog_ac_ct_OTOOL="otool"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6764 if test -n "$ac_ct_OTOOL"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6766 $as_echo "$ac_ct_OTOOL" >&6; }
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6772 if test "x$ac_ct_OTOOL" = x; then
6775 case $cross_compiling:$ac_tool_warned in
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779 ac_tool_warned=yes ;;
6784 OTOOL="$ac_cv_prog_OTOOL"
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6793 $as_echo_n "(cached) " >&6
6795 if test -n "$OTOOL64"; then
6796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 OTOOL64=$ac_cv_prog_OTOOL64
6816 if test -n "$OTOOL64"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6818 $as_echo "$OTOOL64" >&6; }
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6826 if test -z "$ac_cv_prog_OTOOL64"; then
6827 ac_ct_OTOOL64=$OTOOL64
6828 # Extract the first word of "otool64", so it can be a program name with args.
6829 set dummy otool64; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
6835 if test -n "$ac_ct_OTOOL64"; then
6836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_ac_ct_OTOOL64="otool64"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6856 if test -n "$ac_ct_OTOOL64"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6858 $as_echo "$ac_ct_OTOOL64" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6864 if test "x$ac_ct_OTOOL64" = x; then
6867 case $cross_compiling:$ac_tool_warned in
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6873 OTOOL64=$ac_ct_OTOOL64
6876 OTOOL64="$ac_cv_prog_OTOOL64"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6906 $as_echo_n "checking for -single_module linker flag... " >&6; }
6907 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6908 $as_echo_n "(cached) " >&6
6910 lt_cv_apple_cc_single_mod=no
6911 if test -z "${LT_MULTI_MODULE}"; then
6912 # By default we will add the -single_module flag. You can override
6913 # by either setting the environment variable LT_MULTI_MODULE
6914 # non-empty at configure time, or by adding -multi_module to the
6916 rm -rf libconftest.dylib*
6917 echo "int foo(void){return 1;}" > conftest.c
6918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6919 -dynamiclib -Wl,-single_module conftest.c" >&5
6920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6924 lt_cv_apple_cc_single_mod=yes
6926 cat conftest.err >&5
6928 rm -rf libconftest.dylib*
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6933 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6935 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6936 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6939 lt_cv_ld_exported_symbols_list=no
6940 save_LDFLAGS=$LDFLAGS
6941 echo "_main" > conftest.sym
6942 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6954 if ac_fn_c_try_link "$LINENO"; then :
6955 lt_cv_ld_exported_symbols_list=yes
6957 lt_cv_ld_exported_symbols_list=no
6959 rm -f core conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6961 LDFLAGS="$save_LDFLAGS"
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6965 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6967 $as_echo_n "checking for -force_load linker flag... " >&6; }
6968 if test "${lt_cv_ld_force_load+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6971 lt_cv_ld_force_load=no
6972 cat > conftest.c << _LT_EOF
6973 int forced_loaded() { return 2;}
6975 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6976 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6977 echo "$AR cru libconftest.a conftest.o" >&5
6978 $AR cru libconftest.a conftest.o 2>&5
6979 cat > conftest.c << _LT_EOF
6980 int main() { return 0;}
6982 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6983 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6985 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6986 lt_cv_ld_force_load=yes
6988 cat conftest.err >&5
6990 rm -f conftest.err libconftest.a conftest conftest.c
6991 rm -rf conftest.dSYM
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6995 $as_echo "$lt_cv_ld_force_load" >&6; }
6997 rhapsody* | darwin1.[012])
6998 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7000 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7001 darwin*) # darwin 5.x on
7002 # if running on 10.5 or later, the deployment target defaults
7003 # to the OS version, if on x86, and 10.4, the deployment
7004 # target defaults to 10.4. Don't you love it?
7005 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7006 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7007 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7009 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7011 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7015 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7016 _lt_dar_single_mod='$single_module'
7018 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7019 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7021 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7023 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7024 _lt_dsymutil='~$DSYMUTIL $lib || :'
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7038 # On Suns, sometimes $CPP names a directory.
7039 if test -n "$CPP" && test -d "$CPP"; then
7042 if test -z "$CPP"; then
7043 if test "${ac_cv_prog_CPP+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7046 # Double quotes because CPP needs to be expanded
7047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7050 for ac_c_preproc_warn_flag in '' yes
7052 # Use a header file that comes with gcc, so configuring glibc
7053 # with a fresh cross-compiler works.
7054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7055 # <limits.h> exists even on freestanding compilers.
7056 # On the NeXT, cc -E runs the code through the compiler's parser,
7057 # not just through cpp. "Syntax error" is here to catch this case.
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7061 # include <limits.h>
7063 # include <assert.h>
7067 if ac_fn_c_try_cpp "$LINENO"; then :
7070 # Broken: fails on valid input.
7073 rm -f conftest.err conftest.$ac_ext
7075 # OK, works on sane cases. Now check whether nonexistent headers
7076 # can be detected and how.
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7079 #include <ac_nonexistent.h>
7081 if ac_fn_c_try_cpp "$LINENO"; then :
7082 # Broken: success on invalid input.
7085 # Passes both tests.
7089 rm -f conftest.err conftest.$ac_ext
7092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7093 rm -f conftest.err conftest.$ac_ext
7094 if $ac_preproc_ok; then :
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7107 $as_echo "$CPP" >&6; }
7109 for ac_c_preproc_warn_flag in '' yes
7111 # Use a header file that comes with gcc, so configuring glibc
7112 # with a fresh cross-compiler works.
7113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7114 # <limits.h> exists even on freestanding compilers.
7115 # On the NeXT, cc -E runs the code through the compiler's parser,
7116 # not just through cpp. "Syntax error" is here to catch this case.
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7120 # include <limits.h>
7122 # include <assert.h>
7126 if ac_fn_c_try_cpp "$LINENO"; then :
7129 # Broken: fails on valid input.
7132 rm -f conftest.err conftest.$ac_ext
7134 # OK, works on sane cases. Now check whether nonexistent headers
7135 # can be detected and how.
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 #include <ac_nonexistent.h>
7140 if ac_fn_c_try_cpp "$LINENO"; then :
7141 # Broken: success on invalid input.
7144 # Passes both tests.
7148 rm -f conftest.err conftest.$ac_ext
7151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7152 rm -f conftest.err conftest.$ac_ext
7153 if $ac_preproc_ok; then :
7156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7158 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7159 See \`config.log' for more details." "$LINENO" 5; }
7163 ac_cpp='$CPP $CPPFLAGS'
7164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7170 $as_echo_n "checking for ANSI C header files... " >&6; }
7171 if test "${ac_cv_header_stdc+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7189 if ac_fn_c_try_compile "$LINENO"; then :
7190 ac_cv_header_stdc=yes
7192 ac_cv_header_stdc=no
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 if test $ac_cv_header_stdc = yes; then
7197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7204 $EGREP "memchr" >/dev/null 2>&1; then :
7207 ac_cv_header_stdc=no
7213 if test $ac_cv_header_stdc = yes; then
7214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7221 $EGREP "free" >/dev/null 2>&1; then :
7224 ac_cv_header_stdc=no
7230 if test $ac_cv_header_stdc = yes; then
7231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7232 if test "$cross_compiling" = yes; then :
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7239 #if ((' ' & 0x0FF) == 0x020)
7240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7243 # define ISLOWER(c) \
7244 (('a' <= (c) && (c) <= 'i') \
7245 || ('j' <= (c) && (c) <= 'r') \
7246 || ('s' <= (c) && (c) <= 'z'))
7247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7255 for (i = 0; i < 256; i++)
7256 if (XOR (islower (i), ISLOWER (i))
7257 || toupper (i) != TOUPPER (i))
7262 if ac_fn_c_try_run "$LINENO"; then :
7265 ac_cv_header_stdc=no
7267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7268 conftest.$ac_objext conftest.beam conftest.$ac_ext
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7274 $as_echo "$ac_cv_header_stdc" >&6; }
7275 if test $ac_cv_header_stdc = yes; then
7277 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7282 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7283 inttypes.h stdint.h unistd.h
7285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7286 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7288 eval as_val=\$$as_ac_Header
7289 if test "x$as_val" = x""yes; then :
7290 cat >>confdefs.h <<_ACEOF
7291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299 for ac_header in dlfcn.h
7301 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7303 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7304 cat >>confdefs.h <<_ACEOF
7305 #define HAVE_DLFCN_H 1
7326 # Check whether --enable-shared was given.
7327 if test "${enable_shared+set}" = set; then :
7328 enableval=$enable_shared; p=${PACKAGE-default}
7330 yes) enable_shared=yes ;;
7331 no) enable_shared=no ;;
7334 # Look at the argument we got. We use all the common list separators.
7335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7336 for pkg in $enableval; do
7338 if test "X$pkg" = "X$p"; then
7357 # Check whether --enable-static was given.
7358 if test "${enable_static+set}" = set; then :
7359 enableval=$enable_static; p=${PACKAGE-default}
7361 yes) enable_static=yes ;;
7362 no) enable_static=no ;;
7365 # Look at the argument we got. We use all the common list separators.
7366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7367 for pkg in $enableval; do
7369 if test "X$pkg" = "X$p"; then
7389 # Check whether --with-pic was given.
7390 if test "${with_pic+set}" = set; then :
7391 withval=$with_pic; pic_mode="$withval"
7397 test -z "$pic_mode" && pic_mode=default
7405 # Check whether --enable-fast-install was given.
7406 if test "${enable_fast_install+set}" = set; then :
7407 enableval=$enable_fast_install; p=${PACKAGE-default}
7409 yes) enable_fast_install=yes ;;
7410 no) enable_fast_install=no ;;
7412 enable_fast_install=no
7413 # Look at the argument we got. We use all the common list separators.
7414 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7415 for pkg in $enableval; do
7417 if test "X$pkg" = "X$p"; then
7418 enable_fast_install=yes
7425 enable_fast_install=yes
7438 # This can be used to rebuild libtool when needed
7439 LIBTOOL_DEPS="$ltmain"
7441 # Always use our own libtool.
7442 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7469 test -z "$LN_S" && LN_S="ln -s"
7484 if test -n "${ZSH_VERSION+set}" ; then
7485 setopt NO_GLOB_SUBST
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7489 $as_echo_n "checking for objdir... " >&6; }
7490 if test "${lt_cv_objdir+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7493 rm -f .libs 2>/dev/null
7494 mkdir .libs 2>/dev/null
7495 if test -d .libs; then
7498 # MS-DOS does not allow filenames that begin with a dot.
7501 rmdir .libs 2>/dev/null
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7504 $as_echo "$lt_cv_objdir" >&6; }
7505 objdir=$lt_cv_objdir
7511 cat >>confdefs.h <<_ACEOF
7512 #define LT_OBJDIR "$lt_cv_objdir/"
7520 # AIX sometimes has problems with the GCC collect2 program. For some
7521 # reason, if we set the COLLECT_NAMES environment variable, the problems
7522 # vanish in a puff of smoke.
7523 if test "X${COLLECT_NAMES+set}" != Xset; then
7525 export COLLECT_NAMES
7532 can_build_shared=yes
7534 # All known linkers require a `.a' archive for static linking (except MSVC,
7535 # which needs '.lib').
7538 with_gnu_ld="$lt_cv_prog_gnu_ld"
7541 old_CFLAGS="$CFLAGS"
7543 # Set sane defaults for various variables
7544 test -z "$CC" && CC=cc
7545 test -z "$LTCC" && LTCC=$CC
7546 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7547 test -z "$LD" && LD=ld
7548 test -z "$ac_objext" && ac_objext=o
7550 for cc_temp in $compiler""; do
7552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7558 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7561 # Only perform the check for file, if the check method requires it
7562 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7563 case $deplibs_check_method in
7565 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7567 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7568 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7576 lt_save_MAGIC_CMD="$MAGIC_CMD"
7577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7578 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7579 for ac_dir in $ac_dummy; do
7581 test -z "$ac_dir" && ac_dir=.
7582 if test -f $ac_dir/${ac_tool_prefix}file; then
7583 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7584 if test -n "$file_magic_test_file"; then
7585 case $deplibs_check_method in
7587 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7590 $EGREP "$file_magic_regex" > /dev/null; then
7595 *** Warning: the command libtool uses to detect shared libraries,
7596 *** $file_magic_cmd, produces output that libtool cannot recognize.
7597 *** The result is that libtool may fail to recognize shared libraries
7598 *** as such. This will affect the creation of libtool libraries that
7599 *** depend on shared libraries, but programs linked with such libtool
7600 *** libraries will work regardless of this problem. Nevertheless, you
7601 *** may want to report the problem to your system manager and/or to
7602 *** bug-libtool@gnu.org
7612 MAGIC_CMD="$lt_save_MAGIC_CMD"
7617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7618 if test -n "$MAGIC_CMD"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7620 $as_echo "$MAGIC_CMD" >&6; }
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7630 if test -z "$lt_cv_path_MAGIC_CMD"; then
7631 if test -n "$ac_tool_prefix"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7633 $as_echo_n "checking for file... " >&6; }
7634 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7642 lt_save_MAGIC_CMD="$MAGIC_CMD"
7643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7645 for ac_dir in $ac_dummy; do
7647 test -z "$ac_dir" && ac_dir=.
7648 if test -f $ac_dir/file; then
7649 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7650 if test -n "$file_magic_test_file"; then
7651 case $deplibs_check_method in
7653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7656 $EGREP "$file_magic_regex" > /dev/null; then
7661 *** Warning: the command libtool uses to detect shared libraries,
7662 *** $file_magic_cmd, produces output that libtool cannot recognize.
7663 *** The result is that libtool may fail to recognize shared libraries
7664 *** as such. This will affect the creation of libtool libraries that
7665 *** depend on shared libraries, but programs linked with such libtool
7666 *** libraries will work regardless of this problem. Nevertheless, you
7667 *** may want to report the problem to your system manager and/or to
7668 *** bug-libtool@gnu.org
7678 MAGIC_CMD="$lt_save_MAGIC_CMD"
7683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684 if test -n "$MAGIC_CMD"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7686 $as_echo "$MAGIC_CMD" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7702 # Use C for the default configuration in the libtool script
7706 ac_cpp='$CPP $CPPFLAGS'
7707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712 # Source file extension for C test sources.
7715 # Object file extension for compiled C test sources.
7719 # Code to be used in simple compile tests
7720 lt_simple_compile_test_code="int some_variable = 0;"
7722 # Code to be used in simple link tests
7723 lt_simple_link_test_code='int main(){return(0);}'
7731 # If no C compiler was specified, use CC.
7734 # If no C compiler flags were specified, use CFLAGS.
7735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7737 # Allow CC to be a program name with arguments.
7740 # Save the default compiler, since it gets overwritten when the other
7741 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7742 compiler_DEFAULT=$CC
7744 # save warnings/boilerplate of simple test code
7745 ac_outfile=conftest.$ac_objext
7746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7748 _lt_compiler_boilerplate=`cat conftest.err`
7751 ac_outfile=conftest.$ac_objext
7752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7754 _lt_linker_boilerplate=`cat conftest.err`
7759 ## There is no encapsulation within the following macros, do not change
7760 ## the running order or otherwise move them around unless you know exactly
7761 ## what you are doing...
7762 if test -n "$compiler"; then
7764 lt_prog_compiler_no_builtin_flag=
7766 if test "$GCC" = yes; then
7767 case $cc_basename in
7769 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7771 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7775 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7776 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7779 lt_cv_prog_compiler_rtti_exceptions=no
7780 ac_outfile=conftest.$ac_objext
7781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7782 lt_compiler_flag="-fno-rtti -fno-exceptions"
7783 # Insert the option either (1) after the last *FLAGS variable, or
7784 # (2) before a word containing "conftest.", or (3) at the end.
7785 # Note that $ac_compile itself does not contain backslashes and begins
7786 # with a dollar sign (not a hyphen), so the echo should work correctly.
7787 # The option is referenced via a variable to avoid confusing sed.
7788 lt_compile=`echo "$ac_compile" | $SED \
7789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7791 -e 's:$: $lt_compiler_flag:'`
7792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7793 (eval "$lt_compile" 2>conftest.err)
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 if (exit $ac_status) && test -s "$ac_outfile"; then
7798 # The compiler can only warn and ignore the option if not recognized
7799 # So say no if there are warnings other than the usual output.
7800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7802 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7803 lt_cv_prog_compiler_rtti_exceptions=yes
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7810 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7812 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7813 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7825 lt_prog_compiler_wl=
7826 lt_prog_compiler_pic=
7827 lt_prog_compiler_static=
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7830 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7832 if test "$GCC" = yes; then
7833 lt_prog_compiler_wl='-Wl,'
7834 lt_prog_compiler_static='-static'
7838 # All AIX code is PIC.
7839 if test "$host_cpu" = ia64; then
7840 # AIX 5 now supports IA64 processor
7841 lt_prog_compiler_static='-Bstatic'
7843 lt_prog_compiler_pic='-fPIC'
7849 # see comment about AmigaOS4 .so support
7850 lt_prog_compiler_pic='-fPIC'
7853 # FIXME: we need at least 68020 code to build shared libraries, but
7854 # adding the `-m68020' flag to GCC prevents building anything better,
7856 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7862 # PIC is the default for these OSes.
7865 mingw* | cygwin* | pw32* | os2* | cegcc*)
7866 # This hack is so that the source file can tell whether it is being
7867 # built for inclusion in a dll (and should export symbols for example).
7868 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7869 # (--disable-auto-import) libraries
7870 lt_prog_compiler_pic='-DDLL_EXPORT'
7873 darwin* | rhapsody*)
7874 # PIC is the default on this platform
7875 # Common symbols not allowed in MH_DYLIB files
7876 lt_prog_compiler_pic='-fno-common'
7880 # PIC is the default for Haiku.
7881 # The "-static" flag exists, but is broken.
7882 lt_prog_compiler_static=
7886 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7887 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7888 # sets the default TLS model and affects inlining.
7894 lt_prog_compiler_pic='-fPIC'
7900 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7901 # Instead, we relocate shared libraries at runtime.
7905 # Just because we use GCC doesn't mean we suddenly get shared libraries
7906 # on systems that don't support them.
7907 lt_prog_compiler_can_build_shared=no
7912 # QNX uses GNU C++, but need to define -shared option too, otherwise
7914 lt_prog_compiler_pic='-fPIC -shared'
7918 if test -d /usr/nec; then
7919 lt_prog_compiler_pic=-Kconform_pic
7924 lt_prog_compiler_pic='-fPIC'
7928 case $cc_basename in
7929 nvcc*) # Cuda Compiler Driver 2.2
7930 lt_prog_compiler_wl='-Xlinker '
7931 lt_prog_compiler_pic='-Xcompiler -fPIC'
7935 # PORTME Check for flag to pass linker flags through the system compiler.
7938 lt_prog_compiler_wl='-Wl,'
7939 if test "$host_cpu" = ia64; then
7940 # AIX 5 now supports IA64 processor
7941 lt_prog_compiler_static='-Bstatic'
7943 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7947 mingw* | cygwin* | pw32* | os2* | cegcc*)
7948 # This hack is so that the source file can tell whether it is being
7949 # built for inclusion in a dll (and should export symbols for example).
7950 lt_prog_compiler_pic='-DDLL_EXPORT'
7953 hpux9* | hpux10* | hpux11*)
7954 lt_prog_compiler_wl='-Wl,'
7955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7962 lt_prog_compiler_pic='+Z'
7965 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7966 lt_prog_compiler_static='${wl}-a ${wl}archive'
7969 irix5* | irix6* | nonstopux*)
7970 lt_prog_compiler_wl='-Wl,'
7971 # PIC (with -KPIC) is the default.
7972 lt_prog_compiler_static='-non_shared'
7975 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7976 case $cc_basename in
7977 # old Intel for x86_64 which still supported -KPIC.
7979 lt_prog_compiler_wl='-Wl,'
7980 lt_prog_compiler_pic='-KPIC'
7981 lt_prog_compiler_static='-static'
7983 # icc used to be incompatible with GCC.
7984 # ICC 10 doesn't accept -KPIC any more.
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-fPIC'
7988 lt_prog_compiler_static='-static'
7990 # Lahey Fortran 8.1.
7992 lt_prog_compiler_wl='-Wl,'
7993 lt_prog_compiler_pic='--shared'
7994 lt_prog_compiler_static='--static'
7996 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7997 # Portland Group compilers (*not* the Pentium gcc compiler,
7998 # which looks to be a dead project)
7999 lt_prog_compiler_wl='-Wl,'
8000 lt_prog_compiler_pic='-fpic'
8001 lt_prog_compiler_static='-Bstatic'
8004 lt_prog_compiler_wl='-Wl,'
8005 # All Alpha code is PIC.
8006 lt_prog_compiler_static='-non_shared'
8008 xl* | bgxl* | bgf* | mpixl*)
8009 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-qpic'
8012 lt_prog_compiler_static='-qstaticlink'
8015 case `$CC -V 2>&1 | sed 5q` in
8016 *Sun\ F* | *Sun*Fortran*)
8017 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8018 lt_prog_compiler_pic='-KPIC'
8019 lt_prog_compiler_static='-Bstatic'
8020 lt_prog_compiler_wl=''
8024 lt_prog_compiler_pic='-KPIC'
8025 lt_prog_compiler_static='-Bstatic'
8026 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-KPIC'
8035 lt_prog_compiler_static='-Bstatic'
8039 # QNX uses GNU C++, but need to define -shared option too, otherwise
8041 lt_prog_compiler_pic='-fPIC -shared'
8044 osf3* | osf4* | osf5*)
8045 lt_prog_compiler_wl='-Wl,'
8046 # All OSF/1 code is PIC.
8047 lt_prog_compiler_static='-non_shared'
8051 lt_prog_compiler_static='-non_shared'
8055 lt_prog_compiler_pic='-KPIC'
8056 lt_prog_compiler_static='-Bstatic'
8057 case $cc_basename in
8059 lt_prog_compiler_wl='-Qoption ld ';;
8061 lt_prog_compiler_wl='-Wl,';;
8066 lt_prog_compiler_wl='-Qoption ld '
8067 lt_prog_compiler_pic='-PIC'
8068 lt_prog_compiler_static='-Bstatic'
8071 sysv4 | sysv4.2uw2* | sysv4.3*)
8072 lt_prog_compiler_wl='-Wl,'
8073 lt_prog_compiler_pic='-KPIC'
8074 lt_prog_compiler_static='-Bstatic'
8078 if test -d /usr/nec ;then
8079 lt_prog_compiler_pic='-Kconform_pic'
8080 lt_prog_compiler_static='-Bstatic'
8084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8085 lt_prog_compiler_wl='-Wl,'
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-Bstatic'
8091 lt_prog_compiler_wl='-Wl,'
8092 lt_prog_compiler_can_build_shared=no
8096 lt_prog_compiler_pic='-pic'
8097 lt_prog_compiler_static='-Bstatic'
8101 lt_prog_compiler_can_build_shared=no
8107 # For platforms which do not support PIC, -DPIC is meaningless:
8109 lt_prog_compiler_pic=
8112 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8116 $as_echo "$lt_prog_compiler_pic" >&6; }
8124 # Check to make sure the PIC flag actually works.
8126 if test -n "$lt_prog_compiler_pic"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8128 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8129 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8130 $as_echo_n "(cached) " >&6
8132 lt_cv_prog_compiler_pic_works=no
8133 ac_outfile=conftest.$ac_objext
8134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8135 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8136 # Insert the option either (1) after the last *FLAGS variable, or
8137 # (2) before a word containing "conftest.", or (3) at the end.
8138 # Note that $ac_compile itself does not contain backslashes and begins
8139 # with a dollar sign (not a hyphen), so the echo should work correctly.
8140 # The option is referenced via a variable to avoid confusing sed.
8141 lt_compile=`echo "$ac_compile" | $SED \
8142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8144 -e 's:$: $lt_compiler_flag:'`
8145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8146 (eval "$lt_compile" 2>conftest.err)
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 if (exit $ac_status) && test -s "$ac_outfile"; then
8151 # The compiler can only warn and ignore the option if not recognized
8152 # So say no if there are warnings other than the usual output.
8153 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8156 lt_cv_prog_compiler_pic_works=yes
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8163 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8165 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8166 case $lt_prog_compiler_pic in
8168 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8171 lt_prog_compiler_pic=
8172 lt_prog_compiler_can_build_shared=no
8183 # Check to make sure the static flag actually works.
8185 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8187 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8188 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8191 lt_cv_prog_compiler_static_works=no
8192 save_LDFLAGS="$LDFLAGS"
8193 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8194 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8195 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8196 # The linker can only warn and ignore the option if not recognized
8197 # So say no if there are warnings
8198 if test -s conftest.err; then
8199 # Append any errors to the config.log.
8200 cat conftest.err 1>&5
8201 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203 if diff conftest.exp conftest.er2 >/dev/null; then
8204 lt_cv_prog_compiler_static_works=yes
8207 lt_cv_prog_compiler_static_works=yes
8211 LDFLAGS="$save_LDFLAGS"
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8215 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8217 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8220 lt_prog_compiler_static=
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8231 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8234 lt_cv_prog_compiler_c_o=no
8235 $RM -r conftest 2>/dev/null
8239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8241 lt_compiler_flag="-o out/conftest2.$ac_objext"
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 lt_compile=`echo "$ac_compile" | $SED \
8247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249 -e 's:$: $lt_compiler_flag:'`
8250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8251 (eval "$lt_compile" 2>out/conftest.err)
8253 cat out/conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings
8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262 lt_cv_prog_compiler_c_o=yes
8267 # SGI C++ compiler will create directory out/ii_files/ for
8268 # template instantiation
8269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8270 $RM out/* && rmdir out
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8285 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8286 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8289 lt_cv_prog_compiler_c_o=no
8290 $RM -r conftest 2>/dev/null
8294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296 lt_compiler_flag="-o out/conftest2.$ac_objext"
8297 # Insert the option either (1) after the last *FLAGS variable, or
8298 # (2) before a word containing "conftest.", or (3) at the end.
8299 # Note that $ac_compile itself does not contain backslashes and begins
8300 # with a dollar sign (not a hyphen), so the echo should work correctly.
8301 lt_compile=`echo "$ac_compile" | $SED \
8302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8304 -e 's:$: $lt_compiler_flag:'`
8305 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8306 (eval "$lt_compile" 2>out/conftest.err)
8308 cat out/conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8312 # The compiler can only warn and ignore the option if not recognized
8313 # So say no if there are warnings
8314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8315 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8316 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8317 lt_cv_prog_compiler_c_o=yes
8322 # SGI C++ compiler will create directory out/ii_files/ for
8323 # template instantiation
8324 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8325 $RM out/* && rmdir out
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8332 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8337 hard_links="nottested"
8338 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8339 # do not overwrite the value of need_locks provided by the user
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8341 $as_echo_n "checking if we can lock with hard links... " >&6; }
8344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8346 ln conftest.a conftest.b 2>&5 || hard_links=no
8347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8349 $as_echo "$hard_links" >&6; }
8350 if test "$hard_links" = no; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8352 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8365 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8368 allow_undefined_flag=
8369 always_export_symbols=no
8371 archive_expsym_cmds=
8372 compiler_needs_object=no
8373 enable_shared_with_static_runtimes=no
8374 export_dynamic_flag_spec=
8375 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8376 hardcode_automatic=no
8378 hardcode_direct_absolute=no
8379 hardcode_libdir_flag_spec=
8380 hardcode_libdir_flag_spec_ld=
8381 hardcode_libdir_separator=
8383 hardcode_shlibpath_var=unsupported
8385 link_all_deplibs=unknown
8388 old_archive_from_new_cmds=
8389 old_archive_from_expsyms_cmds=
8390 thread_safe_flag_spec=
8391 whole_archive_flag_spec=
8392 # include_expsyms should be a list of space-separated symbols to be *always*
8393 # included in the symbol list
8395 # exclude_expsyms can be an extended regexp of symbols to exclude
8396 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8397 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8398 # as well as any symbol that contains `d'.
8399 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8400 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8401 # platforms (ab)use it in PIC code, but their linkers get confused if
8402 # the symbol is explicitly referenced. Since portable code cannot
8403 # rely on this symbol name, it's probably fine to never include it in
8404 # preloaded symbol tables.
8405 # Exclude shared library initialization/finalization symbols.
8406 extract_expsyms_cmds=
8409 cygwin* | mingw* | pw32* | cegcc*)
8410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8411 # When not using gcc, we currently assume that we are using
8412 # Microsoft Visual C++.
8413 if test "$GCC" != yes; then
8418 # we just hope/assume this is gcc and not c89 (= MSVC++)
8428 # On some targets, GNU ld is compatible enough with the native linker
8429 # that we're better off using the native interface for both.
8430 lt_use_gnu_ld_interface=no
8431 if test "$with_gnu_ld" = yes; then
8434 # The AIX port of GNU ld has always aspired to compatibility
8435 # with the native linker. However, as the warning in the GNU ld
8436 # block says, versions before 2.19.5* couldn't really create working
8437 # shared libraries, regardless of the interface used.
8438 case `$LD -v 2>&1` in
8439 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8440 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8441 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8443 lt_use_gnu_ld_interface=yes
8448 lt_use_gnu_ld_interface=yes
8453 if test "$lt_use_gnu_ld_interface" = yes; then
8454 # If archive_cmds runs LD, not CC, wlarc should be empty
8457 # Set some defaults for GNU ld with shared library support. These
8458 # are reset later if shared libraries are not supported. Putting them
8459 # here allows them to be overridden if necessary.
8460 runpath_var=LD_RUN_PATH
8461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8462 export_dynamic_flag_spec='${wl}--export-dynamic'
8463 # ancient GNU ld didn't support --whole-archive et. al.
8464 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8465 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8467 whole_archive_flag_spec=
8469 supports_anon_versioning=no
8470 case `$LD -v 2>&1` in
8471 *GNU\ gold*) supports_anon_versioning=yes ;;
8472 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8473 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8474 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8475 *\ 2.11.*) ;; # other 2.11 versions
8476 *) supports_anon_versioning=yes ;;
8479 # See if GNU ld supports shared libraries.
8482 # On AIX/PPC, the GNU linker is very broken
8483 if test "$host_cpu" != ia64; then
8487 *** Warning: the GNU linker, at least up to release 2.19, is reported
8488 *** to be unable to reliably create shared libraries on AIX.
8489 *** Therefore, libtool is disabling shared libraries support. If you
8490 *** really care for shared libraries, you may want to install binutils
8491 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8492 *** You will then need to restart the configuration process.
8501 # see comment about AmigaOS4 .so support
8502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503 archive_expsym_cmds=''
8506 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)'
8507 hardcode_libdir_flag_spec='-L$libdir'
8508 hardcode_minus_L=yes
8514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8515 allow_undefined_flag=unsupported
8516 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8517 # support --undefined. This deserves some investigation. FIXME
8518 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8524 cygwin* | mingw* | pw32* | cegcc*)
8525 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8526 # as there is no search path for DLLs.
8527 hardcode_libdir_flag_spec='-L$libdir'
8528 export_dynamic_flag_spec='${wl}--export-all-symbols'
8529 allow_undefined_flag=unsupported
8530 always_export_symbols=no
8531 enable_shared_with_static_runtimes=yes
8532 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8534 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8536 # If the export-symbols file already is a .def file (1st line
8537 # is EXPORTS), use it as is; otherwise, prepend...
8538 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8539 cp $export_symbols $output_objdir/$soname.def;
8541 echo EXPORTS > $output_objdir/$soname.def;
8542 cat $export_symbols >> $output_objdir/$soname.def;
8544 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552 link_all_deplibs=yes
8557 hardcode_shlibpath_var=no
8558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8559 export_dynamic_flag_spec='${wl}-E'
8560 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8561 # Instead, shared libraries are loaded at an image base (0x10000000 by
8562 # default) and relocated if they conflict, which is a slow very memory
8563 # consuming and fragmenting process. To avoid this, we pick a random,
8564 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8565 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8567 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'
8570 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8572 if test "$host_os" = linux-dietlibc; then
8573 case $cc_basename in
8574 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8577 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8578 && test "$tmp_diet" = no
8581 tmp_sharedflag='-shared'
8582 case $cc_basename,$host_cpu in
8583 pgcc*) # Portland Group C compiler
8584 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'
8585 tmp_addflag=' $pic_flag'
8587 pgf77* | pgf90* | pgf95* | pgfortran*)
8588 # Portland Group f77 and f90 compilers
8589 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'
8590 tmp_addflag=' $pic_flag -Mnomain' ;;
8591 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8592 tmp_addflag=' -i_dynamic' ;;
8593 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8594 tmp_addflag=' -i_dynamic -nofor_main' ;;
8595 ifc* | ifort*) # Intel Fortran compiler
8596 tmp_addflag=' -nofor_main' ;;
8597 lf95*) # Lahey Fortran 8.1
8598 whole_archive_flag_spec=
8599 tmp_sharedflag='--shared' ;;
8600 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8601 tmp_sharedflag='-qmkshrobj'
8603 nvcc*) # Cuda Compiler Driver 2.2
8604 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'
8605 compiler_needs_object=yes
8608 case `$CC -V 2>&1 | sed 5q` in
8609 *Sun\ C*) # Sun C 5.9
8610 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'
8611 compiler_needs_object=yes
8612 tmp_sharedflag='-G' ;;
8613 *Sun\ F*) # Sun Fortran 8.3
8614 tmp_sharedflag='-G' ;;
8616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8618 if test "x$supports_anon_versioning" = xyes; then
8619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8621 echo "local: *; };" >> $output_objdir/$libname.ver~
8622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8625 case $cc_basename in
8626 xlf* | bgf* | bgxlf* | mpixlf*)
8627 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8628 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8629 hardcode_libdir_flag_spec=
8630 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8631 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8632 if test "x$supports_anon_versioning" = xyes; then
8633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8635 echo "local: *; };" >> $output_objdir/$libname.ver~
8636 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8647 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8656 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8660 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8661 *** create shared libraries on Solaris systems. Therefore, libtool
8662 *** is disabling shared libraries support. We urge you to upgrade GNU
8663 *** binutils to release 2.9.1 or newer. Another option is to modify
8664 *** your PATH or compiler configuration so that the native linker is
8665 *** used, and then restart.
8668 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8677 case `$LD -v 2>&1` in
8678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8683 *** reliably create shared libraries on SCO systems. Therefore, libtool
8684 *** is disabling shared libraries support. We urge you to upgrade GNU
8685 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8686 *** your PATH or compiler configuration so that the native linker is
8687 *** used, and then restart.
8692 # For security reasons, it is highly recommended that you always
8693 # use absolute paths for naming shared libraries, and exclude the
8694 # DT_RUNPATH tag from executables and libraries. But doing so
8695 # requires that you compile everything twice, which is a pain.
8696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8711 hardcode_shlibpath_var=no
8715 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8724 if test "$ld_shlibs" = no; then
8726 hardcode_libdir_flag_spec=
8727 export_dynamic_flag_spec=
8728 whole_archive_flag_spec=
8731 # PORTME fill in a description of your system's linker (not GNU ld)
8734 allow_undefined_flag=unsupported
8735 always_export_symbols=yes
8736 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'
8737 # Note: this linker hardcodes the directories in LIBPATH if there
8738 # are no directories specified by -L.
8739 hardcode_minus_L=yes
8740 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8741 # Neither direct hardcoding nor static linking is supported with a
8743 hardcode_direct=unsupported
8748 if test "$host_cpu" = ia64; then
8749 # On IA64, the linker does run time linking by default, so we don't
8750 # have to do anything special.
8751 aix_use_runtimelinking=no
8752 exp_sym_flag='-Bexport'
8755 # If we're using GNU nm, then we don't want the "-C" option.
8756 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8757 # Also, AIX nm treats weak defined symbols like other global
8758 # defined symbols, whereas GNU nm marks them as "W".
8759 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8760 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'
8762 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'
8764 aix_use_runtimelinking=no
8766 # Test if we are trying to use run time linking or normal
8767 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8768 # need to do runtime linking.
8769 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8770 for ld_flag in $LDFLAGS; do
8771 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8772 aix_use_runtimelinking=yes
8779 exp_sym_flag='-bexport'
8780 no_entry_flag='-bnoentry'
8783 # When large executables or shared objects are built, AIX ld can
8784 # have problems creating the table of contents. If linking a library
8785 # or program results in "error TOC overflow" add -mminimal-toc to
8786 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8787 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8791 hardcode_direct_absolute=yes
8792 hardcode_libdir_separator=':'
8793 link_all_deplibs=yes
8794 file_list_spec='${wl}-f,'
8796 if test "$GCC" = yes; then
8797 case $host_os in aix4.[012]|aix4.[012].*)
8798 # We only want to do this on AIX 4.2 and lower, the check
8799 # below for broken collect2 doesn't work under 4.3+
8800 collect2name=`${CC} -print-prog-name=collect2`
8801 if test -f "$collect2name" &&
8802 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8804 # We have reworked collect2
8807 # We have old collect2
8808 hardcode_direct=unsupported
8809 # It fails to find uninstalled libraries when the uninstalled
8810 # path is not listed in the libpath. Setting hardcode_minus_L
8811 # to unsupported forces relinking
8812 hardcode_minus_L=yes
8813 hardcode_libdir_flag_spec='-L$libdir'
8814 hardcode_libdir_separator=
8818 shared_flag='-shared'
8819 if test "$aix_use_runtimelinking" = yes; then
8820 shared_flag="$shared_flag "'${wl}-G'
8824 if test "$host_cpu" = ia64; then
8825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8826 # chokes on -Wl,-G. The following line is correct:
8829 if test "$aix_use_runtimelinking" = yes; then
8830 shared_flag='${wl}-G'
8832 shared_flag='${wl}-bM:SRE'
8837 export_dynamic_flag_spec='${wl}-bexpall'
8838 # It seems that -bexpall does not export symbols beginning with
8839 # underscore (_), so it is better to generate a list of symbols to export.
8840 always_export_symbols=yes
8841 if test "$aix_use_runtimelinking" = yes; then
8842 # Warning - without using the other runtime loading flags (-brtl),
8843 # -berok will link without error, but may produce a broken library.
8844 allow_undefined_flag='-berok'
8845 # Determine the default libpath from the value encoded in an
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8858 if ac_fn_c_try_link "$LINENO"; then :
8860 lt_aix_libpath_sed='
8861 /Import File Strings/,/^$/ {
8867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8868 # Check for a 64-bit object if we didn't find anything.
8869 if test -z "$aix_libpath"; then
8870 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873 rm -f core conftest.err conftest.$ac_objext \
8874 conftest$ac_exeext conftest.$ac_ext
8875 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8877 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8878 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"
8880 if test "$host_cpu" = ia64; then
8881 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8882 allow_undefined_flag="-z nodefs"
8883 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"
8885 # Determine the default libpath from the value encoded in an
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8898 if ac_fn_c_try_link "$LINENO"; then :
8900 lt_aix_libpath_sed='
8901 /Import File Strings/,/^$/ {
8907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8908 # Check for a 64-bit object if we didn't find anything.
8909 if test -z "$aix_libpath"; then
8910 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8913 rm -f core conftest.err conftest.$ac_objext \
8914 conftest$ac_exeext conftest.$ac_ext
8915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8917 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8918 # Warning - without using the other run time loading flags,
8919 # -berok will link without error, but may produce a broken library.
8920 no_undefined_flag=' ${wl}-bernotok'
8921 allow_undefined_flag=' ${wl}-berok'
8922 if test "$with_gnu_ld" = yes; then
8923 # We only use this code for GNU lds that support --whole-archive.
8924 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8926 # Exported symbols can be pulled into shared objects from archives
8927 whole_archive_flag_spec='$convenience'
8929 archive_cmds_need_lc=yes
8930 # This is similar to how AIX traditionally builds its shared libraries.
8931 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'
8939 # see comment about AmigaOS4 .so support
8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941 archive_expsym_cmds=''
8944 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)'
8945 hardcode_libdir_flag_spec='-L$libdir'
8946 hardcode_minus_L=yes
8952 export_dynamic_flag_spec=-rdynamic
8955 cygwin* | mingw* | pw32* | cegcc*)
8956 # When not using gcc, we currently assume that we are using
8957 # Microsoft Visual C++.
8958 # hardcode_libdir_flag_spec is actually meaningless, as there is
8959 # no search path for DLLs.
8960 hardcode_libdir_flag_spec=' '
8961 allow_undefined_flag=unsupported
8962 # Tell ltmain to make .lib files, not .a files.
8964 # Tell ltmain to make .dll files, not .so files.
8966 # FIXME: Setting linknames here is a bad hack.
8967 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8968 # The linker will automatically build a .lib file if we build a DLL.
8969 old_archive_from_new_cmds='true'
8970 # FIXME: Should let the user specify the lib program.
8971 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8972 fix_srcfile_path='`cygpath -w "$srcfile"`'
8973 enable_shared_with_static_runtimes=yes
8976 darwin* | rhapsody*)
8979 archive_cmds_need_lc=no
8981 hardcode_automatic=yes
8982 hardcode_shlibpath_var=unsupported
8983 if test "$lt_cv_ld_force_load" = "yes"; then
8984 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\"`'
8986 whole_archive_flag_spec=''
8988 link_all_deplibs=yes
8989 allow_undefined_flag="$_lt_dar_allow_undefined"
8990 case $cc_basename in
8991 ifort*) _lt_dar_can_shared=yes ;;
8992 *) _lt_dar_can_shared=$GCC ;;
8994 if test "$_lt_dar_can_shared" = "yes"; then
8995 output_verbose_link_cmd=func_echo_all
8996 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8997 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8998 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}"
8999 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}"
9008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9009 hardcode_libdir_flag_spec='-L$libdir'
9010 hardcode_shlibpath_var=no
9013 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9014 # support. Future versions do this automatically, but an explicit c++rt0.o
9015 # does not break anything, and helps significantly (at the cost of a little
9018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9019 hardcode_libdir_flag_spec='-R$libdir'
9021 hardcode_shlibpath_var=no
9024 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9028 hardcode_minus_L=yes
9029 hardcode_shlibpath_var=no
9032 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9033 freebsd* | dragonfly*)
9034 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9035 hardcode_libdir_flag_spec='-R$libdir'
9037 hardcode_shlibpath_var=no
9041 if test "$GCC" = yes; then
9042 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9044 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'
9046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9047 hardcode_libdir_separator=:
9050 # hardcode_minus_L: Not really in the search PATH,
9051 # but as the default location of the library.
9052 hardcode_minus_L=yes
9053 export_dynamic_flag_spec='${wl}-E'
9057 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9058 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9062 if test "$with_gnu_ld" = no; then
9063 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9064 hardcode_libdir_flag_spec_ld='+b $libdir'
9065 hardcode_libdir_separator=:
9067 hardcode_direct_absolute=yes
9068 export_dynamic_flag_spec='${wl}-E'
9069 # hardcode_minus_L: Not really in the search PATH,
9070 # but as the default location of the library.
9071 hardcode_minus_L=yes
9076 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9079 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9082 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9085 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9094 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9098 # Older versions of the 11.00 compiler do not understand -b yet
9099 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9101 $as_echo_n "checking if $CC understands -b... " >&6; }
9102 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9105 lt_cv_prog_compiler__b=no
9106 save_LDFLAGS="$LDFLAGS"
9107 LDFLAGS="$LDFLAGS -b"
9108 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9109 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9110 # The linker can only warn and ignore the option if not recognized
9111 # So say no if there are warnings
9112 if test -s conftest.err; then
9113 # Append any errors to the config.log.
9114 cat conftest.err 1>&5
9115 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9117 if diff conftest.exp conftest.er2 >/dev/null; then
9118 lt_cv_prog_compiler__b=yes
9121 lt_cv_prog_compiler__b=yes
9125 LDFLAGS="$save_LDFLAGS"
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9129 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9131 if test x"$lt_cv_prog_compiler__b" = xyes; then
9132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9134 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9140 if test "$with_gnu_ld" = no; then
9141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142 hardcode_libdir_separator=:
9147 hardcode_shlibpath_var=no
9151 hardcode_direct_absolute=yes
9152 export_dynamic_flag_spec='${wl}-E'
9154 # hardcode_minus_L: Not really in the search PATH,
9155 # but as the default location of the library.
9156 hardcode_minus_L=yes
9162 irix5* | irix6* | nonstopux*)
9163 if test "$GCC" = yes; then
9164 archive_cmds='$CC -shared $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'
9165 # Try to use the -exported_symbol ld option, if it does not
9166 # work, assume that -exports_file does not work either and
9167 # implicitly export all symbols.
9168 save_LDFLAGS="$LDFLAGS"
9169 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9174 if ac_fn_c_try_link "$LINENO"; then :
9175 archive_expsym_cmds='$CC -shared $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'
9178 rm -f core conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 LDFLAGS="$save_LDFLAGS"
9182 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'
9183 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'
9185 archive_cmds_need_lc='no'
9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9187 hardcode_libdir_separator=:
9189 link_all_deplibs=yes
9193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9196 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9198 hardcode_libdir_flag_spec='-R$libdir'
9200 hardcode_shlibpath_var=no
9204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9207 hardcode_libdir_separator=:
9208 hardcode_shlibpath_var=no
9215 if test -f /usr/libexec/ld.so; then
9217 hardcode_shlibpath_var=no
9218 hardcode_direct_absolute=yes
9219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9220 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9221 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9222 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9223 export_dynamic_flag_spec='${wl}-E'
9226 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9227 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9228 hardcode_libdir_flag_spec='-R$libdir'
9231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9242 hardcode_libdir_flag_spec='-L$libdir'
9243 hardcode_minus_L=yes
9244 allow_undefined_flag=unsupported
9245 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'
9246 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9250 if test "$GCC" = yes; then
9251 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9252 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'
9254 allow_undefined_flag=' -expect_unresolved \*'
9255 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'
9257 archive_cmds_need_lc='no'
9258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9259 hardcode_libdir_separator=:
9262 osf4* | osf5*) # as osf3* with the addition of -msym flag
9263 if test "$GCC" = yes; then
9264 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9265 archive_cmds='$CC -shared${allow_undefined_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'
9266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9268 allow_undefined_flag=' -expect_unresolved \*'
9269 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'
9270 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~
9271 $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'
9273 # Both c and cxx compiler support -rpath directly
9274 hardcode_libdir_flag_spec='-rpath $libdir'
9276 archive_cmds_need_lc='no'
9277 hardcode_libdir_separator=:
9281 no_undefined_flag=' -z defs'
9282 if test "$GCC" = yes; then
9284 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9286 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9288 case `$CC -V 2>&1` in
9291 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9293 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9297 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9299 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9303 hardcode_libdir_flag_spec='-R$libdir'
9304 hardcode_shlibpath_var=no
9306 solaris2.[0-5] | solaris2.[0-5].*) ;;
9308 # The compiler driver will combine and reorder linker options,
9309 # but understands `-z linker_flag'. GCC discards it without `$wl',
9310 # but is careful enough not to reorder.
9311 # Supported since Solaris 2.6 (maybe 2.5.1?)
9312 if test "$GCC" = yes; then
9313 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9315 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9319 link_all_deplibs=yes
9323 if test "x$host_vendor" = xsequent; then
9324 # Use $CC to link under sequent, because it throws in some extra .o
9325 # files that make .init and .fini sections work.
9326 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9328 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_libdir_flag_spec='-L$libdir'
9332 hardcode_minus_L=yes
9333 hardcode_shlibpath_var=no
9337 case $host_vendor in
9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_direct=yes # is this really true???
9343 ## LD is ld it makes a PLAMLIB
9344 ## CC just makes a GrossModule.
9345 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9346 reload_cmds='$CC -r -o $output$reload_objs'
9350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9354 runpath_var='LD_RUN_PATH'
9355 hardcode_shlibpath_var=no
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_shlibpath_var=no
9361 export_dynamic_flag_spec='-Bexport'
9365 if test -d /usr/nec; then
9366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_shlibpath_var=no
9368 runpath_var=LD_RUN_PATH
9369 hardcode_runpath_var=yes
9374 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9375 no_undefined_flag='${wl}-z,text'
9376 archive_cmds_need_lc=no
9377 hardcode_shlibpath_var=no
9378 runpath_var='LD_RUN_PATH'
9380 if test "$GCC" = yes; then
9381 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 sysv5* | sco3.2v5* | sco5v6*)
9390 # Note: We can NOT use -z defs as we might desire, because we do not
9391 # link with -lc, and that would cause any symbols used from libc to
9392 # always be unresolved, which means just about no library would
9393 # ever link correctly. If we're not using GNU ld we use -z text
9394 # though, which does catch some bad symbols but isn't as heavy-handed
9396 no_undefined_flag='${wl}-z,text'
9397 allow_undefined_flag='${wl}-z,nodefs'
9398 archive_cmds_need_lc=no
9399 hardcode_shlibpath_var=no
9400 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9401 hardcode_libdir_separator=':'
9402 link_all_deplibs=yes
9403 export_dynamic_flag_spec='${wl}-Bexport'
9404 runpath_var='LD_RUN_PATH'
9406 if test "$GCC" = yes; then
9407 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_libdir_flag_spec='-L$libdir'
9418 hardcode_shlibpath_var=no
9426 if test x$host_vendor = xsni; then
9428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9429 export_dynamic_flag_spec='${wl}-Blargedynsym'
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9436 $as_echo "$ld_shlibs" >&6; }
9437 test "$ld_shlibs" = no && can_build_shared=no
9439 with_gnu_ld=$with_gnu_ld
9456 # Do we need to explicitly link libc?
9458 case "x$archive_cmds_need_lc" in
9460 # Assume -lc should be added
9461 archive_cmds_need_lc=yes
9463 if test "$enable_shared" = yes && test "$GCC" = yes; then
9464 case $archive_cmds in
9466 # FIXME: we may have to deal with multi-command sequences.
9469 # Test whether the compiler implicitly links with -lc since on some
9470 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9471 # to ld, don't add -lc before -lgcc.
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9473 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9474 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9481 (eval $ac_compile) 2>&5
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; } 2>conftest.err; then
9487 libobjs=conftest.$ac_objext
9489 wl=$lt_prog_compiler_wl
9490 pic_flag=$lt_prog_compiler_pic
9496 lt_save_allow_undefined_flag=$allow_undefined_flag
9497 allow_undefined_flag=
9498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9499 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9502 test $ac_status = 0; }
9504 lt_cv_archive_cmds_need_lc=no
9506 lt_cv_archive_cmds_need_lc=yes
9508 allow_undefined_flag=$lt_save_allow_undefined_flag
9510 cat conftest.err 1>&5
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9516 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9517 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9681 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9683 if test "$GCC" = yes; then
9685 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9686 *) lt_awk_arg="/^libraries:/" ;;
9689 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9690 *) lt_sed_strip_eq="s,=/,/,g" ;;
9692 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9693 case $lt_search_path_spec in
9695 # if the path contains ";" then we assume it to be the separator
9696 # otherwise default to the standard path separator (i.e. ":") - it is
9697 # assumed that no part of a normal pathname contains ";" but that should
9698 # okay in the real world where ";" in dirpaths is itself problematic.
9699 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9702 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9705 # Ok, now we have the path, separated by spaces, we can step through it
9706 # and add multilib dir if necessary.
9707 lt_tmp_lt_search_path_spec=
9708 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9709 for lt_sys_path in $lt_search_path_spec; do
9710 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9711 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9713 test -d "$lt_sys_path" && \
9714 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9717 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9718 BEGIN {RS=" "; FS="/|\n";} {
9721 for (lt_i = NF; lt_i > 0; lt_i--) {
9722 if ($lt_i != "" && $lt_i != ".") {
9723 if ($lt_i == "..") {
9726 if (lt_count == 0) {
9727 lt_foo="/" $lt_i lt_foo;
9734 if (lt_foo != "") { lt_freq[lt_foo]++; }
9735 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9737 # AWK program above erroneously prepends '/' to C:/dos/paths
9740 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9741 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9743 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9745 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9748 libname_spec='lib$name'
9756 shlibpath_overrides_runpath=unknown
9758 dynamic_linker="$host_os ld.so"
9759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9760 need_lib_prefix=unknown
9761 hardcode_into_libs=no
9763 # when you set need_version to no, make sure it does not cause -set_version
9764 # flags to be left without arguments
9765 need_version=unknown
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9771 shlibpath_var=LIBPATH
9773 # AIX 3 has no versioning support, so we append a major version to the name.
9774 soname_spec='${libname}${release}${shared_ext}$major'
9781 hardcode_into_libs=yes
9782 if test "$host_cpu" = ia64; then
9783 # AIX 5 supports IA64
9784 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9785 shlibpath_var=LD_LIBRARY_PATH
9787 # With GCC up to 2.95.x, collect2 would create an import file
9788 # for dependence libraries. The import file would start with
9789 # the line `#! .'. This would cause the generated library to
9790 # depend on `.', always an invalid library. This was fixed in
9791 # development snapshots of GCC prior to 3.0.
9793 aix4 | aix4.[01] | aix4.[01].*)
9794 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9796 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9803 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9804 # soname into executable. Probably we can add versioning support to
9805 # collect2, so additional links can be useful in future.
9806 if test "$aix_use_runtimelinking" = yes; then
9807 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9808 # instead of lib<name>.a to let people know that these are not
9809 # typical AIX shared libraries.
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812 # We preserve .a as extension for shared libraries through AIX4.2
9813 # and later when we are not doing run time linking.
9814 library_names_spec='${libname}${release}.a $libname.a'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9817 shlibpath_var=LIBPATH
9824 # Since July 2007 AmigaOS4 officially supports .so libraries.
9825 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829 library_names_spec='$libname.ixlibrary $libname.a'
9830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9831 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'
9837 library_names_spec='${libname}${shared_ext}'
9838 dynamic_linker="$host_os ld.so"
9839 shlibpath_var=LIBRARY_PATH
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9848 shlibpath_var=LD_LIBRARY_PATH
9849 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9850 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9851 # the default ld.so.conf also contains /usr/contrib/lib and
9852 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9853 # libtool to hard-code these into programs
9856 cygwin* | mingw* | pw32* | cegcc*)
9857 version_type=windows
9862 case $GCC,$host_os in
9863 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9864 library_names_spec='$libname.dll.a'
9865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9866 postinstall_cmds='base_file=`basename \${file}`~
9867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9868 dldir=$destdir/`dirname \$dlpath`~
9869 test -d \$dldir || mkdir -p \$dldir~
9870 $install_prog $dir/$dlname \$dldir/$dlname~
9871 chmod a+x \$dldir/$dlname~
9872 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9873 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9876 dlpath=$dir/\$dldll~
9878 shlibpath_overrides_runpath=yes
9882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9888 # MinGW DLLs use traditional 'lib' prefix
9889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9892 # pw32 DLLs use 'pw' prefix rather than 'lib'
9893 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9902 dynamic_linker='Win32 ld.exe'
9903 # FIXME: first we should search . and the directory the executable is in
9907 darwin* | rhapsody*)
9908 dynamic_linker="$host_os dyld"
9912 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9913 soname_spec='${libname}${release}${major}$shared_ext'
9914 shlibpath_overrides_runpath=yes
9915 shlibpath_var=DYLD_LIBRARY_PATH
9916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9931 freebsd* | dragonfly*)
9932 # DragonFly does not have aout. When/if they implement a new
9933 # versioning mechanism, adjust this.
9934 if test -x /usr/bin/objformat; then
9935 objformat=`/usr/bin/objformat`
9938 freebsd[23].*) objformat=aout ;;
9942 version_type=freebsd-$objformat
9943 case $version_type in
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9954 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=yes
9959 freebsd3.[01]* | freebsdelf3.[01]*)
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9965 shlibpath_overrides_runpath=no
9966 hardcode_into_libs=yes
9968 *) # from 4.6 on, and DragonFly
9969 shlibpath_overrides_runpath=yes
9970 hardcode_into_libs=yes
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 hardcode_into_libs=yes
9989 dynamic_linker="$host_os runtime_loader"
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 shlibpath_var=LIBRARY_PATH
9993 shlibpath_overrides_runpath=yes
9994 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9995 hardcode_into_libs=yes
9998 hpux9* | hpux10* | hpux11*)
9999 # Give a soname corresponding to the major version so that dld.sl refuses to
10000 # link against other versions.
10007 hardcode_into_libs=yes
10008 dynamic_linker="$host_os dld.so"
10009 shlibpath_var=LD_LIBRARY_PATH
10010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012 soname_spec='${libname}${release}${shared_ext}$major'
10013 if test "X$HPUX_IA64_MODE" = X32; then
10014 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10016 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10022 hardcode_into_libs=yes
10023 dynamic_linker="$host_os dld.sl"
10024 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10029 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10033 dynamic_linker="$host_os dld.sl"
10034 shlibpath_var=SHLIB_PATH
10035 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10040 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10041 postinstall_cmds='chmod 555 $lib'
10042 # or fails outright, so override atomically:
10043 install_override_mode=555
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10053 shlibpath_var=LD_LIBRARY_PATH
10054 shlibpath_overrides_runpath=no
10055 hardcode_into_libs=yes
10058 irix5* | irix6* | nonstopux*)
10060 nonstopux*) version_type=nonstopux ;;
10062 if test "$lt_cv_prog_gnu_ld" = yes; then
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10073 irix5* | nonstopux*)
10074 libsuff= shlibsuff=
10077 case $LD in # libtool.m4 will add one of these switches to LD
10078 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10079 libsuff= shlibsuff= libmagic=32-bit;;
10080 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10081 libsuff=32 shlibsuff=N32 libmagic=N32;;
10082 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10083 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10084 *) libsuff= shlibsuff= libmagic=never-match;;
10088 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10089 shlibpath_overrides_runpath=no
10090 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10091 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10092 hardcode_into_libs=yes
10095 # No shared lib support for Linux oldld, aout, or coff.
10096 linux*oldld* | linux*aout* | linux*coff*)
10100 # This must be Linux ELF.
10101 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10108 shlibpath_var=LD_LIBRARY_PATH
10109 shlibpath_overrides_runpath=no
10111 # Some binutils ld are patched to set DT_RUNPATH
10112 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10113 $as_echo_n "(cached) " >&6
10115 lt_cv_shlibpath_overrides_runpath=no
10116 save_LDFLAGS=$LDFLAGS
10117 save_libdir=$libdir
10118 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10119 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10131 if ac_fn_c_try_link "$LINENO"; then :
10132 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10133 lt_cv_shlibpath_overrides_runpath=yes
10136 rm -f core conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LDFLAGS=$save_LDFLAGS
10139 libdir=$save_libdir
10143 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10145 # This implies no fast_install, which is unacceptable.
10146 # Some rework will be needed to allow for fast_install
10147 # before this can be enabled.
10148 hardcode_into_libs=yes
10150 # Append ld.so.conf contents to the search path
10151 if test -f /etc/ld.so.conf; then
10152 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' ' '`
10153 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10156 # We used to test for /lib/ld.so.1 and disable shared libraries on
10157 # powerpc, because MkLinux only supported shared libraries with the
10158 # GNU dynamic linker. Since this was broken with cross compilers,
10159 # most powerpc-linux boxes support dynamic linking these days and
10160 # people can always --disable-shared, the test was removed, and we
10161 # assume the GNU/Linux dynamic linker is in use.
10162 dynamic_linker='GNU/Linux ld.so'
10169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10172 dynamic_linker='NetBSD (a.out) ld.so'
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 dynamic_linker='NetBSD ld.elf_so'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 shlibpath_overrides_runpath=yes
10180 hardcode_into_libs=yes
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 shlibpath_overrides_runpath=yes
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 shlibpath_var=LD_LIBRARY_PATH
10197 shlibpath_overrides_runpath=no
10198 hardcode_into_libs=yes
10199 dynamic_linker='ldqnx.so'
10204 sys_lib_dlsearch_path_spec="/usr/lib"
10206 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10208 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10209 *) need_version=no ;;
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10216 openbsd2.[89] | openbsd2.[89].*)
10217 shlibpath_overrides_runpath=no
10220 shlibpath_overrides_runpath=yes
10224 shlibpath_overrides_runpath=yes
10229 libname_spec='$name'
10232 library_names_spec='$libname${shared_ext} $libname.a'
10233 dynamic_linker='OS/2 ld.exe'
10234 shlibpath_var=LIBPATH
10237 osf3* | osf4* | osf5*)
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10245 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes
10260 hardcode_into_libs=yes
10261 # ldd complains unless libraries are executable
10262 postinstall_cmds='chmod +x $lib'
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10268 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 if test "$with_gnu_ld" = yes; then
10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280 soname_spec='${libname}${release}${shared_ext}$major'
10281 shlibpath_var=LD_LIBRARY_PATH
10282 case $host_vendor in
10284 shlibpath_overrides_runpath=no
10286 runpath_var=LD_RUN_PATH
10294 shlibpath_overrides_runpath=no
10295 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10301 if test -d /usr/nec ;then
10303 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10304 soname_spec='$libname${shared_ext}.$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10310 version_type=freebsd-elf
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10317 hardcode_into_libs=yes
10318 if test "$with_gnu_ld" = yes; then
10319 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10321 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10324 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10328 sys_lib_dlsearch_path_spec='/usr/lib'
10332 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=no
10339 hardcode_into_libs=yes
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 shlibpath_var=LD_LIBRARY_PATH
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10354 $as_echo "$dynamic_linker" >&6; }
10355 test "$dynamic_linker" = no && can_build_shared=no
10357 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10358 if test "$GCC" = yes; then
10359 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10362 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10363 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10365 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10366 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10461 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10463 if test -n "$hardcode_libdir_flag_spec" ||
10464 test -n "$runpath_var" ||
10465 test "X$hardcode_automatic" = "Xyes" ; then
10467 # We can hardcode non-existent directories.
10468 if test "$hardcode_direct" != no &&
10469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10470 # have to relink, otherwise we might link with an installed library
10471 # when we should be linking with a yet-to-be-installed one
10472 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10473 test "$hardcode_minus_L" != no; then
10474 # Linking always hardcodes the temporary library directory.
10475 hardcode_action=relink
10477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10478 hardcode_action=immediate
10481 # We cannot hardcode anything, or else we can only hardcode existing
10483 hardcode_action=unsupported
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10486 $as_echo "$hardcode_action" >&6; }
10488 if test "$hardcode_action" = relink ||
10489 test "$inherit_rpath" = yes; then
10490 # Fast installation is not supported
10491 enable_fast_install=no
10492 elif test "$shlibpath_overrides_runpath" = yes ||
10493 test "$enable_shared" = no; then
10494 # Fast installation is not necessary
10495 enable_fast_install=needless
10503 if test "x$enable_dlopen" != xyes; then
10504 enable_dlopen=unknown
10505 enable_dlopen_self=unknown
10506 enable_dlopen_self_static=unknown
10513 lt_cv_dlopen="load_add_on"
10515 lt_cv_dlopen_self=yes
10518 mingw* | pw32* | cegcc*)
10519 lt_cv_dlopen="LoadLibrary"
10524 lt_cv_dlopen="dlopen"
10529 # if libdl is installed we need to link against it
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10531 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10532 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10535 ac_check_lib_save_LIBS=$LIBS
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10555 if ac_fn_c_try_link "$LINENO"; then :
10556 ac_cv_lib_dl_dlopen=yes
10558 ac_cv_lib_dl_dlopen=no
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10566 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10570 lt_cv_dlopen="dyld"
10572 lt_cv_dlopen_self=yes
10579 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10580 if test "x$ac_cv_func_shl_load" = x""yes; then :
10581 lt_cv_dlopen="shl_load"
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10584 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10585 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10588 ac_check_lib_save_LIBS=$LIBS
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10603 return shl_load ();
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_lib_dld_shl_load=yes
10611 ac_cv_lib_dld_shl_load=no
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10618 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10619 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10620 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10622 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10623 if test "x$ac_cv_func_dlopen" = x""yes; then :
10624 lt_cv_dlopen="dlopen"
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10631 ac_check_lib_save_LIBS=$LIBS
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10636 /* Override any GCC internal prototype to avoid an error.
10637 Use char because int might match the return type of a GCC
10638 builtin and then its argument prototype would still apply. */
10651 if ac_fn_c_try_link "$LINENO"; then :
10652 ac_cv_lib_dl_dlopen=yes
10654 ac_cv_lib_dl_dlopen=no
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LIBS=$ac_check_lib_save_LIBS
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10662 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10666 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10667 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10670 ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-lsvld $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_svld_dlopen=yes
10693 ac_cv_lib_svld_dlopen=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10700 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10701 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10705 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10706 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10709 ac_check_lib_save_LIBS=$LIBS
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10714 /* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10724 return dld_link ();
10729 if ac_fn_c_try_link "$LINENO"; then :
10730 ac_cv_lib_dld_dld_link=yes
10732 ac_cv_lib_dld_dld_link=no
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10739 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10740 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10741 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10762 if test "x$lt_cv_dlopen" != xno; then
10768 case $lt_cv_dlopen in
10770 save_CPPFLAGS="$CPPFLAGS"
10771 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10773 save_LDFLAGS="$LDFLAGS"
10774 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10777 LIBS="$lt_cv_dlopen_libs $LIBS"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10780 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10781 if test "${lt_cv_dlopen_self+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
10784 if test "$cross_compiling" = yes; then :
10785 lt_cv_dlopen_self=cross
10787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10788 lt_status=$lt_dlunknown
10789 cat > conftest.$ac_ext <<_LT_EOF
10790 #line 10790 "configure"
10791 #include "confdefs.h"
10800 # define LT_DLGLOBAL RTLD_GLOBAL
10803 # define LT_DLGLOBAL DL_GLOBAL
10805 # define LT_DLGLOBAL 0
10809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10810 find out it does not work in some platform. */
10811 #ifndef LT_DLLAZY_OR_NOW
10813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10816 # define LT_DLLAZY_OR_NOW DL_LAZY
10819 # define LT_DLLAZY_OR_NOW RTLD_NOW
10822 # define LT_DLLAZY_OR_NOW DL_NOW
10824 # define LT_DLLAZY_OR_NOW 0
10831 /* When -fvisbility=hidden is used, assume the code has been annotated
10832 correspondingly for the symbols needed. */
10833 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10834 void fnord () __attribute__((visibility("default")));
10837 void fnord () { int i=42; }
10840 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10841 int status = $lt_dlunknown;
10845 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10848 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10849 else puts (dlerror ());
10851 /* dlclose (self); */
10859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10860 (eval $ac_link) 2>&5
10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10864 (./conftest; exit; ) >&5 2>/dev/null
10866 case x$lt_status in
10867 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10868 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10869 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10872 # compilation failed
10873 lt_cv_dlopen_self=no
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10881 $as_echo "$lt_cv_dlopen_self" >&6; }
10883 if test "x$lt_cv_dlopen_self" = xyes; then
10884 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10886 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10887 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10890 if test "$cross_compiling" = yes; then :
10891 lt_cv_dlopen_self_static=cross
10893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10894 lt_status=$lt_dlunknown
10895 cat > conftest.$ac_ext <<_LT_EOF
10896 #line 10896 "configure"
10897 #include "confdefs.h"
10906 # define LT_DLGLOBAL RTLD_GLOBAL
10909 # define LT_DLGLOBAL DL_GLOBAL
10911 # define LT_DLGLOBAL 0
10915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10916 find out it does not work in some platform. */
10917 #ifndef LT_DLLAZY_OR_NOW
10919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10922 # define LT_DLLAZY_OR_NOW DL_LAZY
10925 # define LT_DLLAZY_OR_NOW RTLD_NOW
10928 # define LT_DLLAZY_OR_NOW DL_NOW
10930 # define LT_DLLAZY_OR_NOW 0
10937 /* When -fvisbility=hidden is used, assume the code has been annotated
10938 correspondingly for the symbols needed. */
10939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10940 void fnord () __attribute__((visibility("default")));
10943 void fnord () { int i=42; }
10946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10947 int status = $lt_dlunknown;
10951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10955 else puts (dlerror ());
10957 /* dlclose (self); */
10965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10966 (eval $ac_link) 2>&5
10968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10970 (./conftest; exit; ) >&5 2>/dev/null
10972 case x$lt_status in
10973 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10974 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10975 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10978 # compilation failed
10979 lt_cv_dlopen_self_static=no
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10987 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10990 CPPFLAGS="$save_CPPFLAGS"
10991 LDFLAGS="$save_LDFLAGS"
10996 case $lt_cv_dlopen_self in
10997 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10998 *) enable_dlopen_self=unknown ;;
11001 case $lt_cv_dlopen_self_static in
11002 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11003 *) enable_dlopen_self_static=unknown ;;
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11026 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11027 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11028 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11029 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11031 $as_echo "yes" >&6; }
11033 # FIXME - insert some real tests, host_os isn't really good enough
11036 if test -n "$STRIP" ; then
11037 striplib="$STRIP -x"
11038 old_striplib="$STRIP -S"
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11040 $as_echo "yes" >&6; }
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11064 # Report which library types will actually be built
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11066 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11068 $as_echo "$can_build_shared" >&6; }
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11071 $as_echo_n "checking whether to build shared libraries... " >&6; }
11072 test "$can_build_shared" = "no" && enable_shared=no
11074 # On AIX, shared libraries and static libraries use the same namespace, and
11075 # are all built from PIC.
11078 test "$enable_shared" = yes && enable_static=no
11079 if test -n "$RANLIB"; then
11080 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11081 postinstall_cmds='$RANLIB $lib'
11086 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11087 test "$enable_shared" = yes && enable_static=no
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11092 $as_echo "$enable_shared" >&6; }
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11095 $as_echo_n "checking whether to build static libraries... " >&6; }
11096 # Make sure either enable_shared or enable_static is yes.
11097 test "$enable_shared" = yes || enable_static=yes
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11099 $as_echo "$enable_static" >&6; }
11106 ac_cpp='$CPP $CPPFLAGS'
11107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11125 ac_config_commands="$ac_config_commands libtool"
11130 # Only expand once:
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11136 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11137 # Check whether --enable-maintainer-mode was given.
11138 if test "${enable_maintainer_mode+set}" = set; then :
11139 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11141 USE_MAINTAINER_MODE=no
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11145 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11146 if test $USE_MAINTAINER_MODE = yes; then
11147 MAINTAINER_MODE_TRUE=
11148 MAINTAINER_MODE_FALSE='#'
11150 MAINTAINER_MODE_TRUE='#'
11151 MAINTAINER_MODE_FALSE=
11154 MAINT=$MAINTAINER_MODE_TRUE
11158 for ac_header in sys/mman.h
11160 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11161 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11162 cat >>confdefs.h <<_ACEOF
11163 #define HAVE_SYS_MMAN_H 1
11170 for ac_func in mmap
11172 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11173 if test "x$ac_cv_func_mmap" = x""yes; then :
11174 cat >>confdefs.h <<_ACEOF
11175 #define HAVE_MMAP 1
11182 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11183 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11184 libffi_header_sys_mman_h=yes
11186 libffi_header_sys_mman_h=no
11190 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11191 if test "x$ac_cv_func_mmap" = x""yes; then :
11192 libffi_func_mmap=yes
11194 libffi_func_mmap=no
11197 if test "$libffi_header_sys_mman_h" != yes \
11198 || test "$libffi_func_mmap" != yes; then
11199 ac_cv_func_mmap_file=no
11200 ac_cv_func_mmap_dev_zero=no
11201 ac_cv_func_mmap_anon=no
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11204 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11205 if test "${ac_cv_func_mmap_file+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11208 # Add a system to this blacklist if
11209 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11210 # memory area containing the same data that you'd get if you applied
11211 # read() to the same fd. The only system known to have a problem here
11212 # is VMS, where text files have record structure.
11215 ac_cv_func_mmap_file=no ;;
11217 ac_cv_func_mmap_file=yes;;
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11221 $as_echo "$ac_cv_func_mmap_file" >&6; }
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11223 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11224 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
11227 # Add a system to this blacklist if it has mmap() but /dev/zero
11228 # does not exist, or if mmapping /dev/zero does not give anonymous
11229 # zeroed pages with both the following properties:
11230 # 1. If you map N consecutive pages in with one call, and then
11231 # unmap any subset of those pages, the pages that were not
11232 # explicitly unmapped remain accessible.
11233 # 2. If you map two adjacent blocks of memory and then unmap them
11234 # both at once, they must both go away.
11235 # Systems known to be in this category are Windows (all variants),
11238 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11239 ac_cv_func_mmap_dev_zero=no ;;
11241 ac_cv_func_mmap_dev_zero=yes;;
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11245 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11247 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11249 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11250 if test "${ac_cv_decl_map_anon+set}" = set; then :
11251 $as_echo_n "(cached) " >&6
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11255 #include <sys/types.h>
11256 #include <sys/mman.h>
11257 #include <unistd.h>
11259 #ifndef MAP_ANONYMOUS
11260 #define MAP_ANONYMOUS MAP_ANON
11266 int n = MAP_ANONYMOUS;
11271 if ac_fn_c_try_compile "$LINENO"; then :
11272 ac_cv_decl_map_anon=yes
11274 ac_cv_decl_map_anon=no
11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11279 $as_echo "$ac_cv_decl_map_anon" >&6; }
11281 if test $ac_cv_decl_map_anon = no; then
11282 ac_cv_func_mmap_anon=no
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11285 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11286 if test "${ac_cv_func_mmap_anon+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
11289 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11290 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11291 # doesn't give anonymous zeroed pages with the same properties listed
11292 # above for use of /dev/zero.
11293 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11295 vms* | cygwin* | pe | mingw* | sco* | udk* )
11296 ac_cv_func_mmap_anon=no ;;
11298 ac_cv_func_mmap_anon=yes;;
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11302 $as_echo "$ac_cv_func_mmap_anon" >&6; }
11306 if test $ac_cv_func_mmap_file = yes; then
11308 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11311 if test $ac_cv_func_mmap_dev_zero = yes; then
11313 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11316 if test $ac_cv_func_mmap_anon = yes; then
11318 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11323 if test -d $srcdir/testsuite; then
11325 TESTSUBDIR_FALSE='#'
11327 TESTSUBDIR_TRUE='#'
11332 TARGETDIR="unknown"
11335 TARGET=AARCH64; TARGETDIR=aarch64
11339 TARGET=ALPHA; TARGETDIR=alpha;
11340 # Support 128-bit long double, changeable via command-line switch.
11341 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11345 TARGET=ARM; TARGETDIR=arm
11348 amd64-*-freebsd* | amd64-*-openbsd*)
11349 TARGET=X86_64; TARGETDIR=x86
11353 TARGET=X86_64; TARGETDIR=x86
11357 TARGET=AVR32; TARGETDIR=avr32
11361 TARGET=BFIN; TARGETDIR=bfin
11365 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11369 TARGET=FRV; TARGETDIR=frv
11372 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
11373 TARGET=PA_LINUX; TARGETDIR=pa
11376 TARGET=PA64_HPUX; TARGETDIR=pa
11379 TARGET=PA_HPUX; TARGETDIR=pa
11382 i?86-*-freebsd* | i?86-*-openbsd*)
11383 TARGET=X86_FREEBSD; TARGETDIR=x86
11385 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
11386 TARGET=X86_WIN32; TARGETDIR=x86
11387 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11388 # We must also check with_cross_host to decide if this is a native
11389 # or cross-build and select where to install dlls appropriately.
11390 if test -n "$with_cross_host" &&
11391 test x"$with_cross_host" != x"no"; then
11392 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11394 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11398 TARGET=X86_DARWIN; TARGETDIR=x86
11400 i?86-*-solaris2.1[0-9]*)
11401 TARGET=X86_64; TARGETDIR=x86
11404 TARGET=X86_64; TARGETDIR=x86
11408 TARGET=IA64; TARGETDIR=ia64
11412 TARGET=M32R; TARGETDIR=m32r
11416 TARGET=M68K; TARGETDIR=m68k
11419 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
11420 TARGET=MIPS; TARGETDIR=mips
11422 mips*-*-linux* | mips*-*-openbsd*)
11423 # Support 128-bit long double for NewABI.
11424 HAVE_LONG_DOUBLE='defined(__mips64)'
11425 TARGET=MIPS; TARGETDIR=mips
11428 powerpc*-*-linux* | powerpc-*-sysv*)
11429 TARGET=POWERPC; TARGETDIR=powerpc
11431 powerpc-*-amigaos*)
11432 TARGET=POWERPC; TARGETDIR=powerpc
11435 TARGET=POWERPC; TARGETDIR=powerpc
11437 powerpc-*-darwin* | powerpc64-*-darwin*)
11438 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11440 powerpc-*-aix* | rs6000-*-aix*)
11441 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11443 powerpc-*-freebsd* | powerpc-*-openbsd*)
11444 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11446 powerpc64-*-freebsd*)
11447 TARGET=POWERPC; TARGETDIR=powerpc
11450 TARGET=POWERPC; TARGETDIR=powerpc
11453 s390-*-* | s390x-*-*)
11454 TARGET=S390; TARGETDIR=s390
11457 sh-*-* | sh[34]*-*-*)
11458 TARGET=SH; TARGETDIR=sh
11460 sh64-*-* | sh5*-*-*)
11461 TARGET=SH64; TARGETDIR=sh64
11465 TARGET=SPARC; TARGETDIR=sparc
11469 TARGET=TILE; TARGETDIR=tile
11473 TARGET=X86_DARWIN; TARGETDIR=x86
11476 x86_64-*-cygwin* | x86_64-*-mingw*)
11477 TARGET=X86_WIN64; TARGETDIR=x86
11478 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11479 # We must also check with_cross_host to decide if this is a native
11480 # or cross-build and select where to install dlls appropriately.
11481 if test -n "$with_cross_host" &&
11482 test x"$with_cross_host" != x"no"; then
11483 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11485 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11490 TARGET=X86_64; TARGETDIR=x86
11497 if test $TARGETDIR = unknown; then
11498 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11501 if test x$TARGET = xMIPS; then
11509 if test x$TARGET = xBFIN; then
11517 if test x$TARGET = xSPARC; then
11525 if test x$TARGET = xX86; then
11533 if test x$TARGET = xX86_FREEBSD; then
11535 X86_FREEBSD_FALSE='#'
11537 X86_FREEBSD_TRUE='#'
11541 if test x$TARGET = xX86_WIN32; then
11543 X86_WIN32_FALSE='#'
11549 if test x$TARGET = xX86_WIN64; then
11551 X86_WIN64_FALSE='#'
11557 if test x$TARGET = xX86_DARWIN; then
11559 X86_DARWIN_FALSE='#'
11561 X86_DARWIN_TRUE='#'
11565 if test x$TARGET = xALPHA; then
11573 if test x$TARGET = xIA64; then
11581 if test x$TARGET = xM32R; then
11589 if test x$TARGET = xM68K; then
11597 if test x$TARGET = xPOWERPC; then
11605 if test x$TARGET = xPOWERPC_AIX; then
11607 POWERPC_AIX_FALSE='#'
11609 POWERPC_AIX_TRUE='#'
11613 if test x$TARGET = xPOWERPC_DARWIN; then
11614 POWERPC_DARWIN_TRUE=
11615 POWERPC_DARWIN_FALSE='#'
11617 POWERPC_DARWIN_TRUE='#'
11618 POWERPC_DARWIN_FALSE=
11621 if test x$TARGET = xPOWERPC_FREEBSD; then
11622 POWERPC_FREEBSD_TRUE=
11623 POWERPC_FREEBSD_FALSE='#'
11625 POWERPC_FREEBSD_TRUE='#'
11626 POWERPC_FREEBSD_FALSE=
11629 if test x$TARGET = xAARCH64; then
11637 if test x$TARGET = xARM; then
11645 if test x$TARGET = xAVR32; then
11653 if test x$TARGET = xLIBFFI_CRIS; then
11655 LIBFFI_CRIS_FALSE='#'
11657 LIBFFI_CRIS_TRUE='#'
11661 if test x$TARGET = xFRV; then
11669 if test x$TARGET = xS390; then
11677 if test x$TARGET = xX86_64; then
11685 if test x$TARGET = xSH; then
11693 if test x$TARGET = xSH64; then
11701 if test x$TARGET = xPA_LINUX; then
11709 if test x$TARGET = xPA_HPUX; then
11717 if test x$TARGET = xPA64_HPUX; then
11719 PA64_HPUX_FALSE='#'
11725 if test x$TARGET = xTILE; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11735 $as_echo_n "checking for ANSI C header files... " >&6; }
11736 if test "${ac_cv_header_stdc+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741 #include <stdlib.h>
11742 #include <stdarg.h>
11743 #include <string.h>
11754 if ac_fn_c_try_compile "$LINENO"; then :
11755 ac_cv_header_stdc=yes
11757 ac_cv_header_stdc=no
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 if test $ac_cv_header_stdc = yes; then
11762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11765 #include <string.h>
11768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11769 $EGREP "memchr" >/dev/null 2>&1; then :
11772 ac_cv_header_stdc=no
11778 if test $ac_cv_header_stdc = yes; then
11779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11782 #include <stdlib.h>
11785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11786 $EGREP "free" >/dev/null 2>&1; then :
11789 ac_cv_header_stdc=no
11795 if test $ac_cv_header_stdc = yes; then
11796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11797 if test "$cross_compiling" = yes; then :
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11803 #include <stdlib.h>
11804 #if ((' ' & 0x0FF) == 0x020)
11805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11808 # define ISLOWER(c) \
11809 (('a' <= (c) && (c) <= 'i') \
11810 || ('j' <= (c) && (c) <= 'r') \
11811 || ('s' <= (c) && (c) <= 'z'))
11812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11820 for (i = 0; i < 256; i++)
11821 if (XOR (islower (i), ISLOWER (i))
11822 || toupper (i) != TOUPPER (i))
11827 if ac_fn_c_try_run "$LINENO"; then :
11830 ac_cv_header_stdc=no
11832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11833 conftest.$ac_objext conftest.beam conftest.$ac_ext
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11839 $as_echo "$ac_cv_header_stdc" >&6; }
11840 if test $ac_cv_header_stdc = yes; then
11842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11846 for ac_func in memcpy
11848 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11849 if test "x$ac_cv_func_memcpy" = x""yes; then :
11850 cat >>confdefs.h <<_ACEOF
11851 #define HAVE_MEMCPY 1
11857 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11858 # for constant arguments. Useless!
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11860 $as_echo_n "checking for working alloca.h... " >&6; }
11861 if test "${ac_cv_working_alloca_h+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 #include <alloca.h>
11870 char *p = (char *) alloca (2 * sizeof (int));
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 ac_cv_working_alloca_h=yes
11879 ac_cv_working_alloca_h=no
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11885 $as_echo "$ac_cv_working_alloca_h" >&6; }
11886 if test $ac_cv_working_alloca_h = yes; then
11888 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11893 $as_echo_n "checking for alloca... " >&6; }
11894 if test "${ac_cv_func_alloca_works+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11900 # define alloca __builtin_alloca
11903 # include <malloc.h>
11904 # define alloca _alloca
11906 # ifdef HAVE_ALLOCA_H
11907 # include <alloca.h>
11912 # ifndef alloca /* predefined by HP cc +Olibcalls */
11923 char *p = (char *) alloca (1);
11929 if ac_fn_c_try_link "$LINENO"; then :
11930 ac_cv_func_alloca_works=yes
11932 ac_cv_func_alloca_works=no
11934 rm -f core conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11938 $as_echo "$ac_cv_func_alloca_works" >&6; }
11940 if test $ac_cv_func_alloca_works = yes; then
11942 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11945 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11946 # that cause trouble. Some versions do not even contain alloca or
11947 # contain a buggy version. If you still want to use their alloca,
11948 # use ar to extract alloca.o from them instead of compiling alloca.c.
11950 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11952 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11956 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11957 if test "${ac_cv_os_cray+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #if defined CRAY && ! defined CRAY2
11969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11970 $EGREP "webecray" >/dev/null 2>&1; then :
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11979 $as_echo "$ac_cv_os_cray" >&6; }
11980 if test $ac_cv_os_cray = yes; then
11981 for ac_func in _getb67 GETB67 getb67; do
11982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11983 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11984 eval as_val=\$$as_ac_var
11985 if test "x$as_val" = x""yes; then :
11987 cat >>confdefs.h <<_ACEOF
11988 #define CRAY_STACKSEG_END $ac_func
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11998 $as_echo_n "checking stack direction for C alloca... " >&6; }
11999 if test "${ac_cv_c_stack_direction+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12002 if test "$cross_compiling" = yes; then :
12003 ac_cv_c_stack_direction=0
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007 $ac_includes_default
12009 find_stack_direction ()
12011 static char *addr = 0;
12016 return find_stack_direction ();
12019 return (&dummy > addr) ? 1 : -1;
12025 return find_stack_direction () < 0;
12028 if ac_fn_c_try_run "$LINENO"; then :
12029 ac_cv_c_stack_direction=1
12031 ac_cv_c_stack_direction=-1
12033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12034 conftest.$ac_objext conftest.beam conftest.$ac_ext
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12039 $as_echo "$ac_cv_c_stack_direction" >&6; }
12040 cat >>confdefs.h <<_ACEOF
12041 #define STACK_DIRECTION $ac_cv_c_stack_direction
12048 # The cast to long int works around a bug in the HP C Compiler
12049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12051 # This bug is HP SR number 8606223364.
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12053 $as_echo_n "checking size of double... " >&6; }
12054 if test "${ac_cv_sizeof_double+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
12057 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12060 if test "$ac_cv_type_double" = yes; then
12061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12063 { as_fn_set_status 77
12064 as_fn_error "cannot compute sizeof (double)
12065 See \`config.log' for more details." "$LINENO" 5; }; }
12067 ac_cv_sizeof_double=0
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12073 $as_echo "$ac_cv_sizeof_double" >&6; }
12077 cat >>confdefs.h <<_ACEOF
12078 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12082 # The cast to long int works around a bug in the HP C Compiler
12083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12085 # This bug is HP SR number 8606223364.
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12087 $as_echo_n "checking size of long double... " >&6; }
12088 if test "${ac_cv_sizeof_long_double+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12091 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
12094 if test "$ac_cv_type_long_double" = yes; then
12095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12097 { as_fn_set_status 77
12098 as_fn_error "cannot compute sizeof (long double)
12099 See \`config.log' for more details." "$LINENO" 5; }; }
12101 ac_cv_sizeof_long_double=0
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12107 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12111 cat >>confdefs.h <<_ACEOF
12112 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12117 # Also AC_SUBST this variable for ffi.h.
12118 if test -z "$HAVE_LONG_DOUBLE"; then
12120 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12121 if test $ac_cv_sizeof_long_double != 0; then
12124 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12132 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12133 if test "${ac_cv_c_bigendian+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
12136 ac_cv_c_bigendian=unknown
12137 # See if we're dealing with a universal compiler.
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12140 #ifndef __APPLE_CC__
12141 not a universal capable compiler
12146 if ac_fn_c_try_compile "$LINENO"; then :
12148 # Check for potential -arch flags. It is not universal unless
12149 # there are at least two -arch flags with different values.
12152 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12153 if test -n "$ac_prev"; then
12155 i?86 | x86_64 | ppc | ppc64)
12156 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12159 ac_cv_c_bigendian=universal
12165 elif test "x$ac_word" = "x-arch"; then
12170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171 if test $ac_cv_c_bigendian = unknown; then
12172 # See if sys/param.h defines the BYTE_ORDER macro.
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12175 #include <sys/types.h>
12176 #include <sys/param.h>
12181 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12182 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12184 bogus endian macros
12191 if ac_fn_c_try_compile "$LINENO"; then :
12192 # It does; now see whether it defined to BIG_ENDIAN or not.
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195 #include <sys/types.h>
12196 #include <sys/param.h>
12201 #if BYTE_ORDER != BIG_ENDIAN
12209 if ac_fn_c_try_compile "$LINENO"; then :
12210 ac_cv_c_bigendian=yes
12212 ac_cv_c_bigendian=no
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 if test $ac_cv_c_bigendian = unknown; then
12219 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12222 #include <limits.h>
12227 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12228 bogus endian macros
12235 if ac_fn_c_try_compile "$LINENO"; then :
12236 # It does; now see whether it defined to _BIG_ENDIAN or not.
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239 #include <limits.h>
12244 #ifndef _BIG_ENDIAN
12252 if ac_fn_c_try_compile "$LINENO"; then :
12253 ac_cv_c_bigendian=yes
12255 ac_cv_c_bigendian=no
12257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 if test $ac_cv_c_bigendian = unknown; then
12262 # Compile a test program.
12263 if test "$cross_compiling" = yes; then :
12264 # Try to guess by grepping values from an object file.
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12267 short int ascii_mm[] =
12268 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12269 short int ascii_ii[] =
12270 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12271 int use_ascii (int i) {
12272 return ascii_mm[i] + ascii_ii[i];
12274 short int ebcdic_ii[] =
12275 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12276 short int ebcdic_mm[] =
12277 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12278 int use_ebcdic (int i) {
12279 return ebcdic_mm[i] + ebcdic_ii[i];
12286 return use_ascii (foo) == use_ebcdic (foo);
12291 if ac_fn_c_try_compile "$LINENO"; then :
12292 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12293 ac_cv_c_bigendian=yes
12295 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12296 if test "$ac_cv_c_bigendian" = unknown; then
12297 ac_cv_c_bigendian=no
12299 # finding both strings is unlikely to happen, but who knows?
12300 ac_cv_c_bigendian=unknown
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308 $ac_includes_default
12313 /* Are we little or big endian? From Harbison&Steele. */
12317 char c[sizeof (long int)];
12320 return u.c[sizeof (long int) - 1] == 1;
12326 if ac_fn_c_try_run "$LINENO"; then :
12327 ac_cv_c_bigendian=no
12329 ac_cv_c_bigendian=yes
12331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12332 conftest.$ac_objext conftest.beam conftest.$ac_ext
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12338 $as_echo "$ac_cv_c_bigendian" >&6; }
12339 case $ac_cv_c_bigendian in #(
12341 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12347 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12351 as_fn_error "unknown endianness
12352 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12357 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12358 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12362 gcc_cv_as_cfi_pseudo_op=unknown
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365 asm (".cfi_startproc\n\t.cfi_endproc");
12374 if ac_fn_c_try_compile "$LINENO"; then :
12375 gcc_cv_as_cfi_pseudo_op=yes
12377 gcc_cv_as_cfi_pseudo_op=no
12379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
12383 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
12384 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
12386 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12391 if test x$TARGET = xSPARC; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12393 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12394 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12398 save_CFLAGS="$CFLAGS"
12399 save_LDFLAGS="$LDFLAGS"
12400 CFLAGS="$CFLAGS -fpic"
12401 LDFLAGS="$LDFLAGS -shared"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12413 if ac_fn_c_try_link "$LINENO"; then :
12414 libffi_cv_as_sparc_ua_pcrel=yes
12416 libffi_cv_as_sparc_ua_pcrel=no
12418 rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420 CFLAGS="$save_CFLAGS"
12421 LDFLAGS="$save_LDFLAGS"
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12424 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12425 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12427 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12432 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12433 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12437 libffi_cv_as_register_pseudo_op=unknown
12438 # Check if we have .register
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 asm (".register %g2, #scratch");
12450 if ac_fn_c_try_compile "$LINENO"; then :
12451 libffi_cv_as_register_pseudo_op=yes
12453 libffi_cv_as_register_pseudo_op=no
12455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12459 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12460 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12462 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12467 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12469 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
12470 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12474 libffi_cv_as_x86_pcrel=yes
12475 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12476 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
12477 libffi_cv_as_x86_pcrel=no
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12482 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12483 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12485 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12490 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12491 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12495 libffi_cv_as_ascii_pseudo_op=unknown
12496 # Check if we have .ascii
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499 asm (".ascii \\"string\\"");
12508 if ac_fn_c_try_compile "$LINENO"; then :
12509 libffi_cv_as_ascii_pseudo_op=yes
12511 libffi_cv_as_ascii_pseudo_op=no
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12517 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12518 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12520 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12525 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12526 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12527 $as_echo_n "(cached) " >&6
12530 libffi_cv_as_string_pseudo_op=unknown
12531 # Check if we have .string
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12534 asm (".string \\"string\\"");
12543 if ac_fn_c_try_compile "$LINENO"; then :
12544 libffi_cv_as_string_pseudo_op=yes
12546 libffi_cv_as_string_pseudo_op=no
12548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12552 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12553 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12555 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12560 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
12561 # Check whether --enable-pax_emutramp was given.
12562 if test "${enable_pax_emutramp+set}" = set; then :
12563 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
12565 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
12571 FFI_EXEC_TRAMPOLINE_TABLE=0
12573 *arm*-apple-darwin*)
12574 FFI_EXEC_TRAMPOLINE_TABLE=1
12576 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
12579 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
12581 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12585 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
12586 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
12587 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
12589 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
12590 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
12595 if test x$TARGET = xX86_64; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12597 $as_echo_n "checking assembler supports unwind section type... " >&6; }
12598 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12602 libffi_cv_as_x86_64_unwind_section_type=yes
12603 echo '.section .eh_frame,"a",@unwind' > conftest.s
12604 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12605 libffi_cv_as_x86_64_unwind_section_type=no
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12610 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12611 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12613 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12618 if test "x$GCC" = "xyes"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12620 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12621 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12622 $as_echo_n "(cached) " >&6
12625 libffi_cv_ro_eh_frame=no
12626 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12627 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12628 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12629 libffi_cv_ro_eh_frame=yes
12630 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12631 | grep -v '#write' > /dev/null; then
12632 libffi_cv_ro_eh_frame=yes
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12639 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
12640 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12642 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12645 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12649 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12654 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12655 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12656 $as_echo_n "(cached) " >&6
12659 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
12660 libffi_cv_hidden_visibility_attribute=no
12661 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12663 (eval $ac_try) 2>&5
12665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12666 test $ac_status = 0; }; }; then
12667 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12668 libffi_cv_hidden_visibility_attribute=yes
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12675 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12676 if test $libffi_cv_hidden_visibility_attribute = yes; then
12678 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12690 # Check whether --enable-debug was given.
12691 if test "${enable_debug+set}" = set; then :
12692 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12694 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
12699 if test "$enable_debug" = "yes"; then
12701 FFI_DEBUG_FALSE='#'
12708 # Check whether --enable-structs was given.
12709 if test "${enable_structs+set}" = set; then :
12710 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12712 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12718 # Check whether --enable-raw-api was given.
12719 if test "${enable_raw_api+set}" = set; then :
12720 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12722 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12728 # Check whether --enable-purify-safety was given.
12729 if test "${enable_purify_safety+set}" = set; then :
12730 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12732 $as_echo "#define USING_PURIFY 1" >>confdefs.h
12738 if test -n "$with_cross_host" &&
12739 test x"$with_cross_host" != x"no"; then
12740 toolexecdir='$(exec_prefix)/$(target_alias)'
12741 toolexeclibdir='$(toolexecdir)/lib'
12743 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12744 toolexeclibdir='$(libdir)'
12746 multi_os_directory=`$CC -print-multi-os-directory`
12747 case $multi_os_directory in
12748 .) ;; # Avoid trailing /.
12749 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12754 if test "${multilib}" = "yes"; then
12755 multilib_arg="--enable-multilib"
12760 ac_config_commands="$ac_config_commands include"
12762 ac_config_commands="$ac_config_commands src"
12765 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12768 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
12771 cat >confcache <<\_ACEOF
12772 # This file is a shell script that caches the results of configure
12773 # tests run on this system so they can be shared between configure
12774 # scripts and configure runs, see configure's option --config-cache.
12775 # It is not useful on other systems. If it contains results you don't
12776 # want to keep, you may remove or edit it.
12778 # config.status only pays attention to the cache file if you give it
12779 # the --recheck option to rerun configure.
12781 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12782 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12783 # following values.
12787 # The following way of writing the cache mishandles newlines in values,
12788 # but we know of no workaround that is simple, portable, and efficient.
12789 # So, we kill variables containing newlines.
12790 # Ultrix sh set writes to stderr and can't be redirected directly,
12791 # and sets the high bit in the cache file unless we assign to the vars.
12793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12794 eval ac_val=\$$ac_var
12798 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12802 _ | IFS | as_nl) ;; #(
12803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12804 *) { eval $ac_var=; unset $ac_var;} ;;
12810 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12811 *${as_nl}ac_space=\ *)
12812 # `set' does not quote correctly, so add quotes: double-quote
12813 # substitution turns \\\\ into \\, and sed turns \\ into \.
12816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12819 # `set' quotes correctly as required by POSIX, so do not add quotes.
12820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12833 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12834 if test -w "$cache_file"; then
12835 test "x$cache_file" != "x/dev/null" &&
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12837 $as_echo "$as_me: updating cache $cache_file" >&6;}
12838 cat confcache >$cache_file
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12841 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12847 # Let make expand exec_prefix.
12848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12850 DEFS=-DHAVE_CONFIG_H
12854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12855 # 1. Remove the extension, and $U if already installed.
12856 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12857 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12859 # will be set to the directory where LIBOBJS objects are built.
12860 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12861 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12863 LIBOBJS=$ac_libobjs
12865 LTLIBOBJS=$ac_ltlibobjs
12868 if test -n "$EXEEXT"; then
12870 am__EXEEXT_FALSE='#'
12872 am__EXEEXT_TRUE='#'
12876 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12877 as_fn_error "conditional \"AMDEP\" was never defined.
12878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12880 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12881 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12884 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12885 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12888 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12889 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12892 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12893 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
12894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12896 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12897 as_fn_error "conditional \"MIPS\" was never defined.
12898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12900 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
12901 as_fn_error "conditional \"BFIN\" was never defined.
12902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12904 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12905 as_fn_error "conditional \"SPARC\" was never defined.
12906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12908 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12909 as_fn_error "conditional \"X86\" was never defined.
12910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12912 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
12913 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
12914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12916 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12917 as_fn_error "conditional \"X86_WIN32\" was never defined.
12918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12920 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
12921 as_fn_error "conditional \"X86_WIN64\" was never defined.
12922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12924 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12925 as_fn_error "conditional \"X86_DARWIN\" was never defined.
12926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12928 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12929 as_fn_error "conditional \"ALPHA\" was never defined.
12930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12932 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12933 as_fn_error "conditional \"IA64\" was never defined.
12934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12936 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12937 as_fn_error "conditional \"M32R\" was never defined.
12938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12940 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12941 as_fn_error "conditional \"M68K\" was never defined.
12942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12944 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12945 as_fn_error "conditional \"POWERPC\" was never defined.
12946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12948 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12949 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
12950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12952 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12953 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
12954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12956 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12957 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
12958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12960 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
12961 as_fn_error "conditional \"AARCH64\" was never defined.
12962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12964 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12965 as_fn_error "conditional \"ARM\" was never defined.
12966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12968 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
12969 as_fn_error "conditional \"AVR32\" was never defined.
12970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12972 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12973 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
12974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12976 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12977 as_fn_error "conditional \"FRV\" was never defined.
12978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12980 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12981 as_fn_error "conditional \"S390\" was never defined.
12982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12984 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12985 as_fn_error "conditional \"X86_64\" was never defined.
12986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12988 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12989 as_fn_error "conditional \"SH\" was never defined.
12990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12992 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12993 as_fn_error "conditional \"SH64\" was never defined.
12994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12996 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12997 as_fn_error "conditional \"PA_LINUX\" was never defined.
12998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13000 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13001 as_fn_error "conditional \"PA_HPUX\" was never defined.
13002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13004 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13005 as_fn_error "conditional \"PA64_HPUX\" was never defined.
13006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13008 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
13009 as_fn_error "conditional \"TILE\" was never defined.
13010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13013 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13014 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13017 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13018 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
13019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13022 : ${CONFIG_STATUS=./config.status}
13024 ac_clean_files_save=$ac_clean_files
13025 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13027 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13029 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13031 # Generated by $as_me.
13032 # Run this file to recreate the current configuration.
13033 # Compiler output produced by configure, useful for debugging
13034 # configure, is in config.log if it exists.
13037 ac_cs_recheck=false
13040 SHELL=\${CONFIG_SHELL-$SHELL}
13043 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13044 ## -------------------- ##
13045 ## M4sh Initialization. ##
13046 ## -------------------- ##
13048 # Be more Bourne compatible
13049 DUALCASE=1; export DUALCASE # for MKS sh
13050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13053 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13054 # is contrary to our usage. Disable this feature.
13055 alias -g '${1+"$@"}'='"$@"'
13056 setopt NO_GLOB_SUBST
13058 case `(set -o) 2>/dev/null` in #(
13070 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13071 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13074 # Prefer a ksh shell builtin over an external printf program on Solaris,
13075 # but without wasting forks for bash or zsh.
13076 if test -z "$BASH_VERSION$ZSH_VERSION" \
13077 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13078 as_echo='print -r --'
13079 as_echo_n='print -rn --'
13080 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13081 as_echo='printf %s\n'
13082 as_echo_n='printf %s'
13084 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13085 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13086 as_echo_n='/usr/ucb/echo -n'
13088 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13089 as_echo_n_body='eval
13093 expr "X$arg" : "X\\(.*\\)$as_nl";
13094 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13096 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13098 export as_echo_n_body
13099 as_echo_n='sh -c $as_echo_n_body as_echo'
13101 export as_echo_body
13102 as_echo='sh -c $as_echo_body as_echo'
13105 # The user is always right.
13106 if test "${PATH_SEPARATOR+set}" != set; then
13108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13116 # We need space, tab and new line, in precisely that order. Quoting is
13117 # there to prevent editors from complaining about space-tab.
13118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13119 # splitting by setting IFS to empty value.)
13122 # Find who we are. Look in the path if we contain no directory separator.
13124 *[\\/]* ) as_myself=$0 ;;
13125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13129 test -z "$as_dir" && as_dir=.
13130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13136 # We did not find ourselves, most probably we were run as `sh COMMAND'
13137 # in which case we are not to be found in the path.
13138 if test "x$as_myself" = x; then
13141 if test ! -f "$as_myself"; then
13142 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13146 # Unset variables that we do not need and which cause bugs (e.g. in
13147 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13148 # suppresses any "Segmentation fault" message there. '((' could
13149 # trigger a bug in pdksh 5.2.14.
13150 for as_var in BASH_ENV ENV MAIL MAILPATH
13151 do eval test x\${$as_var+set} = xset \
13152 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13168 # as_fn_error ERROR [LINENO LOG_FD]
13169 # ---------------------------------
13170 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13171 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13172 # script with status $?, using 1 if that was 0.
13175 as_status=$?; test $as_status -eq 0 && as_status=1
13177 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13178 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13180 $as_echo "$as_me: error: $1" >&2
13181 as_fn_exit $as_status
13185 # as_fn_set_status STATUS
13186 # -----------------------
13187 # Set $? to STATUS, without forking.
13188 as_fn_set_status ()
13191 } # as_fn_set_status
13193 # as_fn_exit STATUS
13194 # -----------------
13195 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13199 as_fn_set_status $1
13205 # Portably unset VAR.
13208 { eval $1=; unset $1;}
13210 as_unset=as_fn_unset
13211 # as_fn_append VAR VALUE
13212 # ----------------------
13213 # Append the text in VALUE to the end of the definition contained in VAR. Take
13214 # advantage of any shell optimizations that allow amortized linear growth over
13215 # repeated appends, instead of the typical quadratic growth present in naive
13217 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13218 eval 'as_fn_append ()
13229 # as_fn_arith ARG...
13230 # ------------------
13231 # Perform arithmetic evaluation on the ARGs, and store the result in the
13232 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13233 # must be portable across $(()) and expr.
13234 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13235 eval 'as_fn_arith ()
13242 as_val=`expr "$@" || test $? -eq 1`
13247 if expr a : '\(a\)' >/dev/null 2>&1 &&
13248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13254 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13255 as_basename=basename
13260 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13266 as_me=`$as_basename -- "$0" ||
13267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13268 X"$0" : 'X\(//\)$' \| \
13269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13271 sed '/^.*\/\([^/][^/]*\)\/*$/{
13285 # Avoid depending upon Character Ranges.
13286 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13287 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13288 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13289 as_cr_digits='0123456789'
13290 as_cr_alnum=$as_cr_Letters$as_cr_digits
13292 ECHO_C= ECHO_N= ECHO_T=
13293 case `echo -n x` in #(((((
13295 case `echo 'xy\c'` in
13296 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13298 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13305 rm -f conf$$ conf$$.exe conf$$.file
13306 if test -d conf$$.dir; then
13307 rm -f conf$$.dir/conf$$.file
13310 mkdir conf$$.dir 2>/dev/null
13312 if (echo >conf$$.file) 2>/dev/null; then
13313 if ln -s conf$$.file conf$$ 2>/dev/null; then
13315 # ... but there are two gotchas:
13316 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13317 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13318 # In both cases, we have to default to `cp -p'.
13319 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13321 elif ln conf$$.file conf$$ 2>/dev/null; then
13329 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13330 rmdir conf$$.dir 2>/dev/null
13335 # Create "$as_dir" as a directory, including parents if necessary.
13340 -*) as_dir=./$as_dir;;
13342 test -d "$as_dir" || eval $as_mkdir_p || {
13346 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13347 *) as_qdir=$as_dir;;
13349 as_dirs="'$as_qdir' $as_dirs"
13350 as_dir=`$as_dirname -- "$as_dir" ||
13351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13352 X"$as_dir" : 'X\(//\)[^/]' \| \
13353 X"$as_dir" : 'X\(//\)$' \| \
13354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13355 $as_echo X"$as_dir" |
13356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13360 /^X\(\/\/\)[^/].*/{
13373 test -d "$as_dir" && break
13375 test -z "$as_dirs" || eval "mkdir $as_dirs"
13376 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13380 if mkdir -p . 2>/dev/null; then
13381 as_mkdir_p='mkdir -p "$as_dir"'
13383 test -d ./-p && rmdir ./-p
13387 if test -x / >/dev/null 2>&1; then
13388 as_test_x='test -x'
13390 if ls -dL / >/dev/null 2>&1; then
13397 if test -d "$1"; then
13403 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13404 ???[sx]*):;;*)false;;esac;fi
13408 as_executable_p=$as_test_x
13410 # Sed expression to map a string onto a valid CPP name.
13411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13413 # Sed expression to map a string onto a valid variable name.
13414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13418 ## ----------------------------------- ##
13419 ## Main body of $CONFIG_STATUS script. ##
13420 ## ----------------------------------- ##
13422 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13425 # Save the log message, to keep $0 and so on meaningful, and to
13426 # report actual input values of CONFIG_FILES etc. instead of their
13427 # values after options handling.
13429 This file was extended by libffi $as_me 3.0.11, which was
13430 generated by GNU Autoconf 2.64. Invocation command line was
13432 CONFIG_FILES = $CONFIG_FILES
13433 CONFIG_HEADERS = $CONFIG_HEADERS
13434 CONFIG_LINKS = $CONFIG_LINKS
13435 CONFIG_COMMANDS = $CONFIG_COMMANDS
13438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13443 case $ac_config_files in *"
13444 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13447 case $ac_config_headers in *"
13448 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13453 # Files that config.status was made for.
13454 config_files="$ac_config_files"
13455 config_headers="$ac_config_headers"
13456 config_links="$ac_config_links"
13457 config_commands="$ac_config_commands"
13461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13463 \`$as_me' instantiates files and other configuration actions
13464 from templates according to the current configuration. Unless the files
13465 and actions are specified as TAGs, all are instantiated by default.
13467 Usage: $0 [OPTION]... [TAG]...
13469 -h, --help print this help, then exit
13470 -V, --version print version number and configuration settings, then exit
13471 -q, --quiet, --silent
13472 do not print progress messages
13473 -d, --debug don't remove temporary files
13474 --recheck update $as_me by reconfiguring in the same conditions
13475 --file=FILE[:TEMPLATE]
13476 instantiate the configuration file FILE
13477 --header=FILE[:TEMPLATE]
13478 instantiate the configuration header FILE
13480 Configuration files:
13483 Configuration headers:
13486 Configuration links:
13489 Configuration commands:
13492 Report bugs to <http://gcc.gnu.org/bugs.html>."
13495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13497 libffi config.status 3.0.11
13498 configured by $0, generated by GNU Autoconf 2.64,
13499 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13501 Copyright (C) 2009 Free Software Foundation, Inc.
13502 This config.status script is free software; the Free Software Foundation
13503 gives unlimited permission to copy, distribute and modify it."
13510 test -n "\$AWK" || AWK=awk
13513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13514 # The default lists apply if the user does not specify any file.
13520 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13521 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13532 # Handling of the options.
13533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13535 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13536 $as_echo "$ac_cs_version"; exit ;;
13537 --debug | --debu | --deb | --de | --d | -d )
13539 --file | --fil | --fi | --f )
13542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13544 as_fn_append CONFIG_FILES " '$ac_optarg'"
13545 ac_need_defaults=false;;
13546 --header | --heade | --head | --hea )
13549 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13551 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13552 ac_need_defaults=false;;
13554 # Conflict between --help and --header
13555 as_fn_error "ambiguous option: \`$1'
13556 Try \`$0 --help' for more information.";;
13557 --help | --hel | -h )
13558 $as_echo "$ac_cs_usage"; exit ;;
13559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13563 # This is an error.
13564 -*) as_fn_error "unrecognized option: \`$1'
13565 Try \`$0 --help' for more information." ;;
13567 *) as_fn_append ac_config_targets " $1"
13568 ac_need_defaults=false ;;
13574 ac_configure_extra_args=
13576 if $ac_cs_silent; then
13578 ac_configure_extra_args="$ac_configure_extra_args --silent"
13582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13583 if \$ac_cs_recheck; then
13584 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13586 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13587 CONFIG_SHELL='$SHELL'
13588 export CONFIG_SHELL
13593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13598 ## Running $as_me. ##
13604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13612 with_multisubdir="$with_multisubdir"
13613 with_multisrctop="$with_multisrctop"
13614 with_target_subdir="$with_target_subdir"
13615 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13616 multi_basedir="$multi_basedir"
13617 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13620 GFORTRAN="$GFORTRAN"
13622 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13625 # The HP-UX ksh and POSIX shell print the target directory to stdout
13626 # if CDPATH is set.
13627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13629 sed_quote_subst='$sed_quote_subst'
13630 double_quote_subst='$double_quote_subst'
13631 delay_variable_subst='$delay_variable_subst'
13632 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13633 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13634 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13635 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13636 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13637 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13638 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13639 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13640 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13641 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13642 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13643 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13644 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13645 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13646 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13647 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13648 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13649 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13650 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13651 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13652 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13653 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13654 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13655 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13656 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13657 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13658 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13659 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13660 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13661 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13662 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13663 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13664 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13665 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13666 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13667 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13668 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13669 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13670 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13671 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13672 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13673 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13674 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13675 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13676 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13677 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13678 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13679 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13680 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"`'
13681 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13682 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13683 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13684 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13685 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13686 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13687 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13688 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13689 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13690 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13691 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13692 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13693 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13694 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13695 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13696 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13697 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13698 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13699 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13700 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13701 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13702 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13703 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13704 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13705 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13706 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13707 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13708 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13709 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13710 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13711 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13712 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13713 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13714 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13715 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13716 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13717 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13718 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13719 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13720 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13721 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13722 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13723 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13724 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13725 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13726 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13727 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13728 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13729 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13730 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13731 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13732 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13733 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13734 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13735 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13736 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13737 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13738 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13739 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13740 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13741 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13742 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13743 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13744 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13745 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13746 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13747 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13748 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13749 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13750 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13751 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13754 LTCFLAGS='$LTCFLAGS'
13755 compiler='$compiler_DEFAULT'
13757 # A function that is used when there is no print builtin or printf.
13758 func_fallback_echo ()
13760 eval 'cat <<_LTECHO_EOF
13765 # Quote evaled strings.
13779 deplibs_check_method \
13788 lt_cv_sys_global_symbol_pipe \
13789 lt_cv_sys_global_symbol_to_cdecl \
13790 lt_cv_sys_global_symbol_to_c_name_address \
13791 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13792 lt_prog_compiler_no_builtin_flag \
13793 lt_prog_compiler_wl \
13794 lt_prog_compiler_pic \
13795 lt_prog_compiler_static \
13796 lt_cv_prog_compiler_c_o \
13804 export_dynamic_flag_spec \
13805 whole_archive_flag_spec \
13806 compiler_needs_object \
13808 allow_undefined_flag \
13809 no_undefined_flag \
13810 hardcode_libdir_flag_spec \
13811 hardcode_libdir_flag_spec_ld \
13812 hardcode_libdir_separator \
13817 variables_saved_for_relink \
13819 library_names_spec \
13821 install_override_mode \
13825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13826 *[\\\\\\\`\\"\\\$]*)
13827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13835 # Double-quote double-evaled strings.
13836 for var in reload_cmds \
13837 old_postinstall_cmds \
13838 old_postuninstall_cmds \
13840 extract_expsyms_cmds \
13841 old_archive_from_new_cmds \
13842 old_archive_from_expsyms_cmds \
13844 archive_expsym_cmds \
13846 module_expsym_cmds \
13847 export_symbols_cmds \
13850 postuninstall_cmds \
13852 sys_lib_search_path_spec \
13853 sys_lib_dlsearch_path_spec; do
13854 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13855 *[\\\\\\\`\\"\\\$]*)
13856 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13859 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13864 ac_aux_dir='$ac_aux_dir'
13865 xsi_shell='$xsi_shell'
13866 lt_shell_append='$lt_shell_append'
13868 # See if we are running on zsh, and set the options which allow our
13869 # commands through without removal of \ escapes INIT.
13870 if test -n "\${ZSH_VERSION+set}" ; then
13871 setopt NO_GLOB_SUBST
13877 TIMESTAMP='$TIMESTAMP'
13883 TARGETDIR="$TARGETDIR"
13887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13889 # Handling of arguments.
13890 for ac_config_target in $ac_config_targets
13892 case $ac_config_target in
13893 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13894 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13895 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13896 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13897 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13898 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13899 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13900 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13901 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13902 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13903 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13904 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13906 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13911 # If the user did not use the arguments to specify the items to instantiate,
13912 # then the envvar interface is used. Set only those that are not.
13913 # We use the long form for the default assignment because of an extremely
13914 # bizarre bug on SunOS 4.1.3.
13915 if $ac_need_defaults; then
13916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13918 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13919 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13922 # Have a temporary directory for convenience. Make it in the build tree
13923 # simply because there is no reason against having it here, and in addition,
13924 # creating and moving files from /tmp can sometimes cause problems.
13925 # Hook for its removal unless debugging.
13926 # Note that there is a small window in which the directory will not be cleaned:
13927 # after its creation but before its name has been assigned to `$tmp'.
13931 trap 'exit_status=$?
13932 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13934 trap 'as_fn_exit 1' 1 2 13 15
13936 # Create a (secure) tmp directory for tmp files.
13939 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13940 test -n "$tmp" && test -d "$tmp"
13943 tmp=./conf$$-$RANDOM
13944 (umask 077 && mkdir "$tmp")
13945 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13947 # Set up the scripts for CONFIG_FILES section.
13948 # No need to generate them if there are no CONFIG_FILES.
13949 # This happens for instance with `./config.status config.h'.
13950 if test -n "$CONFIG_FILES"; then
13953 ac_cr=`echo X | tr X '\015'`
13954 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13955 # But we know of no other shell where ac_cr would be empty at this
13956 # point, so we can use a bashism as a fallback.
13957 if test "x$ac_cr" = x; then
13958 eval ac_cr=\$\'\\r\'
13960 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13961 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13964 ac_cs_awk_cr=$ac_cr
13967 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13972 echo "cat >conf$$subs.awk <<_ACEOF" &&
13973 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13975 } >conf$$subs.sh ||
13976 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13977 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13979 for ac_last_try in false false false false false :; do
13980 . ./conf$$subs.sh ||
13981 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13983 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13984 if test $ac_delim_n = $ac_delim_num; then
13986 elif $ac_last_try; then
13987 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13992 rm -f conf$$subs.sh
13994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13995 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13999 s/^/S["/; s/!.*/"]=/
14009 s/\(.\{148\}\).*/\1/
14011 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14023 s/\(.\{148\}\).*/\1/
14025 s/["\\]/\\&/g; s/^/"/; s/$/"/
14029 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14034 ' <conf$$subs.awk | sed '
14039 ' >>$CONFIG_STATUS || ac_write_fail=1
14040 rm -f conf$$subs.awk
14041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14043 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14044 for (key in S) S_is_set[key] = 1
14050 nfields = split(line, field, "@")
14052 len = length(field[1])
14053 for (i = 2; i < nfields; i++) {
14055 keylen = length(key)
14056 if (S_is_set[key]) {
14058 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14059 len += length(value) + length(field[++i])
14070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14071 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14072 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14075 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14076 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14079 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14080 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14081 # trailing colons and then remove the whole line if VPATH becomes empty
14082 # (actually we leave an empty line to preserve line numbers).
14083 if test "x$srcdir" = x.; then
14084 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14085 s/:*\$(srcdir):*/:/
14086 s/:*\${srcdir}:*/:/
14088 s/^\([^=]*=[ ]*\):*/\1/
14094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14095 fi # test -n "$CONFIG_FILES"
14097 # Set up the scripts for CONFIG_HEADERS section.
14098 # No need to generate them if there are no CONFIG_HEADERS.
14099 # This happens for instance with `./config.status Makefile'.
14100 if test -n "$CONFIG_HEADERS"; then
14101 cat >"$tmp/defines.awk" <<\_ACAWK ||
14105 # Transform confdefs.h into an awk script `defines.awk', embedded as
14106 # here-document in config.status, that substitutes the proper values into
14107 # config.h.in to produce config.h.
14109 # Create a delimiter string that does not exist in confdefs.h, to ease
14110 # handling of long lines.
14112 for ac_last_try in false false :; do
14113 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14114 if test -z "$ac_t"; then
14116 elif $ac_last_try; then
14117 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14123 # For the awk script, D is an array of macro values keyed by name,
14124 # likewise P contains macro parameters if any. Preserve backslash
14125 # newline sequences.
14127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14129 s/.\{148\}/&'"$ac_delim"'/g
14132 s/^[ ]*#[ ]*define[ ][ ]*/ /
14139 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14141 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14146 D["\1"]=" \3\\\\\\n"\\/p
14148 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14153 s/.\{148\}/&'"$ac_delim"'/g
14158 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14161 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14163 ' <confdefs.h | sed '
14164 s/'"$ac_delim"'/"\\\
14165 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168 for (key in D) D_is_set[key] = 1
14171 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14173 split(line, arg, " ")
14174 if (arg[1] == "#") {
14178 defundef = substr(arg[1], 2)
14181 split(mac1, mac2, "(") #)
14183 prefix = substr(line, 1, index(line, defundef) - 1)
14184 if (D_is_set[macro]) {
14185 # Preserve the white space surrounding the "#".
14186 print prefix "define", macro P[macro] D[macro]
14189 # Replace #undef with comments. This is necessary, for example,
14190 # in the case of _POSIX_SOURCE, which is predefined and required
14191 # on some systems where configure will not decide to define it.
14192 if (defundef == "undef") {
14193 print "/*", prefix defundef, macro, "*/"
14201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14202 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14203 fi # test -n "$CONFIG_HEADERS"
14206 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14211 :[FHLC]) ac_mode=$ac_tag; continue;;
14213 case $ac_mode$ac_tag in
14215 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14216 :[FH]-) ac_tag=-:-;;
14217 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14234 -) ac_f="$tmp/stdin";;
14235 *) # Look for the file first in the build tree, then in the source tree
14236 # (if the path is not absolute). The absolute path cannot be DOS-style,
14237 # because $ac_f cannot contain `:'.
14241 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14243 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14245 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14246 as_fn_append ac_file_inputs " '$ac_f'"
14249 # Let's still pretend it is `configure' which instantiates (i.e., don't
14250 # use $as_me), people would be surprised to read:
14251 # /* config.h. Generated by config.status. */
14252 configure_input='Generated from '`
14253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14255 if test x"$ac_file" != x-; then
14256 configure_input="$ac_file. $configure_input"
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14258 $as_echo "$as_me: creating $ac_file" >&6;}
14260 # Neutralize special characters interpreted by sed in replacement strings.
14261 case $configure_input in #(
14262 *\&* | *\|* | *\\* )
14263 ac_sed_conf_input=`$as_echo "$configure_input" |
14264 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14265 *) ac_sed_conf_input=$configure_input;;
14269 *:-:* | *:-) cat >"$tmp/stdin" \
14270 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14275 ac_dir=`$as_dirname -- "$ac_file" ||
14276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14277 X"$ac_file" : 'X\(//\)[^/]' \| \
14278 X"$ac_file" : 'X\(//\)$' \| \
14279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14280 $as_echo X"$ac_file" |
14281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14285 /^X\(\/\/\)[^/].*/{
14298 as_dir="$ac_dir"; as_fn_mkdir_p
14302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14305 # A ".." for each directory in $ac_dir_suffix.
14306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14307 case $ac_top_builddir_sub in
14308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14312 ac_abs_top_builddir=$ac_pwd
14313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14314 # for backward compatibility:
14315 ac_top_builddir=$ac_top_build_prefix
14318 .) # We are building in place.
14320 ac_top_srcdir=$ac_top_builddir_sub
14321 ac_abs_top_srcdir=$ac_pwd ;;
14322 [\\/]* | ?:[\\/]* ) # Absolute name.
14323 ac_srcdir=$srcdir$ac_dir_suffix;
14324 ac_top_srcdir=$srcdir
14325 ac_abs_top_srcdir=$srcdir ;;
14326 *) # Relative name.
14327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14328 ac_top_srcdir=$ac_top_build_prefix$srcdir
14329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14342 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14344 ac_MKDIR_P=$MKDIR_P
14346 [\\/$]* | ?:[\\/]* ) ;;
14347 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14352 # If the template does not know about datarootdir, expand it.
14353 # FIXME: This hack should be removed a few years after 2.60.
14354 ac_datarootdir_hack=; ac_datarootdir_seen=
14365 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14366 *datarootdir*) ac_datarootdir_seen=yes;;
14367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14369 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14372 ac_datarootdir_hack='
14373 s&@datadir@&$datadir&g
14374 s&@docdir@&$docdir&g
14375 s&@infodir@&$infodir&g
14376 s&@localedir@&$localedir&g
14377 s&@mandir@&$mandir&g
14378 s&\\\${datarootdir}&$datarootdir&g' ;;
14382 # Neutralize VPATH when `$srcdir' = `.'.
14383 # Shell code in configure.ac might set extrasub.
14384 # FIXME: do we really want to maintain this feature?
14385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14386 ac_sed_extra="$ac_vpsub
14389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14392 s|@configure_input@|$ac_sed_conf_input|;t t
14393 s&@top_builddir@&$ac_top_builddir_sub&;t t
14394 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14395 s&@srcdir@&$ac_srcdir&;t t
14396 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14397 s&@top_srcdir@&$ac_top_srcdir&;t t
14398 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14399 s&@builddir@&$ac_builddir&;t t
14400 s&@abs_builddir@&$ac_abs_builddir&;t t
14401 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14402 s&@INSTALL@&$ac_INSTALL&;t t
14403 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14404 $ac_datarootdir_hack
14406 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14407 || as_fn_error "could not create $ac_file" "$LINENO" 5
14409 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14410 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14411 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14413 which seems to be undefined. Please make sure it is defined." >&5
14414 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14415 which seems to be undefined. Please make sure it is defined." >&2;}
14419 -) cat "$tmp/out" && rm -f "$tmp/out";;
14420 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14422 || as_fn_error "could not create $ac_file" "$LINENO" 5
14428 if test x"$ac_file" != x-; then
14430 $as_echo "/* $configure_input */" \
14431 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14432 } >"$tmp/config.h" \
14433 || as_fn_error "could not create $ac_file" "$LINENO" 5
14434 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14436 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14439 mv "$tmp/config.h" "$ac_file" \
14440 || as_fn_error "could not create $ac_file" "$LINENO" 5
14443 $as_echo "/* $configure_input */" \
14444 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14445 || as_fn_error "could not create -" "$LINENO" 5
14447 # Compute "$ac_file"'s index in $config_headers.
14450 for _am_header in $config_headers :; do
14451 case $_am_header in
14452 $_am_arg | $_am_arg:* )
14455 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14458 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14459 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14460 X"$_am_arg" : 'X\(//\)[^/]' \| \
14461 X"$_am_arg" : 'X\(//\)$' \| \
14462 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14463 $as_echo X"$_am_arg" |
14464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14468 /^X\(\/\/\)[^/].*/{
14480 s/.*/./; q'`/stamp-h$_am_stamp_count
14487 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14490 # Prefer the file from the source tree if names are identical.
14491 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14492 ac_source=$srcdir/$ac_source
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14496 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14498 if test ! -r "$ac_source"; then
14499 as_fn_error "$ac_source: file not found" "$LINENO" 5
14503 # Try a relative symlink, then a hard link, then a copy.
14505 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14506 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14508 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14509 ln "$ac_source" "$ac_file" 2>/dev/null ||
14510 cp -p "$ac_source" "$ac_file" ||
14511 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14514 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14515 $as_echo "$as_me: executing $ac_file commands" >&6;}
14520 case $ac_file$ac_mode in
14522 # Only add multilib support code if we just rebuilt the top-level
14524 case " $CONFIG_FILES " in
14526 ac_file=Makefile . ${multi_basedir}/config-ml.in
14529 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14530 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14531 # are listed without --file. Let's play safe and only enable the eval
14532 # if we detect the quoting.
14533 case $CONFIG_FILES in
14534 *\'*) eval set x "$CONFIG_FILES" ;;
14535 *) set x $CONFIG_FILES ;;
14540 # Strip MF so we end up with the name of the file.
14541 mf=`echo "$mf" | sed -e 's/:.*$//'`
14542 # Check whether this is an Automake generated Makefile or not.
14543 # We used to match only the files named `Makefile.in', but
14544 # some people rename them; so instead we look at the file content.
14545 # Grep'ing the first line is not enough: some people post-process
14546 # each Makefile.in and add a new line on top of each file to say so.
14547 # Grep'ing the whole file is not good either: AIX grep has a line
14548 # limit of 2048, but all sed's we know have understand at least 4000.
14549 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14550 dirpart=`$as_dirname -- "$mf" ||
14551 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14552 X"$mf" : 'X\(//\)[^/]' \| \
14553 X"$mf" : 'X\(//\)$' \| \
14554 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14560 /^X\(\/\/\)[^/].*/{
14576 # Extract the definition of DEPDIR, am__include, and am__quote
14577 # from the Makefile without running `make'.
14578 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14579 test -z "$DEPDIR" && continue
14580 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14581 test -z "am__include" && continue
14582 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14583 # When using ansi2knr, U may be empty or an underscore; expand it
14584 U=`sed -n 's/^U = //p' < "$mf"`
14585 # Find all dependency output files, they are included files with
14586 # $(DEPDIR) in their names. We invoke sed twice because it is the
14587 # simplest approach to changing $(DEPDIR) to its actual value in the
14589 for file in `sed -n "
14590 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14591 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14592 # Make sure the directory exists.
14593 test -f "$dirpart/$file" && continue
14594 fdir=`$as_dirname -- "$file" ||
14595 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14596 X"$file" : 'X\(//\)[^/]' \| \
14597 X"$file" : 'X\(//\)$' \| \
14598 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14599 $as_echo X"$file" |
14600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14604 /^X\(\/\/\)[^/].*/{
14617 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14618 # echo "creating $dirpart/$file"
14619 echo '# dummy' > "$dirpart/$file"
14626 # See if we are running on zsh, and set the options which allow our
14627 # commands through without removal of \ escapes.
14628 if test -n "${ZSH_VERSION+set}" ; then
14629 setopt NO_GLOB_SUBST
14632 cfgfile="${ofile}T"
14633 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14636 cat <<_LT_EOF >> "$cfgfile"
14639 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14640 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14642 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14644 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14645 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14646 # Written by Gordon Matzigkeit, 1996
14648 # This file is part of GNU Libtool.
14650 # GNU Libtool is free software; you can redistribute it and/or
14651 # modify it under the terms of the GNU General Public License as
14652 # published by the Free Software Foundation; either version 2 of
14653 # the License, or (at your option) any later version.
14655 # As a special exception to the GNU General Public License,
14656 # if you distribute this file as part of a program or library that
14657 # is built using GNU Libtool, you may include this file under the
14658 # same distribution terms that you use for the rest of that program.
14660 # GNU Libtool is distributed in the hope that it will be useful,
14661 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14662 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14663 # GNU General Public License for more details.
14665 # You should have received a copy of the GNU General Public License
14666 # along with GNU Libtool; see the file COPYING. If not, a copy
14667 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14668 # obtained by writing to the Free Software Foundation, Inc.,
14669 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14672 # The names of the tagged configurations supported by this script.
14675 # ### BEGIN LIBTOOL CONFIG
14677 # Which release of libtool.m4 was used?
14678 macro_version=$macro_version
14679 macro_revision=$macro_revision
14681 # Whether or not to build shared libraries.
14682 build_libtool_libs=$enable_shared
14684 # Whether or not to build static libraries.
14685 build_old_libs=$enable_static
14687 # What type of objects to build.
14690 # Whether or not to optimize for fast installation.
14691 fast_install=$enable_fast_install
14693 # Shell to use when invoking shell scripts.
14696 # An echo program that protects backslashes.
14700 host_alias=$host_alias
14704 # The build system.
14705 build_alias=$build_alias
14709 # A sed program that does not truncate output.
14712 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14713 Xsed="\$SED -e 1s/^X//"
14715 # A grep program that handles long lines.
14721 # A literal string matcher.
14724 # A BSD- or MS-compatible name lister.
14727 # Whether we need soft or hard links.
14730 # What is the maximum length of a command?
14731 max_cmd_len=$max_cmd_len
14733 # Object file suffix (normally "o").
14736 # Executable file suffix (normally "").
14739 # whether the shell understands "unset".
14742 # turn spaces into newlines.
14745 # turn newlines into spaces.
14748 # An object symbol dumper.
14749 OBJDUMP=$lt_OBJDUMP
14751 # Method to check whether dependent libraries are shared objects.
14752 deplibs_check_method=$lt_deplibs_check_method
14754 # Command to use when deplibs_check_method == "file_magic".
14755 file_magic_cmd=$lt_file_magic_cmd
14759 AR_FLAGS=$lt_AR_FLAGS
14761 # A symbol stripping program.
14764 # Commands used to install an old-style archive.
14766 old_postinstall_cmds=$lt_old_postinstall_cmds
14767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14769 # Whether to use a lock for old archive extraction.
14770 lock_old_archive_extraction=$lock_old_archive_extraction
14775 # LTCC compiler flags.
14776 LTCFLAGS=$lt_CFLAGS
14778 # Take the output of nm and produce a listing of raw symbols and C names.
14779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14781 # Transform the output of nm in a proper C declaration.
14782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14784 # Transform the output of nm in a C name address pair.
14785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14787 # Transform the output of nm in a C name address pair when lib prefix is needed.
14788 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14790 # The name of the directory that contains temporary libtool files.
14793 # Used to examine libraries when file_magic_cmd begins with "file".
14794 MAGIC_CMD=$MAGIC_CMD
14796 # Must we lock files when doing compilation?
14797 need_locks=$lt_need_locks
14799 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14800 DSYMUTIL=$lt_DSYMUTIL
14802 # Tool to change global to local symbols on Mac OS X.
14805 # Tool to manipulate fat objects and archives on Mac OS X.
14808 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14811 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14812 OTOOL64=$lt_OTOOL64
14814 # Old archive suffix (normally "a").
14817 # Shared library suffix (normally ".so").
14818 shrext_cmds=$lt_shrext_cmds
14820 # The commands to extract the exported symbol list from a shared archive.
14821 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14823 # Variables whose values should be saved in libtool wrapper scripts and
14824 # restored at link time.
14825 variables_saved_for_relink=$lt_variables_saved_for_relink
14827 # Do we need the "lib" prefix for modules?
14828 need_lib_prefix=$need_lib_prefix
14830 # Do we need a version for libraries?
14831 need_version=$need_version
14833 # Library versioning type.
14834 version_type=$version_type
14836 # Shared library runtime path variable.
14837 runpath_var=$runpath_var
14839 # Shared library path variable.
14840 shlibpath_var=$shlibpath_var
14842 # Is shlibpath searched before the hard-coded library search path?
14843 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14845 # Format of library name prefix.
14846 libname_spec=$lt_libname_spec
14848 # List of archive names. First name is the real one, the rest are links.
14849 # The last name is the one that the linker finds with -lNAME
14850 library_names_spec=$lt_library_names_spec
14852 # The coded name of the library, if different from the real name.
14853 soname_spec=$lt_soname_spec
14855 # Permission mode override for installation of shared libraries.
14856 install_override_mode=$lt_install_override_mode
14858 # Command to use after installation of a shared archive.
14859 postinstall_cmds=$lt_postinstall_cmds
14861 # Command to use after uninstallation of a shared archive.
14862 postuninstall_cmds=$lt_postuninstall_cmds
14864 # Commands used to finish a libtool library installation in a directory.
14865 finish_cmds=$lt_finish_cmds
14867 # As "finish_cmds", except a single script fragment to be evaled but
14869 finish_eval=$lt_finish_eval
14871 # Whether we should hardcode library paths into libraries.
14872 hardcode_into_libs=$hardcode_into_libs
14874 # Compile-time system search path for libraries.
14875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14877 # Run-time system search path for libraries.
14878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14880 # Whether dlopen is supported.
14881 dlopen_support=$enable_dlopen
14883 # Whether dlopen of programs is supported.
14884 dlopen_self=$enable_dlopen_self
14886 # Whether dlopen of statically linked programs is supported.
14887 dlopen_self_static=$enable_dlopen_self_static
14889 # Commands to strip libraries.
14890 old_striplib=$lt_old_striplib
14891 striplib=$lt_striplib
14894 # The linker used to build libraries.
14897 # How to create reloadable object files.
14898 reload_flag=$lt_reload_flag
14899 reload_cmds=$lt_reload_cmds
14901 # Commands used to build an old-style archive.
14902 old_archive_cmds=$lt_old_archive_cmds
14904 # A language specific compiler.
14907 # Is the compiler the GNU compiler?
14910 # Compiler flag to turn off builtin functions.
14911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14913 # How to pass a linker flag through the compiler.
14914 wl=$lt_lt_prog_compiler_wl
14916 # Additional compiler flags for building library objects.
14917 pic_flag=$lt_lt_prog_compiler_pic
14919 # Compiler flag to prevent dynamic linking.
14920 link_static_flag=$lt_lt_prog_compiler_static
14922 # Does compiler simultaneously support -c and -o options?
14923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14925 # Whether or not to add -lc for building shared libraries.
14926 build_libtool_need_lc=$archive_cmds_need_lc
14928 # Whether or not to disallow shared libs when runtime libs are static.
14929 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14931 # Compiler flag to allow reflexive dlopens.
14932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14934 # Compiler flag to generate shared objects directly from archives.
14935 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14937 # Whether the compiler copes with passing no objects directly.
14938 compiler_needs_object=$lt_compiler_needs_object
14940 # Create an old-style archive from a shared archive.
14941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14943 # Create a temporary old-style archive to link instead of a shared archive.
14944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14946 # Commands used to build a shared archive.
14947 archive_cmds=$lt_archive_cmds
14948 archive_expsym_cmds=$lt_archive_expsym_cmds
14950 # Commands used to build a loadable module if different from building
14951 # a shared archive.
14952 module_cmds=$lt_module_cmds
14953 module_expsym_cmds=$lt_module_expsym_cmds
14955 # Whether we are building with GNU ld or not.
14956 with_gnu_ld=$lt_with_gnu_ld
14958 # Flag that allows shared libraries with undefined symbols to be built.
14959 allow_undefined_flag=$lt_allow_undefined_flag
14961 # Flag that enforces no undefined symbols.
14962 no_undefined_flag=$lt_no_undefined_flag
14964 # Flag to hardcode \$libdir into a binary during linking.
14965 # This must work even if \$libdir does not exist
14966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14968 # If ld is used when linking, flag to hardcode \$libdir into a binary
14969 # during linking. This must work even if \$libdir does not exist.
14970 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14972 # Whether we need a single "-rpath" flag with a separated argument.
14973 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14975 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14976 # DIR into the resulting binary.
14977 hardcode_direct=$hardcode_direct
14979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14980 # DIR into the resulting binary and the resulting library dependency is
14981 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14982 # library is relocated.
14983 hardcode_direct_absolute=$hardcode_direct_absolute
14985 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14986 # into the resulting binary.
14987 hardcode_minus_L=$hardcode_minus_L
14989 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14990 # into the resulting binary.
14991 hardcode_shlibpath_var=$hardcode_shlibpath_var
14993 # Set to "yes" if building a shared library automatically hardcodes DIR
14994 # into the library and all subsequent libraries and executables linked
14996 hardcode_automatic=$hardcode_automatic
14998 # Set to yes if linker adds runtime paths of dependent libraries
14999 # to runtime path list.
15000 inherit_rpath=$inherit_rpath
15002 # Whether libtool must link a program against all its dependency libraries.
15003 link_all_deplibs=$link_all_deplibs
15005 # Fix the shell variable \$srcfile for the compiler.
15006 fix_srcfile_path=$lt_fix_srcfile_path
15008 # Set to "yes" if exported symbols are required.
15009 always_export_symbols=$always_export_symbols
15011 # The commands to list exported symbols.
15012 export_symbols_cmds=$lt_export_symbols_cmds
15014 # Symbols that should not be listed in the preloaded symbols.
15015 exclude_expsyms=$lt_exclude_expsyms
15017 # Symbols that must always be exported.
15018 include_expsyms=$lt_include_expsyms
15020 # Commands necessary for linking programs (against libraries) with templates.
15021 prelink_cmds=$lt_prelink_cmds
15023 # Specify filename containing input files.
15024 file_list_spec=$lt_file_list_spec
15026 # How to hardcode a shared library path into an executable.
15027 hardcode_action=$hardcode_action
15029 # ### END LIBTOOL CONFIG
15035 cat <<\_LT_EOF >> "$cfgfile"
15036 # AIX sometimes has problems with the GCC collect2 program. For some
15037 # reason, if we set the COLLECT_NAMES environment variable, the problems
15038 # vanish in a puff of smoke.
15039 if test "X${COLLECT_NAMES+set}" != Xset; then
15041 export COLLECT_NAMES
15048 ltmain="$ac_aux_dir/ltmain.sh"
15051 # We use sed instead of cat because bash on DJGPP gets confused if
15052 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15053 # text mode, it properly converts lines to CR/LF. This bash problem
15054 # is reportedly fixed, but why not run on old versions too?
15055 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15056 || (rm -f "$cfgfile"; exit 1)
15060 cat << \_LT_EOF >> "$cfgfile"
15062 # func_dirname file append nondir_replacement
15063 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15064 # otherwise set result to NONDIR_REPLACEMENT.
15068 */*) func_dirname_result="${1%/*}${2}" ;;
15069 * ) func_dirname_result="${3}" ;;
15073 # func_basename file
15076 func_basename_result="${1##*/}"
15079 # func_dirname_and_basename file append nondir_replacement
15080 # perform func_basename and func_dirname in a single function
15082 # dirname: Compute the dirname of FILE. If nonempty,
15083 # add APPEND to the result, otherwise set result
15084 # to NONDIR_REPLACEMENT.
15085 # value returned in "$func_dirname_result"
15086 # basename: Compute filename of FILE.
15087 # value retuned in "$func_basename_result"
15088 # Implementation must be kept synchronized with func_dirname
15089 # and func_basename. For efficiency, we do not delegate to
15090 # those functions but instead duplicate the functionality here.
15091 func_dirname_and_basename ()
15094 */*) func_dirname_result="${1%/*}${2}" ;;
15095 * ) func_dirname_result="${3}" ;;
15097 func_basename_result="${1##*/}"
15100 # func_stripname prefix suffix name
15101 # strip PREFIX and SUFFIX off of NAME.
15102 # PREFIX and SUFFIX must not contain globbing or regex special
15103 # characters, hashes, percent signs, but SUFFIX may contain a leading
15104 # dot (in which case that matches only a dot).
15107 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15108 # positional parameters, so assign one to ordinary parameter first.
15109 func_stripname_result=${3}
15110 func_stripname_result=${func_stripname_result#"${1}"}
15111 func_stripname_result=${func_stripname_result%"${2}"}
15117 func_opt_split_opt=${1%%=*}
15118 func_opt_split_arg=${1#*=}
15125 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15126 *) func_lo2o_result=${1} ;;
15130 # func_xform libobj-or-source
15133 func_xform_result=${1%.*}.lo
15136 # func_arith arithmetic-term...
15139 func_arith_result=$(( $* ))
15143 # STRING may not start with a hyphen.
15146 func_len_result=${#1}
15151 *) # Bourne compatible functions.
15152 cat << \_LT_EOF >> "$cfgfile"
15154 # func_dirname file append nondir_replacement
15155 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15156 # otherwise set result to NONDIR_REPLACEMENT.
15159 # Extract subdirectory from the argument.
15160 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15161 if test "X$func_dirname_result" = "X${1}"; then
15162 func_dirname_result="${3}"
15164 func_dirname_result="$func_dirname_result${2}"
15168 # func_basename file
15171 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15175 # func_stripname prefix suffix name
15176 # strip PREFIX and SUFFIX off of NAME.
15177 # PREFIX and SUFFIX must not contain globbing or regex special
15178 # characters, hashes, percent signs, but SUFFIX may contain a leading
15179 # dot (in which case that matches only a dot).
15180 # func_strip_suffix prefix name
15184 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15185 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15190 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15191 my_sed_long_arg='1s/^-[^=]*=//'
15196 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15197 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15203 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15206 # func_xform libobj-or-source
15209 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15212 # func_arith arithmetic-term...
15215 func_arith_result=`expr "$@"`
15219 # STRING may not start with a hyphen.
15222 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15228 case $lt_shell_append in
15230 cat << \_LT_EOF >> "$cfgfile"
15232 # func_append var value
15233 # Append VALUE to the end of shell variable VAR.
15241 cat << \_LT_EOF >> "$cfgfile"
15243 # func_append var value
15244 # Append VALUE to the end of shell variable VAR.
15255 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15256 || (rm -f "$cfgfile"; exit 1)
15258 mv -f "$cfgfile" "$ofile" ||
15259 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15263 "include":C) test -d include || mkdir include ;;
15265 test -d src || mkdir src
15266 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15275 ac_clean_files=$ac_clean_files_save
15277 test $ac_write_fail = 0 ||
15278 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15281 # configure is writing to config.log, and then calls config.status.
15282 # config.status does its own redirection, appending to config.log.
15283 # Unfortunately, on DOS this fails, as config.log is still kept open
15284 # by configure, so config.status won't be able to write to it; its
15285 # output is simply discarded. So we exec the FD to /dev/null,
15286 # effectively closing config.log, so it can be properly (re)opened and
15287 # appended to by config.status. When coming back to configure, we
15288 # need to make the FD available again.
15289 if test "$no_create" != yes; then
15291 ac_config_status_args=
15292 test "$silent" = yes &&
15293 ac_config_status_args="$ac_config_status_args --quiet"
15295 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15297 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15298 # would make configure fail if this is the last instruction.
15299 $ac_cs_success || as_fn_exit $?
15301 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15303 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}